/* ============================================================
   Casting.kg — Design System v3
   Aesthetic: Warm editorial / cinema lobby
   Light, warm, premium, high-contrast
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Palette — warm cinema */
  --c-bg: #FAF7F2;
  --c-bg-alt: #F3EDE4;
  --c-surface: #FFFFFF;
  --c-ink: #1A1410;
  --c-ink-soft: #5C4F45;
  --c-ink-muted: #9B8E84;
  --c-line: #E8DFD3;
  --c-accent: #C4501E;          /* terracotta */
  --c-accent-soft: #F0D9CC;
  --c-accent-dark: #9A3E16;
  --c-gold: #B8860B;
  --c-success: #2D7A4E;
  --c-success-soft: #D4EBDD;
  --c-danger: #B33A3A;
  --c-info: #2E5C8A;
  --c-info-soft: #D4E2F0;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Shadow */
  --sh-card: 0 1px 3px rgba(26,20,16,.06), 0 1px 2px rgba(26,20,16,.04);
  --sh-hover: 0 8px 24px rgba(26,20,16,.10);
  --sh-float: 0 12px 40px rgba(26,20,16,.14);

  /* Spacing */
  --sp: clamp(16px, 4vw, 48px);
}

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

/* ---- Skip Link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -100%; left: 16px;
  background: var(--c-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent-dark); }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  padding: 0 var(--sp);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  color: var(--c-ink); letter-spacing: -.02em;
}
.navbar-brand span { color: var(--c-accent); }
.navbar-nav { display: flex; gap: 2px; list-style: none; }
.navbar-nav a {
  color: var(--c-ink-soft); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-sm); transition: all .15s;
}
.navbar-nav a:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.navbar-nav a.active { color: var(--c-accent); font-weight: 600; }

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--c-ink);
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.navbar-toggle:hover { background: var(--c-bg-alt); }
.navbar.menu-open .navbar-nav {
  display: flex; flex-direction: column;
  position: absolute; top: 60px; left: 0; right: 0;
  background: var(--c-surface); border-bottom: 1px solid var(--c-line);
  padding: 8px; gap: 0;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}
.navbar.menu-open .navbar-nav li { width: 100%; }
.navbar.menu-open .navbar-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-sm);
}
.navbar.menu-open .navbar-nav a:hover { background: var(--c-bg-alt); }

@media (max-width: 768px) {
  .navbar-inner { padding: 0; }
  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp); }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--sp); }
.section { padding: 48px 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}

/* ---- Hero v2 — asymmetric, editorial ---- */
.hero-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 48px;
  margin-bottom: 24px;
}
.hero-new-left { max-width: 520px; }
.hero-new-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--c-ink);
}
.hero-new-accent { color: var(--c-accent); }
.hero-new-sub {
  font-size: 16px;
  color: var(--c-ink-soft);
  margin-bottom: 32px;
  line-height: 1.5;
}
.hero-new-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-new-actions .btn { gap: 8px; }
.hero-new-tg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-ink-muted);
}
.hero-new-tg svg { color: var(--c-accent); flex-shrink: 0; }
.hero-new-tg a { font-weight: 600; color: var(--c-accent); }

.hero-new-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin-left: auto;
}
.hero-new-right .hero-photo:first-child {
  grid-row: span 2;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 3/4;
  background: var(--c-bg-alt);
}
.hero-photo:first-child {
  aspect-ratio: 3/5;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hero-photo:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .hero-new {
    grid-template-columns: 1fr;
    padding: 40px 0 32px;
  }
  .hero-new-right { display: none; }
  .hero-new-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Section headers ---- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.section-header-left { display: flex; align-items: baseline; gap: 12px; }
.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.section-count {
  font-size: 13px;
  color: var(--c-ink-muted);
  font-weight: 500;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}
.section-link:hover { color: var(--c-accent-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196,80,30,.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #d65622 0%, #8b3512 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(196,80,30,.32);
}
.btn-outline {
  background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-line);
}
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); background: rgba(196,80,30,.03); }
.btn-ghost {
  background: var(--c-surface); color: var(--c-ink);
  border: 1.5px solid var(--c-line);
  box-shadow: 0 2px 8px rgba(26,20,16,.05);
}
.btn-ghost:hover { background: var(--c-bg-alt); color: var(--c-accent); border-color: var(--c-accent-soft); transform: translateY(-1px); }
.btn-tg-light {
  background: #fff; color: #2AABEE;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.btn-tg-light:hover { background: #f7fbff; color: #229ED9; transform: translateY(-2px); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---- Home sections ---- */
.home-section {
  padding: 64px 0;
  border-top: 1px solid var(--c-line);
}
.home-section:first-of-type {
  border-top: none;
  padding-top: 48px;
}

/* ---- Actor Grid ---- */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}

.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,20,16,.08); }

/* Focus-visible for keyboard nav */
.btn:focus-visible,
.chip:focus-visible,
.navbar-nav a:focus-visible,
.actor-card a:focus-visible,
.cc-link:focus-visible,
.search-panel a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(196,80,30,.2); }
.btn-outline:active, .btn-ghost:active { background: var(--c-bg-alt); }

/* Smooth link transitions */
a { transition: color .15s, background .15s; }
.footer-links a { transition: color .15s, background .15s, transform .15s; }
.footer-links a:hover { color: var(--c-ink); transform: translateY(-1px); }

/* ---- Actor Card v5 — clean editorial ---- */
.actor-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
  position: relative;
}
.actor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--c-accent-soft);
}
.actor-card a { color: inherit; display: block; }
.actor-card .card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--c-bg-alt);
  overflow: hidden;
}
.actor-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.actor-card:hover img {
  transform: scale(1.03);
}
.actor-card .card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,20,16,.35) 100%);
  pointer-events: none;
}
.actor-card-info { padding: 16px; }
.actor-card-info strong {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
  display: block;
  letter-spacing: -.01em;
}
.actor-card-info p {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.45;
}

.actor-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--c-ink-soft);
  margin-bottom: 10px;
}
.actor-card-city {
  font-weight: 500;
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.actor-card-city::before {
  content: '';
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235C4F45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}
.actor-card-extra {
  display: flex; gap: 12px;
  font-size: 13px; color: var(--c-ink-muted);
}
.actor-card-extra span {
  display: inline-flex; align-items: center; gap: 3px;
}
.actor-card-verified {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.92);
  color: var(--c-success);
  border-radius: var(--r-full);
  width: 28px; height: 28px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 13px;
  box-shadow: var(--sh-card);
  z-index: 2;
}

/* ---- Actor Grid ---- */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.search-header h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin: 0;
}
.search-count {
  font-size: 14px; color: var(--c-ink-muted); font-weight: 500;
}

/* ---- Filter Bar — desktop inline, mobile accordion ---- */
.filter-bar {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--sh-card);
}
.filter-toggle {
  display: none;  /* hidden on desktop */
  align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 16px;
  background: var(--c-bg-alt); border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; color: var(--c-ink);
  cursor: pointer;
}
.filter-toggle::after {
  content: "▼"; font-size: 10px; color: var(--c-ink-muted);
  transition: transform .2s;
}
.filter-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

.filter-fields {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.filter-field {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 120px; flex: 1 1 140px;
}
.filter-field label {
  font-size: 11px; font-weight: 600; color: var(--c-ink-muted);
  text-transform: uppercase; letter-spacing: .03em;
}
.filter-field select, .filter-field input {
  padding: 8px 10px;
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font-size: 13px; font-family: var(--font-body);
  background: var(--c-bg); color: var(--c-ink);
  outline: none; transition: border-color .15s;
}
.filter-field select:focus, .filter-field input:focus {
  border-color: var(--c-accent);
}
.filter-submit {
  padding: 8px 20px; border-radius: var(--r-full);
  background: var(--c-accent); color: #fff;
  font-size: 13px; font-weight: 600; border: none;
  cursor: pointer; transition: all .15s;
}
.filter-submit:hover { background: var(--c-accent-dark); }

/* Mobile accordion */
@media (max-width: 768px) {
  .filter-toggle { display: flex; }
  .filter-fields {
    display: none;
    padding-top: 12px; margin-top: 12px;
    border-top: 1px solid var(--c-line);
  }
  .filter-fields.open { display: flex; }
  .actor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .actor-card-info strong { font-size: 13px; letter-spacing: 0; }
}

/* ---- Filter chips ---- */
.filter-chips {
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  text-decoration: none;
  transition: all .15s;
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-1px); }
.chip:active { transform: translateY(0); }
.chip.active { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ---- Casting Cards ---- */
.casting-list { display: grid; gap: 16px; }
.casting-list > a { color: inherit; text-decoration: none; }
.casting-list > a:hover { color: inherit; }
.casting-card {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-card);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.casting-card:hover { transform: translateY(-3px); box-shadow: var(--sh-hover); border-color: var(--c-accent-soft); }
.casting-card > h3 { padding: 20px 24px 4px; font-family: var(--font-display); font-size: 18px; color: var(--c-ink); }
.casting-card > p { padding: 0 24px 20px; }
.cc-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cc-type-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 12px;
  background: var(--c-bg-alt);
  border-right: 1px solid var(--c-line);
}
.cc-type-text {
  width: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  color: var(--c-ink-soft);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 8px 4px;
  min-height: 48px;
}
.cc-type-col .badge { font-size: 12px; background: var(--c-surface); color: var(--c-ink-soft); padding: 2px 8px; }
.cc-status {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-success);
  background: var(--c-success-soft);
}
.cc-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cc-body { padding: 22px 24px; position: relative; }
.cc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cc-header h2 { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--c-ink); margin: 0; padding-right: 80px; letter-spacing: -.01em; }
.cc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cc-desc { font-size: 14px; color: var(--c-ink-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-meta > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-ink-soft); background: var(--c-bg); padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--c-line); }
.cc-icon { width: 14px; height: 14px; fill: currentColor; opacity: .7; flex-shrink: 0; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cc-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; color: var(--c-ink-soft); background: var(--c-bg); border: 1px solid var(--c-line); }
.cc-tag::before { content: '•'; margin-right: 4px; color: var(--c-accent); }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  text-transform: none;
}

/* ---- Badge Skills ---- */
.badge-skill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  background: var(--c-bg-alt); color: var(--c-ink-soft);
  margin: 2px;
}

/* ---- Filters ---- */
.filters {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px; align-items: center;
}
.filters select, .filters input {
  padding: 8px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: 14px; font-family: var(--font-body);
  background: var(--c-surface); color: var(--c-ink);
  outline: none; transition: border-color .15s;
}
.filters select:focus, .filters input:focus { border-color: var(--c-accent); }
.filters label { font-size: 13px; color: var(--c-ink-muted); font-weight: 500; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-ink-muted); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--c-accent); }
.search-input { width: 100%; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-bg); font-size: 14px; font-family: var(--font-body); }

/* ---- Search panel ---- */
.search-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--sh-card);
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
}
@media (max-width: 900px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .search-grid { grid-template-columns: 1fr; gap: 14px; }
  .search-field.search-range .range-row { grid-template-columns: 1fr 24px 1fr; }
  .search-actions { flex-direction: column; }
  .search-actions .btn { width: 100%; justify-content: center; }
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-muted);
  letter-spacing: 0.02em;
  text-transform: none;
}
.search-field input,
.search-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg);
  font-size: 14px;
  color: var(--c-ink);
  box-sizing: border-box;
}
.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(201, 86, 38, 0.12);
}
.search-field.search-range .range-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.search-field.search-range .range-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--c-ink-muted);
}
.search-field.search-range .range-labels span { text-align: center; }
.search-field.search-range .range-labels span:first-child { text-align: left; }
.search-field.search-range .range-labels span:last-child { text-align: right; }
.range-sep { color: var(--c-ink-muted); font-size: 14px; }
.search-toggle { align-self: end; padding-bottom: 8px; }
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.toggle-label input { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: var(--c-ink-muted);
  border-radius: var(--r-full);
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-label input:checked + .toggle-track { background: var(--c-accent); }
.toggle-label input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-text { font-size: 13px; color: var(--c-ink); text-transform: none; }
.search-actions { display: flex; gap: 8px; align-items: end; }
.btn-text {
  background: transparent;
  color: var(--c-ink-muted);
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  text-decoration: underline;
}
.btn-text:hover { color: var(--c-accent); background: var(--c-bg-alt); }

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.results-toolbar .muted { font-size: 14px; }

/* ---- Pagination ---- */
.pagination {
  display: flex; gap: 4px; justify-content: center;
  margin-top: 32px;
}
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  background: var(--c-surface);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-1px); }
.pagination a:active { transform: translateY(0); }
.pagination a.active { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ---- Profile ---- */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
}
.profile-sidebar {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: 28px;
  box-shadow: var(--sh-card);
  position: sticky; top: 80px; align-self: start;
}
.profile-photo-wrap {
  position: relative;
  margin-bottom: 16px;
}
.profile-photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--c-bg-alt);
}
.profile-verified-badge {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-success);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  box-shadow: var(--sh-card);
}
h1.profile-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: -.015em;
}
.profile-brief {
  font-size: 13px; color: var(--c-ink-soft);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
}
.profile-action {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}
.profile-table {
  width: 100%; font-size: 14px;
  border-collapse: collapse;
  margin-top: 16px;
  line-height: 1.5;
}
.profile-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.profile-table tr:last-child td { border-bottom: none; }
.profile-table td:first-child { color: var(--c-ink-muted); width: 35%; }
.profile-table td:last-child { font-weight: 500; }

.profile-section {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--sh-card);
}
.profile-section h2 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}

.profile-empty {
  text-align: center;
  color: var(--c-ink-muted);
  padding: 32px 24px;
}
.profile-empty-icon { font-size: 40px; margin-bottom: 8px; }
.profile-empty h2 { border-bottom: none; margin-bottom: 8px; }
.profile-empty p { font-size: 14px; }

/* Skill list */
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Profile gallery */
.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--c-bg-alt);
  box-shadow: var(--sh-card);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Data table */
.data-table {
  width: 100%; font-size: 13px;
  border-collapse: collapse;
}
.data-table th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--c-ink-muted);
  border-bottom: 2px solid var(--c-line);
  font-weight: 700;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--c-bg-alt); }

/* ---- Forms ---- */
.form-section {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: 28px;
  max-width: 440px; margin: 0 auto;
  box-shadow: var(--sh-card);
}
.form-section h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -.015em;
}

.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--c-ink-soft); margin-bottom: 4px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: 14px; font-family: var(--font-body);
  background: var(--c-bg); color: var(--c-ink);
  outline: none; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--c-accent); }

/* ---- How It Works (deprecated, kept for compat) ---- */
.how-it-works { display: none; }
.steps-grid { display: none; }
.step { display: none; }

/* ---- Divider ---- */
.divider { display: flex; align-items: center; gap: 16px; text-align: center; margin: 24px 0; color: var(--c-ink-muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* ---- Telegram Login Button ---- */
.btn-tg {
  display: inline-flex; align-items: center; gap: 10px;
  background: #2AABEE; color: #fff;
  padding: 14px 28px; border-radius: var(--r-md);
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: all .2s;
}
.btn-tg:hover { background: #229ED9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(42,171,238,.3); }
.btn-tg::before { content: "✈️"; font-size: 20px; }

/* ---- Auth form ---- */
.auth-form { max-width: 420px; margin: 48px auto; padding: 32px; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.auth-form h1 { font-family: var(--font-display); font-size: 24px; margin-bottom: 24px; text-align: center; }
.auth-form .form-section { margin-bottom: 20px; }
.auth-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--c-ink-soft); }
.auth-form input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--c-line); border-radius: var(--r-md); font-size: 15px; font-family: inherit; transition: border-color .2s; }
.auth-form input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.auth-form button { width: 100%; margin-top: 8px; }
.auth-form .center { text-align: center; }
.auth-form .mt-2 { margin-top: 16px; font-size: 14px; }

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .auth-form { margin: 24px 16px; padding: 24px; }
  .actor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .actor-card-info strong { font-size: 13px; letter-spacing: 0; }
  .filters { flex-direction: column; gap: 12px; }
  .filters div { width: 100%; }
  .filters input, .filters select { width: 100%; box-sizing: border-box; }
  .casting-card {
    grid-template-columns: 60px 1fr;
    padding: 14px;
  }
  .cc-type-col { width: 48px; min-height: 48px; }
  .cc-type-icon { font-size: 20px; }
  .cc-body { padding: 0; }
  .cc-status { position: static; transform: none; margin-bottom: 8px; justify-self: start; }
  .cc-header { margin-bottom: 8px; }
  .cc-header h2 { font-size: 17px; padding-right: 0; }
  .cc-desc { -webkit-line-clamp: 3; }
  .profile-layout { grid-template-columns: 1fr; gap: 16px; }
  .profile-sidebar { position: static; }
  .hero-stats { flex-direction: column; align-items: center; gap: 12px; }
  .hero { padding: 56px var(--sp) 48px; }
  .hero-actions .btn { width: 100%; }
  .home-cta-panel { flex-direction: column; text-align: center; padding: 24px; }
  .cta-panel-content { flex-direction: column; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ---- Dashboard ---- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
}
.dashboard-sidebar {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  padding: 24px;
  box-shadow: var(--sh-card);
  text-align: center;
  position: sticky; top: 80px; align-self: start;
}
.dashboard-sidebar img {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  object-fit: cover; margin: 0 auto 12px;
  border: 3px solid var(--c-accent-soft);
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--c-ink-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.empty-state-lg {
  padding: 72px 24px;
  margin: 24px 0;
}
.empty-state-sm {
  padding: 32px 24px;
  margin: 16px 0;
}
.empty-state-sm .icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-sm h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.empty-state-sm p { font-size: 14px; margin: 0 auto 14px; }
.empty-state .icon { font-size: 56px; margin-bottom: 16px; line-height: 1; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 8px;
}
.empty-state p {
  font-size: 15px;
  max-width: 360px;
  margin: 0 auto 20px;
}
.empty-state .btn { margin-top: 4px; }

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--c-line) 0%, var(--c-surface) 50%, var(--c-line) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-md);
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-avatar { width: 100%; aspect-ratio: 1/1.05; border-radius: var(--r-md); }
.skeleton-line { height: 14px; border-radius: 6px; }
.skeleton-line.short { width: 55%; }
.skeleton-line.medium { width: 75%; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 48px var(--sp) 32px;
  margin-top: 80px;
  background: var(--c-surface);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
}
.footer-brand a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
}
.footer-brand a span { color: var(--c-accent); }
.footer-brand p {
  font-size: 13px;
  color: var(--c-ink-muted);
  margin-top: 8px;
  max-width: 260px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--c-accent); }
.footer-copy {
  font-size: 13px;
  color: var(--c-ink-muted);
  text-align: right;
}
.footer-copy p { margin: 0 0 4px; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-brand p { margin: 8px auto 0; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}

/* ---- Casting Detail ---- */
.casting-detail { padding-top: 8px; }
.cd-header {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--sh-card);
  margin-bottom: 20px;
}
.cd-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.cd-title-row h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: 1.2; margin: 0; }
.cd-subtitle { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cd-desc { font-size: 16px; color: var(--c-ink-soft); line-height: 1.65; max-width: 760px; margin-bottom: 18px; }
.cd-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.cd-meta-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh-card); }
.cd-meta-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-ink-muted); margin-bottom: 4px; }
.cd-meta-item .value { font-size: 15px; font-weight: 600; color: var(--c-ink); }
.cd-section { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--sh-card); }
.cd-section h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }

/* ---- Role Cards ---- */
.role-card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 12px; transition: border-color .2s; }
.role-card:hover { border-color: var(--c-accent-soft); }
.role-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.role-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0; }
.role-tag { font-size: 12px; font-weight: 600; color: var(--c-ink-muted); background: var(--c-surface); padding: 3px 10px; border-radius: var(--r-full); border: 1px solid var(--c-line); }
.role-desc { font-size: 14px; color: var(--c-ink-soft); margin-bottom: 10px; }
.role-requirements { display: flex; flex-wrap: wrap; gap: 8px; }
.role-requirements span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-ink-soft); background: var(--c-surface); padding: 4px 10px; border-radius: var(--r-full); border: 1px solid var(--c-line); }
.role-skills, .role-languages { margin-top: 10px; font-size: 13px; color: var(--c-ink-soft); }
.role-skills strong, .role-languages strong { color: var(--c-ink); font-weight: 600; }

/* ---- Apply CTA ---- */
.apply-card {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  color: #fff;
  box-shadow: var(--sh-float);
  margin-bottom: 24px;
}
.apply-card h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.apply-card > p { opacity: .9; margin-bottom: 18px; }
.apply-form { display: grid; gap: 16px; }
.apply-form .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.apply-form .form-grid .full-width { grid-column: 1 / -1; }
.apply-form .form-group label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 5px; }
.apply-form .form-group input, .apply-form .form-group select, .apply-form .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-sm);
  font-size: 14px; font-family: var(--font-body); background: rgba(255,255,255,.12); color: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.apply-form .form-group input::placeholder, .apply-form .form-group textarea::placeholder { color: rgba(255,255,255,.55); }
.apply-form .form-group input:focus, .apply-form .form-group select:focus, .apply-form .form-group textarea:focus { border-color: rgba(255,255,255,.8); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.apply-form .btn-primary { background: #fff; color: var(--c-accent); }
.apply-form .btn-primary:hover { background: rgba(255,255,255,.9); color: var(--c-accent-dark); }
.apply-card-muted { background: linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-line) 100%); color: var(--c-ink); }
.apply-card-muted h2 { color: var(--c-ink); }
.apply-card-muted > p { opacity: .8; color: var(--c-ink-soft); }
.apply-card-muted .btn-primary { background: var(--c-accent); color: #fff; }
.apply-card-muted .btn-primary:hover { background: var(--c-accent-dark); color: #fff; }

/* ---- Casting Form ---- */
.casting-form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px 32px; box-shadow: var(--sh-card); max-width: 760px; margin: 0 auto; }
.casting-form .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.casting-form .form-grid .full-width { grid-column: 1 / -1; }
.casting-form .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--c-ink-soft); margin-bottom: 5px; }
.casting-form .form-group input, .casting-form .form-group select, .casting-form .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  font-size: 14px; font-family: var(--font-body); background: var(--c-bg); color: var(--c-ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.casting-form .form-group input:focus, .casting-form .form-group select:focus, .casting-form .form-group textarea:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.casting-form .helper { font-size: 12px; color: var(--c-ink-muted); margin-top: 6px; }
.casting-form .form-actions { margin-top: 8px; display: flex; gap: 12px; justify-content: flex-end; }

@media (max-width: 600px) {
  .casting-form { padding: 20px; }
  .casting-form .form-grid { grid-template-columns: 1fr; }
  .apply-form .form-grid { grid-template-columns: 1fr; }
}

/* ---- Status select in tables ---- */
.status-select { padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); font-size: 13px; font-family: var(--font-body); cursor: pointer; }
.status-select:focus { border-color: var(--c-accent); outline: none; }

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.actor-card {
  animation: fadeIn .3s ease-out;
  animation-fill-mode: both;
}
.actor-card:nth-child(1) { animation-delay: .02s; }
.actor-card:nth-child(2) { animation-delay: .06s; }
.actor-card:nth-child(3) { animation-delay: .10s; }
.actor-card:nth-child(4) { animation-delay: .14s; }
.actor-card:nth-child(5) { animation-delay: .18s; }
.actor-card:nth-child(6) { animation-delay: .22s; }
.actor-card:nth-child(7) { animation-delay: .26s; }
.actor-card:nth-child(8) { animation-delay: .30s; }
.actor-card:nth-child(9) { animation-delay: .34s; }
.actor-card:nth-child(10) { animation-delay: .38s; }
.actor-card:nth-child(11) { animation-delay: .42s; }
.actor-card:nth-child(12) { animation-delay: .46s; }

.casting-card {
  animation: fadeIn .3s ease-out;
  animation-fill-mode: both;
}
.casting-card:nth-child(1) { animation-delay: .02s; }
.casting-card:nth-child(2) { animation-delay: .06s; }
.casting-card:nth-child(3) { animation-delay: .10s; }
.casting-card:nth-child(4) { animation-delay: .14s; }
.casting-card:nth-child(5) { animation-delay: .18s; }
.casting-card:nth-child(6) { animation-delay: .22s; }
.casting-card:nth-child(7) { animation-delay: .26s; }
.casting-card:nth-child(8) { animation-delay: .30s; }
.casting-card:nth-child(9) { animation-delay: .34s; }
.casting-card:nth-child(10) { animation-delay: .38s; }
.casting-card:nth-child(11) { animation-delay: .42s; }
.casting-card:nth-child(12) { animation-delay: .46s; }

/* Profile sections fade in */
.profile-section {
  animation: fadeIn .3s ease-out both;
}
.profile-section:nth-child(1) { animation-delay: .05s; }
.profile-section:nth-child(2) { animation-delay: .1s; }
.profile-section:nth-child(3) { animation-delay: .15s; }

/* ---- Mobile additions ---- */
@media (max-width: 480px) {
  .cd-header { padding: 20px; }
  .cd-title-row { gap: 10px; }
  .cd-meta-grid { grid-template-columns: 1fr 1fr; }
  .apply-card { padding: 22px; }
  .apply-form .form-grid, .casting-form .form-grid { grid-template-columns: 1fr; }
  .casting-form { padding: 20px; }
}

/* ---- Section header with link ---- */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.section-header h1, .section-header h2 { margin: 0; }
.section-header a { font-size: 14px; font-weight: 500; color: var(--c-accent); }
.section-header a:hover { color: var(--c-accent-dark); }

/* ---- Telegram Web Login ---- */
.tg-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e7f3ff 0%, #dceeff 100%);
  padding: 24px;
}
.tg-login-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.tg-login-logo {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(42,171,238,0.3);
}
.tg-login-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1410;
  margin-bottom: 8px;
}
.tg-login-subtitle {
  font-size: 15px;
  color: #8a8a8a;
  margin-bottom: 32px;
}
.tg-login-form { text-align: left; }
.tg-phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #fff;
  transition: border-color 0.2s;
}
.tg-phone-input:focus-within {
  border-color: #2AABEE;
  box-shadow: 0 0 0 3px rgba(42,171,238,0.1);
}
.tg-country-flag { font-size: 20px; }
.tg-country-code {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-ink);
  min-width: 44px;
}
.tg-phone-input input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  background: transparent;
  color: var(--c-ink);
}
.tg-phone-input input::placeholder { color: #aaa; }
.tg-login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tg-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42,171,238,0.3);
}
.tg-login-hint {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 16px;
}
.tg-login-divider {
  height: 1px;
  background: var(--c-line);
  margin: 24px 0;
}
.tg-login-alt {
  text-align: center;
  font-size: 14px;
}
.tg-login-alt a {
  color: #2AABEE;
  text-decoration: none;
  font-weight: 500;
}
.tg-login-alt a:hover { text-decoration: underline; }

/* ---- HTMX Loading Indicator ---- */
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ---- How It Works ---- */
.how-it-works h2 { text-align: center; margin-bottom: 8px; }
.how-it-works .step { text-align: center; padding: 16px; background: var(--c-bg); border-radius: 12px; }
.how-it-works .step h3 { margin: 8px 0 4px; }
.how-it-works .step p { color: var(--c-ink-muted); font-size: 0.9em; }

/* ============================================================
   SEARCH PAGE REDESIGN — sidebar filters + results grid
   ============================================================ */

/* ---- Search layout: sidebar + main ---- */
.search-page { padding-top: 8px; }
.search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; gap: 16px; }
}

/* ---- Filter sidebar ---- */
.search-sidebar {
  position: sticky;
  top: 80px;
}
.search-sidebar-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-card);
}
.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-of-type { border-bottom: none; }
.filter-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-ink-muted);
  margin-bottom: 10px;
}

/* Radio list for gender */
.filter-radio-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .12s;
  font-size: 14px;
  color: var(--c-ink-soft);
}
.filter-radio:hover { background: var(--c-bg-alt); }
.filter-radio input { accent-color: var(--c-accent); width: 16px; height: 16px; }
.filter-radio input:checked + span { color: var(--c-accent); font-weight: 600; }

/* Range inputs (age, height) */
.filter-range {
  display: grid;
  grid-template-columns: 1fr 16px 1fr;
  gap: 8px;
  align-items: center;
}
.filter-range-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--c-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.filter-range-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(196,80,30,.10);
}
.filter-range-sep {
  text-align: center;
  color: var(--c-ink-muted);
  font-size: 14px;
}

/* Select + text inputs in sidebar */
.filter-select, .filter-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-bg);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--c-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.filter-select:focus, .filter-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(196,80,30,.10);
}

/* Checkbox */
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--c-ink);
  user-select: none;
}
.filter-checkbox-label input { accent-color: var(--c-accent); width: 16px; height: 16px; }
.filter-checkbox-text { font-weight: 500; }

/* Filter actions */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--c-line);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* Mobile: sidebar becomes collapsible */
@media (max-width: 900px) {
  .search-sidebar { position: static; }
  .search-sidebar-form { padding: 16px; }
}

/* ---- Search results area ---- */
.search-results-area { min-height: 400px; }
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}
.results-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.results-count-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1;
}
.results-count-label {
  font-size: 14px;
  color: var(--c-ink-muted);
  font-weight: 500;
}
.results-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.results-sort-val {
  font-weight: 600;
  color: var(--c-ink-soft);
}

/* ---- Actor grid override for search (denser) ---- */
.search-main .actor-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

/* ============================================================
   REGISTRATION WIZARD
   ============================================================ */

.wizard-container {
  max-width: 640px;
  margin: 32px auto;
}

.wizard-header {
  text-align: center;
  margin-bottom: 32px;
}
.wizard-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.wizard-subtitle {
  font-size: 14px;
  color: var(--c-ink-soft);
}

/* Progress bar */
.wizard-progress {
  margin-bottom: 32px;
  position: relative;
}
.wizard-progress-bar {
  height: 4px;
  background: var(--c-accent);
  border-radius: 2px;
  transition: width .3s ease;
  margin-bottom: 16px;
}
.wizard-progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.wizard-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.wizard-step-dot-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-ink-muted);
  transition: all .2s;
}
.wizard-step-dot.done .wizard-step-dot-num {
  background: var(--c-success);
  border-color: var(--c-success);
  color: #fff;
}
.wizard-step-dot.current .wizard-step-dot-num {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(196,80,30,.12);
}
.wizard-step-dot-label {
  font-size: 10px;
  color: var(--c-ink-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}
.wizard-step-dot.current .wizard-step-dot-label,
.wizard-step-dot.done .wizard-step-dot-label {
  color: var(--c-ink);
  font-weight: 600;
}

/* Current step info */
.wizard-current-step-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-ink-muted);
  margin-bottom: 20px;
}

/* Form card */
.wizard-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--sh-card);
}
.wizard-step-body {}
.wizard-step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.wizard-step-desc {
  font-size: 14px;
  color: var(--c-ink-soft);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Fields */
.wizard-field {
  margin-bottom: 18px;
}
.wizard-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.wizard-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.wizard-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(196,80,30,.10);
}
.wizard-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.wizard-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .wizard-field-row { grid-template-columns: 1fr; }
}

/* Radio group */
.wizard-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wizard-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: all .15s;
}
.wizard-radio:hover { border-color: var(--c-accent); }
.wizard-radio input { accent-color: var(--c-accent); }

/* Nav buttons */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.wizard-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wizard-save-status {}
.wizard-save-ok {
  font-size: 13px;
  color: var(--c-success);
  font-weight: 500;
}

/* Dynamic items list (skills, languages, credits) */
.wizard-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.wizard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.wizard-item-wide { flex-direction: column; align-items: stretch; gap: 4px; }
.wizard-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wizard-item-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.wizard-item-name { font-weight: 500; color: var(--c-ink); font-size: 14px; }
.wizard-item-prof { font-size: 13px; color: var(--c-ink-muted); }
.wizard-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-ink-muted);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: all .15s;
}
.wizard-item-remove:hover { background: var(--c-danger); color: #fff; }
.wizard-empty {
  color: var(--c-ink-muted);
  font-size: 14px;
  padding: 16px;
  text-align: center;
  background: var(--c-bg);
  border-radius: var(--r-md);
}

/* Add form */
.wizard-add-form {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 20px;
  margin-top: 16px;
}
.wizard-add-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
}

/* Review step */
.wizard-review-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--c-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
}
.wizard-review-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 10px;
}
.wizard-review-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 14px;
}
.wizard-review-row {
  display: contents;
}
.wizard-review-row dt {
  color: var(--c-ink-muted);
  font-weight: 500;
}
.wizard-review-row dd {
  color: var(--c-ink);
  margin: 0;
}
.wizard-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wizard-review-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wizard-review-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.wizard-review-credit-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* Mobile wizard */
@media (max-width: 640px) {
  .wizard-container { margin: 16px 0; }
  .wizard-form { padding: 20px; }
  .wizard-progress-steps { display: none; }
  .wizard-step-dot-label { display: none; }
}

