/* === SPECIALS NITE — LIGHT/DARK THEME === */
:root, [data-theme="light"] {
  color-scheme: light;
  --brand-red: #d91e35;
  --brand-gold: #e5a800;
  --brand-blue: #0d8ecf;
  --green: #1a9e55;
  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-surface: #f0f1f4;
  --bg-header: rgba(255,255,255,.92);
  --text-primary: #1a1d26;
  --text-secondary: #5a5e6e;
  --text-muted: #8c90a0;
  --line: rgba(0,0,0,.09);
  --line-bright: rgba(0,0,0,.14);
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --hero-bg: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  --hero-text: #1a1d26;
  --chip-bg: #f0f1f4;
  --chip-text: #3a3e4e;
  --badge-bg: #eef0f4;
  --modal-backdrop: rgba(0,0,0,.4);
  --input-bg: #f5f6f8;
  --input-border: rgba(0,0,0,.12);
  --input-text: #1a1d26;
  --map-filter: none;
  --radius: 16px;
  --radius-sm: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --brand-red: #f2223b;
  --brand-gold: #ffc857;
  --brand-blue: #15a8e8;
  --green: #2fd477;
  --bg-page: #0c0e16;
  --bg-card: #151822;
  --bg-elevated: #1c2030;
  --bg-surface: #232838;
  --bg-header: rgba(12,14,22,.92);
  --text-primary: #eef0f6;
  --text-secondary: #8c90a0;
  --text-muted: #5c6070;
  --line: rgba(255,255,255,.08);
  --line-bright: rgba(255,255,255,.14);
  --shadow: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --hero-bg: linear-gradient(135deg, #151822 0%, #1c2030 100%);
  --hero-text: #eef0f6;
  --chip-bg: #232838;
  --chip-text: #c0c4d0;
  --badge-bg: #232838;
  --modal-backdrop: rgba(0,0,0,.6);
  --input-bg: #1c2030;
  --input-border: rgba(255,255,255,.12);
  --input-text: #eef0f6;
  --map-filter: brightness(.95);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-page); color: var(--text-primary); line-height: 1.5; min-height: 100dvh; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--brand-red); color: #fff; padding: 8px 16px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 8px clamp(12px,3vw,30px);
  background: var(--bg-header);
  color: var(--text-primary);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.hamburger { width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; }
.hamburger:hover { background: var(--bg-surface); }
.hamburger span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .2s; }
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-logo { height: 48px; width: auto; display: block; }
.header-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.theme-icon-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-bright); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-primary); font-size: 1.15rem; transition: .15s; padding: 0; line-height: 1; }
.theme-icon-toggle:hover { background: var(--bg-surface); border-color: var(--brand-gold); color: var(--brand-gold); }
.theme-icon-toggle .sun-icon { display: none; }
.theme-icon-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-icon-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-icon-toggle .moon-icon { display: none; }
.header-button { padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-bright); background: var(--bg-card); color: var(--text-primary); font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; transition: .15s; }
.header-button:hover { background: var(--bg-surface); border-color: var(--brand-blue); color: var(--brand-blue); }

/* Hero */
.hero-card {
  background: var(--hero-bg);
  padding: clamp(24px,4vw,48px) clamp(16px,3vw,40px);
  border-bottom: 1px solid var(--line);
}
.hero-copy-wrap { max-width: 640px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: 8px; }
.hero-card h1 { font-size: clamp(1.6rem,4vw,2.6rem); font-weight: 900; line-height: 1.1; color: var(--hero-text); margin-bottom: 12px; }
.hero-card > p, .hero-copy-wrap > p { color: var(--text-secondary); font-size: .95rem; margin-bottom: 20px; }
.hero-metrics { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.hero-metrics div { flex: 1; min-width: 90px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.hero-metrics strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--brand-red); }
.hero-metrics span { font-size: .78rem; color: var(--text-muted); }

/* Search */
.search-card { display: flex; gap: 8px; margin-bottom: 14px; }
.search-card input { flex: 1; padding: 12px 16px; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--input-text); font-size: .92rem; outline: none; }
.search-card input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(13,142,207,.15); }
.search-card button { padding: 12px 24px; background: var(--green); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: .15s; }
.search-card button:hover { filter: brightness(1.1); }

/* Chips */
.quick-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-filters button { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--chip-bg); color: var(--chip-text); font-size: .82rem; font-weight: 600; cursor: pointer; transition: .15s; }
.quick-filters button.active { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.quick-filters button:hover:not(.active) { background: var(--bg-surface); border-color: var(--brand-blue); color: var(--brand-blue); }

/* Control strip */
.control-strip {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px clamp(12px,3vw,30px);
  border-bottom: 1px solid var(--line); background: var(--bg-card);
}
.control-strip strong { font-size: .92rem; }
.control-strip span { font-size: .82rem; color: var(--text-muted); margin-left: 8px; }
.control-buttons { display: flex; gap: 8px; align-items: center; }
.control-btn { padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-bright); background: var(--bg-card); color: var(--text-primary); font-size: .82rem; font-weight: 600; cursor: pointer; }
.control-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.segmented { display: inline-flex; border: 1px solid var(--line-bright); border-radius: var(--radius-sm); overflow: hidden; }
.segmented button { padding: 7px 16px; border: none; background: var(--bg-card); color: var(--text-secondary); font-size: .82rem; font-weight: 600; cursor: pointer; transition: .15s; }
.segmented button.active { background: var(--brand-blue); color: #fff; }

/* Layout grid */
.layout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 420px; }
@media (max-width: 768px) { .layout-grid { grid-template-columns: 1fr; } .map-shell.hidden { display: none; } .results-panel.hidden { display: none; } }
.map-shell { border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; z-index: 1; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px clamp(12px,3vw,20px); background: var(--bg-card); border-bottom: 1px solid var(--line); font-size: .85rem; }
.map-toolbar button { padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--brand-blue); color: var(--brand-blue); background: transparent; font-size: .82rem; font-weight: 600; cursor: pointer; }
.map-toolbar button:hover { background: var(--brand-blue); color: #fff; }
.leaflet-map { flex: 1; min-height: 380px; background: var(--bg-surface); filter: var(--map-filter); }

/* Results */
.results-panel { display: flex; flex-direction: column; background: var(--bg-card); }
.results-head { display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(12px,3vw,20px); border-bottom: 1px solid var(--line); }
.results-head h2 { font-size: 1rem; font-weight: 700; }
.text-button { background: none; border: none; color: var(--brand-red); font-size: .82rem; font-weight: 600; cursor: pointer; }
.results { flex: 1; overflow-y: auto; max-height: 520px; padding: 0; }

/* Card */
.deal-card {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: start;
  padding: 14px clamp(12px,3vw,20px);
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.deal-card:hover { background: var(--bg-surface); }
.deal-card-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-surface); }
.deal-card-body h3 { font-size: .92rem; font-weight: 700; margin-bottom: 2px; }
.deal-card-meta { font-size: .78rem; color: var(--text-muted); }
.deal-card-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600; background: var(--badge-bg); color: var(--text-secondary); }
.badge-day { background: var(--brand-blue); color: #fff; }
.badge-verified { background: var(--green); color: #fff; }
.badge-featured { background: var(--brand-gold); color: #1a1d26; }
.deal-card-price { text-align: right; white-space: nowrap; }
.deal-card-price small { display: block; font-size: .7rem; color: var(--text-muted); }
.deal-card-price strong { font-size: 1.2rem; font-weight: 900; color: var(--brand-red); }
.deal-card-stats { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.deal-card-actions { display: flex; gap: 6px; margin-top: 8px; grid-column: 1 / -1; }
.deal-card-actions button, .deal-card-actions a {
  flex: 1; padding: 8px 0; text-align: center; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s;
}
.btn-details { background: var(--brand-red); color: #fff; border: none; }
.btn-directions { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--line-bright); }
.btn-save { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--line-bright); }
.btn-details:hover { filter: brightness(1.1); }
.btn-directions:hover, .btn-save:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* Map markers */
.sn-marker { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50% 50% 50% 4px; background: var(--brand-red); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(0,0,0,.3); color: #fff; font-weight: 700; font-size: .65rem; font-family: Inter,system-ui,sans-serif; line-height: 1; cursor: pointer; transition: transform .15s; transform: rotate(-45deg); }
.sn-marker:hover { transform: rotate(-45deg) scale(1.15); }
.sn-marker span { transform: rotate(45deg); }
.sn-marker.featured { background: var(--brand-red); color: #fff; }
.sn-user-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-blue); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(13,142,207,.2); }

/* Action grid */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 768px) { .action-grid { grid-template-columns: 1fr; } }
.action-grid article { padding: clamp(24px,3vw,40px) clamp(16px,3vw,30px); }
.action-grid article:first-child { border-right: 1px solid var(--line); }
@media (max-width: 768px) { .action-grid article:first-child { border-right: none; border-bottom: 1px solid var(--line); } }
.action-grid h2 { font-size: 1.2rem; font-weight: 800; margin: 8px 0; }
.action-grid p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 16px; }

/* Buttons */
.primary-button { display: inline-block; padding: 12px 28px; background: var(--brand-red); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; cursor: pointer; transition: .15s; }
.primary-button:hover { filter: brightness(1.1); }
.secondary-button { display: inline-block; padding: 12px 28px; background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--line-bright); border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; cursor: pointer; transition: .15s; }
.secondary-button:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* Bottom nav */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--bg-card); border-top: 1px solid var(--line); padding: 6px 0 env(safe-area-inset-bottom, 6px); }
  .bottom-nav button { flex: 1; padding: 10px 0 6px; background: none; border: none; color: var(--text-muted); font-size: .7rem; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .bottom-nav button:hover, .bottom-nav button.active { color: var(--brand-red); }
  body { padding-bottom: 64px; }
}

/* Side panel */
.side-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; z-index: 50; background: var(--bg-card); box-shadow: var(--shadow-lg); transition: transform .25s ease; overflow-y: auto; transform: translateX(-100%); }
.side-panel[aria-hidden="false"] { transform: translateX(0); }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-header strong { font-size: 1.05rem; }
.icon-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; font-size: 1.4rem; color: var(--text-secondary); cursor: pointer; border-radius: 8px; }
.icon-close:hover { background: var(--bg-surface); color: var(--text-primary); }
.profile-card { display: flex; gap: 12px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.profile-card strong { display: block; font-size: .95rem; }
.profile-card p { font-size: .8rem; color: var(--text-muted); margin: 0; }
.panel-nav { display: flex; flex-direction: column; padding: 8px 0; }
.panel-nav button { display: block; width: 100%; text-align: left; padding: 14px 20px; border: none; background: none; color: var(--text-primary); font-size: .92rem; font-weight: 500; cursor: pointer; transition: background .15s; }
.panel-nav button:hover { background: var(--bg-surface); }
.panel-nav .nav-divider { height: 1px; background: var(--line); margin: 4px 20px; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; background: var(--modal-backdrop); opacity: 0; pointer-events: none; transition: opacity .2s; padding: 16px; }
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-card-wide { max-width: 720px; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.muted { color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; }

/* Forms */
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-secondary); }
.stack-form input, .stack-form select, .stack-form textarea {
  padding: 10px 14px; border: 1px solid var(--input-border); border-radius: var(--radius-sm);
  background: var(--input-bg); color: var(--input-text); font-size: .92rem; font-family: inherit; outline: none;
}
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(13,142,207,.15); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Filter sheet */
.filter-sheet { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center; justify-content: center; background: var(--modal-backdrop); opacity: 0; pointer-events: none; transition: opacity .2s; }
.filter-sheet[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.sheet-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); margin: 16px; }
.form-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--text-secondary); }
.form-grid select, .form-grid input[type="range"] { padding: 8px 12px; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--input-text); font-size: .9rem; }

/* Price range dual slider */
.price-range-wrap { display: flex; flex-direction: column; gap: 10px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-input-group { flex: 1; display: flex; align-items: center; gap: 4px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius-sm); padding: 6px 10px; }
.price-input-group:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(13,142,207,.15); }
.price-input-label { font-size: .7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.price-currency { font-size: .9rem; color: var(--text-secondary); font-weight: 700; }
.price-input-field { width: 48px; border: none; background: transparent; color: var(--input-text); font-size: .9rem; font-weight: 600; font-family: inherit; outline: none; padding: 0; -moz-appearance: textfield; }
.price-input-field::-webkit-outer-spin-button, .price-input-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-dash { color: var(--text-muted); font-weight: 600; }
.dual-range { position: relative; height: 28px; }
.dual-range input[type="range"] { position: absolute; top: 0; left: 0; width: 100%; height: 28px; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; padding: 0; border: none; }
.dual-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--line-bright); border-radius: 2px; }
.dual-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-blue); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; pointer-events: auto; margin-top: -8px; }
.dual-range input[type="range"]::-moz-range-track { height: 4px; background: var(--line-bright); border-radius: 2px; border: none; }
.dual-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-blue); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; pointer-events: auto; }

/* Filter actions row */
.filter-actions { display: flex; gap: 10px; }
.filter-actions .secondary-button { flex: 0 0 auto; }
.filter-actions .primary-button { flex: 1; }

/* Theme toggle */
.theme-toggle { width: 100%; margin-top: 4px; }
.theme-toggle button { flex: 1; }

/* Admin tabs */
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.admin-tabs button { padding: 10px 18px; border: none; background: none; color: var(--text-muted); font-weight: 600; font-size: .85rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .15s; }
.admin-tabs button.active { color: var(--brand-red); border-bottom-color: var(--brand-red); }
.admin-tabs button:hover { color: var(--text-primary); }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th { text-align: left; padding: 8px 10px; background: var(--bg-surface); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--bg-surface); }
.admin-table select, .admin-table input { padding: 4px 8px; border: 1px solid var(--input-border); border-radius: 6px; background: var(--input-bg); color: var(--input-text); font-size: .8rem; }
.admin-action { padding: 4px 12px; border-radius: 6px; border: none; font-size: .78rem; font-weight: 600; cursor: pointer; transition: .15s; }
.admin-action-primary { background: var(--brand-blue); color: #fff; }
.admin-action-success { background: var(--green); color: #fff; }
.admin-action-danger { background: var(--brand-red); color: #fff; }

/* Venue manage */
.venue-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 480px) { .venue-info-grid { grid-template-columns: 1fr; } }
.venue-info-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text-secondary); }
.venue-info-grid input, .venue-info-grid textarea { padding: 8px 12px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--input-bg); color: var(--input-text); font-size: .88rem; font-family: inherit; }

/* Toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: var(--radius-sm); background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; z-index: 1200; opacity: 0; transition: opacity .3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Role selector */
.role-selector { display: flex; gap: 12px; margin: 12px 0; }
.role-option { flex: 1; padding: 20px 16px; border: 2px solid var(--line-bright); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: .15s; background: var(--bg-card); }
.role-option:hover { border-color: var(--brand-blue); }
.role-option.selected { border-color: var(--brand-red); background: rgba(217,30,53,.06); }
[data-theme="dark"] .role-option.selected { background: rgba(242,34,59,.1); }
.role-option strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.role-option span { font-size: .78rem; color: var(--text-muted); }

/* Status text */
.status-active { color: var(--green); font-weight: 600; }
.status-inactive { color: var(--brand-red); font-weight: 600; }
.status-pending { color: var(--brand-gold); font-weight: 600; }

/* Scrollbar for dark */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg-page); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--bg-surface); border-radius: 4px; }

/* Overlay for side menu */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .25s; }
.menu-overlay.active { opacity: 1; pointer-events: auto; }

/* Prevent iOS zoom on input focus — all inputs must be 16px+ */
input, select, textarea { font-size: 16px !important; }
@supports (-webkit-touch-callout: none) {
  input:focus, select:focus, textarea:focus { font-size: 16px !important; }
}

/* Install prompt */
.install-prompt { margin-top: 8px; }
.install-hint { font-size: .85rem; color: var(--text-secondary); margin: 4px 0 12px; font-weight: 400; }
.install-steps { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; margin-top: 12px; font-weight: 400; }
.install-steps strong { color: var(--text-primary); }

/* Utility */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.text-center { text-align: center; }
.text-red { color: var(--brand-red); }
.text-green { color: var(--green); }
.text-sm { font-size: .82rem; }
.fw-600 { font-weight: 600; }
