/* ─── PanchangAI Design System ─── */

/* CSS Variables */
:root {
  --bg-deep: #07091A;
  --bg-card: #0f1129;
  --bg-card-hover: #161938;
  --navy: #0E1230;
  --navy-b: #1E2548;
  --gold: #C9A84C;
  --gold-light: #E4C472;
  --gold-pale: #F5E6B8;
  --saffron: #E8824A;
  --green: #2DC98A;
  --red: #E05B5B;
  --amber: #F0A500;
  --blue: #3498db;
  --white: #FFFFFF;
  --text: #e6e6fa;
  --text-secondary: #a0a0c0;
  --muted: #9099C4;
  --muted-dark: #6B75A8;
  --border: rgba(255,255,255,0.06);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for bottom nav */
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ─── Star Field Background ─── */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1px 1px at 20% 15%, rgba(201,168,76,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 8%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 30%, rgba(201,168,76,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 5%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 55%, rgba(201,168,76,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.4) 0%, transparent 100%);
}

/* ─── Top Navigation ─── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,9,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.top-nav .logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 700;
  color: var(--gold);
}
.top-nav .logo-icon { font-size: 20px; }
.top-nav .nav-right {
  display: flex; align-items: center; gap: 12px;
}
.top-nav .nav-link {
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s;
}
.top-nav .nav-link:hover { color: var(--gold-light); }
.top-nav .back-btn {
  font-size: 18px; color: var(--muted);
  padding: 4px 8px; border: none; background: none; cursor: pointer;
}
.top-nav .back-btn:hover { color: var(--gold); }
.top-nav .page-title {
  font-size: 14px; color: var(--muted); font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
}
.top-nav .page-icon-title {
  display: flex; align-items: center; gap: 8px;
}
.top-nav .page-icon-title .icon { font-size: 18px; }
.top-nav .page-icon-title .title {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600; color: var(--text);
}

/* ─── Bottom Navigation ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(7,9,26,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 4px 12px;
  color: var(--muted-dark); text-decoration: none;
  transition: color 0.2s;
  font-size: 10px; font-weight: 500;
}
.bottom-nav .nav-item .nav-icon { font-size: 20px; }
.bottom-nav .nav-item .nav-label { font-size: 10px; }
.bottom-nav .nav-item.active { color: var(--gold); }
.bottom-nav .nav-item:hover { color: var(--gold-light); }

/* ─── Main Content Area ─── */
.main-content {
  position: relative; z-index: 1;
  padding: 68px 16px 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
}
.card-hover:hover {
  background: var(--bg-card-hover);
}

/* ─── Section Headers ─── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px;
}
.section-header h3 {
  font-size: 13px; font-weight: 600;
  color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase;
}
.section-header .view-all {
  font-size: 12px; color: var(--gold);
}

/* ─── Score Ring (SVG) ─── */
.score-ring {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .score-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-ring .score-num {
  font-weight: 700; line-height: 1;
}
.score-ring .score-label {
  font-size: 8px; color: var(--muted);
  letter-spacing: 0.5px; text-transform: uppercase;
}

/* ─── Choghadiya Card Borders ─── */
.chog-card { border-left: 4px solid transparent; }
.chog-card.nature-best { border-left-color: var(--gold); }
.chog-card.nature-good { border-left-color: var(--green); }
.chog-card.nature-neutral { border-left-color: var(--blue); }
.chog-card.nature-avoid { border-left-color: var(--red); }

.chog-card.is-current {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  animation: pulse-border 2s ease-in-out infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 12px 2px rgba(201,168,76,0.15); }
}

/* ─── Status Icons ─── */
.status-icon { font-size: 16px; flex-shrink: 0; }
.status-icon.best { color: var(--gold); }
.status-icon.good { color: var(--green); }
.status-icon.neutral { color: var(--blue); }
.status-icon.avoid { color: var(--red); }

/* ─── Pill Badges ─── */
.pill {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  font-weight: 500;
}
.pill-gold { background: rgba(201,168,76,0.12); color: var(--gold-light); border: 1px solid rgba(201,168,76,0.3); }
.pill-green { background: rgba(45,201,138,0.12); color: var(--green); border: 1px solid rgba(45,201,138,0.3); }
.pill-red { background: rgba(224,91,91,0.12); color: var(--red); border: 1px solid rgba(224,91,91,0.3); }
.pill-blue { background: rgba(52,152,219,0.12); color: var(--blue); border: 1px solid rgba(52,152,219,0.3); }
.pill-muted { background: rgba(144,153,196,0.1); color: var(--muted); border: 1px solid rgba(144,153,196,0.2); }

/* ─── Inauspicious Warning Badges ─── */
.warn-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; padding: 2px 7px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.3px;
  background: rgba(224,91,91,0.12); color: var(--red);
  border: 1px solid rgba(224,91,91,0.25);
}
.warn-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* ─── Loading Spinner ─── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; color: var(--muted);
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--navy-b);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Location Selector ─── */
.location-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.location-bar .loc-icon { font-size: 16px; color: var(--gold); }
.location-bar .loc-name {
  flex: 1; font-size: 14px; color: var(--text);
  font-weight: 500;
}
.location-bar .loc-arrow { font-size: 12px; color: var(--muted); }

/* ─── City Search Modal ─── */
.city-modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.city-modal.active { display: flex; }
.city-modal-inner {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%; max-width: 400px;
  padding: 20px;
}
.city-search-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--navy-b);
  border-radius: 10px;
  color: var(--text); font-size: 15px;
  font-family: var(--font-body);
  outline: none;
}
.city-search-input:focus { border-color: var(--gold); }
.city-search-input::placeholder { color: var(--muted-dark); }
.city-results {
  max-height: 300px; overflow-y: auto;
  margin-top: 8px;
}
.city-result-item {
  padding: 12px 14px; cursor: pointer;
  border-radius: 8px; transition: background 0.15s;
  font-size: 14px; color: var(--text);
}
.city-result-item:hover { background: var(--bg-card); }
.city-result-item .city-sub {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}

/* ─── Date Strip ─── */
.date-strip-wrapper {
  position: relative;
  margin-bottom: 16px;
}
.date-strip {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 0; padding-right: 36px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; padding: 8px 14px;
  border-radius: 12px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.15s; min-width: 52px;
}
.date-chip:hover { border-color: rgba(201,168,76,0.3); }
.date-chip.active {
  background: var(--gold); border-color: var(--gold);
}
.date-chip .day-name {
  font-size: 10px; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
}
.date-chip.active .day-name { color: var(--bg-deep); }
.date-chip .day-num {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-top: 2px;
}
.date-chip.active .day-num { color: var(--bg-deep); }

.cal-icon-btn {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  font-size: 13px; color: var(--muted);
  transition: all 0.15s;
  z-index: 2;
}
.cal-icon-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Calendar Popup ─── */
.cal-popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.6);
  align-items: center; justify-content: center;
  padding: 24px;
}
.cal-popup-overlay.active { display: flex; }

.cal-popup {
  background: var(--bg-card);
  border: 1px solid var(--navy-b);
  border-radius: 16px;
  max-width: 340px; width: 100%;
  padding: 20px;
  position: relative;
}

.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-header .cal-month-label {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600; color: var(--text);
}
.cal-header .cal-nav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px;
  padding: 4px 8px; border-radius: 6px;
  transition: color 0.15s;
}
.cal-header .cal-nav-btn:hover { color: var(--gold); }

.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; margin-bottom: 8px;
}
.cal-weekdays span {
  text-align: center; font-size: 10px; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  padding: 4px 0;
}

.cal-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  text-align: center; padding: 8px 0;
  font-size: 14px; color: var(--text);
  border-radius: 8px; cursor: pointer;
  transition: all 0.15s;
  background: transparent; border: none;
  font-family: var(--font-body);
}
.cal-day:hover { background: var(--bg-card-hover); }
.cal-day.today {
  border: 1px solid var(--gold);
  color: var(--gold); font-weight: 600;
}
.cal-day.selected {
  background: var(--gold); color: var(--bg-deep);
  font-weight: 700;
}
.cal-day.other-month { color: var(--muted-dark); opacity: 0.4; }
.cal-day.empty { cursor: default; }

.cal-footer {
  display: flex; justify-content: center;
  margin-top: 12px;
}
.cal-today-btn {
  padding: 6px 20px;
  border-radius: 8px; cursor: pointer;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-size: 13px;
  font-weight: 600; font-family: var(--font-body);
  transition: all 0.15s;
}
.cal-today-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
}

/* ─── Utility ─── */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ─── Language Toggle ─── */
.lang-toggle {
  display: inline-flex; align-items: center;
  background: rgba(15,17,41,0.9);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 20px;
  padding: 2px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  gap: 0;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.lang-toggle .lt-en,
.lang-toggle .lt-hi {
  padding: 5px 10px;
  border-radius: 18px;
  color: var(--muted-dark);
  transition: background 0.25s ease, color 0.25s ease;
}
.lang-toggle .lt-hi {
  font-family: var(--font-hindi);
  font-size: 12px;
}
body.lang-en .lang-toggle .lt-en {
  background: var(--gold);
  color: var(--bg-deep);
}
body.lang-hi .lang-toggle .lt-hi {
  background: var(--gold);
  color: var(--bg-deep);
}
.lang-toggle:hover {
  border-color: rgba(201,168,76,0.4);
}

/* ─── Hindi Typography ─── */
body.lang-hi {
  font-family: var(--font-hindi), var(--font-body);
}
body.lang-hi .section-header h3 {
  letter-spacing: 0.3px;
  text-transform: none;
}
body.lang-hi .page-title {
  letter-spacing: 0.3px;
  text-transform: none;
}
body.lang-hi .limb-label,
body.lang-hi .pill,
body.lang-hi .score-label {
  letter-spacing: 0.3px;
  text-transform: none;
}

/* ─── Responsive (mobile-first, max 480px content) ─── */
@media (min-width: 481px) {
  .main-content {
    padding: 68px 24px 24px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    box-shadow: -1px 0 20px rgba(0,0,0,0.15), 1px 0 20px rgba(0,0,0,0.15);
  }

  /* Constrain navs to app column width */
  .top-nav {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .bottom-nav {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ─── Breadcrumbs ─── */
.breadcrumb {
  margin-bottom: 16px;
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 0;
  list-style: none; flex-wrap: wrap;
}
.breadcrumb li {
  font-size: 12px; color: var(--muted-dark);
}
.breadcrumb li + li::before {
  content: '›'; margin: 0 6px; color: var(--muted-dark);
}
.breadcrumb a {
  color: var(--muted); text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--text-secondary); }

/* ─── SEO Footer ─── */
.seo-footer {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.seo-footer h2 {
  font-family: var(--font-heading);
  font-size: 18px; font-weight: 600;
  color: var(--gold); margin-bottom: 12px;
}
.seo-footer h3 {
  font-size: 15px; font-weight: 600;
  color: var(--text); margin: 20px 0 8px;
}
.seo-footer p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 10px;
}

/* ─── FAQ Accordion ─── */
.faq-section { margin-top: 20px; }
.faq-section h3 {
  font-size: 15px; font-weight: 600;
  color: var(--gold); margin-bottom: 10px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px;
  background: none; border: none;
  color: var(--text); font-size: 13px;
  font-weight: 600; font-family: var(--font-body);
  cursor: pointer; text-align: left;
  line-height: 1.5;
}
.faq-question::after {
  content: '▾'; font-size: 14px; color: var(--muted);
  transition: transform 0.2s; flex-shrink: 0; margin-left: 10px;
}
.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 16px 14px;
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Top Cities Links ─── */
.top-cities { margin-top: 24px; }
.top-cities h3 {
  font-size: 13px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.city-links {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.city-links a {
  display: inline-block;
  font-size: 12px; padding: 4px 12px;
  border-radius: 999px;
  background: rgba(144,153,196,0.08);
  border: 1px solid rgba(144,153,196,0.15);
  color: var(--muted); text-decoration: none;
  transition: all 0.15s;
}
.city-links a:hover {
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ─── Hamburger Menu ─── */
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px; width: 28px; height: 28px;
  background: none; border: none; cursor: pointer;
  padding: 4px; flex-shrink: 0;
}
.hamburger-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger-btn:hover span { background: var(--gold); }

.hamburger-menu {
  position: fixed; top: 53px; left: 0; right: 0; z-index: 99;
  max-width: 480px; margin: 0 auto;
  background: rgba(14,18,48,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.hamburger-menu.open { max-height: 320px; }
.hamburger-menu a {
  display: block; padding: 14px 20px;
  color: var(--text); font-size: 14px; font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.hamburger-menu a:last-child { border-bottom: none; }
.hamburger-menu a:hover {
  background: rgba(201,168,76,0.06);
  color: var(--gold);
}
.hamburger-menu a .menu-icon {
  display: inline-block; width: 24px; margin-right: 8px;
  text-align: center;
}

/* ─── About Page ─── */
.about-hero {
  text-align: center; padding: 24px 0 8px;
}
.about-hero h1 {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.about-hero .tagline {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Developer Card — Royal Frame ─── */
.developer-card {
  position: relative;
  background: linear-gradient(145deg, #12091a 0%, #0f1129 40%, #0f1129 60%, #150a1c 100%);
  border: 2px solid #8b1a2b;
  border-radius: 6px;
  padding: 0; margin-top: 16px;
  text-align: center;
  box-shadow:
    0 0 30px rgba(201,168,76,0.12),
    0 0 60px rgba(201,168,76,0.05);
}
/* Inner frame */
.dev-inner-frame {
  margin: 10px;
  border: 1px solid rgba(139,26,43,0.5);
  border-radius: 3px;
  padding: 24px 18px;
}
/* Corner ornaments */
.corner-ornament {
  position: absolute;
  width: 28px; height: 28px;
  z-index: 2;
  pointer-events: none;
}
.corner-ornament::before,
.corner-ornament::after {
  content: '';
  position: absolute;
  background: #b22244;
}
/* L-shape arm horizontal */
.corner-ornament::before {
  width: 20px; height: 2px;
}
/* L-shape arm vertical */
.corner-ornament::after {
  width: 2px; height: 20px;
}
/* Dot at corner intersection */
.corner-ornament.tl { top: 5px; left: 5px; }
.corner-ornament.tl::before { top: 0; left: 0; }
.corner-ornament.tl::after { top: 0; left: 0; }
.corner-ornament.tr { top: 5px; right: 5px; }
.corner-ornament.tr::before { top: 0; right: 0; }
.corner-ornament.tr::after { top: 0; right: 0; }
.corner-ornament.bl { bottom: 5px; left: 5px; }
.corner-ornament.bl::before { bottom: 0; left: 0; }
.corner-ornament.bl::after { bottom: 0; left: 0; }
.corner-ornament.br { bottom: 5px; right: 5px; }
.corner-ornament.br::before { bottom: 0; right: 0; }
.corner-ornament.br::after { bottom: 0; right: 0; }

.developer-card .dev-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.3), 0 0 50px rgba(201,168,76,0.1);
}
.developer-card .dev-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.developer-card .dev-name {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.developer-card .dev-location {
  font-size: 13px; color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.developer-card .dev-bio {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.8;
}

.mission-section {
  margin-top: 24px;
}
.mission-section h2 {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 600;
  color: var(--gold); margin-bottom: 10px;
}
.mission-section p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7;
}

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 12px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px;
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: rgba(201,168,76,0.2); }
.feature-card .fc-icon {
  font-size: 24px; display: block; margin-bottom: 8px;
}
.feature-card .fc-title {
  font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 4px;
}
.feature-card .fc-desc {
  font-size: 11px; color: var(--muted);
  line-height: 1.5;
}

.pro-card {
  position: relative;
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(232,130,74,0.06) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  overflow: hidden;
}
.pro-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(201,168,76,0.12) 45%,
    rgba(201,168,76,0.2) 50%,
    rgba(201,168,76,0.12) 55%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.pro-card:hover {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 20px rgba(201,168,76,0.1);
}
.pro-card .fc-title { color: var(--gold-light); }
.pro-card .pro-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  color: var(--bg-deep);
  border: none;
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}

.contact-section {
  margin-top: 24px;
}
.contact-section h2 {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 600;
  color: var(--gold); margin-bottom: 12px;
}
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.contact-link:hover {
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
}
.contact-link .cl-icon { font-size: 18px; flex-shrink: 0; }

/* ─── Cookie Consent Banner ─── */
.consent-banner {
  position: fixed; bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0; z-index: 300;
  display: flex; justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.consent-inner {
  pointer-events: auto;
  max-width: 480px; width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.consent-text {
  flex: 1; font-size: 12px; color: var(--muted);
  line-height: 1.5;
}
.consent-text a {
  color: var(--gold); text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-btns {
  display: flex; gap: 8px; flex-shrink: 0;
}
.consent-accept {
  padding: 7px 14px; border-radius: 8px;
  background: var(--gold); color: var(--bg-deep);
  font-size: 12px; font-weight: 600;
  border: none; cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.consent-accept:hover { background: var(--gold-light); }
.consent-decline {
  padding: 7px 14px; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--muted-dark);
  cursor: pointer; font-family: var(--font-body);
  transition: all 0.15s;
}
.consent-decline:hover {
  border-color: var(--muted);
  color: var(--text-secondary);
}
@media (max-width: 360px) {
  .consent-inner { flex-direction: column; text-align: center; gap: 10px; }
  .consent-btns { width: 100%; justify-content: center; }
}

/* ─── Privacy Page ─── */
.privacy-hero {
  text-align: center; padding: 24px 0 8px;
}
.privacy-hero h1 {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: var(--gold); margin-bottom: 8px;
}
.privacy-hero .tagline {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}
.privacy-updated {
  font-size: 12px; color: var(--muted);
  text-align: center; margin-bottom: 20px;
}
.privacy-section {
  margin-bottom: 24px;
}
.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 600;
  color: var(--gold); margin-bottom: 10px;
}
.privacy-section h3 {
  font-size: 14px; font-weight: 600;
  color: var(--text); margin: 14px 0 6px;
}
.privacy-section p {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 8px;
}
.privacy-section ul {
  padding-left: 18px; margin-bottom: 8px;
}
.privacy-section ul li {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 4px;
}
.privacy-section a {
  color: var(--gold); text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-section blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 16px; margin: 12px 0;
  background: rgba(201,168,76,0.04);
  border-radius: 0 10px 10px 0;
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.7;
}
.privacy-reset-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 10px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold); font-size: 13px;
  font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all 0.15s;
  margin-top: 8px;
}
.privacy-reset-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
}
