/* ═══════════════════════════════════════════════════════
   GLAMIA — Beauty Salon Finder
   Dizajn: topla, elegantna paleta, blag luxe feel
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIJABLE ────────────────────────────────────── */
:root {
  --accent:        #c9637a;
  --accent-light:  #e8a0b0;
  --accent-dark:   #a04860;
  --accent-bg:     rgba(201, 99, 122, 0.08);

  --bg:            #fdf8f5;
  --bg-card:       #ffffff;
  --bg-raised:     #fef4f0;
  --bg-filter:     #fff9f7;

  --text:          #1a1218;
  --text-secondary:#7a6070;
  --text-muted:    #b09aa8;

  --border:        #ead5dc;
  --border-light:  #f5e8ec;

  --green:         #52a37a;
  --red:           #d4544a;
  --gold:          #c49a3a;

  --radius-card:   16px;
  --radius-btn:    10px;
  --radius-pill:   20px;

  --shadow-sm:     0 2px 8px rgba(180, 80, 100, 0.08);
  --shadow-md:     0 4px 20px rgba(180, 80, 100, 0.12);
  --shadow-lg:     0 8px 40px rgba(180, 80, 100, 0.16);

  --header-h:      128px;
  --filter-h:      52px;
  --tab-h:         52px;
  --top-offset:    232px;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --accent:        #e07d95;
  --accent-light:  #f0a8bb;
  --accent-dark:   #c05878;
  --accent-bg:     rgba(224, 125, 149, 0.12);

  --bg:            #0f0a0d;
  --bg-card:       #1a1218;
  --bg-raised:     #221620;
  --bg-filter:     #1a1218;

  --text:          #f5edf0;
  --text-secondary:#c0a8b4;
  --text-muted:    #7a6070;

  --border:        #3a2030;
  --border-light:  #2a1825;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.5);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; }

/* ── HEADER ──────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 12px rgba(180,80,100,0.06);
  height: var(--header-h);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
  display: block;
}
.logo-dot { color: var(--accent); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.plan-badge.plan-pro {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

#themeToggle {
  font-size: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#themeToggle:hover { background: var(--accent-bg); }

#btnLogout {
  font-size: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
#btnLogout:hover { background: var(--accent-bg); color: var(--accent); }

/* Radius row */
.radius-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 14px;
}
.radius-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
}
#radiusVal {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  min-width: 34px;
  text-align: right;
}

/* Slider */
#radiusSlider {
  -webkit-appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  outline: none;
  background: var(--border);
  cursor: pointer;
}
#radiusSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-light);
  cursor: grab;
  transition: box-shadow 0.2s;
}
#radiusSlider:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 4px var(--accent-light); }
#radiusSlider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
}

/* Search button */
.btn-search-main {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── FILTER BAR ──────────────────────────────────────── */
#filterBar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 90;
  background: var(--bg-filter);
  border-bottom: 1px solid var(--border-light);
  height: var(--filter-h);
}
.filter-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 28px 5px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b09aa8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}
.filter-select:focus { outline: none; border-color: var(--accent); }
.filter-select:focus-within { border-color: var(--accent); }

.filter-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 2px;
}

/* OSM toggle */
.btn-osm {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.osm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.2s;
}
.btn-osm.osm-on {
  border-color: #52a37a;
  color: #52a37a;
  background: rgba(82,163,122,0.08);
}
.btn-osm.osm-on .osm-dot { background: #52a37a; }

/* ── TAB BAR ─────────────────────────────────────────── */
#tabBar {
  position: fixed;
  top: calc(var(--header-h) + var(--filter-h));
  left: 0; right: 0;
  z-index: 80;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  height: var(--tab-h);
}
.tab-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

#favBadge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── BANNERS ─────────────────────────────────────────── */
#testBanner {
  display: none;
  position: fixed;
  top: var(--top-offset);
  left: 0; right: 0;
  z-index: 70;
  background: linear-gradient(90deg, #f0a000, #e87000);
  color: white;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  letter-spacing: 0.02em;
}

#freeBanner {
  position: fixed;
  top: var(--top-offset);
  left: 0; right: 0;
  z-index: 70;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  padding: 0;
  transition: opacity 0.3s, transform 0.3s;
}
#freeBanner.hidden { display: none; }
.free-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.free-banner-icon { font-size: 18px; flex-shrink: 0; }
.free-banner-text {
  flex: 1;
  color: white;
  min-width: 0;
}
.free-banner-text strong { font-size: 13px; font-weight: 700; display: block; }
.free-banner-text span   { font-size: 11px; opacity: 0.9; }
.free-banner-cta {
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}
.free-banner-cta:hover { background: rgba(255,255,255,0.35); }
.free-banner-close {
  color: white;
  opacity: 0.7;
  font-size: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.free-banner-close:hover { opacity: 1; }

/* ── RESULTS HEADER ──────────────────────────────────── */
#resultsHeader {
  padding-top: calc(var(--top-offset) + 12px);
  padding-inline: 16px;
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#resultCount {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
#cacheNote {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── MAIN LIST ───────────────────────────────────────── */
#list {
  padding: 0 12px 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ── CARD ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-sm);
  display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card:active { transform: scale(0.99); }

.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.card-photo-placeholder {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, var(--accent-bg), var(--border-light));
}

.card-body { padding: 12px 14px 14px; }

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
.card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fav-btn {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
  padding: 2px;
}
.fav-btn:hover { transform: scale(1.2); }
.fav-btn.fav-pop { animation: fav-pop 0.3s ease; }
@keyframes fav-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.card-cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cat-icon { font-size: 13px; }

.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-size: 13px;
}
.stars { color: var(--gold); letter-spacing: -1px; font-size: 12px; }
.rating-num { font-weight: 700; color: var(--text); }
.review-count { color: var(--text-muted); font-size: 11px; }
.no-rating { color: var(--text-muted); font-size: 12px; font-style: italic; }

.card-address {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

/* ── PILLS ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.pill-open   { background: rgba(82,163,122,0.12); color: #52a37a; }
.pill-closed { background: rgba(212,84,74,0.1);   color: #d4544a; }
.pill-osm    { background: rgba(100,130,200,0.12); color: #6482c8; }
.pill-price  { background: var(--accent-bg); color: var(--accent-dark); }
.pill-dist   { background: var(--bg-raised); color: var(--text-secondary); }

/* ── STATE (prazno/loading/greška) ───────────────────── */
.state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}
.state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.state h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; color: var(--text); }
.state p { font-size: 14px; color: var(--text-muted); max-width: 260px; margin: 0 auto; }

.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DRAWER ──────────────────────────────────────────── */
#drawerOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,5,10,0.5);
  z-index: 200;
  backdrop-filter: blur(3px);
}
#drawerOverlay.show { display: block; }

#drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 210;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  max-height: 88svh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(180,80,100,0.2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#drawer.open { transform: translateY(0); }

.drawer-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
}

#drawerContent { padding: 12px 20px 32px; }

.d-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.d-close:hover { background: var(--accent-bg); color: var(--accent); }

.d-photo {
  width: 100%; height: 200px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.d-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, var(--accent-bg), var(--border-light));
}

.d-cat-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 5px;
}
.d-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.d-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.d-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.d-link { color: var(--accent); }

.d-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 16px;
}
.d-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.d-stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.d-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.d-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-align: center;
  width: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 3px 12px rgba(201,99,122,0.3);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 5px 18px rgba(201,99,122,0.4); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 5px 12px; font-size: 12px; width: auto; }

/* WhatsApp button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 3px 12px rgba(37,211,102,0.25);
  fill: white;
}
.btn-whatsapp:hover { filter: brightness(1.08); box-shadow: 0 5px 18px rgba(37,211,102,0.35); }
.btn-whatsapp-locked {
  background: linear-gradient(135deg, #888, #666);
  box-shadow: none;
  opacity: 0.7;
}
.btn-whatsapp-locked:hover { filter: none; opacity: 0.85; }

.btn-fav-drawer.fav-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ── TOAST ───────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  transition: opacity 0.25s, transform 0.25s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── INSTALL BANNERS ─────────────────────────────────── */
#installBanner {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  left: 16px; right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  z-index: 400;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
#installBanner.show { transform: translateY(0); }
.install-icon img { width: 44px; height: 44px; border-radius: 10px; }
.install-text { flex: 1; }
.install-text strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.install-text span { font-size: 12px; color: var(--text-muted); }
#installBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  flex-shrink: 0;
}
#installClose {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
  padding: 4px;
}

#iosBanner {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  left: 16px; right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#iosBanner.show { opacity: 1; pointer-events: auto; }
#iosClose {
  position: absolute;
  top: 10px; right: 10px;
  color: var(--text-muted);
  font-size: 16px;
}
.ios-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ios-icon { width: 40px; height: 40px; border-radius: 9px; }
.ios-body strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 3px; }
.ios-body p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.ios-share-icon {
  display: inline-flex;
  vertical-align: middle;
  color: #007aff;
}
.ios-arrow {
  width: 14px; height: 14px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
  position: absolute;
  bottom: -8px; left: 50%;
  margin-left: -7px;
}

/* ── FOOTER ──────────────────────────────────────────── */
#appFooter {
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#appFooter a { color: var(--text-muted); }
#appFooter a:hover { color: var(--accent); }

/* ── AUTH PAGES ──────────────────────────────────────── */
.auth-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(160deg, var(--bg) 60%, var(--accent-bg) 100%);
}
.auth-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.auth-logo .logo-dot { color: var(--accent); }
.auth-tagline {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.form-group { margin-bottom: 14px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-muted); }

.auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(201,99,122,0.3);
  transition: filter 0.2s, box-shadow 0.2s;
}
.auth-submit:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(201,99,122,0.4); }

.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-link a { color: var(--accent); font-weight: 600; }

.form-error {
  background: rgba(212,84,74,0.1);
  border: 1px solid rgba(212,84,74,0.3);
  color: #d4544a;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.form-success {
  background: rgba(82,163,122,0.1);
  border: 1px solid rgba(82,163,122,0.3);
  color: #52a37a;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* ── LANDING PAGE ────────────────────────────────────── */
.landing-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(160deg, var(--bg) 50%, var(--accent-bg) 100%);
}
.landing-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}
.landing-logo .logo-dot { color: var(--accent); }
.landing-sub {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.landing-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(201,99,122,0.35);
  transition: all 0.2s;
}
.landing-cta:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,99,122,0.4); }

/* ── PLANS PAGE ──────────────────────────────────────── */
.plans-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}
.plans-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.plans-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }

.plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.plan-card.plan-pro {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(201,99,122,0.15);
}
.plan-card-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin-bottom: 20px; }
.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.plan-features li.disabled { color: var(--text-muted); opacity: 0.5; }
.plan-features li.disabled::before { content: '✕'; color: var(--text-muted); }

/* ── DESKTOP LAYOUT ──────────────────────────────────── */
@media (min-width: 600px) {
  #list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  #header, #filterBar, #tabBar { max-width: 900px; left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
  #resultsHeader { max-width: 900px; margin: 0 auto; }
  .card-photo { height: 180px; }
}
@media (min-width: 900px) {
  #list { grid-template-columns: repeat(3, 1fr); }
}

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ── UTILITIES ───────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── COOKIE CONSENT ──────────────────────────────────── */
#cookieConsent {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  left: 16px;
  right: 16px;
  z-index: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
  pointer-events: none;
  max-width: 600px;
  margin: 0 auto;
}
#cookieConsent.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.cc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}
.cc-icon { font-size: 22px; flex-shrink: 0; }
.cc-text { display: flex; flex-direction: column; gap: 1px; }
.cc-text strong { font-size: 13px; font-weight: 700; color: var(--text); }
.cc-text span   { font-size: 12px; color: var(--text-muted); }
.cc-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cc-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
}
.cc-link:hover { color: var(--accent); }
.cc-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cc-decline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.cc-decline:hover { border-color: var(--accent); color: var(--accent); }
.cc-accept {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 3px 12px rgba(201,99,122,0.3);
}
.cc-accept:hover { filter: brightness(1.08); }
