@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --red: #c1121f;
  --red-dark: #8b0d17;
  --red-deep: #3d0206;
  --red-accent: #e63946;
  --red-glow: rgba(193,18,31,0.35);
  --white: #ffffff;
  --off-white: #faf7f5;
  --cream: #f5ede8;
  --ink: #0e0a0b;
  --ink-soft: #2a1f22;
  --muted: #7a6568;
  --line: rgba(193,18,31,0.12);
  --line-light: rgba(255,255,255,0.1);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.14);
  --shadow-red: 0 32px 80px rgba(61,2,6,0.32);
  --shadow-card: 0 8px 40px rgba(14,10,11,0.08), 0 2px 8px rgba(14,10,11,0.04);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --nav-h: 80px;
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────
   SKIP LINK
────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--red); color: #fff; padding: .75rem 1rem;
  z-index: 9999; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ──────────────────────────────────────
   NAVBAR
────────────────────────────────────── */
.site-header { position: relative; overflow: hidden; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 52px);
  background: rgba(10,4,5,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background .4s var(--transition);
  overflow: visible;
}

.navbar.scrolled {
  background: rgba(10,4,5,0.92);
}

.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #fff;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.logo {
  width: 48px; height: 48px; object-fit: contain;
  border-radius: 50%; background: #fff;
  padding: 3px;
  box-shadow: 0 0 0 2px rgba(193,18,31,0.4);
  transition: box-shadow .3s;
}
.brand:hover .logo { box-shadow: 0 0 0 3px var(--red), 0 8px 24px rgba(193,18,31,0.3); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: .93rem; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: #fff;
  white-space: nowrap;
}
.brand-text span {
  font-size: .67rem; color: rgba(255,255,255,0.55);
  letter-spacing: .12em; text-transform: uppercase; margin-top: 3px;
  white-space: nowrap;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.72); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .22s var(--transition);
  position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.nav-links a.active {
  color: #fff; background: var(--red);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(193,18,31,0.4);
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; border-radius: var(--radius-sm);
  padding: 10px 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; font-size: .85rem;
  transition: all .2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.14); }

/* ──────────────────────────────────────
   HERO — INDEX
────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(20,4,6,0.94) 0%, rgba(140,10,20,0.78) 50%, rgba(20,4,6,0.88) 100%),
    url('header.png') center / cover no-repeat;
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(193,18,31,0.18), transparent),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(61,2,6,0.4), transparent);
  pointer-events: none;
}

/* Animated grid lines */
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  flex: 1; display: flex; align-items: center;
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: clamp(60px,8vh,120px) clamp(24px,5vw,64px);
  gap: 56px;
  position: relative; z-index: 2;
}

.hero-content { flex: 1; min-width: 0; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(193,18,31,0.2);
  border: 1px solid rgba(193,18,31,0.4);
  color: #ffadb2; border-radius: 999px;
  padding: 7px 16px; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-pill::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-accent);
  box-shadow: 0 0 8px var(--red-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  line-height: .94;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #ff6b7a, #e63946 40%, #fff 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-family: 'Geist', sans-serif; font-weight: 700; font-size: .88rem;
  letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 32px rgba(193,18,31,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  background: var(--red-accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(193,18,31,0.55);
}

.btn-secondary {
  background: transparent; color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.22);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; color: var(--red-dark);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,18,31,0.3);
}

.btn-ghost {
  background: transparent; color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--cream); color: var(--red-dark);
  border-color: rgba(193,18,31,0.25);
}

.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 20px rgba(193,18,31,0.35);
}
.btn-red:hover { background: var(--red-accent); transform: translateY(-2px); }

/* Hero Card */
.hero-aside {
  flex-shrink: 0; width: 340px;
  display: flex; flex-direction: column; gap: 16px;
}

.hero-card-main {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.hero-card-main .logo-large {
  width: 110px; height: 110px;
  border-radius: 50%; background: #fff; padding: 6px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 3px rgba(193,18,31,0.3), 0 16px 48px rgba(0,0,0,0.3);
}

.event-meta { display: flex; flex-direction: column; gap: 10px; }
.event-meta-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.event-meta-row .meta-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,0.4); font-weight: 700; flex-shrink: 0; padding-top: 2px;
}
.event-meta-row .meta-val {
  font-size: .88rem; color: rgba(255,255,255,0.85); font-weight: 600; line-height: 1.4;
}

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 18px 14px;
  text-align: center; backdrop-filter: blur(12px);
}
.stat-card b { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; line-height: 1; }
.stat-card span { font-size: .7rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .1em; margin-top: 5px; display: block; }

/* Hero bottom wave */
.hero-wave {
  position: relative; z-index: 3; line-height: 0;
  margin-top: -2px;
}
.hero-wave svg { display: block; width: 100%; }

/* ──────────────────────────────────────
   HERO COMPACT (inner pages)
────────────────────────────────────── */
.hero-compact {
  min-height: 380px;
  background:
    linear-gradient(160deg, rgba(20,4,6,0.96) 0%, rgba(120,8,16,0.85) 60%, rgba(20,4,6,0.92) 100%),
    url('header.png') center / cover no-repeat;
  display: flex; flex-direction: column;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero-compact::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-compact-inner {
  flex: 1; display: flex; align-items: center;
  max-width: 1280px; width: 100%; margin: 0 auto;
  padding: clamp(48px,6vh,80px) clamp(24px,5vw,64px) clamp(64px,8vh,100px);
  position: relative; z-index: 2;
}
.hero-compact h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.4rem,5vw,4.8rem);
  line-height: .96; letter-spacing: -.03em;
  color: #fff; margin: 16px 0 14px;
}
.hero-compact .lead {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  line-height: 1.7; max-width: 560px;
}

/* Wavy bottom */
.hero-compact-wave { position: relative; z-index: 3; line-height: 0; margin-top: -2px; }
.hero-compact-wave svg { display: block; width: 100%; }

/* ──────────────────────────────────────
   MAIN CONTENT
────────────────────────────────────── */
main {
  background: var(--off-white);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px,5vh,64px) clamp(24px,5vw,64px);
}

/* ──────────────────────────────────────
   CARDS
────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid rgba(193,18,31,0.08);
  border-radius: var(--radius-lg);
  padding: clamp(28px,4vw,52px);
  box-shadow: var(--shadow-card);
  position: relative;
  /* overflow removed — was clipping navbar brand text on mobile */
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-accent), var(--red));
  background-size: 200% 100%;
  animation: shimmer-bar 4s ease infinite;
}
@keyframes shimmer-bar {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

.card.flat { box-shadow: 0 4px 20px rgba(14,10,11,0.06); }
.card.flat::before { display: none; }
.card.rich::before { background: linear-gradient(90deg, var(--red-deep), var(--red-accent)); animation: none; }

/* Force legible text inside cards on ALL devices */
.card p, .card li { color: #3a3035 !important; }
.card h2 { color: #0e0a0b !important; }
.card h3 { color: #2a1f22 !important; }
.card h4 { color: #2a1f22 !important; }

/* ──────────────────────────────────────
   TYPOGRAPHY
────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--red); border-radius: 2px;
}

h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 18px;
}
h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 10px; margin-top: 28px;
}
h3:first-child { margin-top: 0; }
p { line-height: 1.82; color: #4a3f42; font-size: .97rem; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
.rich p { text-align: justify; }

/* ──────────────────────────────────────
   GRIDS
────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ──────────────────────────────────────
   INFO TILES
────────────────────────────────────── */
.info-tile {
  background: #fff;
  border: 1px solid rgba(193,18,31,0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(193,18,31,0.06);
  transition: all .3s var(--transition);
  position: relative; overflow: hidden;
}
.info-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(193,18,31,0.12);
  border-color: rgba(193,18,31,0.2);
}
.info-tile::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--transition);
}
.info-tile:hover::after { transform: scaleX(1); }

.info-tile .icon {
  font-size: 2rem; margin-bottom: 14px; display: block;
  filter: drop-shadow(0 4px 8px rgba(193,18,31,0.15));
}
.info-tile h3 {
  font-size: 1rem; font-weight: 700; color: var(--red-dark);
  margin: 0 0 8px;
}
.info-tile p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ──────────────────────────────────────
   NOTICE
────────────────────────────────────── */
.notice {
  background: linear-gradient(135deg, #fff5f5, #fff9f9);
  border: 1px solid rgba(193,18,31,0.15);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(193,18,31,0.06);
}
.notice h2 { font-size: 1.4rem; margin-bottom: 10px; color: var(--red-dark); }
.notice strong { color: var(--red-dark); }
.notice p { color: #5a4548; }

.mail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 24px;
  align-items: start;
}

.mail-test-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(193,18,31,.18);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s var(--transition), box-shadow .2s var(--transition);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--red-dark) 50%), linear-gradient(135deg, var(--red-dark) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(193,18,31,.6);
  box-shadow: 0 0 0 4px rgba(193,18,31,.1);
}

.form-field input::placeholder { color: #a68f93; }

.form-help {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.mail-status {
  display: none;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: .9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.mail-status.show { display: block; }
.mail-status.is-success {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}
.mail-status.is-error {
  background: #fff1f2;
  color: #8b0d17;
  border-color: rgba(193,18,31,.22);
}

.mail-guide {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.mail-guide ol {
  padding-left: 20px;
  margin: 14px 0 0;
}

.mail-guide li {
  color: #5a4548;
  line-height: 1.7;
  margin-bottom: 8px;
}

.mail-guide code,
.card code,
.form-help code {
  background: rgba(193,18,31,.08);
  color: var(--red-dark);
  border: 1px solid rgba(193,18,31,.12);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: .9em;
}

.mail-guide-note {
  margin-top: 16px;
  font-size: .9rem;
}

.portal-hero { min-height: 320px; }
.portal-section { display: grid; gap: 26px; }
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: start;
}
.portal-narrow { max-width: 760px; margin: 0 auto; width: 100%; }
.portal-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.portal-form { display: grid; gap: 20px; margin-top: 24px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-actions .btn[disabled],
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.portal-alert {
  border-radius: 10px;
  padding: 13px 14px;
  font-size: .9rem;
  line-height: 1.5;
  border: 1px solid rgba(193,18,31,.18);
  background: #fff6f6;
  color: var(--red-dark);
  margin: 0 0 18px;
}
.portal-alert.success {
  background: #f0fdf4;
  color: #14532d;
  border-color: #bbf7d0;
}
.portal-alert.error {
  background: #fff1f2;
  color: #8b0d17;
  border-color: rgba(193,18,31,.22);
}
.choice-group {
  border: 1px solid rgba(193,18,31,.14);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  background: #fffafa;
}
.choice-group legend {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-dark);
  padding: 0 8px;
}
.choice-group label,
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink-soft);
}
.choice-group input,
.inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}
.account-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.status-card {
  background: #fff;
  border: 1px solid rgba(193,18,31,.1);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.status-card span {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.status-card strong {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--red-dark);
  margin-bottom: 10px;
}
.status-card.status-ok { border-color: #bbf7d0; background: #f7fef9; }
.status-card.status-info { border-color: #bfdbfe; background: #f8fbff; }
.status-card.status-warn { border-color: #fed7aa; background: #fffaf3; }
.portal-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.action-tile {
  display: block;
  border: 1px solid rgba(193,18,31,.12);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  transition: all .2s var(--transition);
}
.action-tile:hover {
  border-color: rgba(193,18,31,.28);
  box-shadow: 0 10px 28px rgba(193,18,31,.09);
  transform: translateY(-2px);
}
.action-tile strong { display: block; color: var(--red-dark); margin-bottom: 6px; }
.action-tile span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.abstract-list { display: grid; gap: 12px; margin-top: 18px; }
.abstract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(193,18,31,.12);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.abstract-row strong { display: block; color: var(--ink); }
.abstract-row span { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.abstract-preview section { margin-top: 24px; }
.abstract-preview h3 { color: var(--red-dark) !important; }
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 4px;
}
.meta-strip span {
  border: 1px solid rgba(193,18,31,.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff7f7;
  color: var(--red-dark);
  font-weight: 700;
  font-size: .86rem;
}
.conditional[hidden] { display: none !important; }

/* ──────────────────────────────────────
   COUNTDOWN
────────────────────────────────────── */
.countdown {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px; margin-top: 24px;
}
.countdown .box {
  background: linear-gradient(135deg, var(--red-deep), var(--red-dark));
  border-radius: var(--radius);
  padding: 22px 12px; text-align: center;
  box-shadow: 0 8px 32px rgba(61,2,6,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.countdown .box::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 60%);
}
.countdown b {
  font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 900;
  color: #fff; display: block; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-size: .65rem; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,0.5); font-weight: 700;
  display: block; margin-top: 6px;
}

/* ──────────────────────────────────────
   CLEAN LIST
────────────────────────────────────── */
ul.clean {
  padding: 0; list-style: none; margin: 0; display: grid; gap: 10px;
}
ul.clean li {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  line-height: 1.7; font-size: .93rem; color: #4a3f42;
  padding-left: 44px; position: relative;
  transition: all .2s;
}
ul.clean li:hover { border-color: rgba(193,18,31,0.2); box-shadow: 0 4px 16px rgba(193,18,31,0.06); }
ul.clean li::before {
  content: '→';
  position: absolute; left: 16px; top: 16px;
  color: var(--red); font-weight: 800; font-size: .85rem;
}

/* ──────────────────────────────────────
   FEE TABLE
────────────────────────────────────── */
.fee-table {
  width: 100%; border-collapse: separate; border-spacing: 0 8px;
  margin-top: 8px;
}
.fee-table thead th {
  text-align: left; color: var(--muted);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; padding: 4px 20px 8px;
}
.fee-table tbody tr {
  transition: all .2s;
}
.fee-table tbody tr:hover td {
  background: #fdf0f1;
}
.fee-table td {
  background: #fff;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .93rem; color: var(--ink-soft);
}
.fee-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 600;
}
.fee-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: right; font-weight: 800;
  color: var(--red-dark); font-size: 1.05rem;
}

/* ──────────────────────────────────────
   TIMELINE
────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 20px; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 22px; top: 32px; bottom: 32px;
  width: 2px; background: linear-gradient(to bottom, var(--red), rgba(193,18,31,0.1));
}

.timeline-item {
  display: flex; gap: 24px;
  padding: 24px 24px 24px 0;
  position: relative;
}
.timeline-dot {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--red); border-radius: 50%;
  border: 3px solid var(--off-white);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem; font-weight: 800;
  box-shadow: 0 0 0 3px rgba(193,18,31,0.2);
  position: relative; z-index: 1;
}
.timeline-body {
  flex: 1;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(14,10,11,0.04);
  transition: all .25s;
}
.timeline-body:hover { box-shadow: 0 8px 32px rgba(193,18,31,0.1); border-color: rgba(193,18,31,0.18); }
.timeline-body time {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--red);
  display: block; margin-bottom: 6px;
}
.timeline-body h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.timeline-body p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ──────────────────────────────────────
   CONTACT LIST
────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 14px; margin-top: 24px;
}
.contact-person {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: all .25s var(--transition);
  box-shadow: 0 2px 12px rgba(14,10,11,0.04);
}
.contact-person:hover {
  border-color: rgba(193,18,31,0.2);
  box-shadow: 0 8px 32px rgba(193,18,31,0.08);
  transform: translateY(-2px);
}
.contact-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(193,18,31,0.25);
}
.contact-info { flex: 1; min-width: 0; }
.contact-info b { display: block; font-size: .88rem; font-weight: 700; color: var(--ink-soft); line-height: 1.3; }
.contact-info span { font-size: .82rem; color: var(--muted); margin-top: 3px; display: block; }
.contact-info a.phone {
  font-size: .82rem; color: var(--red-dark); font-weight: 600;
  display: flex; align-items: center; gap: 5px; margin-top: 3px;
  text-decoration: none; transition: color .2s;
}
.contact-info a.phone:hover { color: var(--red); }

/* ──────────────────────────────────────
   FOOTER
────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: clamp(40px,6vh,72px) clamp(24px,5vw,64px) 32px;
  margin-top: 0;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand { }
.footer-brand .f-logo {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 4px;
  margin-bottom: 16px;
}
.footer-brand h4 {
  font-size: 1rem; font-weight: 800; color: #fff;
  letter-spacing: .04em; margin-bottom: 6px;
}
.footer-brand p { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,0.45); margin: 0; }

.footer-col h5 {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: rgba(255,255,255,0.35); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .88rem; color: rgba(255,255,255,0.55);
  padding: 5px 0; transition: color .2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom small { font-size: .78rem; color: rgba(255,255,255,0.3); }
.footer-bottom .footer-links-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-links-inline a {
  font-size: .78rem; color: rgba(255,255,255,0.3);
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px; transition: all .2s;
}
.footer-links-inline a:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

/* Back to top */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0;
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 28px rgba(193,18,31,0.4);
  opacity: 0; transform: translateY(16px);
  transition: all .25s var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(193,18,31,0.5); }

/* ──────────────────────────────────────
   RESPONSIVE
────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; }
  .hero-aside { width: 100%; max-width: 500px; }
  .hero-stats { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(10,4,5,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 20px 24px;
    display: none; gap: 4px;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; font-size: .9rem; padding: 12px 14px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .countdown { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { display: none; }
  .mail-layout { grid-template-columns: 1fr; }
  .mail-guide { position: static; }
  .portal-grid,
  .account-top,
  .form-grid.two,
  .portal-actions-grid { grid-template-columns: 1fr; }
  .portal-side { position: static; }
  .abstract-row { align-items: flex-start; flex-direction: column; }
  .row-actions { justify-content: flex-start; }

  /* Legal pages tablet */
  .card { padding: 24px 20px; }
  .legal-body h3 { font-size: 1rem; }
  .legal-body ul { padding-left: 16px; }
  .cookie-table td, .cookie-table th { padding: 10px 12px; font-size: .82rem; }
}

@media (max-width: 560px) {
  .brand-text span { display: none; }
  .hero-compact h1 { font-size: 2rem; }
  .countdown { grid-template-columns: 1fr 1fr; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table td { display: block; width: 100%; }
  .fee-table thead { display: none; }
  .fee-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
  .fee-table td { border: 0 !important; border-radius: 0 !important; padding: 10px 16px; }
  .fee-table td:last-child { text-align: left; background: #fdf0f1; font-size: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Legal pages mobile */
  .card { padding: 20px 18px; }
  .legal-toc { padding: 18px 16px; }
  .legal-toc ol { padding-left: 16px; }
  .legal-toc ol li a { font-size: .82rem; }
  .ai-notice { padding: 14px 16px; }
  .cookie-table, .cookie-table thead, .cookie-table tbody,
  .cookie-table tr, .cookie-table td, .cookie-table th { display: block; width: 100%; }
  .cookie-table thead { display: none; }
  .cookie-table tr {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin-bottom: 10px;
    padding: 12px 14px; overflow: hidden;
  }
  .cookie-table td {
    border: 0 !important; border-radius: 0 !important;
    padding: 5px 0; font-size: .83rem; line-height: 1.55;
  }
  .cookie-table td:first-child {
    font-weight: 800; color: var(--red-dark);
    border-bottom: 1px solid var(--line) !important;
    padding-bottom: 8px; margin-bottom: 6px;
    border-radius: 0 !important;
  }
  .update-badge { font-size: .72rem; padding: 5px 12px; }
  h2 { font-size: 1.6rem; }
}

/* ──────────────────────────────────────
   ANIMATIONS
────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fade-up .7s var(--transition) both;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   NEW STRUCTURE CLASSES
   (used by cookies, confidentialitate, termeni, and rebuilt pages)
══════════════════════════════════════ */

/* Brand name — new navbar structure */
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name .title { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #ffffff; white-space: nowrap; display: block; }
.brand-name .subtitle { font-size: .6rem; color: rgba(255,255,255,.5); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; white-space: nowrap; display: block; }

/* Page wrap — pushes content below fixed navbar */
.page-wrap { padding-top: 80px; background: #faf7f5; min-height: 100vh; }

/* Hero compact — inner pages */
.hero-compact {
  background: linear-gradient(160deg, rgba(20,4,6,.96) 0%, rgba(120,8,16,.85) 60%, rgba(20,4,6,.92) 100%), url('header.png') center / cover no-repeat;
  color: #fff;
  padding: 52px clamp(20px,5vw,64px) 44px;
}
.hero-compact-inner { max-width: 1100px; margin: 0 auto; }
.hero-compact h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2rem,5vw,4rem); line-height: .97; letter-spacing: -.02em; color: #fff; margin: 12px 0 10px; }
.hero-compact .lead { font-size: .95rem; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 560px; }
.page-badge { display: inline-block; background: rgba(193,18,31,.3); border: 1px solid rgba(193,18,31,.5); color: #ffb3b8; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; margin-bottom: 14px; }

/* Content area */
.content-area { max-width: 1100px; margin: 0 auto; padding: 36px clamp(20px,5vw,64px) 56px; }

/* Card — new structure (same as .card but without ::before if needed) */
/* .card already defined above — reused */

/* Legal wrap */
.legal-wrap { max-width: 820px; }
.legal-wrap h2 { color: #0e0a0b; }
.legal-wrap h3 { font-size: 1.02rem; font-weight: 700; color: #8b0d17; margin-top: 28px; margin-bottom: 8px; }
.legal-wrap h4 { font-size: .96rem; font-weight: 700; color: #2a1f22; margin-top: 16px; margin-bottom: 6px; }
.legal-wrap p { color: #222222; font-size: .96rem; margin-bottom: 12px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 12px; }
.legal-wrap ul li { color: #222222; font-size: .94rem; line-height: 1.75; margin-bottom: .3rem; }
.legal-wrap strong { color: #111111; }
.legal-wrap a { color: #8b0000; font-weight: 600; }
.legal-wrap a:hover { text-decoration: underline; }

/* TOC box */
.toc-box { background: #fff8f8; border: 1px solid rgba(193,18,31,.15); border-radius: 8px; padding: 20px 24px; margin-bottom: 26px; }
.toc-box h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #888; font-weight: 700; margin-bottom: 12px; color: #888888; }
.toc-box ol { padding-left: 18px; }
.toc-box ol li { margin-bottom: 5px; }
.toc-box ol li a { font-size: .88rem; color: #8b0000; font-weight: 600; text-decoration: none; }
.toc-box ol li a:hover { text-decoration: underline; }

/* Date badge */
.date-badge { display: inline-block; background: #fff0f0; border: 1px solid rgba(193,18,31,.2); color: #8b0000; font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 3px; margin-bottom: 18px; }

/* Section tag */
.section-tag { font-size: .68rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #c1121f; display: block; margin-bottom: 8px; }

/* AI info box */
.ai-box { background: #f0f6ff; border: 1px solid rgba(59,130,246,.2); border-left: 4px solid #2563eb; border-radius: 6px; padding: 14px 18px; margin: 14px 0; }
.ai-box p { color: #1e3a5f; margin-bottom: 0; font-size: .93rem; }
.ai-box strong { color: #1d4ed8; }

/* Footer — new structure */
.footer { background: #0e0a0b; color: rgba(255,255,255,.65); padding: 44px clamp(20px,5vw,64px) 24px; border-top: 3px solid #c1121f; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 22px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; margin-bottom: 12px; }
.footer-brand h4 { font-size: .9rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.38); line-height: 1.65; }
.footer-col h5 { font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.3); font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; font-size: .84rem; color: rgba(255,255,255,.5); padding: 3px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom small { font-size: .74rem; color: rgba(255,255,255,.28); }
.footer-legal { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-legal a { font-size: .74rem; color: rgba(255,255,255,.35); padding: 3px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; transition: all .18s; }
.footer-legal a:hover { color: #fff; text-decoration: none; }

/* Cookie table */
.cookie-tbl { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cookie-tbl thead th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #666; font-weight: 700; padding: 8px 14px; border-bottom: 2px solid #e0e0e0; }
.cookie-tbl tbody tr { border-bottom: 1px solid #f0f0f0; }
.cookie-tbl td { padding: 12px 14px; font-size: .88rem; color: #222222; vertical-align: top; line-height: 1.6; }
.cookie-tbl td:first-child { font-weight: 700; color: #111111; white-space: nowrap; }
.ck-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: .67rem; font-weight: 700; }
.ck-needed  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ck-analytic{ background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.ck-func    { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }

/* Responsive additions for new structure */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-compact { padding: 44px 20px 36px; }
  .content-area { padding: 28px 20px 48px; }
}
@media (max-width: 560px) {
  .brand-name .subtitle { display: none; }
  .brand-name .title { font-size: .72rem; }
  .hero-compact h1 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .content-area { padding: 22px 16px 40px; }
  .toc-box { padding: 14px; }
  .cookie-tbl, .cookie-tbl thead, .cookie-tbl tbody, .cookie-tbl tr, .cookie-tbl td { display: block; width: 100%; }
  .cookie-tbl thead { display: none; }
  .cookie-tbl tr { border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 8px; background: #fff; padding: 12px; }
  .cookie-tbl td { border: none; padding: 3px 0; font-size: .84rem; color: #222222; white-space: normal; }
  .cookie-tbl td:first-child { font-weight: 800; color: #8b0000; padding-bottom: 7px; border-bottom: 1px solid #f0f0f0; margin-bottom: 6px; white-space: normal; }
}
