@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Outfit:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #0D0D12;
  --surface: #15151E;
  --surface2: #1C1C28;
  --surface3: #232333;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #EEEAF8;
  --muted: #A0A0C0;
  --dim: #7070A0;
  --accent: #6c63ff;
  --accent2: #A78BFA;
  --primary: #A78BFA;
  --primary-dark: #8B5CF6;
  --primary-light: #C4B5FD;
  --dark: var(--bg);
  --dark-mid: var(--surface);
  --dark-card: var(--surface);
  --dark-card2: var(--surface2);
  --white: var(--text);
  --green: #34D399;
  --orange: #FB923C;
  --yellow: #FBBF24;
  --border-hi: rgba(255,255,255,0.13);
  --radius: 14px;
  --glow: 0 0 40px rgba(167,139,250,0.2);
  /* RavenSharp brand palette */
  --rs-bg-1: #050914;
  --rs-bg-2: #0a1024;
  --rs-border: rgba(0,229,255,0.24);
  --rs-cyan: #06d6ff;
  --rs-purple: #8b5cf6;
  --rs-text: #f7fbff;
  --rs-muted: rgba(247,251,255,0.78);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  background: rgba(13,13,18,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg,#60A5FA,#A78BFA);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo span { color: var(--primary-light); }

nav {
  display: flex;
  gap: .1rem;
  align-items: center;
}
nav a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}
nav a:hover { background: var(--surface2); color: var(--text); }
nav a.active { color: var(--primary-light); font-weight: 600; }
.nav-sister {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border2);
  margin-left: .4rem;
  font-size: .78rem;
}
.nav-sister:hover { border-color: var(--primary); color: var(--text); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(13,13,18,0.98);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem 1rem;
  gap: .25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .6rem .75rem;
  border-radius: 8px;
  transition: all .15s;
}
.mobile-nav a:hover { background: var(--surface2); color: var(--text); }
.mobile-nav a.active { color: var(--primary-light); font-weight: 600; }
.mobile-nav .nav-sister {
  margin-left: 0;
  margin-top: .25rem;
  border: 1px solid var(--border2);
  font-size: .85rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.main-content { min-height: 70vh; padding: .75rem 0 2rem; position: relative; z-index: 1; }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  background: linear-gradient(135deg,var(--surface) 0%,#0d1829 100%);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle,rgba(167,139,250,.15) 0%,transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '📅';
  position: absolute;
  right: 2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 7rem;
  opacity: .04;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(167,139,250,.15);
  border: 1px solid rgba(167,139,250,.3);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}
.hero-badge::before { content: '●'; color: var(--green); font-size: .45rem; }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: .75rem;
}
.hero h1 em { font-style: italic; color: var(--primary-light); }
.date-display { font-size: clamp(1rem,2.5vw,1.35rem); font-weight: 600; color: rgba(238,234,248,.85); margin-bottom: 1rem; }
.date-meta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.date-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  color: rgba(238,234,248,.65);
}
.location-pill { background: rgba(167,139,250,.15); border-color: rgba(167,139,250,.35); color: var(--primary-light); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg,#60A5FA,#A78BFA);
  color: #fff;
  border: none;
  padding: .7rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
  font-family: inherit;
  transition: all .15s;
}
.copy-btn:hover { opacity: .88; transform: translateY(-1px); box-shadow: var(--glow); }
.copy-btn.copied { background: var(--green); }

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; flex: 1; min-width: 70px; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-lbl { font-size: .62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   TOOL GRID
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(148px,1fr));
  gap: .75rem;
  margin-bottom: 2rem;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem .875rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  font-size: .82rem;
  font-weight: 500;
}
.tool-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(167,139,250,.2); color: var(--primary-light); }
.tool-card .icon { font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.tool-card .tag { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .5px; color: var(--primary-light); background: rgba(167,139,250,.15); border-radius: 4px; padding: .1rem .4rem; margin-top: .3rem; }

/* ============================================================
   CALC CARD
   ============================================================ */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.calc-card h1 { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: .35rem; }
.calc-card .subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.input-row.single { grid-template-columns: 1fr; }
.input-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.input-group label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.input-group input, .input-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface2);
  transition: border-color .15s;
}
.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167,139,250,.15);
}
.input-group select option { background: var(--surface2); }
.checkbox-row { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); margin-bottom: 1rem; cursor: pointer; }
.checkbox-row input { width: auto; cursor: pointer; accent-color: var(--primary); }
.calc-btn {
  width: 100%;
  background: linear-gradient(135deg,#60A5FA,#A78BFA);
  color: #fff;
  border: none;
  padding: .9rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.calc-btn:hover { opacity: .88; box-shadow: var(--glow); }

/* ============================================================
   RESULT
   ============================================================ */
.result-box {
  margin-top: 1.5rem;
  background: rgba(167,139,250,.1);
  border: 1.5px solid rgba(167,139,250,.3);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  display: none;
}
.result-box.show { display: block; }
.result-box.orange { background: rgba(251,146,60,.1); border-color: rgba(251,146,60,.3); }
.result-box.green { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.result-num { font-family: 'Syne', sans-serif; font-size: 3.5rem; font-weight: 800; color: var(--primary-light); line-height: 1; }
.result-num.orange { color: var(--orange); }
.result-lbl { font-size: 1rem; color: var(--muted); margin-top: .25rem; }
.result-extras {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(167,139,250,.2);
  font-size: .85rem;
  color: var(--muted);
}
.result-extras.orange { border-top-color: rgba(251,146,60,.2); }
.result-copy {
  margin: .875rem auto 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: .5rem 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .825rem;
  font-weight: 600;
  transition: all .15s;
}
.result-copy:hover { border-color: var(--primary); color: var(--primary-light); }
.result-copy.copied { background: var(--green); border-color: var(--green); }

/* ============================================================
   INFO / FACT CARDS
   ============================================================ */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: .875rem; color: var(--text); }
.info-card p { color: var(--muted); font-size: .9rem; line-height: 1.75; margin-bottom: .6rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card a { color: var(--primary-light); }
.info-card ul { color: var(--muted); font-size: .9rem; line-height: 1.75; padding-left: 1.25rem; }
.info-card li { margin-bottom: .3rem; }
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.fact-label { font-size: .65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary-light); margin-bottom: .75rem; }
.fact-item { font-size: .875rem; color: var(--muted); margin-bottom: .4rem; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg,var(--surface) 0%,#0d1829 100%);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.4rem,3vw,2rem); font-weight: 800; margin-bottom: .35rem; letter-spacing: -.5px; }
.page-hero p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.cd-hero {
  background: linear-gradient(135deg,var(--surface) 0%,#0d1829 100%);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cd-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse,rgba(167,139,250,.12) 0%,transparent 70%);
  pointer-events: none;
}
.cd-emoji { font-size: 4rem; display: block; margin-bottom: .75rem; }
.cd-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 800; margin-bottom: .5rem; letter-spacing: -.5px; }
.cd-date { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.cd-blocks { display: flex; justify-content: center; gap: .875rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.cd-block {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  min-width: 85px;
  text-align: center;
}
.cd-num { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1; display: block; color: var(--primary-light); }
.cd-unit { font-size: .62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.cd-today { color: var(--green); font-size: 1.3rem; font-weight: 700; }
.cd-past { color: var(--yellow); font-size: .95rem; }
.share-btn {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: .6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  transition: all .15s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.share-btn.copied { background: var(--green); border-color: var(--green); }

/* ============================================================
   HOLIDAY / COUNTRY GRIDS
   ============================================================ */
.holiday-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: .875rem; margin-bottom: 2rem; }
.hol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  text-align: center;
  display: block;
}
.hol-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(167,139,250,.2); }
.hol-emoji { font-size: 2.25rem; display: block; margin-bottom: .4rem; }
.hol-name { font-weight: 700; font-size: .88rem; margin-bottom: .25rem; }
.hol-date { font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.hol-days { font-size: 1.6rem; font-weight: 800; color: var(--primary-light); }
.hol-days.past { color: var(--yellow); }
.hol-unit { font-size: .68rem; color: var(--muted); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: .875rem; margin-bottom: 2rem; }
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: .875rem;
}
.country-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.c-flag { font-size: 1.75rem; }
.c-name { font-weight: 600; font-size: .88rem; }
.c-sub { font-size: .73rem; color: var(--muted); }

/* ============================================================
   DATE / TERM CARDS
   ============================================================ */
.hdate-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: .75rem; margin: 1rem 0; }
.hdate-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: .875rem; }
.season-tag { font-size: .62rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--primary-light); margin-bottom: .35rem; }
.date-range { font-weight: 700; font-size: .9rem; color: var(--text); }
.date-dur { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.term-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.term-table th { background: var(--surface2); color: var(--muted); padding: .65rem 1rem; text-align: left; font-weight: 700; font-size: .65rem; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.term-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.term-table td:first-child { color: var(--text); }
.term-table tr:last-child td { border-bottom: none; }
.term-table tr:hover td { background: rgba(255,255,255,.02); }
.ttag { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: .18rem .5rem; border-radius: 4px; }
.ttag.t1 { background: rgba(167,139,250,.2); color: var(--primary-light); }
.ttag.t2 { background: rgba(52,211,153,.2); color: #6ee7b7; }
.ttag.t3 { background: rgba(245,158,11,.2); color: #fcd34d; }
.ttag.t4 { background: rgba(251,146,60,.2); color: #fdba74; }
.ttag.hol { background: rgba(239,68,68,.2); color: #fca5a5; }
.next-now { display: inline-flex; align-items: center; gap: .3rem; background: rgba(167,139,250,.15); border: 1px solid rgba(167,139,250,.3); border-radius: 5px; padding: .15rem .5rem; font-size: .65rem; color: var(--primary-light); margin-left: .4rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; background: var(--surface); }
.faq-q { width: 100%; background: none; border: none; padding: 1rem 1.25rem; font-family: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-q:hover { background: var(--surface2); }
.faq-arrow { font-size: .75rem; color: var(--muted); transition: transform .25s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.25rem 1rem; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.faq-a.open { display: block; }
.faq-a a { color: var(--primary-light); }

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface2);
  transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(167,139,250,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  background: linear-gradient(135deg,#60A5FA,#A78BFA);
  color: #fff;
  border: none;
  padding: .875rem 2rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.submit-btn:hover { opacity: .88; box-shadow: var(--glow); }

/* ============================================================
   ADS
   ============================================================ */
.ad-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  overflow: hidden;
}
.ad-label { font-size: .62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); margin-bottom: .5rem; }

/* ============================================================
   CALENDAR (printable)
   ============================================================ */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin-bottom: 1.5rem; }
.cal-header { background: var(--surface2); padding: .5rem; text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-day { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .4rem; min-height: 70px; cursor: pointer; transition: background .15s; }
.cal-day:hover { background: rgba(167,139,250,.06); }
.cal-day.today { background: rgba(167,139,250,.1); }
.cal-day-num { font-size: .8rem; font-weight: 700; margin-bottom: .25rem; }
.cal-day.other-month .cal-day-num { color: var(--dim); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-nav h2 { font-family: 'Syne', sans-serif; font-weight: 800; }
.cal-nav button { background: var(--surface2); border: 1px solid var(--border2); color: var(--text); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.cal-nav button:hover { border-color: var(--primary); }

/* ============================================================
   MOON PHASES
   ============================================================ */
.moon-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.moon-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.moon-emoji { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.moon-name { font-weight: 700; font-size: .88rem; margin-bottom: .25rem; }
.moon-date { font-size: .78rem; color: var(--muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: .85rem; font-weight: 700; margin-bottom: .875rem; color: var(--text); }
.sidebar-link { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; font-size: .82rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); transition: color .15s; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--primary-light); }
.sidebar-link .s-icon { font-size: 1rem; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h3 { font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text); margin-bottom: .875rem; }
.footer-col a { display: block; font-size: .82rem; color: var(--muted); text-decoration: none; padding: .2rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--dim);
}
.footer-bottom a { color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--muted); }

/* ============================================================
   RS BRAND STRIP (top bar)
   ============================================================ */
.rs-brand-strip {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 1.5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(90deg, rgba(5,12,28,.97), rgba(18,8,42,.95), rgba(5,12,28,.97));
  border-bottom: 1px solid rgba(0,229,255,.18);
  color: var(--rs-text);
  font-family: 'Outfit', sans-serif;
}
.rs-brand-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rs-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.rs-raven-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(0,207,255,.3);
  flex-shrink: 0;
}
.rs-brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.rs-brand-title strong {
  font-size: .82rem;
  font-weight: 700;
  color: var(--rs-text);
  letter-spacing: .02em;
}
.rs-brand-title span {
  font-size: .68rem;
  color: var(--rs-muted);
}
.rs-donate-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06d6ff, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .78rem;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(43,147,255,.25);
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   RS ABOUT STORY
   ============================================================ */
.rs-about-story {
  max-width: 860px;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(5,12,28,.98), rgba(20,12,46,.96));
  border: 1px solid rgba(0,229,255,.18);
  box-shadow: 0 12px 40px rgba(4,8,22,.2);
  font-family: 'Outfit', sans-serif;
  color: var(--rs-text);
}
.rs-about-hero {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1.75rem;
  display: block;
}
.rs-about-logos {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.rs-about-logos img {
  height: 64px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
}
.rs-about-story h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
  color: #f7fbff;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.rs-about-story h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f7fbff;
  margin: 1.75rem 0 .6rem;
  letter-spacing: -.2px;
}
.rs-about-story p {
  color: rgba(247,251,255,.85);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: .875rem;
}
.rs-about-story p:last-child { margin-bottom: 0; }
.rs-about-story ul {
  color: rgba(247,251,255,.82);
  font-size: .95rem;
  line-height: 1.75;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.rs-about-story li { margin-bottom: .4rem; }
.rs-about-story strong { color: #f7fbff; }
.rs-about-story blockquote {
  border-left: 3px solid var(--rs-cyan);
  padding: .75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(6,214,255,.06);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  font-style: italic;
  color: rgba(247,251,255,.92);
}

/* ============================================================
   RS DONATE PANEL
   ============================================================ */
.rs-donate-panel {
  max-width: 860px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(5,12,28,.97), rgba(26,14,54,.95));
  border: 1px solid rgba(0,229,255,.18);
  box-shadow: 0 12px 40px rgba(4,8,22,.18);
  text-align: center;
  font-family: 'Outfit', sans-serif;
}
.rs-donate-panel h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
}
.rs-donate-panel p {
  max-width: 620px;
  margin: 0 auto 1.25rem;
  color: rgba(247,251,255,.82);
  font-size: .92rem;
  line-height: 1.6;
}
.rs-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #06d6ff, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 0 20px rgba(6,214,255,.28);
  font-family: 'Outfit', sans-serif;
  transition: opacity .15s;
}
.rs-donate-button:hover { opacity: .88; }

/* ============================================================
   RS CROSS LINKS
   ============================================================ */
.rs-cross-links {
  max-width: 860px;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}
.rs-cross-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(6,214,255,.22);
  color: var(--rs-text);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all .15s;
}
.rs-cross-links a:hover { background: rgba(6,214,255,.12); border-color: rgba(6,214,255,.45); }

/* ============================================================
   RS CLEAN FOOTER
   ============================================================ */
.rs-clean-footer {
  max-width: 860px;
  margin: 1.5rem auto 0;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  color: rgba(232,238,247,.8);
}
.rs-clean-footer h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fbff;
  margin-bottom: .875rem;
}
.rs-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem .75rem;
  margin: 0 auto 1.25rem;
}
.rs-footer-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .5rem .5rem;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(232,238,247,.82);
  text-decoration: none;
  font-size: .78rem;
  text-align: center;
  transition: all .15s;
}
.rs-footer-grid a:hover { border-color: rgba(6,214,255,.35); color: #fff; background: rgba(6,214,255,.07); }
.rs-footer-meta {
  margin-top: .875rem;
  font-size: .72rem;
  color: rgba(232,238,247,.5);
}
.rs-footer-meta a {
  color: rgba(142,234,255,.75);
  text-decoration: none;
  margin: 0 .5rem;
  transition: color .15s;
}
.rs-footer-meta a:hover { color: #fff; }

/* ============================================================
   RS FOOTER BRAND
   ============================================================ */
.rs-footer-brand {
  width: 100%;
  padding: 2rem 1.5rem;
  background: #050914;
  border-top: 1px solid rgba(0,229,255,.12);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  color: #ecf7ff;
}
.rs-footer-brand img {
  width: min(200px, 64vw);
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px rgba(0,207,255,.15);
}
.rs-footer-brand strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #f7fbff;
  margin-bottom: .5rem;
}
.rs-footer-brand p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(236,247,255,.7);
  font-size: .85rem;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1050px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rs-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  nav { display: none; }
  .nav-toggle { display: flex; }
  
  .rs-about-story { padding: 1.5rem; }
  .rs-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .moon-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .input-row, .input-row.triple { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 1.75rem; }
  .hero::after { display: none; }
  .moon-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }
  .rs-about-logos img { height: 48px; }
  .rs-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .rs-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .site-header, .site-footer, .ad-wrap, aside { display: none; }
  body { background: white; color: black; }
  .calc-card, .info-card, .page-hero, .cd-hero { background: white; border-color: #ddd; }
  .cal-day { background: white; border-color: #ddd; min-height: 80px; }
  .cal-day-num, .cal-nav h2 { color: black; }
  .cal-header { background: #eee; color: #333; }
}
