/* =========================================================
   1. VARIABLES & DESIGN TOKENS.
   ========================================================= */
:root {
  /* --- Colors: Slate (Modern Neutral) --- */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --border-light: #e5e7eb;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-muted: #64748b;

  /* --- Brand: Indigo/Blue --- */
  --brand-primary: #4f46e5;
  --brand-hover: #4338ca;
  --brand-subtle: #eef2ff;
  --brand-surface: #e0e7ff;

  /* --- Semantic Colors --- */
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-text: #b91c1c;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-text: #059669;
  
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-text: #b45309;

  /* --- Dimensions --- */
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --container-width: 1200px;
  --touch-target: 44px; /* A11y Minimum */
  
  /* --- Styling --- */
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 30px rgba(15, 23, 42, 0.12);
  
  /* --- Z-Indexes --- */
  --z-sticky: 100;
  --z-overlay: 900;
  --z-toast: 2000;
  
  /* --- Transitions --- */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", "Mukta", Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Safe area for iPhone X+ home bar */
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus-visible {
  position: absolute;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #ffffff;
  color: var(--brand-primary);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  z-index: var(--z-overlay);
}

/* UX: Prevent accidental double-taps zooming on interactive elements */
a, button, input, select, textarea, label {
  touch-action: manipulation;
}

/* UX: Accessible Focus Rings */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--trans-fast);
}
a:hover { text-decoration: underline; }
a.flash-deal-card:hover,
a.flash-deal-card:hover * {
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; color: var(--text-primary); }
p { margin-bottom: 0.75em; }
p:last-child { margin-bottom: 0; }

.title { font-weight: 700; color: var(--text-primary); line-height: 1.2; margin: 0 0 8px; }
.title.small { font-size: 1.125rem; }
.title.x-small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }

.muted { color: var(--text-secondary); }
.lang-fallback { opacity: 0.85; font-size: 0.95em; }
.small { font-size: 0.875rem; }
.x-small { font-size: 0.75rem; }
.error { color: var(--danger); font-size: 13px; font-weight: 500; display: block; margin-top: 6px; }
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger-text); }

/* =========================================================
   3. LAYOUT & CONTAINERS
   ========================================================= */
.page { flex: 1; display: flex; flex-direction: column; }
.page--home { background: var(--bg-body); }
.page--home .page-body { padding-top: 40px; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex; flex-direction: column; gap: 32px;
}

.page-body {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  /* Ensure content clears bottom nav on mobile */
  padding-bottom: calc(var(--bottom-nav-height) + 32px);
}

.main--dashboard, .main--admin {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--bottom-nav-height) + 84px);
}
@media (min-width: 640px) {
  .main--dashboard, .main--admin { padding: 28px 20px calc(var(--bottom-nav-height) + 84px); }
}
@media (min-width: 900px) {
  .main--dashboard, .main--admin { padding: 32px 24px 72px; }
}

/* Grids */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.layout--split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.layout--columns { display: grid; gap: 8px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.divider { height: 1px; background: var(--border-light); width: 100%; margin: 24px 0; }
/* Divider Text */
.divider span {
  display: block; width: fit-content; margin: -10px auto 0;
  background: white; padding: 0 10px; color: var(--text-tertiary);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .layout, .layout--split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--stack-on-small { grid-template-columns: 1fr; }
  .page-body { padding: 20px 16px calc(var(--bottom-nav-height) + 32px); }
  .container-narrow { padding-bottom: 40px; }
  .main--dashboard, .main--admin { padding: 24px 16px calc(var(--bottom-nav-height) + 84px); }
  .docs-panel__upload .layout--columns { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .docs-panel__upload .layout--columns { grid-template-columns: 190px minmax(0, 1fr); align-items: center; }
}

/* Docs panel spacing */
.docs-panel__upload { display: grid; gap: 18px; }
.docs-panel__upload label.small { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text-secondary); }
.docs-panel__type,
.docs-panel__expiry { display: grid; gap: 8px; }
.docs-panel__expiry-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: center; }
.docs-panel__upload-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* =========================================================
   4. ATOMS: BUTTONS, CARDS, FORMS, BADGES
   ========================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px;
  font-weight: 600; font-size: 14px;
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; gap: 8px; white-space: nowrap;
  transition: all var(--trans-fast);
  user-select: none;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--brand-primary); color: white; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:disabled { background: var(--text-tertiary); cursor: not-allowed; opacity: 0.7; }

.btn--ghost { background: #ffffff; border-color: var(--border-light); color: var(--text-secondary); }
.btn--ghost:hover { background: #f8fafc; color: var(--text-primary); }

.btn--danger { background: #fff5f5; color: var(--danger); border-color: #fed7d7; }
.btn--danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn--ghost.btn--danger { background: #fff5f5; border-color: #fed7d7; }

.btn.small { height: 36px; font-size: 13px; padding: 0 14px; }
.btn.btn--tiny { height: 32px; font-size: 12px; padding: 0 12px; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* --- Inline action buttons (voice + translate) --- */
.voice-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}
.voice-btn svg { width: 16px; height: 16px; }
.voice-btn:hover { background: var(--brand-subtle); border-color: rgba(79, 70, 229, 0.35); }
.voice-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.translate-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast);
}
.translate-btn:hover { background: var(--brand-subtle); border-color: rgba(79, 70, 229, 0.3); color: var(--brand-primary); }
.translate-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Cards --- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  margin-bottom: 16px;
  position: relative;
  contain: content; /* Rendering Optimization */
}
@media (max-width: 640px) { .card { padding: 16px; } }

.card--subtle { background: var(--bg-subtle); }
.card--hero { background: linear-gradient(to bottom right, #ffffff, #f1f5f9); }
.card--error { border-color: rgba(239, 68, 68, 0.25); background: var(--danger-bg); }

.card--clickable { transition: transform var(--trans-fast), box-shadow var(--trans-fast); cursor: pointer; }
.card--clickable:hover { box-shadow: var(--shadow-md); border-color: rgba(148, 163, 184, 0.6); transform: translateY(-2px); }
.card--clickable:active { box-shadow: var(--shadow-sm); border-color: var(--border-light); transform: translateY(0); }

/* --- Forms --- */
.form { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.form--with-sticky-actions { width: 100%; }
.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: 0.01em;
}
.auth-section { display: grid; gap: 16px; }
.auth-card { max-width: 520px; margin: 0 auto; }
.auth-input-group { display: flex; gap: 8px; align-items: stretch; }
.auth-input-group .input { flex: 1; }

.input, textarea.input, select.input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  height: var(--touch-target);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 16px; /* Prevents iOS zoom */
  line-height: 1.2;
  box-shadow: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background-color var(--trans-fast);
  appearance: none; /* Reset native styling */
  -webkit-appearance: none;
}
.input::placeholder { color: var(--text-tertiary); }
.input:hover { border-color: rgba(148, 163, 184, 0.7); }
.input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12); background-color: #ffffff; }
.input:disabled { background-color: var(--bg-subtle); color: var(--text-tertiary); cursor: not-allowed; }
input[type="date"].input,
input[type="datetime-local"].input,
input[type="time"].input {
  min-height: var(--touch-target);
  padding-right: 12px;
}
input[type="date"].input::-webkit-calendar-picker-indicator,
input[type="datetime-local"].input::-webkit-calendar-picker-indicator,
input[type="time"].input::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}
input[type="date"].input::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"].input::-webkit-calendar-picker-indicator:hover,
input[type="time"].input::-webkit-calendar-picker-indicator:hover {
  opacity: 0.9;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41.59 6 5.17 10.59.59 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}
input[type="file"] {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .form-actions-sticky {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-light);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    margin: 0 -16px -16px -16px;
    z-index: var(--z-sticky);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
  }

  .form--with-sticky-actions { padding-bottom: 84px; }
}

textarea.input { height: auto; min-height: 80px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input--small { height: 36px; font-size: 14px; }
.input--tiny { height: 28px; font-size: 13px; padding: 0 8px; }

.input-with-button { display: flex; gap: 8px; }
.input-with-button .input { flex: 1; }
@media (max-width: 640px) { .input-with-button { flex-direction: column; } .input-with-button .btn { width: 100%; } }

.input-recording { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1); }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox input[type="checkbox"],
.checkbox input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  margin: 0;
}

.checkbox input[type="checkbox"]:focus-visible,
.checkbox input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.6);
  outline-offset: 2px;
}

/* --- Calendar picker --- */
.calendar-picker {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px !important;
  width: 100%;
}
.calendar-picker .input {
  flex: 1 1 200px;
  min-width: 0;
}
.calendar-picker__hint {
  width: 100%;
  margin: 2px 0 0;
}
@media (min-width: 640px) {
  .calendar-picker__hint { width: auto; margin-left: 8px; }
}

/* --- Badges --- */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge--neutral { background: var(--bg-subtle); color: var(--text-secondary); border-color: var(--border-light); }
.badge--success, .badge--status-active, .badge--status-verified { background: var(--success-bg); color: var(--success-text); border-color: #dcfce7; }
.badge--warning, .badge--status-pending, .badge--status-unverified { background: var(--warning-bg); color: var(--warning-text); border-color: #ffedd5; }
.badge--danger, .badge--status-rejected, .badge--status-suspended, .badge--status-expired { background: var(--danger-bg); color: var(--danger-text); border-color: #fecaca; }
.badge--plan-premium { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.badge--tiny { height: 20px; padding: 0 5px; font-size: 10px; }

/* --- Tables --- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius); background: white; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); text-align: left; }
.table th { background: var(--bg-subtle); font-size: 12px; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.table td { font-size: 14px; color: var(--text-primary); }
.table tr:last-child td { border-bottom: none; }
.table-row--clickable { cursor: pointer; transition: background var(--trans-fast); }
.table-row--clickable:hover td { background: var(--bg-subtle); }

/* --- Skeletons --- */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px);
  background-size: 600px;
  border-radius: 4px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse { 0% { background-position: -100px 0; } 100% { background-position: 200px 0; } }
.skeleton--line { height: 16px; margin-bottom: 8px; }
.skeleton--block { border-radius: var(--radius); }

/* --- Toasts & Alerts --- */
#toast-root {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; padding: 10px 14px; border-radius: 6px; font-size: 13px; color: white;
  box-shadow: var(--shadow-lg); animation: slideUp 0.2s ease-out; background-color: #333;
}
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
  #toast-root {
    top: 12px;
    bottom: auto;
    left: 12px;
    right: 12px;
    flex-direction: column-reverse;
  }

  .toast {
    width: 100%;
    text-align: center;
    animation: slideDownMobile 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

@keyframes slideDownMobile {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.inline-alert {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-light);
  background: var(--bg-subtle); box-shadow: var(--shadow-sm); margin: 0 auto 12px;
}
.inline-alert__icon { font-size: 18px; }
.inline-alert__title { margin: 0 0 4px 0; font-weight: 700; color: var(--text-primary); }
.inline-alert__body { margin: 0; color: var(--text-secondary); font-size: 0.9375rem; }
.inline-alert--warning { border-color: #fcd34d; background: #fffbeb; }

.status-banner {
  display: none; margin: 12px auto; padding: 12px 14px;
  border-radius: var(--radius); border: 1px solid var(--border-light);
  background: var(--bg-subtle); max-width: var(--container-width); width: calc(100% - 32px);
  color: var(--text-primary); box-shadow: var(--shadow-sm);
}
.status-banner.is-visible { display: block; }
.status-banner--success { background: var(--success-bg); border-color: rgba(16, 185, 129, 0.35); color: var(--success-text); }
.status-banner--warning { background: var(--warning-bg); border-color: rgba(180, 83, 9, 0.3); color: var(--warning-text); }
.status-banner--danger { background: var(--danger-bg); border-color: rgba(185, 28, 28, 0.35); color: var(--danger-text); }

/* =========================================================
   5. MODULES: HEADER & NAV
   ========================================================= */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--header-height);
}
.header__inner {
  max-width: var(--container-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 100%;
}
.header__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo__mark { width: 28px; height: 28px; background: var(--brand-primary); color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.logo__text { letter-spacing: -0.01em; }

.header__nav { display: flex; gap: 4px; align-items: center; flex: 1; margin: 0 24px; min-width: 0; }
.header__nav button, .tabs__btn {
  background: transparent; border: 1px solid transparent; padding: 4px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; white-space: nowrap;
  transition: all var(--trans-fast); min-height: var(--touch-target); display: inline-flex; align-items: center; justify-content: center;
}
.header__nav button:hover { background: #f8fafc; color: var(--text-primary); border-color: var(--border-light); }
.header__nav button[aria-pressed="true"] { background-color: var(--brand-subtle); color: var(--brand-primary); font-weight: 600; border-color: transparent; }

.header__meta { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.header__user-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--brand-subtle); color: var(--brand-primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0;
  text-transform: uppercase; box-shadow: 0 0 0 1px var(--border-light);
}

.header__logout {
  background: transparent; border: none; padding: 6px 12px; font-size: 13px; font-weight: 500; min-height: var(--touch-target);
  color: var(--text-secondary); display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  border-radius: var(--radius-sm); transition: color var(--trans-fast), background var(--trans-fast);
}
.header__logout:hover { color: var(--danger-text); background: var(--danger-bg); }

.header--admin, .header--dashboard { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); border-bottom: 1px solid rgba(148, 163, 184, 0.18); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); }

/* Language Switcher Pill */
.header__lang {
  display: inline-flex; align-items: center; gap: 1px; position: relative;
  padding: 4px; background: rgba(148, 163, 184, 0.1); border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.2);
  --pill-left: 2px; --pill-width: 40px;
}
.header__lang::before {
  content: ""; position: absolute; top: 2px; left: var(--pill-left); width: var(--pill-width); height: calc(100% - 4px);
  background: #ffffff; border-radius: 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1), width 0.22s cubic-bezier(0.4, 0, 0.2, 1); z-index: 0;
}
.header__lang .btn.lang-switch {
  position: relative; z-index: 1; height: 32px; min-height: 32px; padding: 0 12px; font-size: 12px; border: none; background: transparent;
  color: #64748b; font-weight: 500; cursor: pointer; border-radius: 4px; transition: color 0.25s;
}
.header__lang .btn.lang-switch[aria-pressed="true"] { color: #4f46e5; font-weight: 600; }

@media (max-width: 1024px) {
  .header__inner { padding: 0 12px; flex-wrap: nowrap; }
  .header__brand { padding: 0; }
  .header__meta { padding: 0; margin-left: auto; gap: 10px; }
  .header__nav {
    margin: 0 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    mask-image: linear-gradient(to right, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav button { padding: 4px 10px; font-size: 13px; }
}

/* =========================================================
   6. MODULES: DASHBOARD
   ========================================================= */
.body--dashboard .dashboard-section { display: grid; gap: 12px; }
.body--dashboard .dashboard-tab { outline: none; }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.9fr); gap: 16px; align-items: stretch; }
.dashboard-hero__content { display: flex; flex-direction: column; gap: 10px; background: var(--bg-surface); padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.dashboard-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; align-items: stretch; }
.dashboard-overview-grid > * { min-width: 0; }
.dashboard-overview-card { display: flex; flex-direction: column; overflow: visible; }
.dashboard-analytics { display: grid; gap: 8px; }
.dashboard-analytics__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashboard-analytics__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-analytics__controls .label { margin: 0; }
.dashboard-analytics__custom { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-analytics__custom .input { min-width: 140px; }
.dashboard-analytics__status { min-height: 1em; }

.dashboard-overview-card {
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dashboard-overview-card__meta { display: grid; gap: 10px; }
.dashboard-overview-card__topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashboard-overview-card__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashboard-overview-card__logo { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.10); background: #ffffff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dashboard-overview-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-overview-card__logo.is-placeholder { border-style: dashed; color: var(--text-tertiary); font-weight: 600; }
.dashboard-overview-card__title-wrap { min-width: 0; }
.dashboard-overview-card__title { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-overview-card__topline-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-overview-card__verification { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.dashboard-overview-card__profile { align-self: flex-start; }
.dashboard-overview-card__address { margin: 0; line-height: 1.4; color: var(--text-secondary); }
.dashboard-overview-card__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.dashboard-overview-card__info-item {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  min-width: 0;
}
.dashboard-overview-card__info-item > .muted.x-small {
  margin: 0;
  white-space: nowrap;
}
.dashboard-overview-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text-primary);
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}
.dashboard-overview-card__pill--premium { background: var(--brand-subtle); color: var(--brand-primary); border-color: #c7d2fe; }
.dashboard-overview-card__pill--verified { background: var(--success-bg); color: var(--success-text); border-color: #bbf7d0; }
.dashboard-overview-card__pill--free { background: #f8fafc; color: var(--text-secondary); border-color: var(--border-light); }
.dashboard-overview-card__status-details { display: contents; }
.dashboard-overview-card__status-row { display: contents; }
.dashboard-overview-card__info-item .badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}
.dashboard-overview-card__renewal {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  margin: 0;
  padding: 0;
  text-indent: 0;
  color: var(--text-secondary);
}
.dashboard-overview-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dashboard-overview-card__chip {
  background: rgba(241, 245, 249, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: var(--text-primary);
}
.dashboard-overview-card__stat { gap: 10px; }
.dashboard-overview-card__stat .btn { margin-top: 6px; }

@media (max-width: 640px) {
  .dashboard-overview-card { padding: 12px 10px; }
  .dashboard-overview-card__title { white-space: normal; }
  .dashboard-overview-card__topline { align-items: flex-start; }
  .dashboard-analytics__header { align-items: stretch; }
  .dashboard-analytics__controls { width: 100%; }
  .dashboard-analytics__custom { width: 100%; }
}

/* Stat Cards */
.dashboard-overview-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.dashboard-overview-card__stat {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.dashboard-overview-card__stat.is-muted { opacity: 0.72; }

/* Column separation */
.dashboard-overview-card__stat:first-child { padding-right: 18px; }
.dashboard-overview-card__stat + .dashboard-overview-card__stat {
  padding-left: 18px;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

/* Header row inside each column: label left, count right */
.dashboard-overview-card__stat-link {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.dashboard-overview-card__stat-link p { margin: 0; }
.dashboard-overview-card__stat-link .muted { white-space: nowrap; }
.dashboard-overview-card__stat-link .title { margin: 0; font-weight: 900; }
.dashboard-overview-card__stat-link:hover .title,
.dashboard-overview-card__stat-link:focus-visible .title { color: var(--brand-primary); }
.dashboard-overview-card__stat-link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Helper line under each stat (kept, but subtle + clean) */
.dashboard-overview-card__stat > p.muted.x-small {
  display: block;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .dashboard-overview-card__grid { grid-template-columns: 1fr; }
  .dashboard-overview-card__stat:first-child { padding-right: 0; }
  .dashboard-overview-card__stat + .dashboard-overview-card__stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 12px;
    margin-top: 12px;
  }
}

/* Dashboard Trust */
.dashboard-section--trust {
  min-width: 0;
}

.dashboard-trust {
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.dashboard-trust__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.dashboard-trust__total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: #f8fafc;
  width: fit-content;
  min-width: 100px;
  max-width: none;
  white-space: nowrap;
}

.dashboard-trust__total-value,
.dashboard-trust__total-label {
  margin: 0;
}

/* ✅ CRITICAL: responsive grid + no clipping */
.dashboard-trust__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  max-width: 100%;
  min-width: 0;

  /* DO NOT CLIP CONTENT */
  overflow: visible;
}

.dashboard-trust__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);

  /* ✅ allow shrinking inside grid */
  min-width: 110px;
  max-width: 100%;
  width: auto;
  flex: 0 1 auto;
}

.dashboard-trust__count {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-trust__label {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.dashboard-trust__recent-title { margin-top: 16px; }

/* ✅ SINGLE SCROLLER: the .table-wrap is the only horizontal scroller */
.dashboard-trust__table {
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: visible; /* prevent double-scroll behavior */
}

.dashboard-trust__table .table-wrap {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;

  /* Nice UX: prevents scrollbar overlay jumps */
  scrollbar-gutter: stable both-edges;

  /* Scroll hint shadows (tied to the scrolling element) */
  background:
    linear-gradient(to right, white 30%, rgba(255,255,255,0)),
    linear-gradient(to left,  white 30%, rgba(255,255,255,0)),
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.10), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.10), rgba(0,0,0,0));
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-attachment: local, local, scroll, scroll;
  background-color: #ffffff;
}

/* Force horizontal scroll on smaller widths */
.dashboard-trust__table .table {
  width: 100%;
  min-width: 680px;
  table-layout: auto;
}

.dashboard-trust__table .table th,
.dashboard-trust__table .table td {
  white-space: nowrap;
}

/* Comment column wraps, remains readable */
.dashboard-trust__comment {
  white-space: normal;
  min-width: 260px;
  max-width: 520px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-trust__table .table td.dashboard-trust__comment {
  white-space: normal;
}

.dashboard-trust__date {
  white-space: nowrap;
}

/* Mobile optimization */
@media (max-width: 640px) {
  .dashboard-trust__grid {
    gap: 8px;
  }

  .dashboard-trust__item {
    min-width: 96px;
  }

  .dashboard-trust__table {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }

  .dashboard-trust__table .table {
    min-width: 640px;
  }

  .dashboard-trust__comment {
    min-width: 200px;
    max-width: 420px;
  }
}

/* Tablet optimization */
@media (min-width: 641px) and (max-width: 900px) {
  .dashboard-trust__item { min-width: 104px; }
}


/* Admin Metrics */
.admin-metrics-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-metrics-group + .admin-metrics-group { margin-top: 18px; }
.admin-metrics-group__title { margin: 0 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 10px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 54px;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat-card__value { font-size: 20px; font-weight: 700; line-height: 1.2; text-align: center; }
.stat-card__value--success { color: var(--success-text); }
.stat-card__value--warning { color: var(--warning-text); }
.stat-card__value--danger { color: var(--danger-text); }
.stat-card__value--primary { color: var(--brand-primary); }
.stat-card__label { font-size: 11px; font-weight: 500; color: var(--text-secondary); text-align: center; }

@media (max-width: 900px) { .dashboard-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
@media (min-width: 900px) {
  .dashboard-overview-grid { gap: 18px; }
}

/* =========================================================
   7. MODULES: PRODUCTS TABLE
   ========================================================= */
.products-table__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius);
  padding: 10px;
  background: var(--bg-surface);
}
.products-table__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.products-table__media { width: 48px; height: 48px; flex-shrink: 0; }
.products-table__image { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-light); background: var(--bg-subtle); }
.products-table__image--placeholder { display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--text-tertiary); background: var(--bg-subtle); border-radius: 6px; border: 1px solid var(--border-light); width: 100%; height: 100%; }
.products-table__info { flex: 1; min-width: 0; }
.products-table__name { font-weight: 600; white-space: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.products-table__meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-secondary); }
.products-table__price { color: var(--success); font-weight: 600; background: var(--success-bg); padding: 0 4px; border-radius: 4px; }
.products-table__actions, .manage-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

.inline-edit-panel {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-subtle);
  margin-top: 12px;
}

.products-table__row--editing {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.18);
}

@media (max-width: 768px) {
  .products-table__row { flex-direction: column; align-items: flex-start; }
  .products-table__media { width: 72px; height: 72px; }
  .products-table__actions, .manage-actions { width: 100%; justify-content: flex-start; padding-top: 12px; border-top: 1px dashed var(--border-light); margin-top: 12px; }
  .products-table__actions .btn, .manage-actions .btn { flex: 1 1 calc(50% - 8px); min-width: 140px; justify-content: center; }
}

/* =========================================================
   8. MODULES: SEARCH & HOME
   ========================================================= */
.search-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 20px; }
.search-hero__title { font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -0.02em; margin: 0; font-weight: 800; }
.search-form { width: 100%; max-width: 640px; margin: 8px auto 0; }
.search-shell { position: relative; width: 100%; }

.super-search {
  position: relative; background: white; border: 1px solid #cbd5e1; border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); display: flex; align-items: center; height: 52px; padding: 0 12px; transition: all 0.2s ease;
}
.super-search:focus-within { border-color: var(--brand-primary); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15); transform: translateY(-1px); }
.super-search input { border: none; background: transparent; padding: 0; margin: 0; height: 100%; flex: 1; font-size: 16px; box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
.super-mic { width: 44px; height: 44px; border-radius: 999px; border: none; background: transparent; color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.15s ease; flex-shrink: 0; -webkit-appearance: none; appearance: none; }
.super-mic svg { width: 20px; height: 20px; }
.super-mic:hover { background-color: rgba(148, 163, 184, 0.12); }
.super-clear { color: var(--text-tertiary); display: none; }
.recording-pulse { color: #ef4444 !important; background-color: #fee2e2 !important; animation: pulse-red 1.5s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.super-search-submit { width: 40px; height: 40px; border-radius: 999px; border: none; background: transparent; color: var(--text-tertiary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.super-search-submit svg { width: 20px; height: 20px; }
.super-search-submit:hover { color: var(--text-primary); background: rgba(0,0,0,0.05); }

.search-results {
  display: none; background: white; border: 1px solid var(--border-light); border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 8px 16px;
  max-height: min(360px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: var(--z-overlay);
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); text-align: left;
}
.search-results.is-visible { display: block; animation: slideDown 0.2s ease-out; }
.search-result-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 12px 12px; transition: background 0.1s; border-radius: 10px; }
.search-result-item:hover, .search-result-item:focus-visible { background: var(--bg-subtle); }
.search-result-item__name { font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.search-result-item__meta { font-size: 0.875rem; color: var(--text-secondary); grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.search-result-item__pill { background: var(--bg-subtle); color: var(--text-primary); border-radius: var(--radius-pill); padding: 2px 10px; border: 1px solid var(--border-light); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .search-results { left: -6px; right: -6px; border-radius: 18px; }
  .search-result-item { grid-template-columns: 1fr; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   9. MODULES: FLASH DEALS
   ========================================================= */
.snap-rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 20px 16px; margin: 0 -20px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.snap-rail::-webkit-scrollbar { display: none; }
.snap-card { scroll-snap-align: start; flex: 0 0 min(260px, 80vw); }
@media (min-width: 1024px) { .snap-card { flex-basis: 260px; } }

.flash-deal-card {
  position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer; aspect-ratio: 3 / 2;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  padding: 0;
  margin-bottom: 0;
  transform-origin: center;
 }

/* Subtle “gloss” highlight (no border/ring) */
.flash-deal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.00) 55%
  );
}

.flash-deal-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.flash-deal-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(67, 56, 202, 0.12) 70%, rgba(15, 23, 42, 0.42) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 16px 16px 18px; color: #f8fafc;
  text-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  opacity: 0.98;
  transition: background 0.25s ease, opacity 0.25s ease;
  transform: translateZ(0);
}
.flash-deal-card__badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #ef4444;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  animation: flash-badge-pulse 1.8s ease-in-out infinite;
}
.flash-deal-card__meta { color: #0f172a; font-weight: 600; opacity: 0.92; letter-spacing: 0.01em; }
/*
.flash-deal-card__title {
  color: #f8fafc;
  line-height: 1.25;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  max-width: fit-content;
}
*/
.flash-deal-card__title {
   color: #f8fafc;
   line-height: 1.25;
   margin: 0;
   font-weight: 800;
   letter-spacing: 0.01em; 
   background: rgba(15, 23, 42, 0.18);
   -webkit-backdrop-filter: blur(10px);
   backdrop-filter: blur(10px);
   text-shadow: 0 2px 6px rgba(15, 23, 42, 0.5);
   padding: 6px 10px;
   border-radius: 999px;
   box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
   max-width: fit-content;
 }
.flash-deal-card__price-row { color: #e2e8f0; margin: 0; display: flex; align-items: center; gap: 6px; }
.flash-deal-card__price-row::before { content: "•"; opacity: 0.8; }

/* Shop / merchant line: readable on bright images without adding a pill */
.flash-deal-card__shop,
.flash-deal-card__price-row {
  font-size: 0.875rem;         /* slightly larger than x-small */
  font-weight: 700;            /* bolder / more “shop-like” */
  line-height: 1.25;
  color: rgba(248, 250, 252, 0.98);
  letter-spacing: 0.01em;

  /* Contrast on busy + white images (no pill) */
  text-shadow:
    0 1px 2px rgba(15, 23, 42, 0.55),
    0 6px 16px rgba(15, 23, 42, 0.35);

  /* Optional subtle edge for WebKit (helps on pure-white areas) */
  -webkit-text-stroke: 0.25px rgba(15, 23, 42, 0.25);
}

@media (hover: hover) {
   .flash-deal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07);
    /* keep border stable so it doesn't “outline” on hover */
    border-color: rgba(15, 23, 42, 0.08);
  }

  .flash-deal-card:hover::after {
    opacity: 1;
  }
  .flash-deal-card:hover .flash-deal-card__img {
     transform: scale(1.02);
     filter: saturate(1.03);
   }
 }

/* Skeleton for Flash Deal */
.flash-deal-card--skeleton { background: var(--bg-subtle); border-style: dashed; cursor: default; }
.flash-deal-card--skeleton .flash-deal-card__overlay { background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.8)); }

/* Flash deals shell */
.flash-deals { padding: 8px 0 20px; display: grid; gap: 10px; }
.flash-deals__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.flash-deals__header .title { margin: 0; color: var(--text-primary); letter-spacing: 0.02em; }
.flash-deals__link { color: var(--brand-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.flash-deals__link::after { content: "›"; display: inline-block; transform: translateY(-1px); }
.flash-deals__rail { padding-bottom: 0px; }

.flash-deal-card__price {
  /* “Discounted/current price” = modern emerald */
  color: rgba(190, 242, 100, 0.98);
  font-weight: 800;
  letter-spacing: 0.01em;

  /* neutral glass so green stays readable (no green-on-green) */
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);

  /* holds up on bright/white + busy images */
  text-shadow:
    0 1px 2px rgba(15, 23, 42, 0.75),
    0 8px 18px rgba(15, 23, 42, 0.35);
  -webkit-text-stroke: 0.25px rgba(15, 23, 42, 0.28);

  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
 }

.flash-deal-card__price-original {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.95);
  text-decoration: line-through;
  background: rgba(15, 23, 42, 0.68);
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.flash-deal-card__discount {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow:
    0 10px 22px rgba(239, 68, 68, 0.22),
    0 2px 6px rgba(15, 23, 42, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  transform: translateZ(0);
  will-change: transform;
  animation: discount-pop 1.6s ease-in-out infinite;
 }

@keyframes flash-badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); transform: translateY(0); }
  60% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: translateY(0); }
}

@keyframes discount-pop {
  0%, 100% { transform: translateZ(0) scale(1); }
  50%      { transform: translateZ(0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .flash-deal-card__discount { animation: none; }
}

/* =========================================================
   10. MODULES: PUBLIC PROFILE
   ========================================================= */
.public-biz { margin: 32px auto 80px; padding: 0 20px; max-width: 1000px; }
.public-biz__hero { background: white; border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 20px; align-items: stretch; margin-bottom: 32px; }
.public-biz__hero-top { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 12px; }
.public-biz__hero-left { display: flex; gap: 16px; align-items: center; min-width: 0; flex: 1; }
.public-biz__hero-text { min-width: 0; }
.public-biz__hero-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.public-biz__logo { width: 80px; height: 80px; border-radius: 12px; border: 1px solid var(--border-light); overflow: hidden; flex-shrink: 0; background: var(--bg-subtle); }
.public-biz__logo-img { width: 100%; height: 100%; object-fit: cover; }
.public-biz__name { font-size: 22px; font-weight: 800; line-height: 1.1; margin: 0 0 4px; color: var(--text-primary); }
.public-biz__name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.public-biz__verification { letter-spacing: 0.04em; text-transform: uppercase; }
.public-biz__main { display: grid; gap: 28px; }
.public-biz__section { padding: 16px 0; }

.business-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.business-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.business-detail__links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-tab,
.dashboard-tab {
  display: grid;
  gap: 24px;
}

.billing-plan {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: 18px;
}

.billing-plan__group {
  display: grid;
  gap: 10px;
}

.billing-plan__providers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-plan__provider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.billing-plan__provider--esewa {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
  background: #ecfdf5;
}

.billing-plan__provider--khalti {
  color: #5b21b6;
  border-color: rgba(91, 33, 182, 0.2);
  background: #eef2ff;
}

.billing-plan__note {
  margin: 0;
}

.billing-plan__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.billing-plan__status {
  margin-top: 12px;
}

.billing-history {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.billing-history__item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #ffffff;
}

.billing-history__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.billing-history__title {
  font-weight: 700;
  margin: 0;
}

.billing-history__dates {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Admin tabs: prevent horizontal overflow and keep tables scrollable on narrow screens */
.admin-tab {
  width: 100%;
}

.admin-tab > * {
  min-width: 0;
}

.admin-tab .layout,
.admin-tab .layout--split,
.admin-tab .layout > *,
.admin-tab .layout--split > * {
  min-width: 0;
}

.admin-tab .card,
.admin-tab .admin-section {
  min-width: 0;
}

.admin-tab .table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-tab .ops-empty {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 20px;
  margin: 0;
}

.admin-tab pre,
.admin-tab .code-block,
.admin-tab .audit-meta-json {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Contact Chips */
.contact-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 4px;
  margin: 0 -4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.contact-chips::-webkit-scrollbar { display: none; }
.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.action-chip svg { width: 18px; height: 18px; fill: currentColor; }
.action-chip:active { background: #e2e8f0; transform: scale(0.98); }
.action-chip--primary {
  background: var(--brand-subtle);
  color: var(--brand-primary);
  border-color: rgba(79, 70, 229, 0.1);
}
.action-chip--whatsapp { background: #dcfce7; color: #166534; }
.action-chip--map { background: #e0f2fe; color: #075985; }

/* Action Bar Container */
.contact-actions-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 16px 4px; /* Shadow clearance + less tall row */
  margin: 0 -4px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: center;
}

/* The Button Shell - World Class Polish */
.action-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  
  transition:
    transform 0.18s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.18s ease,
    filter 0.18s ease;
   
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: #f8fafc;
  
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;

  /* GPU acceleration for 120fps smoothness */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Hover highlight (static + subtle; remove sweeping “shine”) */
.action-icon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.28),
    transparent 58%
  );
  transition: opacity 0.18s ease;
}


.action-icon-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #cbd5f5;
  box-shadow:
    0 4px 10px -8px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.action-icon-btn:hover::before {
  opacity: 1;
}

/* Active: Tap */
.action-icon-btn:active {
  transform: scale(0.97);
  box-shadow:
    0 4px 10px -10px rgba(15, 23, 42, 0.16),
    inset 0 1px 2px rgba(0, 0, 0, 0.10);
  transition-duration: 0.08s;
}

/* The Icon - Optical Sizing */
.action-icon-btn svg {
  width: 22px; /* Official glyph optical balance */
  height: 22px;
  fill: currentColor;
  display: block;
  filter: none;
  transition: filter 0.18s ease;
}

.action-icon-btn:hover svg {
  filter: none;
}


/* --- Minimal Brand Tones --- */

/* Call */
.btn-phone {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.btn-phone:hover {
  background: #ecfdf5;
}

/* Maps */
.btn-map {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.btn-map:hover {
  background: #e0f2fe;
}

/* WhatsApp */
.btn-whatsapp {
  background: #ecfdf5;
  color: #16a34a;
  border-color: #bbf7d0;
 }

.btn-whatsapp:hover {
  background: #dcfce7;
}

/* Messenger */
 .btn-messenger {
  background: #eef2ff;
  color: #2563eb;
  border-color: #c7d2fe;
 }

.btn-messenger:hover {
  background: #e0e7ff;
}

/* Facebook */
 .btn-facebook {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
 }
 
.btn-facebook:hover {
  background: #dbeafe;
}

/* TikTok */
 .btn-tiktok {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

.btn-tiktok:hover {
  background: #f1f5f9;
  filter: none;
 }

@media (prefers-reduced-motion: reduce) {
  .action-icon-btn,
  .action-icon-btn::before,
  .action-icon-btn svg {
    transition: none !important;
  }
  .action-icon-btn:hover,
  .action-icon-btn:active {
    transform: none !important;
    filter: none !important;
  }
}

/* Mobile: Preserve Touch Elegance */
@media (max-width: 480px) {
  .contact-actions-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .action-icon-btn {
    width: 48px;
    height: 48px;
  }
  
  .action-icon-btn svg {
    width: 21px;
    height: 21px;
   }
 }

/* Accessibility: Ensure focus states are premium too */
.action-icon-btn:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.5);
  outline-offset: 3px;
}

.public-biz__products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) {
  .public-biz__products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
}
.public-biz__product-card { background: white; border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.public-biz__product-media { aspect-ratio: 1 / 1; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; }
.public-biz__product-img { width: 100%; height: 100%; object-fit: cover; }
.public-biz__product-body { padding: 10px; display: flex; flex-direction: column; flex: 1; }
.public-biz__product-name {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.public-biz__product-price { font-weight: 700; color: var(--brand-primary); font-size: 14px; margin-top: auto; }

.public-biz__offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.public-biz__offer-card { background: white; border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.public-biz__offer-media { height: 150px; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; }
.public-biz__offer-img { width: 100%; height: 100%; object-fit: cover; }
.public-biz__offer-body { padding: 12px; }
.public-biz__offer-title { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.public-biz__offer-pricing { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 6px; }
.public-biz__offer-price { font-weight: 700; color: var(--text-primary); }
.public-biz__offer-original { text-decoration: line-through; color: var(--text-muted); font-size: 12px; }
.public-biz__offer-desc { margin: 0 0 6px; }


@media (max-width: 640px) {
  .container { padding: 0; }
  .public-biz__hero { gap: 16px; }
  .public-biz__hero-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .public-biz__logo { width: 64px; height: 64px; }
  .public-biz__name { font-size: 20px; }
}

@media (hover: hover) and (pointer: fine) {
  .public-biz__offer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

/* =========================================================
   11. MOBILE BOTTOM NAV (Thumb Zone)
   ========================================================= */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  backdrop-filter: blur(14px); border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: grid; grid-template-columns: repeat(5, 1fr); z-index: 900; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08); overflow: visible;
}
.bottom-nav__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; border: none; background: none;
  color: var(--text-tertiary); font-size: 11px; font-weight: 600; gap: 4px; padding: 8px 0 6px;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.78;
}
.bottom-nav__item::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 46px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.bottom-nav__item > * { position: relative; z-index: 1; }
.bottom-nav__item svg { width: 26px; height: 26px; fill: currentColor; }
.bottom-nav__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}
.bottom-nav__item[aria-pressed="true"], .bottom-nav__item.is-active { color: var(--brand-primary); opacity: 1; }
.bottom-nav__item[aria-pressed="true"]::before, .bottom-nav__item.is-active::before {
  background: rgba(79, 70, 229, 0.12);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.18);
}
.bottom-nav__item[aria-pressed="true"]::after, .bottom-nav__item.is-active::after { background: currentColor; }
.bottom-nav__item--fab { position: relative; top: -20px; overflow: visible; pointer-events: none; }
.fab-circle {
  width: 54px; height: 54px; background: var(--brand-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.32); border: 5px solid rgba(248, 250, 252, 0.95); pointer-events: auto;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bottom-nav__item:active { transform: translateY(1px); }
.bottom-nav__item--fab:active .fab-circle { transform: scale(0.95); }
body.keyboard-open .bottom-nav { display: none !important; }

/* Prominent middle item */
.bottom-nav__item--primary svg { width: 28px; height: 28px; }
.bottom-nav__item--primary { opacity: 1; color: var(--text-secondary); }
.bottom-nav__item--primary[aria-pressed="true"] { color: var(--brand-primary); }

/* More sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  z-index: 950;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 960;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
  max-height: min(72vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.bottom-sheet.is-open { transform: translateY(0); }

.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  margin: 4px auto 8px;
}

.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 8px;
}

.bottom-sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.bottom-sheet__close:hover {
  background: #ffffff;
  border-color: var(--border-light);
}
.bottom-sheet__close:active { transform: scale(0.98); }

.bottom-sheet__content {
  display: grid;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.sheet-item {
  width: 100%;
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.sheet-item + .sheet-item { border-top: 1px solid var(--border-light); }
.sheet-item:hover { background: var(--bg-subtle); }
.sheet-item.is-active { color: var(--brand-primary); }
.sheet-item--danger {
  background: transparent;
  color: var(--danger-text);
}

.sheet-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

body.keyboard-open .bottom-sheet,
body.keyboard-open .sheet-backdrop {
  display: none !important;
}

/* =========================================================
   12. MISC UTILITIES
   ========================================================= */
.hidden { display: none !important; }
.logo-uploader { display: flex; gap: 20px; align-items: center; background: var(--bg-subtle); padding: 16px; border-radius: 8px; border: 1px solid var(--border-light); }
.logo-uploader__preview { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 14px; background: white; border: 1px solid var(--border-light); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-uploader__image { width: 100%; height: 100%; object-fit: contain; }
.logo-uploader__placeholder { text-align: center; font-size: 12px; color: var(--text-tertiary); padding: 6px; }
@media (max-width: 640px) {
  .logo-uploader { flex-direction: column; align-items: flex-start; }
  .logo-uploader__preview { width: 80px; height: 80px; flex-basis: 80px; }
}
.map { width: 100%; height: 300px; background: var(--bg-subtle); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light); margin-top: 8px; }
.map.map--placeholder-state {
  height: auto;
  min-height: 240px;
  overflow: visible;
}
.map__placeholder {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  text-align: left;
}
.map__placeholder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.map__placeholder-copy { max-width: 520px; }
.map__title {
  font-weight: 600;
  margin: 0 0 4px;
}
.map__toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
}
.map__advanced {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: white;
  padding: 8px 12px;
}
.map__advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}
.map__advanced-body {
  margin-top: 12px;
  display: grid;
  gap: 16px;
}
.map__option {
  display: grid;
  gap: 6px;
}
@media (max-width: 640px) {
  .map__placeholder-header { flex-direction: column; align-items: stretch; }
  .map__placeholder-header .btn { width: 100%; }
}
.footer { margin-top: auto; border-top: 1px solid var(--border-light); padding: 32px 0; text-align: center; color: var(--text-tertiary); font-size: 13px; background: white; }
.dashboard-global-alert { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239, 68, 68, 0.3); font-weight: 600; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashboard-global-alert.is-visible { display: flex; }
.dashboard-global-alert--info { background: var(--brand-subtle); color: var(--brand-primary); border-color: rgba(79, 70, 229, 0.2); }
.dashboard-global-alert--success { background: var(--success-bg); color: var(--success-text); border-color: rgba(16, 185, 129, 0.25); }
.dashboard-global-alert--warning { background: var(--warning-bg); color: var(--warning-text); border-color: rgba(245, 158, 11, 0.25); }

/* =========================================================
   13. Auth provider button variants
   ========================================================= */
.btn__icon{
  width:18px;
  height:18px;
  margin-right:8px;
  vertical-align:middle;
}
.btn--google{
  position:relative;
  font-weight:500;
  background:white;
  color:#3c4043;
  border:1px solid #dadce0;
}
.btn--facebook{
  background:#1877F2;
  border:none;
  color:white;
}
.btn--tiktok{
  background:#000;
  border:none;
  color:white;
}
