/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  width: 100%;
  padding: 0 28px;
  gap: 16px;
}
.nav-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav-divider {
  flex: none; width: 1px; height: 24px;
  background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
  opacity: .8;
}

/* Ceas - buton flotant jos-dreapta, ascuns implicit, arata popup-ul la click */
.clock-fab-wrap {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.clock-fab {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border: none; cursor: pointer;
  box-shadow: 0 10px 24px -8px var(--accent-glow), var(--shadow);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
.clock-fab:hover { transform: translateY(-2px) scale(1.06); }
.clock-popup {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 22px;
  box-shadow: 0 0 0 1px var(--accent-line), 0 18px 40px -16px var(--accent-glow), var(--shadow);
}
.clock-popup.open { display: flex; }
.clock-popup-time {
  font-family: var(--font-mono); font-weight: 700; font-size: 22px;
  font-variant-numeric: tabular-nums; color: var(--text); line-height: 1;
}
.clock-popup-date {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint); margin-top: 5px; line-height: 1;
}
@media (max-width: 560px) { .clock-fab-wrap { right: 16px; bottom: 16px; } }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.brand .mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.brand:hover .mark img { transform: scale(1.1) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) {
  .brand .mark img { transition: none; }
  .brand:hover .mark img { transform: none; }
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: uppercase;
}
.brand .name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 2px;
}

nav.primary { display: flex; gap: 2px; align-items: center; }
nav.primary a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
nav.primary a:hover { color: var(--text); background: var(--bg-2); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--text); background: var(--bg-2); }
.nav-dropdown-toggle svg { transition: transform .15s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  margin-top: 4px;
  flex-direction: column;
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.nav-dropdown-menu a:hover { background: var(--bg-2); color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Stare logat (staff) in bara publica - panou de control + nume + deconectare, in loc de Autentificare */
.nav-staff-panel-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  padding: 10px 18px 10px 14px; font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.nav-staff-panel-icon { display: flex; flex: none; color: inherit; }
#staffLogoutBtn { padding: 12px 40px; font-size: 14px; white-space: nowrap; }
.nav-staff-panel-btn:hover { border-color: var(--accent-line); box-shadow: 0 0 14px -4px var(--accent-glow); color: var(--accent); }
.nav-staff-chip {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  border-radius: 999px; padding: 4px 10px 4px 4px; transition: background .18s ease;
}
.nav-staff-chip:hover { background: var(--accent-veil); color: var(--accent); }
.nav-staff-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg-2); flex: none; }
.nav-staff-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 860px) { .nav-staff-name { display: none; } .nav-staff-panel-btn span:not(:first-child) { display: none; } }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border-strong); border-radius: 7px;
  width: 40px; height: 40px; color: var(--text); cursor: pointer;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(ellipse 60% 100% at 30% 0%, var(--accent-glow), transparent 65%),
    radial-gradient(ellipse 40% 80% at 85% 10%, var(--accent-veil), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero-actions {
  opacity: 0;
  animation: heroFadeUp .7s cubic-bezier(.22,1,.36,1) forwards;
}
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .14s; }
.hero .lede { animation-delay: .22s; }
.hero-actions { animation-delay: .3s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero-actions { opacity: 1; animation: none; }
}
.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  letter-spacing: -.02em;
  line-height: .96;
  margin: 16px 0 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Status strip */
.status-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.status-cell {
  background: var(--bg-2);
  padding: 22px 20px;
}
.status-cell .val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.status-cell .val .unit { font-size: 14px; color: var(--text-faint); font-weight: 500; }
.status-cell .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}
.status-cell .val.dot::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 12px 0 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* Acces rapid (Aplica / Reintegrare / Reclamatii) */
.quick-access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 36px -20px var(--accent-glow), var(--shadow);
}
.quick-card .icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.quick-card h3 { font-size: 18px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.quick-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; flex: 1; }
.quick-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
}
.quick-card-cta svg { transition: transform .2s ease; }
.quick-card:hover .quick-card-cta svg { transform: translateX(4px); }

/* Despre / feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 36px -20px var(--accent-glow), var(--shadow);
}
.feature-card .icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* Roster (public) */
.roster-note { font-size: 13px; color: var(--text-faint); margin-bottom: 24px; font-family: var(--font-mono); }
.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.badge-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.badge-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 16px 32px -20px var(--accent-glow), var(--shadow);
}
.badge-card .avatar {
  width: 76px; height: 76px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  display: grid; place-items: center;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 20px -10px var(--accent-glow);
}
.badge-card .call-sign {
  font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; letter-spacing: .06em;
  color: var(--accent); margin-bottom: 2px;
}
.badge-card .name { font-weight: 700; font-size: 16px; }
.badge-card .rank { color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.badge-card .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* Apply form */
.apply-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.apply-info h3 { font-size: 20px; text-transform: none; margin-bottom: 12px; }
.apply-info p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.req-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.req-list li svg { flex: none; margin-top: 2px; color: var(--green); }

.clipboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
}
.clipboard::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px;
  background: var(--border-strong);
  border-radius: 6px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.apply-result {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 10px;
}
.apply-result.show { display: block; }
.apply-result p { font-size: 13.5px; color: var(--text); margin-bottom: 10px; }
.apply-result pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 10px;
  max-height: 220px;
  overflow-y: auto;
}

.notice-red {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: var(--red-soft);
  border: 1.5px solid var(--red);
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.notice-red.show { display: block; }
.notice-red strong { color: var(--red); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }

/* Widget "Conecteaza-te cu Discord" (formulare publice) */
.discord-connect-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: #5865F2; color: #fff; border: none;
  padding: 13px 20px; border-radius: 9px; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.discord-connect-btn:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(88,101,242,.55); }
@media (prefers-reduced-motion: reduce) { .discord-connect-btn:hover { transform: none; } }
.discord-connect-note { font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 8px; }
.discord-connect-error { font-size: 13px; color: var(--red); margin-top: -8px; margin-bottom: 16px; }
.discord-connected {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--green); border-radius: 10px;
  padding: 12px 14px;
}
.discord-connected img, .discord-connected-fallback {
  width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}
.discord-connected-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.discord-connected-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.discord-connected-name { font-weight: 700; font-size: 14.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-disconnect-btn {
  flex: none; background: none; border: 1px solid var(--border-strong); color: var(--text-muted);
  border-radius: 7px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.discord-disconnect-btn:hover { color: var(--text); border-color: var(--accent-line); }

/* Restul formularului e blocat (ascuns) pana la conectarea cu Discord */
.discord-locked-notice {
  display: flex; align-items: center; gap: 12px;
  background: var(--red-soft); border: 1.5px solid var(--red); border-radius: 10px;
  padding: 14px 16px; margin: 14px 0; font-size: 13.5px; color: var(--text);
}
.discord-locked-notice svg { flex: none; color: var(--red); }
.discord-locked-notice strong { color: var(--red); }

.form-section-title {
  font-size: 15px;
  text-transform: none;
  margin: 30px 0 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}

/* Wizard pe pasi (Reintegrare) - un singur pas vizibil, cu bara de progres numerotata */
.wizard-progress { display: flex; align-items: center; margin-bottom: 26px; }
.wizard-dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--border-strong);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 11.5px;
  color: var(--text-faint); transition: border-color .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.wizard-dot.active { border-color: var(--accent); color: var(--accent); background: var(--accent-veil); box-shadow: 0 0 0 4px var(--accent-veil); }
.wizard-dot.done { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.wizard-line { flex: 1; height: 2px; background: var(--border-strong); margin: 0 4px; transition: background .3s ease; }
.wizard-line.done { background: var(--accent); }
.wizard-step { display: none; animation: wizardFadeIn .35s cubic-bezier(.22,1,.36,1); }
.wizard-step.active { display: block; }
.wizard-step .form-section-title { margin-top: 0; padding-top: 0; border-top: none; }
@keyframes wizardFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wizard-step { animation: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wizard-nav .btn { flex: 1; }
.toggle-group { display: flex; gap: 10px; margin-top: 6px; }
.toggle-option {
  flex: 1; padding: 13px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-family: var(--font-display); font-weight: 700;
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.toggle-option:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.toggle-option.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toggle-group.toggle-error .toggle-option { border-color: #d64545; }
@media (max-width: 560px) {
  .wizard-dot { width: 26px; height: 26px; font-size: 10px; }
  .wizard-dot span { display: none; }
}
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.word-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 6px; text-align: right; }

/* Status cerere */
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.status-row.status-pending { border-left-color: var(--amber); }
.status-row.status-approved { border-left-color: var(--green); }
.status-row.status-rejected { border-left-color: var(--red); }
.status-row-name { font-weight: 700; font-size: 14.5px; }
.status-row-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.status-row .status-badge { margin-left: auto; background: var(--bg-2); color: var(--text-muted); }
.status-row.status-pending .status-badge { background: var(--amber-soft); color: var(--amber); }
.status-row.status-approved .status-badge { background: var(--green-soft); color: var(--green); }
.status-row.status-rejected .status-badge { background: var(--red-soft); color: var(--red); }

/* Contact / footer */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.freq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.freq-card:hover { border-color: var(--accent-line); box-shadow: 0 16px 32px -20px var(--accent-glow), var(--shadow); }
.freq-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.freq-row:last-child { border-bottom: none; }
.freq-row span:first-child { color: var(--text-muted); }
.freq-row span:last-child,
.freq-row a:last-child { font-family: var(--font-mono); font-weight: 600; }
.freq-row a:last-child { color: var(--accent); text-decoration: none; }
.freq-row a:last-child:hover { text-decoration: underline; }

footer.site { background: var(--bg-2); padding: 32px 0; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  nav.primary, .nav-actions .btn-outline, .nav-divider { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .roster-grid, .quick-access-grid { grid-template-columns: 1fr 1fr; }
  .apply-wrap, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid, .roster-grid, .quick-access-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

nav.primary.open {
  display: flex;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 8px 24px 16px;
  gap: 2px;
}
nav.primary.open .nav-dropdown-menu {
  display: flex;
  position: static;
  border: none;
  box-shadow: none;
  padding: 0 0 0 14px;
  margin-top: 0;
}
nav.primary.open .nav-dropdown-toggle { width: 100%; }

/* Comunicate de presa */
.press-grid { display: flex; flex-direction: column; gap: 20px; }
.press-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.press-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px var(--accent-glow), var(--shadow); }
.press-card::before {
  content: "COMUNICAT OFICIAL";
  position: absolute;
  top: 18px; right: -38px;
  width: 170px;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 0;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.press-date { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.press-card h3 { font-size: 22px; text-transform: none; margin-bottom: 12px; max-width: 88%; }
.press-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }
.press-image { margin-top: 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.press-image img { width: 100%; max-height: 420px; object-fit: cover; cursor: zoom-in; }
.press-author {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border-strong);
  font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.press-author::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Momente SMURD - galerie publica */
.moments-public-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.moment-public-card {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
}
.moment-public-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 36px -20px var(--accent-glow), var(--shadow);
}
.moment-public-card img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.moment-public-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  padding: 30px 14px 12px;
}
.moment-public-title { color: #fff; font-weight: 700; font-size: 14.5px; }
.moment-public-date { color: rgba(255,255,255,.75); font-family: var(--font-mono); font-size: 11px; margin-top: 3px; }
@media (max-width: 860px) { .moments-public-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .moments-public-grid { grid-template-columns: 1fr; } }

/* Lightbox (galerie momente) */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 14, .86);
  align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default; }

/* Tichet reclamatie - profiluri + chat */
.ticket-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.ticket-side { display: flex; flex-direction: column; gap: 14px; }
.ticket-profile-card, .ticket-profile-card-empty, .ticket-info-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
}
.ticket-profile-card-empty { color: var(--text-faint); font-size: 13px; text-align: center; }
.ticket-profile-role {
  display: block; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-faint); margin-bottom: 8px;
}
.ticket-profile-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-radius: 8px; padding: 4px; margin: -4px; transition: background .15s ease; }
.ticket-profile-row:hover { background: var(--accent-veil); }
.ticket-profile-row img, .ticket-profile-avatar-fallback {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--surface-2);
  flex: none;
}
.ticket-profile-avatar-fallback { display: grid; place-items: center; font-weight: 800; color: var(--text-muted); }
.ticket-profile-name { font-weight: 700; font-size: 14.5px; }
.ticket-profile-rank { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.ticket-info-block .sub-head:first-child { margin-top: 0; }
.ticket-evidence-img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); }

.ticket-chat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  display: flex; flex-direction: column; height: 560px; overflow: hidden;
}
.ticket-chat-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ticket-chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble {
  max-width: 76%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 9px 13px;
}
.chat-bubble-row.mine .chat-bubble { background: var(--accent-veil); border-color: var(--accent-line); }
.chat-system-row { display: flex; justify-content: center; }
.chat-system-bubble {
  max-width: 86%; background: var(--amber-soft); border: 1px solid var(--amber); border-radius: 12px;
  padding: 9px 14px; text-align: center;
}
.chat-system-bubble .chat-bubble-text { font-weight: 600; white-space: pre-wrap; }
.chat-system-bubble .chat-bubble-time { text-align: center; }
.chat-bubble-sender { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin-bottom: 3px; }
.chat-bubble-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-bubble-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 4px; text-align: right; }
.ticket-chat-form { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.ticket-chat-form input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full, 999px);
  padding: 10px 16px; color: var(--text); font-family: var(--font-body); font-size: 13.5px;
}
.ticket-chat-closed {
  margin: 14px 18px; padding: 12px 16px; background: var(--red-soft); border: 1px solid var(--red);
  border-radius: 10px; color: var(--red); font-weight: 700; font-size: 13.5px; text-align: center;
}
@media (max-width: 760px) {
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-chat { height: 440px; }
}

/* Profilul meu (public, orice cont autentificat) */
:root {
  --chart-cyan: #38bdf8; --chart-green: #22c55e; --chart-orange: #ff9f43;
  --chart-pink: #f472b6; --chart-purple: #a78bfa;
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 50px 20px 20px; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.stat-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 600; }
.stat-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; }
.stat-card-icon { position: absolute; top: 16px; left: 18px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.stat-card-color-cyan { border-top: 3px solid var(--chart-cyan); } .stat-card-color-cyan .stat-card-icon { background: rgba(56,189,248,.16); color: var(--chart-cyan); } .stat-card-color-cyan .stat-val { color: var(--chart-cyan); }
.stat-card-color-green { border-top: 3px solid var(--chart-green); } .stat-card-color-green .stat-card-icon { background: rgba(34,197,94,.16); color: var(--chart-green); } .stat-card-color-green .stat-val { color: var(--chart-green); }
.stat-card-color-orange { border-top: 3px solid var(--chart-orange); } .stat-card-color-orange .stat-card-icon { background: rgba(255,159,67,.16); color: var(--chart-orange); } .stat-card-color-orange .stat-val { color: var(--chart-orange); }
.stat-card-color-pink { border-top: 3px solid var(--chart-pink); } .stat-card-color-pink .stat-card-icon { background: rgba(244,114,182,.16); color: var(--chart-pink); } .stat-card-color-pink .stat-val { color: var(--chart-pink); }
.stat-card-color-purple { border-top: 3px solid var(--chart-purple); } .stat-card-color-purple .stat-card-icon { background: rgba(167,139,250,.16); color: var(--chart-purple); } .stat-card-color-purple .stat-val { color: var(--chart-purple); }

.detail-overlay {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(4,7,14,.86);
  align-items: center; justify-content: center; padding: 24px; overflow-y: auto;
}
.detail-overlay.open { display: flex; }
.detail-overlay-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  max-width: 640px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 28px; position: relative;
}
.detail-overlay-close {
  position: absolute; top: 16px; right: 16px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--text-muted);
}
.detail-overlay-close:hover { color: var(--accent); border-color: var(--accent-line); }
.detail-overlay-card img.evidence-img { max-width: 100%; border-radius: 8px; margin-top: 8px; }

.personal-requests-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-top: 26px; }
.pr-type-toggle { display: flex; gap: 8px; margin-bottom: 22px; }
.pr-type-btn {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 999px; padding: 11px 14px; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; transition: all .18s ease;
}
.pr-type-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 860px) { .personal-requests-grid { grid-template-columns: 1fr; } }

.reported-banner {
  display: block; margin-bottom: 20px; padding: 14px 18px; background: var(--red-soft);
  border: 1.5px solid var(--red); border-radius: 12px; color: var(--red); text-decoration: none;
  font-size: 13.5px; transition: filter .15s ease;
}
.reported-banner:hover { filter: brightness(1.08); }
.reported-banner strong { text-transform: uppercase; letter-spacing: .03em; }

.profile-head-card {
  display: flex; align-items: center; gap: 22px; margin-bottom: 26px;
  border: 1px solid var(--border); border-radius: 18px; padding: 26px 30px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, rgba(56,189,248,.14), transparent 60%),
    radial-gradient(ellipse 60% 120% at 100% 100%, rgba(244,114,182,.12), transparent 60%),
    var(--surface);
}
.profile-head-card img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--accent-line), 0 14px 32px -16px var(--accent-glow); }
.profile-head-avatar-wrap { position: relative; flex: none; }
.profile-head-avatar-edit {
  position: absolute; bottom: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); border: 3px solid var(--surface);
  display: grid; place-items: center; cursor: pointer;
}
.profile-head-avatar-edit:hover { filter: brightness(1.08); }
.profile-head-name { font-family: var(--font-display); font-weight: 800; font-size: 23px; text-transform: uppercase; letter-spacing: -.01em; }
.profile-head-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-top: 3px; }
.profile-head-sub.id { color: var(--text-faint); font-weight: 500; }
.profile-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.profile-tab-btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 18px; border-radius: var(--r-full); cursor: pointer; transition: all .18s ease;
}
.profile-tab-btn.active, .profile-tab-btn:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-veil); }
.profile-tab-panel { display: none; flex-direction: column; gap: 10px; }
.profile-tab-panel.active { display: flex; }
