/* ===== StoreLinks — brand purple + gold, dark premium theme ===== */
:root {
  --bg: #0d0b14;
  --surface: #16121f;
  --surface-2: #1e192b;
  --surface-3: #271f38;
  --border: #2e2740;
  --text: #f5f3f9;
  --text-muted: #a79bc0;
  --accent: #6628b9;
  --accent-hover: #7d3ed6;
  --accent-soft: #6628b933;
  --gold: #f0a93e;
  --gold-hover: #f5bc63;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .btn, .stat-card h3 { font-family: var(--font-display); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 500px; }

/* ===== Install banner (PWA) ===== */
.install-banner {
  display: none; align-items: center; gap: 12px; background: var(--surface-3);
  border-bottom: 1px solid var(--border); padding: 10px 16px; position: sticky; top: 0; z-index: 60;
}
.install-banner.show { display: flex; }
.install-banner img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.install-banner-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.install-banner-text strong { font-size: 13px; }
.install-banner-text span { font-size: 11px; color: var(--text-muted); }
.install-dismiss { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 0 4px; }

/* ===== Navbar ===== */
.navbar-top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.navbar-top-inner { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; color: var(--text); white-space: nowrap; }
.logo-icon { width: 32px; height: 32px; border-radius: 8px; }
.logo-text span { color: var(--gold); }
.search-bar { flex: 1; min-width: 180px; display: flex; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.search-bar input { flex: 1; background: transparent; border: none; padding: 10px 14px; color: var(--text); outline: none; font-family: var(--font-body); }
.search-bar button { background: var(--accent); border: none; padding: 0 16px; color: #fff; cursor: pointer; }
.navbar-actions { display: flex; gap: 20px; align-items: center; }
.nav-action { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-muted); gap: 2px; position: relative; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: var(--gold); color: #1a1204; font-size: 10px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }

.navbar-categories { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.categories-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 10px 16px; font-size: 13px; color: var(--text-muted); scrollbar-width: none; }
.categories-scroll::-webkit-scrollbar { display: none; }
.categories-scroll a { white-space: nowrap; }
.categories-scroll a:hover { color: var(--text); }
.flash-link { color: var(--gold) !important; font-weight: 600; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #3a1670 0%, #0d0b14 55%), linear-gradient(160deg, #1b0f38, #0d0b14 70%);
  padding: 56px 16px 44px; border-bottom: 1px solid var(--border);
}
.hero-mark {
  position: absolute; top: -60px; right: -40px; font-family: var(--font-display); font-weight: 800;
  font-size: 380px; line-height: 1; color: var(--accent); opacity: 0.08; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; max-width: 640px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--gold); background: #f0a93e1a; border: 1px solid #f0a93e40; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: 34px; line-height: 1.15; margin-bottom: 14px; font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero p { color: var(--text-muted); font-size: 15px; margin-bottom: 22px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { width: auto; }

/* ===== Trust marquee ===== */
.marquee { background: var(--gold); overflow: hidden; white-space: nowrap; padding: 9px 0; }
.marquee-track { display: inline-flex; gap: 36px; animation: marquee-scroll 26s linear infinite; padding-left: 36px; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: #1a1204; letter-spacing: .02em; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===== Category strip ===== */
.category-strip { display: flex; gap: 12px; overflow-x: auto; padding: 24px 0; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-pill { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; min-width: 90px; font-size: 12px; text-align: center; transition: border-color .15s, transform .15s; }
.category-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.category-icon { font-size: 24px; }

/* ===== Sections ===== */
.section { padding: 26px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-header h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.section-emoji { font-size: 18px; }
.see-all { color: var(--gold); font-size: 13px; font-weight: 600; }

/* ===== Product grid & card ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px -12px var(--accent-soft); }
.product-card-img { position: relative; aspect-ratio: 1; background: var(--surface-2); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }
.img-placeholder.large { aspect-ratio: 1; }
.badge { position: absolute; top: 6px; font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 4px; font-family: var(--font-display); }
.badge-flash { left: 6px; background: var(--gold); color: #1a1204; }
.badge-discount { right: 6px; background: var(--danger); color: #fff; }
.product-card-body { padding: 10px; }
.product-name { font-size: 13px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.product-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-price { font-weight: 700; color: var(--gold); font-family: var(--font-display); }
.product-compare-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-rating { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.product-rating span { color: var(--text-muted); }

.empty-state { color: var(--text-muted); padding: 40px 0; text-align: center; }
.loading-state { color: var(--text-muted); padding: 40px 0; text-align: center; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; border: none; cursor: pointer; text-align: center; transition: background .15s, transform .1s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 15px; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ===== Listing page ===== */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.listing-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: fit-content; }
.filters h3 { margin-bottom: 12px; font-size: 15px; }
.filter-group { margin-bottom: 12px; }
.filter-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.filter-group input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px; color: var(--text); }
.listing-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.listing-header h1 { font-size: 18px; }
.sort-form select { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.pagination { display: flex; gap: 8px; justify-content: center; padding: 24px 0; }
.pagination a { padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.pagination a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 700px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters { order: 2; }
  .hero h1 { font-size: 27px; }
  .hero-mark { font-size: 220px; top: -30px; }
}

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 20px 0; }
.main-image { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; }
.product-info h1 { font-size: 22px; margin-bottom: 10px; }
.product-meta-row { display: flex; gap: 14px; color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.price-large { font-size: 26px; font-weight: 800; color: var(--gold); font-family: var(--font-display); }
.price-compare { color: var(--text-muted); text-decoration: line-through; }
.flash-timer { background: var(--surface-2); border: 1px solid var(--gold); border-radius: 6px; padding: 8px 12px; font-size: 13px; margin: 12px 0; color: var(--gold); font-weight: 600; }
.variant-selector { margin: 16px 0; }
.variant-selector label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 14px; color: var(--text); cursor: pointer; }
.variant-btn.selected { border-color: var(--accent); color: var(--accent); }
.qty-selector { margin: 16px 0; }
.qty-selector label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.qty-controls button { background: var(--surface-2); border: none; color: var(--text); width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.qty-controls input { width: 50px; text-align: center; background: var(--surface); border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--text); height: 34px; }
.stock-note { font-size: 12px; color: var(--text-muted); margin-left: 10px; }
.product-actions { display: flex; gap: 12px; margin: 20px 0; }
.product-actions .btn { flex: 1; }
.seller-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
.seller-card img, .seller-avatar-placeholder { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.seller-avatar-placeholder { background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.seller-name { font-weight: 600; }
.seller-rating { font-size: 12px; color: var(--text-muted); }
.visit-store { margin-left: auto; color: var(--gold); font-size: 13px; white-space: nowrap; font-weight: 600; }
.verified-tick { color: var(--success); }

.product-description-section, .reviews-section { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 20px; }
.product-description-section h2, .reviews-section h2 { font-size: 18px; margin-bottom: 12px; }
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.review-author { font-weight: 600; }
.review-stars { color: var(--gold); }
.verified-badge { font-size: 11px; background: var(--surface-2); padding: 2px 8px; border-radius: 4px; color: var(--success); }

@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 20px 0; }
.cart-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item-controls .qty-controls button { width: 28px; height: 28px; }
.remove-item-btn { color: var(--danger); font-size: 12px; background: none; border: none; cursor: pointer; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; height: fit-content; }
.cart-summary h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; color: var(--gold); }
.summary-note { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

@media (max-width: 700px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); outline: none; font-family: var(--font-body);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-error { color: var(--danger); font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.form-section h3 { margin-bottom: 14px; font-size: 15px; }
.radio-option { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }

/* ===== Auth ===== */
.center-page { padding: 40px 0; text-align: center; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: left; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; text-align: center; }
.muted { color: var(--text-muted); text-align: center; margin-bottom: 20px; font-size: 13px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.auth-switch a { color: var(--gold); font-weight: 600; }
.auth-divider { display: flex; align-items: center; text-align: center; color: var(--text-muted); font-size: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider span { padding: 0 12px; }
.g_id_signin { display: flex; justify-content: center; margin-bottom: 4px; }

.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--success); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ===== Store page ===== */
.store-banner { height: 140px; background: var(--surface-2); background-size: cover; background-position: center; }
.store-header { display: flex; gap: 16px; align-items: center; padding: 20px 0; }
.store-logo, .store-logo-placeholder { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-top: -35px; }
.store-logo-placeholder { background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.store-meta { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.store-description { margin-top: 6px; font-size: 14px; }

/* ===== Dashboard ===== */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 10px; }
.dashboard-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { background: none; border: none; color: var(--text-muted); padding: 10px 16px; cursor: pointer; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; font-family: var(--font-body); }
.tab-btn.active { color: var(--gold); border-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.dash-product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.dash-product-card img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; width: 100%; }
.dash-product-name { font-size: 13px; margin-bottom: 4px; }
.dash-product-meta { font-size: 12px; color: var(--text-muted); }
.dash-product-actions { display: flex; gap: 6px; margin-top: 8px; }
.dash-product-actions .btn { flex: 1; padding: 6px 8px; font-size: 12px; }
.danger-text { color: var(--danger); border-color: var(--danger); }
.existing-images { margin-bottom: 10px; }
.existing-images-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.existing-image-thumb { position: relative; width: 60px; height: 60px; }
.existing-image-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.remove-image-x { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status-pending, .status-draft { background: #3a3220; color: #eab308; }
.status-confirmed, .status-active { background: #1e3a2f; color: var(--success); }
.status-processing { background: #1e2f3a; color: #38bdf8; }
.status-shipped { background: #2f1e3a; color: #c084fc; }
.status-delivered { background: #1e3a2f; color: var(--success); }
.status-cancelled, .status-archived { background: #3a1e1e; color: var(--danger); }

.suborder-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.suborder-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.suborder-item-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text-muted); }
.suborder-actions { margin-top: 12px; display: flex; gap: 8px; }
.suborder-actions select { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 10px; }

.payout-balance-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 20px; }
.payout-balance-card h2 { color: var(--gold); font-size: 28px; margin: 8px 0 14px; }

/* ===== Admin dashboard ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card p { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.stat-card h3 { font-size: 22px; color: var(--gold); }
.filter-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-row select, .filter-row input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 12px; }
.filter-row input { flex: 1; min-width: 180px; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.admin-row-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.admin-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-row-actions select { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.admin-row-total { font-weight: 700; color: var(--gold); }

/* ===== Modal ===== */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
.modal-content { background: var(--surface); border-radius: 16px 16px 0 0; padding: 24px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--surface-2); border: none; color: var(--text); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.field-note { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal-content { border-radius: 16px; }
}

/* ===== Account ===== */
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.account-links { display: flex; flex-direction: column; gap: 10px; }
.account-link-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; text-align: left; cursor: pointer; color: var(--text); }
.logout-btn { color: var(--danger); }

/* ===== Footer ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 30px; }
.footer-grid h4 { margin-bottom: 12px; font-size: 14px; font-family: var(--font-display); }
.footer-grid a { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.footer-logo { margin-bottom: 10px; }
.footer-tagline { color: var(--text-muted); font-size: 13px; }
.footer-tagline a { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
.footer-bottom-links { display: flex; gap: 14px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-muted); font-size: 12px; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== Legal pages ===== */
.legal-page { padding: 30px 0 60px; }
.legal-page h1 { font-size: 26px; margin-bottom: 6px; }
.legal-page h2 { font-size: 17px; margin: 26px 0 10px; color: var(--gold); }
.legal-page p { margin-bottom: 14px; color: var(--text); line-height: 1.7; }
.legal-page ul { margin: 0 0 14px 20px; }
.legal-page li { margin-bottom: 8px; line-height: 1.6; color: var(--text); }
.legal-page a { color: var(--gold); }
.last-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
