/* =========================================================
   MİLLİ TAKIM × CCI NEXT — Head Swap Activation
   Dark hero (Index) + light internal pages
   ========================================================= */

:root {
  --tr-red: #E30A17;
  --tr-red-deep: #B0060F;
  --tr-red-dark: #7A040B;
  --tr-red-deeper: #4A0008;
  --tr-red-ink: #1A0003;
  --cc-red: #F40009;
  --white: #FFFFFF;
  --ink: #0E0E10;
  --ink-2: #2A2A2E;
  --muted: #6B6B72;
  --line: #ECECEF;
  --bg-soft: #FAF7F7;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 6px 24px rgba(180, 10, 20, 0.10);
  --shadow-strong: 0 18px 48px rgba(180, 10, 20, 0.25);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

a { color: var(--tr-red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container-x { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
@media (max-width: 720px) { .section { padding: 48px 0; } }

/* ---------- Header (internal pages only — hidden on .page-hero) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-row .logo-cci { height: 30px; width: auto; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-title b { color: var(--tr-red); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--tr-red); text-decoration: none; }
@media (max-width: 720px) { .site-nav { display: none; } }

body.page-hero .site-header { display: none; }

/* =========================================================
   HERO PAGE (Index) — DARK RED THEME
   ========================================================= */
body.page-hero {
  background:
    radial-gradient(ellipse at 50% 0%, #6A0008 0%, #2A0004 50%, #160003 100%);
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Chevron / arrow beam pattern overlay */
body.page-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    /* Vertical center beam */
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.08) 49.5% 50.5%, transparent 51%),
    /* Left chevrons */
    repeating-linear-gradient(135deg, transparent 0 30px, rgba(255, 60, 80, 0.06) 30px 32px, transparent 32px 60px),
    /* Right chevrons */
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(255, 60, 80, 0.06) 30px 32px, transparent 32px 60px);
  pointer-events: none;
  z-index: 0;
}
body.page-hero::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 60, 80, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, rgba(227, 10, 23, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 100% 70%, rgba(227, 10, 23, 0.12) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  max-width: 540px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .hero-wrap { max-width: 600px; padding: 48px 28px 56px; }
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
}
@media (min-width: 720px) {
  .hero-logo { width: 240px; margin-bottom: 36px; }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 10vw, 60px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-align: center;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  text-transform: uppercase;
  text-wrap: balance;
  word-spacing: 0.08em;
}
.hero-headline .accent {
  background: linear-gradient(180deg, #fff 0%, #ffd9dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
@media (min-width: 720px) { .hero-headline { font-size: 68px; margin-bottom: 18px; } }

.hero-tagline {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 500;
  margin: 0 0 26px;
  letter-spacing: 0.02em;
}
.hero-tagline::before,
.hero-tagline::after {
  content: "—";
  color: rgba(255, 255, 255, 0.4);
  margin: 0 10px;
}
.hero-headline .chev {
  display: inline-block;
  color: #fff;
  opacity: 0.9;
  margin: 0 6px;
  font-weight: 900;
}

/* Cards row — Gender picker */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 26px;
}
/* Pulse animation — only when nothing is selected yet */
.hero-cards:not(.has-selection) .mini-card {
  animation: mt-pulse 2.2s ease-in-out infinite;
}
.hero-cards:not(.has-selection) .mini-card:nth-child(2) {
  animation-delay: 1.1s;
}
@keyframes mt-pulse {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 0 rgba(255,255,255,0.0);
    border-color: rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 8px rgba(255,255,255,0.18);
    border-color: rgba(255, 255, 255, 0.95);
  }
}
.mini-card {
  position: relative;
  display: block;
  border-radius: 16px;
  cursor: pointer;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.mini-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}
.mini-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mini-card .card-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: var(--tr-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 8px 20px;
  border-radius: 999px;
  text-transform: uppercase;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mini-card:has(input[type="radio"]:checked) .card-label {
  background: #fff;
  color: var(--tr-red);
  transform: translate(-50%, -50%) scale(1.06);
}
.mini-card .check-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mini-card .check-mark::after {
  content: "";
  width: 7px;
  height: 13px;
  border: solid var(--tr-red);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-top: -3px;
}
.mini-card input[type="radio"]:checked ~ .check-mark {
  opacity: 1;
  transform: scale(1);
}
.mini-card:has(input[type="radio"]:checked) {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 18px 40px rgba(255, 30, 50, 0.4);
  transform: translateY(-3px);
}

/* Form */
.hero-form { width: 100%; }
.hero-field {
  position: relative;
  margin-bottom: 12px;
}
.hero-field .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  width: 18px;
  height: 18px;
}
.hero-field input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-family: inherit;
  text-transform: uppercase;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hero-field input::placeholder {
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero-field input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.hero-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF1A2A, #C8050F);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  text-transform: uppercase;
}
.hero-cta svg { width: 20px; height: 20px; }
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.hero-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.hero-cta svg { flex-shrink: 0; }

.hero-cta-hint {
  text-align: center;
  margin-top: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-style: italic;
}

/* Hidden file input — clicked programmatically by CTA */
.hidden-file { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* KVKK consent (hero) */
.hero-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 0 6px;
}
.hero-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.hero-consent input[type="checkbox"]:checked {
  background: #fff;
}
.hero-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid var(--tr-red);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.hero-consent label {
  flex: 1;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.hero-consent .info-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  font-family: "Times New Roman", serif;
  line-height: 1;
}
.hero-consent .info-btn:hover { background: rgba(255,255,255,0.15); }

.hero-validation {
  color: #FFCC50;
  font-size: 13px;
  text-align: center;
  margin: 14px 0 0;
  min-height: 18px;
}

/* Hero social bar */
.hero-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 6px;
}
.hero-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.hero-social a:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-social a svg { width: 18px; height: 18px; }

@media (max-width: 380px) {
  .hero-headline { font-size: 24px; }
  .hero-logo { width: 180px; margin-bottom: 24px; }
  .hero-cards { gap: 10px; margin-bottom: 22px; }
}

/* =========================================================
   CAMERA MODAL (full-screen overlay)
   ========================================================= */
.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-modal[hidden] { display: none !important; }
/* Several .cam-* rules below set `display: flex` (cam-shutter,
   cam-preview-actions, cam-overlay, cam-error). Class selectors share
   specificity with the UA `[hidden]` rule and we're declared later, so
   they win — JS toggling `el.hidden = true` becomes a visual no-op.
   This catch-all override restores the expected behavior for every
   child of the modal. */
.camera-modal [hidden] { display: none !important; }

.cam-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-video,
.cam-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}
.cam-video.flip { transform: scaleX(-1); }
.cam-canvas { display: none; }

/* Face framing guide */
.cam-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.cam-frame {
  width: min(70vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.6);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
  margin-bottom: 18px;
}
.cam-hint {
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0;
  text-align: center;
}

/* Top controls */
.cam-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), transparent);
}
.cam-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.1s ease;
}
.cam-icon-btn:hover { background: rgba(0,0,0,0.75); }
.cam-icon-btn:active { transform: scale(0.94); }
.cam-icon-btn svg { width: 22px; height: 22px; }

/* Bottom controls */
.cam-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 0 20px env(safe-area-inset-bottom) 20px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
  min-height: 140px;
}

.cam-shutter {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}
.cam-shutter::after {
  content: "";
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.cam-shutter:hover::after { background: var(--tr-red); }
.cam-shutter:active { transform: scale(0.94); }
.cam-shutter:disabled { opacity: 0.5; cursor: not-allowed; }

/* Preview-mode action bar */
.cam-preview-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}
.cam-preview-actions button {
  flex: 1;
  padding: 16px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid #fff;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, background 0.15s ease;
}
.cam-preview-actions button:active { transform: scale(0.97); }
.cam-retake {
  background: rgba(0,0,0,0.4);
  color: #fff;
}
.cam-retake:hover { background: rgba(0,0,0,0.7); }
.cam-accept {
  background: var(--tr-red);
  color: #fff;
  border-color: var(--tr-red);
  box-shadow: 0 8px 24px rgba(227, 10, 23, 0.5);
}
.cam-accept:hover { background: var(--tr-red-deep); border-color: var(--tr-red-deep); }

/* Error state */
.cam-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, #1A0003, #0a0001);
  color: #fff;
}
/* `display: flex` above wins over the UA `[hidden] { display: none }` rule
   because class selectors and attribute selectors share specificity. Without
   this override, errorBox.hidden = true had no visual effect — the modal kept
   showing the error UI on top of a perfectly working video stream. */
.cam-error[hidden] { display: none !important; }
.cam-error h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 10px;
}
.cam-error p { color: #C8C8CC; margin: 0 0 22px; max-width: 320px; font-size: 15px; line-height: 1.5; }
.cam-error button {
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--tr-red);
  color: #fff;
  border: 0;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.cam-error button:hover { background: var(--tr-red-deep); }
.cam-error-debug {
  margin-top: 20px !important;
  font-size: 11px !important;
  color: #6a6a72 !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  max-width: 380px !important;
  word-break: break-word;
}
.cam-error-debug:empty { display: none; }

@media (max-width: 380px) {
  .cam-frame { width: 80vw; }
}

/* Body scroll lock when camera is open */
body.camera-open { overflow: hidden; }

/* =========================================================
   GENERIC MODAL (KVKK info, etc.)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none !important; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 5, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: mt-fadein 0.18s ease;
}
@keyframes mt-fadein { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: mt-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes mt-pop {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-head {
  padding: 22px 56px 12px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.2;
}
.modal-head p { margin: 0; color: var(--muted); font-size: 14px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.modal-close:hover { background: var(--line); }
.modal-close:active { transform: scale(0.92); }
.modal-close:focus-visible { outline: 2px solid var(--tr-red); outline-offset: 2px; }

.modal-body {
  padding: 18px 26px 12px;
  overflow-y: auto;
  flex: 1;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.modal-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin: 18px 0 6px;
  color: var(--ink);
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body ul { padding-left: 20px; margin: 6px 0 10px; }
.modal-body li { margin-bottom: 4px; }
.modal-body p { margin: 8px 0; }
.modal-body a { color: var(--tr-red); font-weight: 600; }

.modal-actions {
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.modal-actions .full-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--tr-red);
}
.modal-actions .btn {
  padding: 10px 22px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .modal { padding: 0; }
  .modal-card {
    max-height: 100vh;
    border-radius: 18px 18px 0 0;
    margin-top: auto;
    animation: mt-slideup 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  }
  @keyframes mt-slideup {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .modal-head { padding: 20px 48px 10px 20px; }
  .modal-head h2 { font-size: 19px; }
  .modal-body { padding: 14px 20px 10px; font-size: 14.5px; }
  .modal-actions { padding: 14px 20px 18px; }
}

body.modal-open { overflow: hidden; }

/* =========================================================
   INTERNAL PAGES (Light theme)
   ========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--tr-red);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--tr-red);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--tr-red-deep); transform: translateY(-1px); box-shadow: var(--shadow-strong); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Section titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head { text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Processing ---------- */
.processing-stage {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 60px 24px;
}
.spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 6px solid rgba(227, 10, 23, 0.15);
  border-top-color: var(--tr-red);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 10px;
}
.processing-sub { color: var(--muted); }
.progress-status {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tr-red);
}

.form-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0,0,0,0.06);
}
@media (max-width: 640px) { .form-shell { padding: 24px; border-radius: var(--radius); } }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ---------- Result ---------- */
.result-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .result-wrap { grid-template-columns: 1fr; gap: 36px; } }

.result-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 3 / 4.4;
  background: #f0f0f0;
}
.result-card img { width: 100%; height: 100%; object-fit: cover; }

.result-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.result-share { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.share-btn:hover { border-color: var(--tr-red); color: var(--tr-red); transform: translateY(-2px); }

/* ---------- Legal pages ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 0;
}
.legal-wrap h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  line-height: 1.1;
}
.legal-wrap .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-wrap h3 {
  font-weight: 700;
  font-size: 17px;
  margin: 24px 0 10px;
}
.legal-wrap p, .legal-wrap li {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; }
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}
.legal-wrap th, .legal-wrap td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-wrap th { background: var(--bg-soft); font-weight: 700; }

/* ---------- Footer (internal pages) ---------- */
.site-footer {
  background: var(--ink);
  color: #C8C8CC;
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-grid a { color: #C8C8CC; font-size: 14.5px; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--white); text-decoration: none; }
.footer-brand p { color: #9B9BA1; font-size: 13.5px; max-width: 340px; }
.footer-brand .logo-cci {
  height: 32px; width: auto;
  margin-bottom: 16px;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #44444A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C8C8CC;
  transition: border-color 0.15s ease, color 0.15s ease;
  padding: 0;
}
.footer-social a:hover { border-color: #fff; color: #fff; text-decoration: none; }
.footer-social a svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid #29292E;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #6B6B72;
}
body.page-hero .site-footer { display: none; }

/* ---------- Cookie banner (compact, less invasive) ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(14, 14, 16, 0.92);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  display: none;
  font-size: 13.5px;
}
.cookie-banner.show {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: mt-fadein 0.25s ease;
}
.cookie-banner p { margin: 0; flex: 1; line-height: 1.4; color: #D8D8DC; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: 6px; flex-shrink: 0; }
.cookie-banner button {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.cookie-banner button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.cookie-banner .accept { background: var(--tr-red); color: #fff; }
.cookie-banner .accept:hover { background: var(--tr-red-deep); }
.cookie-banner .reject {
  background: transparent;
  color: #C8C8CC;
  border: 1px solid #3A3A40;
}
.cookie-banner .reject:hover { color: #fff; border-color: #6B6B72; }

@media (max-width: 520px) {
  .cookie-banner {
    flex-wrap: wrap;
  }
  .cookie-banner .actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--tr-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 12px; }

/* ---------- Focus rings (a11y) ---------- */
.btn:focus-visible,
.hero-cta:focus-visible,
.share-btn:focus-visible,
.cam-shutter:focus-visible,
.cam-icon-btn:focus-visible,
.cam-preview-actions button:focus-visible,
.site-nav a:focus-visible,
.footer-grid a:focus-visible,
.footer-social a:focus-visible,
.hero-social a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.hero-field input:focus-visible {
  outline: none;
}
.mini-card input[type="radio"]:focus-visible ~ .check-mark {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.4);
}
.info-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
