/* ═══════════════════════════════════════════════════════════════
   VIVERE BUSINESS COMMUNITY — stylesheet
   Fonts are the Google Fonts families Italiana, Cormorant Garamond
   and Inter, self-hosted in /assets/fonts (no request to Google:
   faster, and visitors' IP addresses are not shared with a third
   party). Italiana has no Cyrillic letters, so Bulgarian display
   headings use Cormorant Garamond.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fonts ─────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Italiana';
  src: url('../fonts/italiana-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-cyrillic-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ─── Design tokens ─────────────────────────────────────────────── */
:root {
  /* colour */
  --bg: #070f27;
  --bg-2: #06102e;            /* alternate section */
  --surface: #071233;         /* cards, panels */
  --surface-2: #071233;       /* raised controls */
  --gold: #B89A52;
  --gold-light: #D9BC7A;
  --gold-line: rgba(184, 154, 82, 0.30);
  --gold-faint: rgba(184, 154, 82, 0.09);
  --gold-ring: rgba(184, 154, 82, 0.22);
  --text: #EDE7DA;
  --text-soft: #C4BFB4;
  --muted: #8E8B85;
  --line: rgba(237, 231, 218, 0.08);
  --line-strong: rgba(237, 231, 218, 0.14);
  --danger: #EBA394;
  --danger-line: rgba(235, 163, 148, 0.55);

  /* geometry — one scale, used everywhere */
  --r-xl: 28px;   /* prominent containers: form panel, certificate */
  --r-lg: 20px;   /* cards */
  --r-md: 14px;   /* buttons, notices, menus */
  --r-sm: 12px;   /* form fields, chips */
  --r-xs: 7px;    /* checkboxes, tiny controls */

  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 60px -32px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 80px -40px rgba(0, 0, 0, 0.9);

  /* type */
  --font-display: 'Italiana', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* layout */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(96px, 12vw, 160px);
  --header-h: 64px;

  /* motion */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 0.18s;
  --t: 0.3s;

  color-scheme: dark;
}

/* ─── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(184, 154, 82, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--gold); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─── Logo ──────────────────────────────────────────────────────
   The original white-background logo, used unaltered. Its white disc
   reads as a deliberate emblem on the dark ground; a hairline ring
   and soft shadow seat it on the page without changing the artwork. */
.logo-mark {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px -10px rgba(0, 0, 0, 0.8);
}

/* ─── Type ──────────────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
  color: var(--text);
  text-wrap: balance;
}
/* Italiana has no Cyrillic letters: Bulgarian headings use Cormorant
   Garamond throughout so a line never mixes two typefaces. */
html[lang="bg"] .display {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-rule { width: 24px; height: 1px; background: var(--gold); opacity: 0.7; flex: none; border-radius: 1px; }

.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 34em;
}

.section-title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  margin-top: 18px;
}
.section-lead {
  color: var(--text-soft);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 32em;
}
.fine-print { font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }

.link-gold {
  color: var(--gold-light);
  text-decoration: none;
  border-radius: 4px;
  transition: color var(--t-fast) var(--ease);
}
.link-gold:hover { color: #E8D3A0; text-decoration: underline; text-underline-offset: 4px; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: var(--gold); color: #0B0A08; border-color: var(--gold);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -14px rgba(184, 154, 82, 0.6);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 36px -14px rgba(217, 188, 122, 0.65); }
.btn-outline { border-color: var(--gold-line); color: var(--gold-light); background: rgba(184, 154, 82, 0.04); }
.btn-outline:hover { border-color: var(--gold); background: var(--gold-faint); }
.btn-text { padding: 0 10px; color: var(--text-soft); background: transparent; }
.btn-text:hover { color: var(--gold-light); }
.btn-text .arrow { transition: transform var(--t) var(--ease-out); }
.btn-text:hover .arrow { transform: translateY(2px); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { cursor: progress; }
.btn[disabled]:active { transform: none; }

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(6, 6, 12, 0.9);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled, .site-header.menu-open {
    background: rgba(8, 8, 15, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; flex: none;
  border-radius: var(--r-md);
}
.brand img { width: 36px; height: 36px; }
.brand-word {
  font-family: 'Italiana', var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: -0.24em;
}

.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: inline-block;
  font-size: 0.875rem; color: var(--text-soft); text-decoration: none;
  padding: 8px 14px; border-radius: 10px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.primary-nav a:hover { color: var(--text); background: rgba(237, 231, 218, 0.06); }

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

/* segmented language control */
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px;
  background: rgba(237, 231, 218, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.lang-switch > span { display: none; }
.lang-switch button {
  background: none; border: 0; cursor: pointer;
  min-width: 38px; min-height: 30px; padding: 0 8px;
  border-radius: var(--r-xs);
  color: var(--muted);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease), background-color var(--t) var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: rgba(237, 231, 218, 0.12); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: rgba(237, 231, 218, 0.05);
  border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; position: relative;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  position: absolute; left: 50%; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text);
  transform: translateX(-50%);
  transition: transform var(--t) var(--ease-out), background-color var(--t-fast) var(--ease);
}
.menu-bars { top: 50%; margin-top: -0.75px; }
.menu-bars::before, .menu-bars::after { content: ''; left: 0; transform: none; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(5px) rotate(45deg); background: var(--text); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-5px) rotate(-45deg); background: var(--text); }

.mobile-menu { padding: 8px 0 20px; }
.mobile-menu nav { display: grid; gap: 12px; }
.mobile-menu ul {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 6px;
}
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 16px; border-radius: var(--r-md);
  font-size: 1.0625rem; text-decoration: none; color: var(--text);
}
.mobile-menu a:not(.btn):hover { background: rgba(237, 231, 218, 0.05); }

@media (max-width: 899px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions { gap: 10px; }
}
@media (max-width: 360px) { .brand-word { display: none; } }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 48px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 42% at 50% 30%, rgba(184, 154, 82, 0.10), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(30, 34, 70, 0.35), transparent 70%);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  width: clamp(72px, 9vw, 96px); height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 10px rgba(184, 154, 82, 0.05), 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  margin-bottom: 32px;
}
.hero .eyebrow-rule { display: none; }
.hero-title {
  margin-top: 20px;
  font-size: clamp(2.75rem, 1.4rem + 5.8vw, 6rem);
  max-width: 12em;
  line-height: 1.03;
}
html[lang="bg"] .hero-title { max-width: 13em; font-size: clamp(2.6rem, 1.35rem + 5.2vw, 5.5rem); }
.hero-lead { margin-top: 28px; margin-inline: auto; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }

.hero-meta {
  margin: clamp(56px, 9vh, 96px) auto 0;
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
}
.hero-meta li {
  font-size: 0.8125rem; color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(237, 231, 218, 0.025);
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn-gold { width: 100%; }
}

/* ─── Sections ──────────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; position: relative; }

/* Concept */
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.concept .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
.concept-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 8px clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
}
.concept-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.concept-item:first-child { border-top: 0; }
.concept-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; line-height: 1;
  color: var(--gold-light);
  margin-top: 2px;
}
.concept-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text);
}
.concept-item p { color: var(--text-soft); line-height: 1.65; max-width: 34em; }

.pull-quote {
  margin: clamp(72px, 10vw, 128px) auto 0;
  max-width: 820px;
  text-align: center;
}
.pull-quote::before {
  content: ''; display: block; margin: 0 auto 32px; width: 36px; height: 2px; border-radius: 2px;
  background: var(--gold);
}
.pull-quote p {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.3;
  color: var(--text);
  text-wrap: balance;
}

@media (max-width: 899px) {
  .concept-grid { grid-template-columns: 1fr; gap: 36px; }
  .concept .section-head { position: static; }
  .concept-item { grid-template-columns: 46px minmax(0, 1fr); padding: 26px 0; }
}

/* Pillars */
.pillars { background: var(--bg-2); }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px 72px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pillar {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.6vw, 34px);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
}
.pillar:hover { border-color: var(--gold-line); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pillar-num {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--gold-light);
  background: var(--gold-faint);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  padding: 4px 9px;
  font-variant-numeric: tabular-nums;
}
.pillar-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.625rem, 1.35rem + 0.7vw, 2rem);
  line-height: 1.15;
  margin: 22px 0 12px;
}
.pillar-text { color: var(--text-soft); line-height: 1.65; font-size: 1rem; }
.pillar-list { margin: 22px 0 0; display: grid; gap: 2px; }
.pillar-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: 0.9375rem; color: var(--text-soft); line-height: 1.5;
}
.pillar-list li::before {
  content: ''; position: absolute; left: 2px; top: 1.05em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); opacity: 0.85;
}
.pillar-note {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(237, 231, 218, 0.035);
  font-size: 0.875rem; line-height: 1.55;
  color: var(--muted);
}
.pillar > .pillar-list { margin-bottom: 24px; }

@media (max-width: 999px) {
  .section-head--split { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Recognition */
.recognition-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px); align-items: center;
}
.recognition-copy .section-lead { margin-top: 22px; }
.list-title {
  margin-top: 36px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--text);
}
.cert-list {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 4px 18px;
}
.cert-list li {
  padding: 13px 0; border-top: 1px solid var(--line);
  color: var(--text-soft); font-size: 0.9375rem;
  display: flex; gap: 14px; align-items: center;
}
.cert-list li:first-child { border-top: 0; }
.cert-list li::before {
  content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-faint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23D9BC7A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid var(--gold-line);
}
.recognition-copy .fine-print { margin-top: 18px; max-width: 36em; }
.status-note {
  margin-top: 20px;
  display: flex; gap: 12px; align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  background: var(--gold-faint);
  font-size: 0.875rem; line-height: 1.55; color: var(--text-soft);
}
.status-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-1px); }

.cert-wrap { margin: 0; }
.cert {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(184, 154, 82, 0.10), transparent 60%),
    linear-gradient(165deg, #151827, #0C0D17);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-xl);
  padding: clamp(10px, 1.4vw, 14px);
  box-shadow: var(--shadow-lift);
}
.cert-frame {
  min-height: clamp(240px, 30vw, 360px);
  border: 1px solid rgba(184, 154, 82, 0.2);
  border-radius: calc(var(--r-xl) - 10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(18px, 2.8vw, 30px) clamp(16px, 3vw, 32px) clamp(16px, 2.2vw, 24px);
}
.cert-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  background: var(--gold-faint); border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.75rem; font-weight: 500;
  padding: 5px 10px;
}
.cert-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cert-logo { width: clamp(34px, 4.4vw, 52px); height: auto; border-radius: 50%; }
.cert-org {
  margin-top: clamp(6px, 1vw, 10px);
  font-size: clamp(0.5rem, 0.42rem + 0.3vw, 0.65rem); letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.cert-kind {
  margin-top: clamp(6px, 1.2vw, 12px);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.7rem + 1.4vw, 1.8rem);
  line-height: 1.1;
}
html[lang="bg"] .cert-kind { font-family: var(--font-serif); }
.cert-presented {
  margin-top: clamp(4px, 0.8vw, 8px);
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.95rem); color: var(--muted);
}
.cert-name {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.15rem, 0.8rem + 1.4vw, 1.9rem);
  color: var(--gold-light);
  padding: 0 18px clamp(2px, 0.6vw, 6px);
  border-bottom: 1px solid var(--gold-line);
}
.cert-for {
  margin-top: clamp(4px, 0.8vw, 8px);
  font-size: clamp(0.56rem, 0.5rem + 0.3vw, 0.75rem);
  color: var(--text-soft); max-width: 30em;
}
.cert-foot {
  width: 100%;
  margin-top: clamp(14px, 2.4vw, 28px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding-top: clamp(6px, 1vw, 12px);
}
.cert-meta { margin: 0; display: flex; gap: clamp(10px, 2vw, 22px); text-align: left; }
.cert-meta dt { font-size: clamp(0.48rem, 0.42rem + 0.2vw, 0.6rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cert-meta dd { margin: 2px 0 0; font-size: clamp(0.56rem, 0.5rem + 0.25vw, 0.72rem); letter-spacing: 0.06em; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.cert-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--gold); }
.cert-qr svg { width: clamp(34px, 4.4vw, 54px); height: auto; padding: 4px; border-radius: 6px; background: rgba(184, 154, 82, 0.06); }
.cert-qr span { font-size: clamp(0.42rem, 0.38rem + 0.18vw, 0.55rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); max-width: 9em; line-height: 1.3; }

@media (max-width: 899px) {
  .recognition-grid { grid-template-columns: 1fr; }
  .cert-wrap { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .cert { border-radius: var(--r-lg); padding: 8px; }
  .cert-frame { border-radius: 13px; }
}

/* ─── Application ──────────────────────────────────────────────── */
.apply { background: var(--bg-2); }
.apply-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.apply-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.apply-intro .section-lead { margin-top: 22px; }
.apply-review {
  margin-top: 26px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.9375rem; line-height: 1.55; color: var(--text);
}
.apply-review::before {
  content: ''; flex: none; width: 3px; align-self: stretch; border-radius: 3px; background: var(--gold);
}
.privacy-box {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 0.875rem; line-height: 1.6; color: var(--muted);
}
.privacy-box a { display: inline-block; margin-top: 10px; font-size: 0.875rem; font-weight: 500; }

.apply-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-lift);
}

.form-required { font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }

.form-alert {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(235, 163, 148, 0.35);
  border-radius: var(--r-md);
  background: rgba(235, 163, 148, 0.08);
  color: #F3CFC6;
  font-size: 0.9375rem; line-height: 1.5;
}

.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label:not(.check), .field > legend {
  display: block; padding: 0;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.field--age input { max-width: 132px; }

input[type="text"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 1rem; /* ≥16px: no zoom on iOS */
  line-height: 1.45;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea { resize: vertical; min-height: 148px; }
input::placeholder, textarea::placeholder { color: rgba(237, 231, 218, 0.3); }
input:hover, textarea:hover { border-color: rgba(237, 231, 218, 0.24); }
input:focus, textarea:focus,
input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}

.field-hint { margin-top: 8px; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.field > legend + .field-hint { margin-top: -2px; margin-bottom: 12px; }
.field-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.field-counter { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; margin-top: 8px; }
.field-counter.is-over { color: var(--danger); }
.field-error {
  margin-top: 8px; font-size: 0.8125rem; line-height: 1.45; color: var(--danger);
  display: flex; gap: 8px; align-items: flex-start;
}
.field-error::before {
  content: '!'; flex: none;
  width: 16px; height: 16px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(235, 163, 148, 0.16); color: var(--danger);
  font-size: 0.6875rem; font-weight: 700;
}
.field.is-invalid input[type="text"], .field.is-invalid input[type="tel"],
.field.is-invalid input[type="number"], .field.is-invalid textarea { border-color: var(--danger-line); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(235, 163, 148, 0.18); }

/* segmented radio */
.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.segment, .chip { position: relative; cursor: pointer; }
.segment input, .chip input {
  position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.segment span {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 14px;
  border-radius: 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-soft);
  transition: color var(--t-fast) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.segment:hover span { color: var(--text); }
.segment input:checked + span {
  background: var(--surface-2); color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-line), 0 2px 8px rgba(0, 0, 0, 0.45);
}
.segment input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* interest chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.9rem; color: var(--text-soft);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.chip span::before {
  content: ''; width: 16px; height: 16px; flex: none;
  border: 1px solid rgba(237, 231, 218, 0.28);
  border-radius: 5px;
  background: center / 12px no-repeat;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover span { border-color: rgba(237, 231, 218, 0.26); color: var(--text); }
.chip input:checked + span { border-color: var(--gold-line); color: var(--text); background: var(--gold-faint); }
.chip input:checked + span::before {
  background-color: var(--gold); border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.4l2.6 2.6 5.8-6' fill='none' stroke='%230B0A08' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field.is-invalid .segmented, .field.is-invalid .chip span { border-color: var(--danger-line); }

/* checkboxes */
.field--check { margin-bottom: 18px; }
.field--check + .field--check { margin-top: -4px; }
.check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.875rem; line-height: 1.55; color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.check:hover { border-color: var(--line-strong); }
.check input {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin: 0;
  border: 1px solid rgba(237, 231, 218, 0.3);
  border-radius: var(--r-xs);
  background: var(--surface) center / 14px no-repeat;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.check input:checked {
  background-color: var(--gold); border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.4l2.6 2.6 5.8-6' fill='none' stroke='%230B0A08' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gold-ring); border-color: var(--gold); }
.check a { color: var(--gold-light); text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
.check a:hover { text-decoration-color: var(--gold-light); }
.field.is-invalid .check { border-color: var(--danger-line); }

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { margin-top: 8px; min-height: 54px; font-size: 1.0625rem; border-radius: var(--r-md); }
.spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(11, 10, 8, 0.2); border-top-color: #0B0A08;
  animation: spin 0.8s linear infinite;
}
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading { background: var(--gold); opacity: 0.88; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.apply-success { padding: clamp(8px, 2vw, 20px) 0; text-align: center; }
.apply-success::before {
  content: ''; display: block; margin: 0 auto 22px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold-faint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.4l4 4 8-9' fill='none' stroke='%23D9BC7A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  border: 1px solid var(--gold-line);
}
.apply-success .eyebrow-rule { display: none; }
.success-title { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem); margin: 14px 0 16px; }
.success-title:focus { outline: none; }
.success-text { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.65; max-width: 30em; margin-inline: auto; }
#success-join { margin-top: 32px; }
#success-join .fine-print { margin: 16px auto 0; max-width: 30em; }
#success-nolink {
  margin: 26px auto 0; max-width: 32em; padding: 14px 16px;
  border: 1px solid var(--gold-line); border-radius: var(--r-md);
  background: var(--gold-faint); color: var(--text-soft); font-size: 0.875rem;
}
.btn-whatsapp { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }

@media (max-width: 899px) {
  .apply-grid { grid-template-columns: 1fr; gap: 40px; }
  .apply-intro { position: static; }
}
@media (max-width: 480px) {
  .apply-panel { border-radius: var(--r-lg); padding: 22px 18px; }
  .btn-whatsapp { width: 100%; }
}

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-name { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.footer-tagline { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.footer-links { display: flex; gap: 4px; }
.footer-links a {
  display: inline-block; padding: 8px 12px; border-radius: 10px;
  font-size: 0.875rem; color: var(--text-soft); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.footer-links a:hover { color: var(--text); background: rgba(237, 231, 218, 0.06); }
.footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; margin-left: -12px; }
}

/* ─── Privacy page ─────────────────────────────────────────────── */
.legal { padding: calc(var(--header-h) + 64px) 0 var(--section-y); }
.legal-inner { max-width: 760px; }
.legal-back {
  display: inline-flex; align-items: center; padding: 8px 14px; margin-left: -14px;
  border-radius: 10px;
  font-size: 0.875rem; color: var(--text-soft); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.legal-back:hover { color: var(--text); background: rgba(237, 231, 218, 0.06); }
.legal-eyebrow { margin-top: 36px; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.5rem); margin: 18px 0 12px; }
.legal-updated { font-size: 0.875rem; color: var(--muted); }
.legal-intro { margin-top: 32px; font-size: 1.1875rem; line-height: 1.65; color: var(--text-soft); }
.legal-body {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(8px, 2vw, 16px) clamp(22px, 4vw, 40px) clamp(24px, 4vw, 36px);
}
.legal h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.25;
  margin: 0 0 10px; padding-top: 28px;
}
.legal h2 + p { margin-bottom: 4px; }
.legal p { color: var(--text-soft); line-height: 1.7; font-size: 1rem; }
.legal p a { color: var(--gold-light); text-underline-offset: 3px; }

/* ─── Reveal (only when JS is on and motion is allowed) ─────────── */
.can-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.can-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active, .pillar:hover { transform: none; }
  .spinner { animation: spin 1.6s linear infinite !important; }
}

@media print {
  .site-header, .apply-panel { display: none; }
  body { background: #fff; color: #000; }
}

/* ═══════════════════════════════════════════════════════════════
   MEMBER AREA (auth · apply · account · admin)
   Same tokens, radii and controls as the landing page.
   ═══════════════════════════════════════════════════════════════ */

/* header additions */
.header-signin {
  font-size: 0.875rem; color: var(--text-soft); text-decoration: none;
  padding: 8px 12px; border-radius: 10px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.header-signin:hover { color: var(--text); background: rgba(237, 231, 218, 0.06); }
@media (max-width: 899px) { .header-actions .header-signin { display: none; } }
.header-account { white-space: nowrap; }
@media (max-width: 420px) { .header-account { padding: 0 12px; } }

/* more input types share the field look */
input[type="email"], input[type="password"], input[type="search"], input[type="date"], select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 1rem; line-height: 1.45; color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
input[type="date"] { color-scheme: dark; min-height: 50px; }
select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23C4BFB4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
}
input[type="email"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="date"]:hover, select:hover { border-color: rgba(237, 231, 218, 0.24); }
input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="date"]:focus, select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-ring);
}
.field.is-invalid input[type="email"], .field.is-invalid input[type="password"] { border-color: var(--danger-line); }
input[type="file"] {
  width: 100%; font-size: 0.9375rem; color: var(--text-soft);
  padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--bg);
}
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--gold-line);
  background: var(--gold-faint); color: var(--gold-light); font: inherit; cursor: pointer;
}
input[type="file"]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* buttons */
.btn-light { background: #F4F1EA; color: #14140F; border-color: #F4F1EA; }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-danger { background: rgba(235, 163, 148, 0.12); color: #F3CFC6; border-color: rgba(235, 163, 148, 0.45); }
.btn-danger:hover { background: rgba(235, 163, 148, 0.2); }
.btn-outline .spinner, .btn-text .spinner { border-color: rgba(217, 188, 122, 0.25); border-top-color: var(--gold-light); }
.btn.is-loading .spinner { display: inline-block; }
.spinner--light { display: inline-block; border-color: rgba(237, 231, 218, 0.18); border-top-color: var(--gold-light); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-stack { display: grid; gap: 10px; margin-top: 28px; }

/* messages */
.form-note {
  margin-bottom: 20px; padding: 14px 16px;
  border: 1px solid var(--gold-line); border-radius: var(--r-md);
  background: var(--gold-faint); color: var(--text-soft);
  font-size: 0.9375rem; line-height: 1.55;
}
.form-note--ok { color: var(--text); }
.form-ok { font-size: 0.875rem; color: var(--gold-light); }
.loading-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9375rem; padding: 24px 0; }
.link-quiet { font-size: 0.8125rem; color: var(--muted); text-decoration: none; border-radius: 4px; }
.link-quiet:hover { color: var(--gold-light); }
.success-icon {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px;
  background: var(--gold-faint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.4l4 4 8-9' fill='none' stroke='%23D9BC7A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
  border: 1px solid var(--gold-line);
}

/* page frame */
.member-main { padding: calc(var(--header-h) + 48px) 0 var(--section-y); min-height: 80vh; }

/* auth */
.auth-main { padding: calc(var(--header-h) + 40px) 0 72px; min-height: 100vh; display: flex; align-items: flex-start; }
.auth-wrap { max-width: calc(480px + var(--gutter) * 2); }
.auth-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(26px, 5vw, 44px); box-shadow: var(--shadow-lift);
}
.auth-card > .eyebrow { margin-bottom: 18px; }
.auth-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 12px; }
.auth-title:focus { outline: none; }
.auth-lead { color: var(--text-soft); font-size: 1rem; line-height: 1.6; margin-bottom: 26px; }
.oauth { margin-bottom: 22px; }
.oauth .btn { gap: 12px; }
.divider-text {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  font-size: 0.8125rem; color: var(--muted);
}
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.label-row label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.consent { margin: -4px 0 20px; }
.consent a { color: var(--gold-light); }
.auth-switch { margin-top: 22px; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.auth-back { margin-top: 22px; text-align: center; }
.auth-panel .btn + .btn { margin-top: 10px; }

/* apply page */
.apply--page { padding-top: 0; background: transparent; }
.signed-in-as { margin-top: 22px; font-size: 0.875rem; color: var(--muted); }
.success-more { margin-top: 22px; }
.apply-already .btn { margin-top: 24px; }
.apply-steps .panel-title { margin-bottom: 18px; }
.steps { display: grid; gap: 14px; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--text-soft); line-height: 1.55; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-line); background: var(--gold-faint);
  font-size: 0.875rem; font-weight: 600; color: var(--gold-light);
}
.steps p { padding-top: 5px; }

/* panels & lists */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px); margin-top: 24px;
}
.panel-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin-bottom: 18px; }
.facts { display: grid; gap: 0; margin: 4px 0 20px; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: 0.8125rem; color: var(--muted); }
.facts dd { margin: 0; color: var(--text); font-size: 0.9375rem; overflow-wrap: anywhere; }
.facts--compact { margin: 12px 0 0; }
.facts--compact > div { padding: 8px 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.empty-state {
  margin-top: 24px; padding: 36px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--text-soft);
}
.empty-state .btn { margin-top: 18px; }
.empty-state .fine-print { margin-top: 8px; }
.item-list { display: grid; gap: 14px; margin-top: 24px; }
.item-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px;
}
.item-card > .btn { margin-top: 16px; }
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.item-meta { font-size: 0.8125rem; color: var(--muted); }
.status-pill, .kind-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text-soft);
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { color: var(--text-soft); }
.status-contacted { color: var(--gold-light); border-color: var(--gold-line); background: var(--gold-faint); }
.status-accepted { color: #A8D5B5; border-color: rgba(168, 213, 181, 0.4); background: rgba(168, 213, 181, 0.08); }
.status-declined { color: var(--danger); border-color: rgba(235, 163, 148, 0.4); background: rgba(235, 163, 148, 0.06); }
.kind-pill { color: var(--gold-light); border-color: var(--gold-line); background: var(--gold-faint); }
.item-details { margin-top: 12px; }
.item-details summary { cursor: pointer; font-size: 0.875rem; color: var(--gold-light); border-radius: 6px; width: max-content; }
.item-answer { margin-top: 10px; color: var(--text-soft); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.cert-card-title { font-family: var(--font-serif); font-weight: 500; font-size: 1.375rem; line-height: 1.25; margin-top: 12px; }
.cert-card-desc { margin-top: 6px; color: var(--text-soft); font-size: 0.9375rem; }
.cert-card.is-revoked { opacity: 0.72; }
.cert-card .button-row { margin-top: 14px; }

/* account layout */
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.account-nav ul { display: grid; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.account-nav a {
  display: block; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 0.9375rem; color: var(--text-soft); text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.account-nav a:hover { color: var(--text); background: rgba(237, 231, 218, 0.05); }
.account-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.account-nav-admin { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.account-nav-admin a { color: var(--gold-light); }
.account-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin: 14px 0 12px; }
.account-title:focus { outline: none; }
.account-section > .eyebrow + .account-title { margin-top: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.summary-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.summary-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.summary-value { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.25; color: var(--text); margin-bottom: 8px; }
@media (max-width: 899px) {
  .account-layout { grid-template-columns: 1fr; gap: 20px; }
  .account-nav { position: static; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav ul { display: flex; width: max-content; }
  .account-nav-admin { margin: 0 0 0 6px; padding: 0 0 0 6px; border-top: 0; border-left: 1px solid var(--line); }
  .account-nav a { white-space: nowrap; padding: 9px 14px; }
}
@media (max-width: 560px) { .summary-grid { grid-template-columns: 1fr; } .facts > div { grid-template-columns: 1fr; gap: 2px; } }

/* admin */
.admin-wrap { max-width: calc(860px + var(--gutter) * 2); }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.search-row .field { margin-bottom: 0; }
.search-row .btn { margin-top: 29px; }
.result-list { display: grid; gap: 8px; margin-top: 16px; }
.result-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg);
}
.result-item > div { min-width: 0; }
.result-item .item-meta { overflow-wrap: anywhere; }
.selected-member {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 22px; border: 1px solid var(--gold-line); border-radius: var(--r-md); background: var(--gold-faint);
}
.selected-name { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.revoke-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .field-grid, .search-row { grid-template-columns: 1fr; }
  .search-row .btn { margin-top: 0; }
}
