/* === macOS Tahoe Native Skin (Apple HIG · Liquid Glass Two-Layer System · Finder/Numbers Tables) === */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif !important;
  --font-mono: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif !important;
  --tahoe-border-light: rgba(15, 23, 42, 0.08);
  --tahoe-border-dark: rgba(255, 255, 255, 0.08);
  --hig-glass-blur-regular: blur(24px) saturate(140%);
  --hig-glass-blur-clear: blur(14px) saturate(135%);
  --hig-glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --hig-focus-ring: 0 0 0 3px rgba(169, 255, 202, 0.52);
  --hig-spring-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hig-hit-mobile: 44px;
  --hig-hit-desktop: 28px;
}

html,
body,
#root,
#app,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
em {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Apple HIG Typography: Remove generic italic Playfair serif template look (SKILL.md › Lens 3) */
em,
h1 em,
h2 em,
h3 em,
.section-head h2 em {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

h1 em,
h2 em,
h3 em,
.section-head h2 em {
  color: #0f766e !important;
}

.hero h1 em,
.enroll-hub h2 em,
.cta-card h2 em,
.dark h2 em,
.dark h3 em {
  color: #6ee7b7 !important;
}

.hero-kicker {
  color: #ffffff !important;
  background: rgba(12, 34, 30, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hero-kicker-dot {
  background: #34d399 !important;
}

/* Eliminare completă fonturi robotizate / monospace și aliniere numerică tabelară Apple */
.font-mono,
[class*="font-mono"],
code,
pre,
kbd,
samp,
td,
th,
[class*="tabular-nums"] {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
}

/* Eliminare etichete cu aspect robotizat (tracking exagerat) */
[class*="tracking-widest"],
[class*="tracking-wider"],
[class*="tracking-["] {
  letter-spacing: -0.005em !important;
}

/* === Tabele Native stil macOS Tahoe (Finder / Numbers) === */
table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-variant-numeric: tabular-nums !important;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  padding: 9px 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  white-space: nowrap;
}

tbody tr {
  height: 38px;
  transition: background-color 120ms ease !important;
}

tbody tr:nth-child(even) {
  background-color: #fcfdfe;
}

tbody tr:hover,
.bo-table tbody tr:hover {
  background-color: #f3faf6 !important;
}

/* Apple HIG & macOS Tahoe Pop-Up Buttons / Droplists (pop-up-buttons.md) */
select.input-light,
select.form-input,
.catalog-select,
.bo-select,
.bo-topbar-select,
.hig-parity-select,
.hero-matcher select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
  padding-right: 34px !important;
  font-variant-numeric: tabular-nums !important;
  cursor: pointer !important;
}

/* Header Language & Currency Pull-Down Menus — Screen 2 Emerald Palette */
.lang-trigger:hover {
  border-color: #0d8a5e !important;
  background: #eaf7f1 !important;
  color: #0d8a5e !important;
}

.lang-option:hover,
.lang-option[aria-selected="true"] {
  background: #eaf7f1 !important;
  color: #0d8a5e !important;
  font-weight: 700 !important;
}

.lang-option[aria-selected="true"] .lang-option-code {
  color: #0d8a5e !important;
}

/* Wizard Step Bar, Progress Meter & Chips — Screen 2 Apple Emerald */
.wiz-step-btn.active {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border-color: #0b7a53 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.22) !important;
}

.wiz-step-btn.active span {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.wiz-meter i {
  background: linear-gradient(90deg, #129b6b 0%, #0d8a5e 100%) !important;
}

.wiz-chip {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 600 !important;
}

.wiz-chip:hover,
.wiz-chip.active {
  background: #eaf7f1 !important;
  color: #0d8a5e !important;
  border-color: #ccece0 !important;
}

.wiz-cat-card.selected {
  border: 1.5px solid #0d8a5e !important;
  background: #f4fbf7 !important;
  box-shadow: 0 4px 14px rgba(13, 138, 94, 0.12) !important;
}

tbody td {
  padding: 7px 12px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  vertical-align: middle !important;
}

/* Panouri și ferestre macOS Tahoe Liquid Glass discret */
[class*="rounded-2xl"],
[class*="rounded-xl"] {
  border-radius: 12px !important;
}

/* Optimizare iPhone / Mobil — Zero scroll orizontal pe pagină */
@media (max-width: 768px) {

  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* === FULL-SCREEN ENTERPRISE BACKOFFICE & CRM PORTAL (/admin) === */
.modal-backdrop.backoffice-fullscreen-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 3000 !important;
  background: #071b18 !important;
  display: none;
  overflow: hidden !important;
}

.modal-backdrop.backoffice-fullscreen-modal.open {
  display: flex !important;
}

.backoffice-root-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f1f5f4;
  color: #0b221f;
}

.bo-login-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(169, 255, 202, 0.14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.12), transparent 50%),
    linear-gradient(145deg, #051614 0%, #0a2521 55%, #071b18 100%);
  color: #ffffff;
  overflow-y: auto;
}

.bo-login-card {
  width: min(460px, 100%);
  background: rgba(12, 38, 34, 0.88);
  border: 1px solid rgba(169, 255, 202, 0.24);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.bo-workspace {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #f4f6f9;
}

.bo-sidebar {
  width: 244px;
  flex-shrink: 0;
  background: #ffffff;
  color: #334155;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #e6ebf1;
  height: 100vh;
  overflow-y: auto;
}

.bo-sidebar strong {
  color: #0f172a !important;
}

.bo-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px !important;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bo-nav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.bo-nav-btn.active {
  background: #0d8a5e;
  color: #ffffff;
  border-color: #0b7a53;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(13, 138, 94, 0.22);
}

.bo-nav-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.bo-nav-btn.active .bo-nav-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.bo-sidebar-footer {
  padding: 14px;
  border-top: 1px solid #e6ebf1;
  display: grid;
  gap: 8px;
}

.bo-sidebar-action-primary {
  width: 100%;
  height: 36px !important;
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1px solid #0b7a53 !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
}

.bo-sidebar-action-primary:hover {
  background: #0a754f !important;
}

.bo-sidebar-action-quiet {
  width: 100%;
  height: 34px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.bo-sidebar-action-quiet:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.bo-sidebar-action-signout {
  height: 34px !important;
  padding: 0 12px !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bo-sidebar-action-signout:hover {
  background: #ffe4e6 !important;
  color: #be123c !important;
}

.bo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
}

.bo-topbar {
  height: 64px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bo-sync-pill {
  height: 36px !important;
  background: #f1f5f4 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 0 13px !important;
}

.bo-sync-pill:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.bo-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.bo-topbar-search {
  width: 240px !important;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 12.5px !important;
  background-color: #f1f5f4 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

.bo-topbar-search:focus {
  background-color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.24) !important;
}

.bo-topbar-select {
  width: 88px !important;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  background-color: #f1f5f4 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
  padding-left: 12px !important;
  padding-right: 28px !important;
}

.bo-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 48px;
}

.bo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.bo-kpi-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.bo-kpi-card:hover {
  border-color: rgba(15, 23, 42, 0.16) !important;
}

.bo-kpi-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.005em;
}

.bo-kpi-value {
  display: block;
  font-size: 23px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}

.bo-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
  margin-bottom: 18px;
}

.bo-card.bo-table-card {
  padding: 0 !important;
  overflow: hidden;
}

.bo-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
}

/* Apple HIG Segmented Control inside Backoffice toolbars (segmented-controls.md) */
.bo-segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
  flex-wrap: wrap;
}

.bo-seg-btn {
  border: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 5px 14px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bo-seg-btn:hover {
  color: #0f172a !important;
}

.bo-seg-btn.active {
  background: #0d8a5e !important;
  color: #ffffff !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.2) !important;
}

.bo-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff;
}

.bo-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.bo-table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  text-align: left;
}

.bo-table tbody td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.055) !important;
  font-size: 13px !important;
  color: #0f172a;
  vertical-align: middle !important;
}

.bo-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.bo-table tbody tr:hover {
  background: #f8fafc !important;
}

.bo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f4;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.bo-avatar.is-super {
  background: #0d8a5e;
  color: #ffffff;
}

.bo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bo-badge-pro {
  background: #eaf7f1;
  color: #0d8a5e;
  border: 1px solid #ccece0;
}

.bo-badge-pack {
  background: rgba(14, 116, 144, 0.1);
  color: #0e7490;
}

.bo-badge-starter {
  background: #f1f5f9;
  color: #475569;
}

.bo-badge-active {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.bo-badge-deal {
  background: #f1f5f4;
  color: #334155;
}

.bo-listing-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 260px;
  padding: 4px 10px;
  border-radius: 999px !important;
  background: #f4f6f7;
  border: 1px solid rgba(15, 23, 42, 0.07);
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease;
}

.bo-listing-pill:hover {
  background: #e2e8f0;
}

.bo-listing-pill-id {
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.bo-listing-pill-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bo-owner-link {
  display: inline-block;
  padding: 0;
  margin-top: 1px;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  text-align: left;
  min-height: 0 !important;
}

.bo-owner-link:hover {
  color: #0f172a;
}

.bo-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.bo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 13px;
  min-height: 30px;
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bo-btn:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.18);
}

.bo-btn-primary {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border-color: #0b7a53 !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.18);
}

.bo-btn-primary:hover {
  background: #0a754f !important;
  color: #ffffff !important;
}

.bo-btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

.bo-btn-secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.bo-btn-ghost {
  background: transparent !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.bo-btn-ghost:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.bo-btn-mint {
  background: #0d8a5e;
  color: #ffffff;
  border-color: #0b7a53;
  font-weight: 650;
}

.bo-btn-mint:hover {
  background: #0a754f;
  color: #ffffff;
}

.bo-btn-danger,
.bo-btn-icon-danger {
  background: transparent !important;
  color: #94a3b8 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.bo-btn-icon-danger {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
}

.bo-btn-danger:hover,
.bo-btn-icon-danger:hover {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
}

/* Circular Apple SF Symbol Action Icon Buttons (.bo-icon-btn) */
.bo-icon-btn {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer;
  transition: all 0.16s ease !important;
  flex-shrink: 0;
}

.bo-icon-btn:hover {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border-color: #0d8a5e !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(13, 138, 94, 0.2) !important;
}

.bo-icon-btn.is-danger {
  background: #f8fafc !important;
  color: #64748b !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

.bo-icon-btn.is-danger:hover {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.14) !important;
}

@media (max-width: 960px) {
  .bo-workspace {
    flex-direction: column;
  }

  .bo-sidebar {
    width: 100%;
    height: auto;
    max-height: 210px;
  }
}

/* Keep Offer Detail, Wizard & Guide modals layered ABOVE Backoffice (/admin) */
#offerModal.open,
#wizardModal.open,
#guideModal.open {
  z-index: 3500 !important;
  top: 0 !important;
  height: 100dvh !important;
}

/* ============================================================================
   APPLE HIG & LIQUID GLASS TWO-LAYER DISCIPLINE (dickwu/apple-design-skill)
   1. Functional Layer (floating bars, sheets, modals): Liquid Glass + specular edge
   2. Content Layer (cards, tables, rows): Opaque standard surface (no stacked glass)
   3. Accessibility Lens 1: 44pt/28pt targets, :focus-visible, reduced motion/transparency
   ============================================================================ */

/* Functional Layer — Liquid Glass Regular (liquid-glass.md › The two layers) */
.header {
  background: rgba(250, 252, 251, 0.76) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 26px rgba(8, 34, 40, 0.05) !important;
}

.bo-topbar {
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.glass-auth-modal,
.bo-login-card,
.modal,
.chat-panel,
.toast {
  backdrop-filter: var(--hig-glass-blur-regular);
  -webkit-backdrop-filter: var(--hig-glass-blur-regular);
  box-shadow: var(--hig-glass-specular), 0 22px 54px rgba(3, 15, 13, 0.38);
}

.chat-dock {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.chat-launcher {
  border-radius: 50% !important;
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 8px 22px rgba(13, 138, 94, 0.32) !important;
}

/* Content Layer — Standard Opaque Materials & Apple Card Craft (never stack glass on glass in content) */
.offer-card,
.swap-card,
.step,
.plan:not(.dark),
.article,
.service,
.bo-card,
.bo-kpi-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(8, 34, 40, 0.055), 0 1px 2px rgba(8, 34, 40, 0.04) !important;
  transition: transform 240ms var(--hig-spring-ease), box-shadow 240ms var(--hig-spring-ease) !important;
}

.swap-card:hover,
.step:hover,
.article:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 34px rgba(8, 34, 40, 0.1), 0 2px 6px rgba(8, 34, 40, 0.05) !important;
}

/* Apple HIG Segmented Controls & Filter Pills (segmented-controls.md, searching.md) */
#dealModePills,
#dashTabsBar {
  display: inline-flex !important;
  background: rgba(15, 23, 42, 0.065) !important;
  padding: 4px !important;
  border-radius: 999px !important;
  border: none !important;
  gap: 3px !important;
}

.offer-modal-grid .catalog-pills {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  background: rgba(15, 23, 42, 0.065) !important;
  padding: 4px !important;
  border-radius: 999px !important;
  border: none !important;
  gap: 4px !important;
}

#dealModePills .cat-pill,
#dashTabsBar .cat-pill,
.offer-modal-grid .catalog-pills .cat-pill {
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: 36px !important;
  box-shadow: none !important;
}

#dealModePills .cat-pill.active,
#dashTabsBar .cat-pill.active,
.offer-modal-grid .catalog-pills .cat-pill.active {
  background: #0d8a5e !important;
  color: #ffffff !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.22) !important;
}

.catalog-toolbar {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 24px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

#gdprConsentBanner {
  position: fixed !important;
  bottom: 12px !important;
  left: 12px !important;
  right: 12px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  background: rgba(15, 23, 42, 0.92) !important;
  color: #ffffff !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  border-radius: 16px !important;
  padding: 9px 13px !important;
  z-index: 1180 !important;
}

.hig-gdpr-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hig-gdpr-compact-copy {
  flex: 1;
  min-width: 0;
}

.hig-gdpr-badge {
  background: rgba(13, 138, 94, 0.35);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.35);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  flex-shrink: 0;
}

.hig-gdpr-desc {
  margin: 2px 0 0;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hig-gdpr-compact-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.hig-gdpr-btn {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  cursor: pointer;
  white-space: nowrap;
}

.hig-gdpr-btn.is-ghost {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.hig-gdpr-btn.is-outline {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.hig-gdpr-btn.is-accept {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1px solid #0b7a53 !important;
  padding: 0 12px !important;
}

@media (max-width: 560px) {
  .hig-gdpr-compact-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .hig-gdpr-compact-actions {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 6px;
  }

  .hig-gdpr-btn {
    height: 32px !important;
    min-height: 32px !important;
  }
}

#categoryFilterPills {
  gap: 6px !important;
}

#categoryFilterPills .cat-pill {
  border: 1px solid transparent !important;
  background: #f2f5f4 !important;
  color: #334155 !important;
  border-radius: 999px !important;
  padding: 6px 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  min-height: 36px !important;
}

#categoryFilterPills .cat-pill:hover {
  background: #eaf7f1 !important;
  color: #0d8a5e !important;
}

#categoryFilterPills .cat-pill.active {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border-color: #0b7a53 !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.2) !important;
}

.catalog-filters-right {
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  padding-top: 10px !important;
}

.catalog-search,
.catalog-select,
.price-range-mini {
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background-color: #f4f6f5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02) !important;
}

.catalog-search:focus,
.catalog-select:focus,
.price-range-mini:focus-within {
  background-color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14) !important;
}

/* ============================================================================
   APPLE STORE & macOS TAHOE CATALOG CARDS (.swap-card)
   (collections.md, liquid-glass.md › Clear variant & Color budget, buttons.md)
   ============================================================================ */
.swap-card {
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.swap-card-media {
  height: 210px !important;
}

/* Clear Liquid Glass Pill over Rich Photo Media (liquid-glass.md › Which variant: Clear) */
.swap-pill-cat,
.service-count-badge {
  background: rgba(15, 23, 42, 0.52) !important;
  color: #ffffff !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  max-width: calc(100% - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.swap-fav-btn {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.46) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.swap-fav-btn.is-fav {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #e11d48 !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
}

.swap-card-body {
  padding: 16px 18px 18px !important;
  gap: 10px !important;
}

.swap-card-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.swap-card-loc-owner {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swap-card-price-inline {
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.swap-card h3 {
  font-size: 17px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
}

.swap-exchange-box {
  background: #f5f7f7 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  gap: 7px !important;
  box-shadow: none !important;
}

.swap-row {
  font-size: 12.5px !important;
  color: #334155 !important;
  line-height: 1.38 !important;
  align-items: baseline !important;
}

.swap-row+.swap-row {
  padding-top: 7px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.swap-tag {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
}

.swap-tag.have {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

.swap-tag.want {
  background: rgba(15, 118, 110, 0.12) !important;
  color: #0f766e !important;
}

.swap-want-text {
  font-weight: 500;
  color: #0f172a;
}

/* Apple HIG Button Hierarchy: 1 Prominent Capsule Button + 1 Quiet Capsule Fill Button (buttons.md › Style) */
button:not(.offer-list-item):not(.wiz-cat-card):not(.smart-dd-item):not(.mobile-hub-card):not(.hig-tabbar-item),
.btn,
.bo-btn,
.cat-pill,
.wiz-chip,
.pill-btn-mint,
.pill-btn-white,
.hig-btn-cancel,
.hig-btn-save,
.hig-btn-destructive,
.hig-btn-destructive-outline {
  border-radius: 999px !important;
}

.swap-card-footer {
  gap: 10px !important;
  padding-top: 4px !important;
}

.swap-card-footer .btn.swap-btn-primary {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1px solid #0b7a53 !important;
  border-radius: 999px !important;
  height: 42px !important;
  min-height: 42px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.18) !important;
}

.swap-card-footer .btn.swap-btn-primary:hover {
  background: #0a754f !important;
  color: #ffffff !important;
}

.swap-card-footer .btn.swap-btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  height: 42px !important;
  min-height: 42px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.swap-card-footer .btn.swap-btn-secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Apple HIG Modal Windows, Sheets & Grouped Form Inputs (sheets.md, text-fields.md, buttons.md) */
html:has(body.modal-open),
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.modal-backdrop {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

.modal-backdrop.open {
  display: block !important;
  padding: 24px 16px 72px !important;
}

.modal-card {
  border-radius: 26px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 32px 80px rgba(3, 15, 13, 0.36) !important;
  animation: higSheetSpringIn 240ms var(--hig-spring-ease) !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 auto !important;
}

/* Guarantee zero text truncation inside #offerModal and full visibility in .plan.dark */
#offerModal h2,
#offerModal p,
#offerModal .swap-exchange-box,
#offerModal .swap-row,
#offerModal .swap-row span,
#offerModal .swap-want-text,
#offerModal .hig-offer-meta,
#offerModal .hig-offer-meta span,
#offerModal .hig-balance-pill,
#offerModal .hig-balance-pill span,
#offerModal .hig-submit-btn,
#offerModal .cat-pill {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  word-break: break-word !important;
}

#offerModal .hig-balance-pill {
  border-radius: 16px !important;
  flex-wrap: wrap !important;
  line-height: 1.35 !important;
}

#offerModal .hig-submit-btn {
  height: auto !important;
  min-height: 46px !important;
  padding: 10px 16px !important;
  line-height: 1.3 !important;
}

.plan.dark h3,
.plan.dark .price,
.plan.dark #planPricePro,
.plan.dark li,
#plan3List li {
  color: #ffffff !important;
}

.plan.dark li,
#plan3List li {
  border-top-color: rgba(255, 255, 255, 0.16) !important;
}

.plan.dark li::before,
#plan3List li::before {
  background: #34d399 !important;
}

.plan.dark p,
.plan.dark .sub,
.plan.dark .price small {
  color: rgba(255, 255, 255, 0.88) !important;
}

.section-head {
  flex-wrap: wrap !important;
}

.section-head p {
  min-width: 0 !important;
  max-width: 100% !important;
  word-break: break-word !important;
}

/* Eliminate heavy 1.5px black outlines on secondary buttons (.btn-login) across all modals & pages */
.btn-login {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.btn-login:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Rounded Apple Capsule Inputs & Selects inside Modals, Forms & Sheets */
.input-light,
.form-input,
.input-glass,
.cta-form input:not([type="checkbox"]),
.chat-input-bar input,
.bo-input,
.bo-select {
  border-radius: 999px !important;
}

.input-light,
.form-input {
  padding-left: 16px !important;
  padding-right: 16px !important;
  height: 42px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 150ms ease, box-shadow 150ms ease !important;
}

select.input-light {
  padding-right: 34px !important;
}

#calcMyCurrencySelect {
  padding-left: 10px !important;
  padding-right: 26px !important;
}

.mobile-search-input-row,
.mobile-smart-search-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 999px !important;
  padding: 6px 8px 6px 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.mobile-search-input-row input {
  flex: 1 !important;
  border: 0 !important;
  background: transparent !important;
  outline: none !important;
  font-size: 15px !important;
}

.wiz-cat-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #f5f7f7 !important;
  border-radius: 18px !important;
}

.wiz-cat-card.selected {
  border: 1.5px solid #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.wiz-smart-box {
  background: #f5f7f7 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.user-logout-btn {
  width: 28px !important;
  height: 28px !important;
}

@media print {

  .header,
  .hero,
  section,
  footer,
  #dashboardModal,
  #adminModal,
  #offerModal,
  #wizardModal,
  #authModal,
  #appleSheetModal,
  #chatDock,
  #gdprConsentBanner,
  .toast-container,
  .modal-close {
    display: none !important;
  }

  body,
  #guideModal {
    position: static !important;
    background: #ffffff !important;
    height: auto !important;
    overflow: visible !important;
  }

  #guideModal .modal-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

textarea.input-light,
textarea.form-input {
  border-radius: 16px !important;
  height: auto !important;
  padding: 10px 16px !important;
}

.input-light:focus,
.form-input:focus,
.catalog-search:focus,
.catalog-select:focus {
  border-color: #0d8a5e !important;
  box-shadow: 0 0 0 3px rgba(13, 138, 94, 0.16) !important;
  outline: none !important;
}

.calc-box,
.swap-exchange-box,
.dash-list-item,
.wiz-smart-box {
  border-radius: 16px !important;
  border: 1px solid rgba(12, 44, 40, 0.1) !important;
  box-shadow: 0 2px 8px rgba(8, 34, 40, 0.03) !important;
}

/* Apple HIG Keyboard Accessibility Focus Ring (accessibility.md & focus-and-selection.md) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #0d8a5e !important;
  outline-offset: 2px !important;
  box-shadow: var(--hig-focus-ring) !important;
}

/* Apple HIG Minimum Control Hit Regions: 28x28pt desktop, 44x44pt mobile/touch (accessibility.md) */
button,
.btn,
.bo-btn,
.pill-btn-mint,
.pill-btn-white,
input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: var(--hig-hit-desktop);
}

@media (max-width: 768px),
(pointer: coarse) {

  .btn,
  .pill-btn-mint,
  .pill-btn-white,
  .pill-input,
  .form-input,
  .bo-nav-btn {
    min-height: var(--hig-hit-mobile) !important;
  }

  .pill-input,
  .form-input,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  select {
    font-size: 16px !important;
    /* Prevents unwanted iOS Safari viewport zoom on input focus */
  }
}

/* Apple HIG Accessibility: Reduce Motion (motion.md & liquid-glass.md › Review checklist #5) */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Apple HIG Accessibility: Reduce Transparency & Increase Contrast (liquid-glass.md › Checklist #5) */
@media (prefers-reduced-transparency: reduce),
(prefers-contrast: more) {

  .header,
  .glass-auth-modal,
  .bo-login-card,
  .modal,
  .chat-dock,
  .hig-sheet-card,
  thead th {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .glass-auth-modal,
  .bo-login-card {
    background: #071e1b !important;
    border: 1.5px solid #0d8a5e !important;
  }

  .bo-card,
  .bo-kpi-card,
  .bo-table-wrap,
  .hig-sheet-card {
    border-color: #64748b !important;
  }
}

/* ============================================================================
   APPLE HIG SHEETS, DESTRUCTIVE ALERTS, BUTTON PRESS STATES & LIVE VALIDATION
   (sheets.md, alerts.md, buttons.md, entering-data.md, undo-and-redo.md)
   ============================================================================ */

/* Universal Apple HIG Button Press State (buttons.md › Always include a press state) */
button:active:not(:disabled),
.btn:active:not(:disabled),
.bo-btn:active:not(:disabled),
.pill-btn-mint:active:not(:disabled),
.pill-btn-white:active:not(:disabled),
.wiz-chip:active:not(:disabled),
.cat-pill:active:not(:disabled) {
  transform: scale(0.975) !important;
  transition: transform 80ms ease !important;
}

/* Live Dynamic Field Validation Feedback (entering-data.md › Dynamically validate field values) */
input.hig-field-valid,
.pill-input.hig-field-valid,
.input-light.hig-field-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22) !important;
}

input.hig-field-invalid,
.pill-input.hig-field-invalid,
.input-light.hig-field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22) !important;
}

/* Universal Apple HIG Sheet & Destructive Confirmation Modal (#appleSheetModal) */
.modal-backdrop.hig-sheet-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  height: 100dvh !important;
  z-index: 4200 !important;
  background: rgba(4, 18, 16, 0.62) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hig-sheet-backdrop.open {
  display: flex !important;
}

.hig-sheet-card {
  width: min(680px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: rgba(250, 253, 252, 0.96);
  color: #0b221f;
  border: 1px solid rgba(12, 44, 40, 0.16);
  border-radius: 22px;
  box-shadow: var(--hig-glass-specular), 0 32px 80px rgba(3, 15, 13, 0.48);
  backdrop-filter: var(--hig-glass-blur-regular);
  -webkit-backdrop-filter: var(--hig-glass-blur-regular);
  padding: 10px 22px 22px;
  animation: higSheetSpringIn 220ms var(--hig-spring-ease);
}

.hig-sheet-card.hig-alert-mode {
  width: min(430px, 100%);
  padding: 12px 22px 20px;
}

@keyframes higSheetSpringIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Apple Sheet Grabber Handle — Interactive Drag/Tap to Dismiss (sheets.md › Include a grabber & Support swiping to dismiss) */
.hig-sheet-grabber-zone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 10px;
  margin: -6px auto 2px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.hig-sheet-grabber-zone:active {
  cursor: grabbing;
}

.hig-sheet-grabber {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  margin: 0 auto;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.hig-sheet-grabber-zone:hover .hig-sheet-grabber,
.hig-sheet-grabber:hover {
  background: #0d8a5e;
  transform: scaleX(1.1);
}

.modal-card::before {
  display: none !important;
  content: none !important;
}

/* Apple Sheet Top Toolbar: Leading Cancel | Center Title | Trailing Done / Save (sheets.md) */
.hig-sheet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(12, 44, 40, 0.1);
}

.hig-sheet-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #071d1a;
  margin: 0;
  text-align: center;
  flex: 1;
}

.hig-btn-cancel {
  background: #f1f5f4;
  color: #0b221f;
  border: 1px solid #d0dedb;
  padding: 7px 14px;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hig-btn-cancel:hover {
  background: #e2ecea;
}

.hig-btn-save {
  background: #0d8a5e;
  color: #ffffff;
  border: 1px solid #0b7a53;
  padding: 7px 16px;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hig-btn-save:hover {
  background: #0a754f;
  color: #ffffff;
}

.hig-btn-destructive {
  background: #e11d48;
  color: #ffffff;
  border: 1px solid #be123c;
  padding: 8px 16px;
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.hig-btn-destructive:hover {
  background: #be123c;
}

.hig-btn-destructive-outline {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 7px 14px;
  border-radius: 999px !important;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.hig-btn-destructive-outline:hover {
  background: #ffe4e6;
}

/* Apple HIG Toast Undo Action Button (undo-and-redo.md) */
.toast {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.toast-undo-btn {
  background: #0d8a5e;
  color: #ffffff;
  border: 0;
  padding: 4px 11px;
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.toast-undo-btn:hover {
  background: #0a754f;
  color: #ffffff;
}

/* Guarantee white text on all green (#0d8a5e / var(--mint)) buttons, badges & tags */
.plan .tag,
#plan1Tag,
#plan2Tag,
#plan3Tag,
.enroll-tab.active,
.step .num,
.float-note .badge,
.matcher-swap-icon,
.stat-card .avatars .more,
.btn-dark .arrow,
.swap-pill-deal {
  background: #0d8a5e !important;
  color: #ffffff !important;
}

/* ============================================================================
   APPLE HIG OFFER MODAL, UNIFIED SWAP/BUY CARDS & PARITY DROPLIST
   ============================================================================ */
.hig-offer-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hig-offer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap !important;
}

.hig-offer-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 550;
  flex-wrap: wrap;
}

.hig-offer-loc {
  display: inline-flex;
  align-items: center;
  color: #0f172a;
  font-weight: 700;
  font-size: 13.5px;
  min-width: 0;
  flex: 1;
}

.hig-offer-owner strong {
  color: #0f172a;
  font-weight: 650;
}

.hig-verified-pill {
  display: inline-block;
  background: #eaf7f1;
  color: #0d8a5e;
  border: 1px solid #ccece0;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 2px;
}

.hig-offer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.hig-modal-close-btn {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.hig-action-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.hig-action-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hig-action-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.hig-action-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 550;
  color: #64748b;
  margin-top: 1px;
}

.hig-price-badge {
  background: #eaf7f1;
  color: #0d8a5e;
  border: 1px solid #ccece0;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hig-grouped-section {
  background: #f5f7f8;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 13px 14px;
}

.hig-field-label,
.modal-card .field-group label,
#offerModal .field-group label,
#wizardModal .field-group label,
#dashboardModal .field-group label,
#guideModal .field-group label,
#appleSheetModal .field-group label,
.hig-grouped-section label {
  display: block;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #334155 !important;
  margin-bottom: 5px;
}

.hig-swap-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ============================================================================
   APPLE QUICK LOOK FULLSCREEN PHOTO LIGHTBOX (#photoLightboxModal)
   ============================================================================ */
.hig-lightbox-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 4800 !important;
  background: rgba(6, 15, 20, 0.92) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 24px;
  user-select: none;
}

.hig-lightbox-backdrop.open {
  display: flex !important;
}

.hig-lightbox-topbar {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}

.hig-lightbox-stage {
  position: relative;
  flex: 1;
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 12px 0;
}

.hig-lightbox-img {
  max-width: min(1060px, 84vw);
  max-height: 74dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hig-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(15, 23, 42, 0.68) !important;
  backdrop-filter: blur(14px) !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.hig-lightbox-nav-btn:hover {
  background: #0d8a5e !important;
  border-color: #0d8a5e !important;
}

.hig-lightbox-nav-btn.is-prev {
  left: 8px;
}

.hig-lightbox-nav-btn.is-next {
  right: 8px;
}

.hig-lightbox-thumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 92vw;
  overflow-x: auto;
  padding: 4px 8px;
}

.hig-lightbox-thumb {
  width: 74px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.hig-lightbox-thumb.active,
.hig-lightbox-thumb:hover {
  border-color: #0d8a5e;
  opacity: 1;
  transform: translateY(-1px);
}

/* Apple HIG Compact Currency Parity Droplist (.hig-parity-bar & .hig-parity-select) */
.hig-parity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 10px 4px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.hig-parity-label {
  font-size: 11.5px;
  font-weight: 650;
  color: #0d8a5e;
  white-space: nowrap;
}

.hig-parity-select {
  flex: 1;
  min-width: 0;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 28px 0 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: transparent !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums !important;
  cursor: pointer;
  text-align: right;
  box-shadow: none !important;
}

.hig-parity-select:focus {
  outline: none !important;
}

.hig-balance-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hig-balance-pill.is-even {
  background: #eaf7f1;
  color: #0d8a5e;
  border: 1px solid #ccece0;
}

.hig-balance-pill.is-add {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.hig-balance-pill.is-receive {
  background: #eaf7f1;
  color: #0d8a5e;
  border: 1px solid #ccece0;
}

.hig-quick-pct-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hig-pct-pill {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  cursor: pointer;
}

.hig-pct-pill:hover {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border-color: #0d8a5e !important;
}

.hig-submit-btn {
  margin-top: 12px !important;
  border-radius: 999px !important;
  height: 46px !important;
  min-height: 46px !important;
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1px solid #0b7a53 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: 0 4px 14px rgba(13, 138, 94, 0.22) !important;
}

.hig-submit-btn:hover {
  background: #0a754f !important;
  color: #ffffff !important;
}

.hig-gdpr-footnote {
  margin: 8px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  text-align: center;
}

/* ============================================================================
   SCREEN 2 APPLE WORKSPACE — PERSONAL CLIENT PAGE (#dashboardModal)
   (White Left Sidebar + White Topbar + #f4f6f9 Canvas + KPI Cards + Emerald #0d8a5e)
   ============================================================================ */
.user-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.user-pill-avatar {
  background: #0d8a5e !important;
  color: #ffffff !important;
}

.user-swaps-badge {
  background: #eaf7f1 !important;
  color: #0d8a5e !important;
  border: 1px solid #ccece0 !important;
  font-weight: 700 !important;
}

#dashboardModal .btn-mint,
#offerModal .btn-mint,
#wizardModal .btn-mint,
#guideModal .btn-mint {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1px solid #0b7a53 !important;
  font-weight: 650 !important;
}

#dashboardModal .btn-mint:hover,
#offerModal .btn-mint:hover,
#wizardModal .btn-mint:hover,
#guideModal .btn-mint:hover {
  background: #0a754f !important;
  color: #ffffff !important;
}

#dashboardModal.hig-client-page-shell {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: #f4f6f9 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 2500 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: none !important;
}

#dashboardModal.hig-client-page-shell.open {
  display: block !important;
}

#dashboardModal .hig-client-workspace {
  display: flex !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f4f6f9 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  animation: none !important;
}

#dashboardModal .hig-client-workspace::before {
  display: none !important;
}

.hig-ws-sidebar {
  width: 238px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e6ebf1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100dvh;
  overflow-y: auto;
  padding: 16px 12px;
}

.hig-ws-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.hig-ws-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #129b6b 0%, #0b7a53 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(13, 138, 94, 0.25);
  flex-shrink: 0;
}

.hig-ws-brand strong {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

#dashTabsBar.hig-ws-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
}

#dashTabsBar.hig-ws-nav .hig-ws-nav-item {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 9px 14px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

#dashTabsBar.hig-ws-nav .hig-ws-nav-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

#dashTabsBar.hig-ws-nav .hig-ws-nav-item.active {
  background: #0d8a5e !important;
  color: #ffffff !important;
  font-weight: 650 !important;
  box-shadow: 0 2px 8px rgba(13, 138, 94, 0.24) !important;
}

.hig-ws-nav-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hig-tab-count {
  background: #f1f5f9;
  color: #475569;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#dashTabsBar.hig-ws-nav .hig-ws-nav-item.active .hig-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.hig-ws-sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hig-ws-side-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  min-height: 36px !important;
  border-radius: 999px !important;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.hig-ws-side-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.hig-ws-side-btn.is-logout {
  color: #e11d48;
}

.hig-ws-side-btn.is-logout:hover {
  background: #fff1f2;
}

.hig-ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  min-width: 0;
}

.hig-ws-topbar {
  height: 62px;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid #e6ebf1;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hig-ws-icon-pill {
  width: 34px;
  height: 34px;
  min-height: 34px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.hig-ws-icon-pill:hover {
  background: #f8fafc;
  color: #0f172a;
}

.hig-sla-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf7f1;
  color: #0d8a5e;
  border: 1px solid #ccece0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.hig-ws-outline-pill {
  height: 34px;
  min-height: 34px !important;
  padding: 0 13px;
  border-radius: 999px !important;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.hig-ws-outline-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hig-ws-emerald-btn {
  height: 34px;
  min-height: 34px !important;
  padding: 0 15px;
  border-radius: 999px !important;
  border: 1px solid #0b7a53;
  background: #0d8a5e;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.2);
}

.hig-ws-emerald-btn:hover {
  background: #0a754f;
}

.hig-ws-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 5px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.hig-ws-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0d8a5e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 750;
}

.hig-ws-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 56px;
}

/* Screen 2 KPI Grid inside Client Workspace */
.hig-ws-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hig-ws-kpi-card {
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.hig-ws-kpi-card:hover {
  border-color: #cbd5e1;
}

.hig-ws-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hig-ws-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.hig-ws-kpi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d8a5e;
}

.hig-ws-kpi-val {
  font-size: 22px;
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.hig-ws-panel {
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
}

.hig-ws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

/* Visual Listing Card inside Client Page (My Listings & Favorites) */
.hig-my-listing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
  flex-wrap: wrap;
}

.hig-my-listing-card:hover {
  border-color: #cbd5e1;
}

.hig-my-listing-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.hig-my-listing-thumb {
  width: 136px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  cursor: pointer;
}

/* Visual 1:1 Swap Proposal Card inside Swap Proposals */
.hig-proposal-card {
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
}

.hig-proposal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.hig-proposal-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
  padding: 12px 14px;
}

@media (max-width: 768px) {
  #dashboardModal .hig-client-workspace {
    flex-direction: column !important;
  }

  .hig-ws-sidebar {
    width: 100%;
    height: auto;
    max-height: 190px;
  }

  .hig-proposal-compare {
    grid-template-columns: 1fr;
  }
}

.hig-proposal-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hig-proposal-side img {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.hig-proposal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

/* Screen 2 Global Button & Favorite Heart Unification (Zero Neon Mint) */
.btn-mint,
.pill-btn-mint,
.service .go {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border: 1px solid #0b7a53 !important;
  font-weight: 650 !important;
}

.btn-mint:hover,
.pill-btn-mint:hover,
.service:hover .go {
  background: #0a754f !important;
  color: #ffffff !important;
}

.btn-mint .arrow,
.service .go .arrow,
.service .go i {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.swap-fav-btn {
  background: rgba(15, 23, 42, 0.48) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
}

.swap-fav-btn.is-fav {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #e11d48 !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================================================
   MOBILE-ONLY iOS HIG & LIQUID GLASS EXPERIENCE (@media max-width: 768px)
   (designing-for-ios.md, layout.md, sheets.md, search-fields.md, buttons.md)
   ============================================================================ */
@media (max-width: 768px) {

  #mobileQuickHub,
  .mobile-quick-hub,
  .mobile-hero-cta-wrap,
  .hero-kicker,
  .hero .lead,
  .hero-quick-tags,
  .hero .stat-card,
  .hero-matcher-wrap {
    display: none !important;
  }

  /* 1. Compact iOS Liquid Glass Top Navigation Bar (Fits 320px-430px phones with zero overflow) */
  .header {
    height: 54px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .logo {
    font-size: 15.5px !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .logo-word {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .logo svg {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
  }

  .header-actions {
    gap: 5px !important;
    flex-shrink: 0 !important;
  }

  .lang-trigger {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.85) !important;
  }

  /* Compact avatar-only user pill in top header on mobile (full account is in Bottom Tab Bar) */
  #headerAdminBtn,
  #headerDashboardBtn,
  #postWizardHeaderBtn,
  #guestAuthButtons,
  #userAccountPill .user-pill>span:not(.user-pill-avatar),
  #userAccountPill .user-swaps-badge,
  #userAccountPill .user-logout-btn {
    display: none !important;
  }

  #userAccountPill .user-pill {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 32px !important;
  }

  #userAccountPill .user-pill-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .menu-toggle {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  /* 2. Proportionate iOS Hero Photo Card (House photo clearly visible + Spotlight Search + 1 single clean primary CTA) */
  .hero,
  body.mobile-started .hero,
  body:not(.mobile-started) .hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 395px !important;
    max-height: none !important;
    margin: 8px 10px 4px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
  }

  .hero::before {
    background-position: 52% 38% !important;
    background-size: cover !important;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(6, 20, 18, 0.02) 0%,
      rgba(6, 20, 18, 0.10) 48%,
      rgba(6, 18, 16, 0.68) 100%
    ) !important;
  }

  .hero-inner {
    display: block !important;
    padding: 155px 14px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-inner>div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .hero h1 {
    font-size: clamp(22px, 6.4vw, 26px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
    word-break: break-word !important;
  }

  .hero-smart-search-wrap,
  .search-bar-anchor {
    display: block !important;
    margin: 10px 0 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-smart-search-bar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 4px 5px 4px 11px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
  }

  .hero-smart-search-bar input {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    font-size: 16px !important;
    padding: 6px 0 !important;
  }

  .hero-smart-search-bar .btn {
    flex-shrink: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* Apple HIG: 1 single prominent full-width CTA in Hero on mobile (+ Post is in the Bottom Tab Bar) */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-actions .btn-outline-light,
  .hero-actions .linkish,
  .hero-actions .btn .arrow,
  .hero-actions .btn::after {
    display: none !important;
  }

  .hero-actions .btn-mint {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* 3. Always show Categories, Live Offers, Map, Pricing & Footer below Hero on mobile */
  #categories,
  #offers,
  #world,
  #pricing,
  .footer,
  body:not(.mobile-started) #categories,
  body:not(.mobile-started) #offers,
  body:not(.mobile-started) #world,
  body:not(.mobile-started) .footer {
    display: block !important;
  }

  section {
    padding: 16px 0 !important;
  }

  .section-head {
    margin-bottom: 10px !important;
  }

  .section-head h2 {
    font-size: 21px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
  }

  /* 4. Horizontal Scrollable Category Filter Pills & Compact Toolbar in #offers (Fits 320px-430px screens) */
  .wrap,
  .foot,
  .legal {
    width: calc(100% - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
  }

  .offers-grid,
  .map-layout,
  .plans,
  .enroll-grid,
  .foot,
  .offer-modal-grid,
  .form-grid-2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #categories .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #categories .service {
    min-width: 0 !important;
    min-height: 108px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  #categories .service-body h3 {
    font-size: 15px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .catalog-toolbar {
    padding: 10px 12px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #dealModePills {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  #dealModePills::-webkit-scrollbar {
    display: none !important;
  }

  #dealModePills .cat-pill {
    flex: 1 0 auto !important;
    padding: 6px 11px !important;
    font-size: 12px !important;
    min-height: 32px !important;
    white-space: nowrap !important;
  }

  #categoryFilterPills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
    max-width: 100% !important;
  }

  #categoryFilterPills::-webkit-scrollbar {
    display: none !important;
  }

  #categoryFilterPills .cat-pill {
    flex-shrink: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  .swap-card,
  .plan,
  .enroll-hub {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .swap-card-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .swap-card-footer .btn {
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .hig-my-listing-main {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* 5. Native iOS Modals on Mobile — Full-Height Behind the Floating Rounded Liquid Glass Tab Bar */
  #offerModal.open,
  #wizardModal.open,
  #guideModal.open {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 6px 6px 82px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    z-index: 3500 !important;
  }

  #offerModal .modal-card,
  #wizardModal .modal-card,
  #guideModal .modal-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    border-radius: 22px !important;
    margin: 0 auto !important;
    padding: 14px 14px 16px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  #wizardModal .wiz-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 16px 14px !important;
  }

  #offerModal .hig-offer-header {
    position: sticky !important;
    top: -6px !important;
    z-index: 25 !important;
    background: #ffffff !important;
    margin: -14px -14px 12px !important;
    padding: 10px 14px 10px !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  }

  /* 6. Client Workspace (/dashboard) Mobile iOS Layout: Horizontal Nav + 2x2 KPI Widgets */
  .hig-ws-sidebar {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #e6ebf1 !important;
  }

  .hig-ws-brand,
  .hig-ws-sidebar-footer {
    display: none !important;
  }

  #dashTabsBar.hig-ws-nav {
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  #dashTabsBar.hig-ws-nav .hig-ws-nav-item {
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    min-height: 34px !important;
    font-size: 12px !important;
  }

  .hig-ws-topbar {
    height: auto !important;
    padding: 10px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .hig-ws-scroll {
    padding: 12px 14px 80px !important;
  }

  .hig-ws-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .hig-ws-kpi-card {
    padding: 10px 12px !important;
  }

  .hig-ws-kpi-val {
    font-size: 18px !important;
  }

  /* 7. Ultra-Slim Single-Row iOS GDPR Pill Bar on Mobile (44px total height, sits above Bottom Tab Bar) */
  #gdprConsentBanner {
    bottom: 68px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
  }

  .hig-gdpr-compact-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .hig-gdpr-desc {
    display: none !important;
  }

  .hig-gdpr-compact-actions {
    display: inline-flex !important;
    gap: 4px !important;
  }

  .hig-gdpr-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  .chat-launcher {
    width: 44px !important;
    height: 44px !important;
    bottom: 72px !important;
    right: 12px !important;
  }

  body {
    padding-bottom: 74px !important;
  }

  /* 8. Native iOS Floating Rounded Liquid Glass Bottom Tab Bar with Scroll Auto-Hide (tab-bars.md) */
  #mobileBottomTabBar.hig-mobile-tabbar,
  .hig-mobile-tabbar {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    position: fixed !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    height: 60px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 34px rgba(15, 23, 42, 0.22) !important;
    z-index: 4100 !important;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease !important;
    will-change: transform, opacity;
  }

  #mobileBottomTabBar.hig-mobile-tabbar.is-scroll-hidden,
  .hig-mobile-tabbar.is-scroll-hidden {
    transform: translateY(calc(100% + 36px)) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .hig-tabbar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 2px !important;
    min-height: 46px !important;
    color: #64748b !important;
    cursor: pointer !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  .hig-tabbar-item.active {
    color: #0d8a5e !important;
  }

  .hig-tabbar-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
  }

  .hig-tabbar-label {
    font-size: 10.5px !important;
    font-weight: 650 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
  }

  .hig-tabbar-post-circle {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #0d8a5e !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 10px rgba(13, 138, 94, 0.28) !important;
    margin-top: -2px !important;
  }

  .hig-tabbar-post-circle svg {
    display: block !important;
    transform-origin: 50% 50% !important;
    will-change: transform !important;
    animation: logoSpinSmooth 7s linear infinite !important;
  }

  .hig-tabbar-item.is-center-post:active .hig-tabbar-post-circle svg {
    animation-duration: 1.8s !important;
  }

  .hig-tabbar-badge {
    position: absolute !important;
    top: -4px !important;
    right: -9px !important;
    background: #e11d48 !important;
    color: #ffffff !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #ffffff !important;
    font-variant-numeric: tabular-nums !important;
  }

  .hig-tabbar-badge[hidden],
  .hig-tabbar-badge:empty {
    display: none !important;
  }
}

.hig-mobile-tabbar {
  display: none;
}

/* ============================================================================
   APPLE MAPS STYLE WORLD SECTION (#world, .map-frame, .country-panel, .offer-list-item)
   ============================================================================ */
#worldMap,
.map-frame,
.leaflet-container {
  touch-action: pan-y !important;
}

.country-panel {
  background: #ffffff !important;
  border-radius: 22px !important;
  border: 1px solid #e6ebf1 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05) !important;
  padding: 20px 18px !important;
}

.country-chip {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 6px 13px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  min-height: 34px !important;
}

.country-chip:hover {
  background: #eaf7f1 !important;
  color: #0d8a5e !important;
  border-color: #ccece0 !important;
}

.country-chip.active {
  background: #0d8a5e !important;
  color: #ffffff !important;
  border-color: #0b7a53 !important;
  box-shadow: 0 2px 6px rgba(13, 138, 94, 0.22) !important;
}

.offer-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

button.offer-list-item,
.offer-list-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  text-align: left !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e6ebf1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
  transition: border-color 150ms ease, background 150ms ease !important;
  box-sizing: border-box !important;
}

button.offer-list-item:hover,
.offer-list-item:hover {
  background: #f1f9f5 !important;
  border-color: #0d8a5e !important;
  transform: none !important;
}

.offer-list-item-thumb {
  width: 56px !important;
  height: 44px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
  border: 1px solid #e2e8f0 !important;
}

.offer-list-item-body {
  min-width: 0 !important;
  flex: 1 !important;
}

.offer-list-item strong {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
  margin: 0 0 2px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.offer-list-item span {
  display: block !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  margin: 0 0 4px !important;
  font-variant-numeric: tabular-nums !important;
}

.offer-list-item em {
  display: block !important;
  font-style: normal !important;
  color: #0d8a5e !important;
  font-weight: 650 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.pin {
  background: #0f172a !important;
  border: 2.5px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35) !important;
}

.pin:hover,
.pin.active {
  background: #0d8a5e !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 6px rgba(13, 138, 94, 0.25) !important;
}

@media (max-width: 820px) {
  .map-frame {
    min-height: 260px !important;
    height: 260px !important;
    border-radius: 20px !important;
  }

  .country-panel {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 16px 14px !important;
    border-radius: 20px !important;
  }

  .country-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
    margin: 8px 0 12px !important;
  }

  .country-chips::-webkit-scrollbar {
    display: none !important;
  }

  .country-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}


/* ============================================================================
   APPLE HIG FULL-SCREEN LIQUID GLASS MODAL BACKDROP BLUR (liquid-glass.md, modality.md)
   ============================================================================ */
.modal-backdrop,
.modal-backdrop.auth-scenic-backdrop,
#authModal,
#offerModal,
#wizardModal,
#guideModal,
#appleSheetModal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: rgba(8, 22, 20, 0.46) !important;
  backdrop-filter: blur(26px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(150%) !important;
}

#authModal.open {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 14px 84px !important;
  z-index: 4500 !important;
}

/* Strict 8-Layer Modal & Overlay Stacking Hierarchy (Never open a modal behind an active modal) */
#dashboardModal.open {
  z-index: 2500 !important;
}
#adminModal.open {
  z-index: 3000 !important;
}
#offerModal.open {
  z-index: 3500 !important;
}
#wizardModal.open {
  z-index: 3600 !important;
}
#authModal.open {
  z-index: 4500 !important;
}
#guideModal.open {
  z-index: 4650 !important;
}
#appleSheetModal.open,
.hig-sheet-backdrop.open {
  z-index: 4750 !important;
}
.hig-lightbox-backdrop.open {
  z-index: 4850 !important;
}
.toast-container,
#toastContainer {
  z-index: 9999 !important;
  pointer-events: none !important;
}

body.modal-open > .header,
body.modal-open > section,
body.modal-open > .trust,
body.modal-open > footer,
body.modal-open > .chat-dock {
  filter: blur(14px) saturate(120%) !important;
  -webkit-filter: blur(14px) saturate(120%) !important;
  transition: filter 220ms ease !important;
  pointer-events: none !important;
  user-select: none !important;
}


/* ============================================================================
   iOS SAFARI WEBKIT TEXT CURSOR (CARET) ALIGNMENT FIX (virtual-keyboards.md, text-fields.md)
   1. Constrain internal WebKit text-field line box with line-height: 1.25 + vertical padding
   2. Eliminate ancestor transform & nested backdrop-filter on touch devices that offset UIKit caret
   ============================================================================ */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
input.pill-input,
input.input-light,
input.input-glass,
input.form-input,
input.catalog-search,
input.bo-input {
  line-height: 1.25 !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  box-sizing: border-box !important;
  -webkit-user-select: text !important;
  user-select: text !important;
}

.hero-smart-search-bar input,
.price-range-mini input {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  line-height: 1.25 !important;
}

input.pill-input {
  height: 48px !important;
  min-height: 48px !important;
  padding: 11px 20px !important;
  line-height: 1.25 !important;
}

.pill-input-group input.pill-input[type="password"],
.pill-input-group input.pill-input#modalLoginPwd,
.pill-input-group input.pill-input#modalRegPwd,
.pill-input-group input.pill-input#modalRegPwdConfirm,
.pill-input-group input.pill-input#inlineLoginPwd,
.pill-input-group input.pill-input#inlineRegPwd,
.pill-input-group input.pill-input#inlineRegPwdConfirm {
  padding-right: 48px !important;
}

@media (max-width: 768px), (pointer: coarse) {
  /* Prevent iOS Safari caret offset caused by CSS transform animation or double backdrop-filter on fixed modals */
  .modal-card,
  .glass-auth-modal,
  .glass-auth-card,
  .hig-sheet-card {
    animation: none !important;
    transform: none !important;
  }

  .glass-auth-modal,
  .glass-auth-card {
    background: rgba(11, 29, 25, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #authModal.open {
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 24px 14px 120px !important;
  }

  #authModal .glass-auth-modal {
    margin: 12px auto 24px !important;
  }
}

@media (max-width: 560px) {
  #offerModal .hig-action-card {
    padding: 12px 11px !important;
  }
  #offerModal .hig-grouped-section {
    padding: 10px 10px !important;
  }
}


@media (max-width: 768px) {
  .btn,
  .enroll-hub .btn,
  .modal-card .btn,
  #guideModal .btn,
  #guideModal select.input-light {
    border-radius: 20px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 42px !important;
    line-height: 1.25 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-sizing: border-box !important;
  }

  #guideModal select.input-light {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 42px !important;
  }

  #gdprConsentBanner {
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .hig-gdpr-compact-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  #gdprBannerTitle {
    font-size: 11px !important;
    max-width: 72px !important;
  }

  .hig-gdpr-compact-actions {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .hig-gdpr-btn {
    padding: 0 7px !important;
    font-size: 10.5px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 768px) {
  .enroll-hub .btn .arrow {
    display: none !important;
  }
  .enroll-hub .btn {
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 18px !important;
  }
}

/* Laptop 13" (1041px-1420px) Header & Navigation Fit in All 7 Languages (RO/EN/DE/FR/IT/ES/RU) */
@media (min-width: 1041px) and (max-width: 1420px) {
  .header {
    padding: 10px 16px !important;
    gap: 10px !important;
  }
  .logo {
    font-size: 18px !important;
    gap: 8px !important;
  }
  .logo svg {
    width: 30px !important;
    height: 30px !important;
  }
  .nav {
    gap: 11px !important;
    font-size: 12.5px !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  .header-actions {
    gap: 6px !important;
  }
  .header-actions .btn,
  #guestAuthButtons .btn {
    height: 36px !important;
    padding: 0 11px !important;
    font-size: 12.5px !important;
  }
  .lang-trigger {
    height: 36px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }
}

/* Mobile & Tablet Portrait (<=768px): Enforce 16px font-size on ALL text/search inputs to prevent iOS Safari auto-zoom */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  .hero-smart-search-bar input,
  #heroSmartSearchInput,
  .catalog-search,
  #catalogSearchInput,
  .price-range-mini input {
    font-size: 16px !important;
  }
}

/* Full-screen workspaces (#adminModal & #dashboardModal) must have 0 backdrop padding on all viewports */
#adminModal.open,
#dashboardModal.open,
.modal-backdrop.backoffice-fullscreen-modal.open {
  padding: 0 !important;
}

@media (max-width: 768px) {
  .bo-topbar {
    height: auto !important;
    padding: 10px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bo-topbar > div {
    width: 100% !important;
    min-width: 0 !important;
  }
  .bo-topbar-search,
  #adminListingSearchInput {
    width: auto !important;
    flex: 1 1 130px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .bo-sync-pill {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

