:root {
  --primary: #1d4ed8;
  --primary-light: #eff6ff;
  --text-dark: #1e293b;
  --text-secondary: #64748b;
  --border-light: #e2e8f0;
  --surface: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: var(--text-dark);
  user-select: none;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ==========================================================================
   1. THANH PILL FILTER TRÊN CÙNG (GIỐNG HỆT ẢNH MẪU)
   ========================================================================== */
.top-pill-bar {
  height: 54px;
  background: var(--surface);
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  z-index: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.pill-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  max-width: 560px;
  justify-content: space-between;
}

.pill-scroll::-webkit-scrollbar {
  display: none;
}

.top-pill {
  flex: 1;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.top-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.top-pill.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

/* ==========================================================================
   POPUP NHỎ GỌN DƯỚI THANH PILL (QUY HOẠCH / LỚP BẢN ĐỒ / TIỆN ÍCH)
   ========================================================================== */
.PopoverCard {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 650;
  box-shadow: var(--shadow-lg);
  border: 1px solid #f1f5f9;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.popover-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-icon-close {
  border: none;
  background: #f1f5f9;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Công tắc bật/tắt kiểu iOS */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 24px;
}

.ios-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ios-switch input:checked + .ios-slider {
  background-color: #1d4ed8;
}

.ios-switch input:checked + .ios-slider:before {
  transform: translateX(20px);
}

.opacity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.opacity-label {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 48px;
}

#opacity-slider,
#opacity-slider-2 {
  flex: 1;
  accent-color: #1d4ed8;
  height: 5px;
  cursor: pointer;
}

.opacity-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #1d4ed8;
  min-width: 38px;
  text-align: right;
}

.layer-preset-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.lp-tab {
  padding: 7px 4px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.lp-tab.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.layer-control-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.layer-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layer-box-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #1e293b;
}

.layer-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

.badge-l1 {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
}

.badge-l2 {
  background: #fce7f3;
  color: #be185d;
  border: 1px solid #f9a8d4;
}

/* Nhãn ký hiệu loại đất (ODT, ONT, CLN, DGT...) trực tiếp trên ô quy hoạch */
.landuse-code-tag {
  display: inline-block;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.65);
  border-radius: 3px;
  color: #0f172a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  pointer-events: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Chọn lớp bản đồ */
.basemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bm-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  color: #475569;
  font-weight: 500;
}

.bm-thumb {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background-size: cover;
  background-position: center;
  transition: all 0.15s;
}

.bm-option.active .bm-thumb {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.bm-option.active span {
  color: #1d4ed8;
  font-weight: 600;
}

.bm-thumb-hybrid {
  background: linear-gradient(135deg, #14532d 0%, #064e3b 50%, #f59e0b 100%);
}
.bm-thumb-sat {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
}
.bm-thumb-street {
  background: linear-gradient(135deg, #fef3c7 0%, #dbeafe 60%, #93c5fd 100%);
}
.bm-thumb-osm {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Tiện ích tìm kiếm Số tờ / Số thửa & đo đạc */
.tothua-search-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.phuong-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  color: var(--text-dark);
  background: #f8fafc;
  outline: none;
}

.tothua-row {
  display: flex;
  gap: 6px;
}

.tothua-row input {
  flex: 1;
  width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  outline: none;
}

.tothua-row input:focus {
  border-color: #1d4ed8;
}

.tothua-row button {
  padding: 0 12px;
  border-radius: 9px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-inline {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.search-inline input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
  color: var(--text-dark);
}

.search-inline input:focus {
  border-color: #1d4ed8;
}

.search-inline button {
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.utility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.util-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.util-item:hover,
.util-item.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* ==========================================================================
   2. VÙNG BẢN ĐỒ & BADGE DỰ ÁN TRÊN BẢN ĐỒ (GIỐNG HỆT ẢNH MẪU)
   ========================================================================== */
.map-Area {
  flex: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #e5e7eb;
}

/* Badge Dự án nổi trên bản đồ giống hệt ảnh mẫu (KHU DÂN CƯ AN LẠC, KHU ĐÔ THỊ BÌNH MINH...) */
.project-pill-marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.96);
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.project-pill-marker:hover {
  transform: scale(1.04);
}

.project-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.project-pill-text {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* Pin chọn thửa đất màu xanh dương chuẩn ảnh mẫu */
.selected-parcel-pin {
  filter: drop-shadow(0 4px 8px rgba(29, 78, 216, 0.45));
}

/* Chấm xanh GPS vị trí đang đứng */
.gps-user-dot-wrap {
  position: relative;
  width: 24px;
  height: 24px;
}

.gps-user-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #2563eb;
  border: 3px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.65);
  z-index: 2;
}

.gps-user-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  background: rgba(37, 99, 235, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: gpsRipple 1.8s infinite ease-out;
  z-index: 1;
}

@keyframes gpsRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0;
  }
}

/* ==========================================================================
   3. CỤM NÚT NỔI BÊN PHẢI (TRẮNG SẠCH, ICON SVG MẢNH NHƯ ẢNH MẪU)
   ========================================================================== */
.map-fab-right {
  position: absolute;
  right: 12px;
  top: 46%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.15s ease;
}

.fab-btn:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

.fab-btn:active,
.fab-btn.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.fab-zoom-group {
  width: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fab-zoom-btn {
  width: 44px;
  height: 42px;
  background: transparent;
  border: none;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.fab-zoom-btn:hover {
  background: #f8fafc;
  color: #1d4ed8;
}

.fab-zoom-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0 8px;
}

/* ==========================================================================
   4. THẺ "THÔNG TIN THỬA ĐẤT" NỔI Ở DƯỚI (CHUẨN ẢNH MẪU)
   ========================================================================== */
.parcel-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px 14px;
  z-index: 520;
  box-shadow: var(--shadow-lg);
  border: 1px solid #f1f5f9;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.parcel-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.parcel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.parcel-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #f59e0b;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.parcel-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.parcel-close-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.parcel-close-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

.parcel-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  row-gap: 9px;
  column-gap: 12px;
}

.parcel-field {
  font-size: 13.5px;
  line-height: 1.4;
  color: #64748b;
}

.parcel-field-full {
  grid-column: 1 / -1;
}

.field-label {
  color: #64748b;
  font-weight: 400;
  margin-right: 4px;
}

.field-value {
  color: #1e293b;
  font-weight: 600;
}

.highlight-landuse {
  color: #1e293b;
}

/* Hàng nút dưới thẻ Thông tin thửa đất */
.parcel-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #f1f5f9;
}

.parcel-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.parcel-action-btn:hover {
  background: #f1f5f9;
}

.parcel-action-btn.primary {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* ==========================================================================
   5. THANH TAB ĐIỀU HƯỚNG DƯỚI CÙNG (4 TAB CHUẨN ẢNH MẪU)
   ========================================================================== */
.bottom-tab-bar {
  height: 62px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 600;
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-item {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s;
}

.tab-item.active {
  color: #1d4ed8;
}

.tab-label {
  font-size: 11.5px;
  font-weight: 500;
}

.tab-item.active .tab-label {
  font-weight: 600;
}

/* ==========================================================================
   THANH KÉO RÈM SO SÁNH & ĐO ĐẠC
   ========================================================================== */
.swipe-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 480;
}

.swipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #1d4ed8;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.swipe-handle {
  position: absolute;
  top: 45%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  box-shadow: var(--shadow-md);
}

.measure-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  max-width: 460px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 540;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbeafe;
}

.measure-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.measure-bar-text strong {
  font-size: 13px;
  color: #1d4ed8;
}

.measure-bar-text span {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

.measure-bar-btns {
  display: flex;
  gap: 6px;
}

.measure-bar-btns button {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.measure-bar-btns .btn-done {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.segment-label {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MODAL BOTTOM SHEET (DANH SÁCH DỰ ÁN / BẢNG MÀU / THỬA ĐẤT ĐÃ LƯU)
   ========================================================================== */
.modal-sheet {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.modal-sheet-content {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 75vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.modal-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.modal-sheet-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.modal-sheet-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
}

.list-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.list-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.list-card-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* TOAST NHỎ GỌN */
.toast-container {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* ==========================================================================
   HỘP THOẠI XIN QUYỀN VỊ TRÍ CHUẨN APP (CHO PHÉP TRUY CẬP VỊ TRÍ)
   ========================================================================== */
.perm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.perm-modal-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 20px 18px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.perm-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.perm-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.perm-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 18px;
}

.perm-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perm-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.perm-btn-primary {
  background: #1d4ed8;
  color: #ffffff;
}

.perm-btn-primary:hover {
  background: #1e40af;
}

.perm-btn-secondary {
  background: #eff6ff;
  color: #1d4ed8;
}

.perm-btn-secondary:hover {
  background: #dbeafe;
}

.perm-btn-HTTPS {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 12.5px;
}

.perm-btn-cancel {
  background: transparent;
  color: #64748b;
  font-weight: 500;
  padding: 8px;
}

.hidden {
  display: none !important;
}
