:root {
  --ivory: #FAF8F3; --navy: #011038; --gold: #fdc002;
  --un-blue: #5B92E5; --ink: #22293A; --muted: #6b7280;
  --serif: "Montserrat", system-ui, sans-serif; --sans: "Poppins", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 2.25rem 0 4rem; }
.section-title { font-size: 2rem; margin-bottom: 0.5rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 0.75rem; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid #e8e4da; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -0.01em; color: var(--navy); text-decoration: none; }
.nav-logo b { font-weight: 900; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle i { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 1px; }

/* Buttons */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 4px; text-decoration: none; font-weight: 600; border: 1px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; font-family: var(--sans); font-size: 1rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.05); }

/* Eyebrow (section label, echoes hero) */
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem; }

/* About (homepage) */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.about-statement { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900; text-transform: uppercase;
  line-height: 1.05; letter-spacing: -0.01em; }
.about-statement .gold { color: var(--gold); }
.about-body p { max-width: 60ch; }
.stats { display: flex; gap: 2.75rem; margin: 2rem 0 0; }
.stats dt { font-family: var(--serif); font-weight: 900; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.stats dd { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* CTA band (homepage bookend) */
.cta-band { text-align: center; color: #fff; padding: 6rem 1.25rem; background:
  linear-gradient(rgba(13, 19, 36, 0.88), rgba(13, 19, 36, 0.88)),
  url("/assets/img/cta-timisoara.jpg") center 62% / cover no-repeat var(--navy); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { color: #cfd6e4; margin: 1rem 0 2rem; font-size: 1.15rem; }
.cta-band .eyebrow { margin-bottom: 1rem; }
.cta-band .countdown { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; margin-bottom: 2rem; }

/* Partner feature (homepage) */
.partner-feature { display: flex; align-items: center; gap: 1.75rem; margin-top: 2rem; }
.partner-feature img { max-height: 96px; width: auto; }
.partner-feature strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.partner-feature span { color: var(--muted); font-size: 0.9rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 1.5rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(1, 16, 56, 0.08); }
.card h3 { font-size: 1.25rem; }
.card .abbr { color: var(--un-blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; }
.card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

.person-card { text-align: center; }
.person-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.75rem; }
.person-card .role { color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.person-card.tba img { filter: grayscale(1); opacity: 0.4; }

.badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; letter-spacing: 0.05em; }

/* Quotes (homepage testimonials) */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.quote { position: relative; margin: 0; background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 2.4rem 1.5rem 1.5rem; }
.quote::before { content: "\201C"; position: absolute; top: 0.4rem; left: 1.1rem; font-family: var(--serif);
  font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.quote blockquote { margin: 0 0 1rem; font-size: 0.97rem; color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* Packages (apply page) */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.package { position: relative; background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 1.5rem; }
.package--featured { border-color: var(--gold); border-width: 2px; }
.package-tag { position: absolute; top: -0.8rem; left: 1.25rem; background: var(--gold); color: var(--navy);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px; }
.package .price { font-family: var(--serif); font-weight: 900; font-size: 2rem; color: var(--navy); margin: 0.5rem 0 1rem; }
.package .price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.package ul { margin: 0; padding-left: 1.1rem; color: var(--ink); font-size: 0.93rem; }
.package li { margin-bottom: 0.45rem; }
.package--link { display: block; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.package--link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(1, 16, 56, 0.08); }
.package-line { color: var(--muted); font-size: 0.92rem; }

/* Accordion (FAQ) */
.accordion details { background: #fff; border: 1px solid #e8e4da; border-radius: 8px; margin-bottom: 0.75rem; padding: 1rem 1.25rem; }
.accordion summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.accordion details p { margin-top: 0.75rem; color: var(--muted); }

/* Forms */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-field input, .form-field textarea { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--navy); color: #cfd6e4;
  padding: 4rem 0 2rem; margin-top: 4rem; border-top: 4px solid var(--gold); }
.footer a { color: #cfd6e4; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; }
.footer-tagline { font-family: var(--serif); font-style: normal; font-weight: 700; color: #fff; margin: 0.75rem 0 0.25rem; }
.footer-meta { font-size: 0.9rem; color: #9aa6c8; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.25rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; }
.footer-social a:hover { border-color: var(--gold); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 1.6rem; }
.footer-cols h4 { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-cols a { display: block; font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer-bottom { position: relative; z-index: 1; margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12); }
.footer .fine { font-size: 0.8rem; color: #8b96ad; margin: 0; }
.footer-ghost { position: absolute; left: 50%; bottom: -0.22em; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 900; font-size: clamp(8rem, 24vw, 20rem); line-height: 1;
  letter-spacing: -0.02em; color: #fff; opacity: 0.035; pointer-events: none; user-select: none; white-space: nowrap; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Archive theming */
.archive img { filter: grayscale(0.7) sepia(0.15); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ivory); flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid #e8e4da; }
  .nav-links.open { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { gap: 1.75rem; flex-wrap: wrap; }
  .partner-feature { flex-direction: column; align-items: flex-start; }
}

/* ===== Hero globe (homepage) ===== */
.hero-globe { position: relative; min-height: 100svh; background:
  linear-gradient(180deg, rgba(10,15,30,0.78) 0%, rgba(9,13,26,0.5) 45%, rgba(7,11,22,0.92) 100%),
  url("/assets/img/hero-timisoara.jpg") center 38% / cover no-repeat #070b16;
  color: #fff; display: flex; align-items: center; overflow: hidden; }
.hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0.65; }
.hero-stage { position: relative; z-index: 2; padding-top: 3rem; padding-bottom: 3rem; }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(2.5rem, 7.2vw, 6rem); line-height: 1.02; text-transform: uppercase;
  letter-spacing: -0.01em; font-weight: 900; color: #fff; margin: 0 0 1.5rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%);
  animation: line-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-title .line:nth-child(4) > span { animation-delay: 0.36s; }
.hero-title .gold { color: var(--gold); }
@keyframes line-up { to { transform: translateY(0); } }
.hero-sub { color: #aeb9d4; font-size: 1.15rem; max-width: 34ch; margin-bottom: 2rem;
  opacity: 0; animation: fade-in 0.8s ease 0.55s forwards; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap;
  opacity: 0; animation: fade-in 0.8s ease 0.75s forwards; }
.btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
@keyframes fade-in { to { opacity: 1; } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(14px); opacity: 0.15; } }

/* Navbar over dark hero */
.nav--overlay { background: transparent; border-bottom-color: transparent; }
.nav--overlay .nav-links a { color: #fff; }
.nav--overlay .nav-links a[aria-current="page"] { color: var(--gold); }
.nav--overlay .nav-logo { color: #fff; }
.nav--overlay .nav-logo img { filter: brightness(0) invert(1); }
.nav--overlay .nav-toggle i { background: #fff; }
.nav--overlay.nav--solid { background: rgba(250, 248, 243, 0.95); border-bottom-color: #e8e4da; }
.nav--overlay.nav--solid .nav-links a { color: var(--ink); }
.nav--overlay.nav--solid .nav-links a[aria-current="page"] { color: var(--gold); }
.nav--overlay.nav--solid .nav-logo { color: var(--navy); }
.nav--overlay.nav--solid .nav-logo img { filter: none; }
.nav--overlay.nav--solid .nav-toggle i { background: var(--navy); }
.nav-logo img { display: block; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif);
  font-weight: 600; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.footer-brand b { font-weight: 900; }
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.9; }
@media (max-width: 720px) {
  .nav--overlay .nav-links { background: #0c1224; }
  .nav--overlay.nav--solid .nav-links { background: var(--ivory); }
  .hero-globe canvas { opacity: 0.5; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
}

/* Chatbot (fixed-question assistant) */
.chatbot-toggle { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(1, 16, 56, 0.35); }
.chatbot-toggle:hover { background: #24375e; }
.chatbot-panel { position: fixed; right: 1.25rem; bottom: 6rem; z-index: 60; width: min(360px, calc(100vw - 2.5rem));
  max-height: min(520px, calc(100vh - 8rem)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e8e4da; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(1, 16, 56, 0.25); }
.chatbot-head { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700;
  padding: 0.8rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.chatbot-close { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.chatbot-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.chatbot-msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 10px; font-size: 0.92rem; line-height: 1.45; }
.chatbot-msg--bot { background: var(--ivory); border: 1px solid #e8e4da; align-self: flex-start; }
.chatbot-msg--user { background: var(--navy); color: #fff; align-self: flex-end; }
.chatbot-chips { padding: 0.75rem 1rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid #f0ece2; }
.chatbot-chip { border: 1px solid var(--navy); background: transparent; color: var(--navy); font: inherit;
  font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer; }
.chatbot-chip:hover { background: var(--navy); color: #fff; }
.chatbot-chip--ghost { border-color: #b8860b; color: #b8860b; }
.chatbot-chip--ghost:hover { background: var(--gold); color: var(--navy); }

/* Scroll reveals + card polish */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.card { position: relative; }
.card:hover { border-color: var(--gold); }
.card .abbr { position: relative; }

/* Placard cards (committees — country-placard edge + ghost logo watermark) */
.card--placard { border-top: 4px solid var(--navy); overflow: hidden; padding-bottom: 2.4rem; }
.card-mark { position: absolute; right: -0.5rem; bottom: -0.8rem; width: 118px; height: 118px;
  object-fit: contain; filter: invert(1); opacity: 0.08; pointer-events: none; }
.committee-emblem { display: flex; align-items: center; justify-content: center; width: 116px; height: 116px;
  border-radius: 50%; background: var(--navy); margin-bottom: 1.5rem; }
.committee-emblem img { width: 68%; height: 68%; object-fit: contain; }
.card--placard:hover { border-top-color: var(--gold); }
.card-go { position: absolute; left: 1.5rem; bottom: 1.1rem; color: var(--gold); font-weight: 700;
  opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s; }
.card--placard:hover .card-go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line > span { animation: none; transform: none; }
  .hero-sub, .hero-ctas { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* Hero fixes: nav floats over hero; type breathing room */
.has-hero-globe .nav { position: fixed; top: 0; left: 0; right: 0; }
.has-hero-globe .footer { margin-top: 0; }
.hero-title { line-height: 1.04; }

/* Contact quick lines */
.contact-lines { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 1.25rem 0 0.5rem; }
.contact-lines a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gold); }

/* ===== Delegate platform (/app/) ===== */
.app-tabs { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
.app-tab { flex: 1; padding: 0.6rem; font: inherit; font-weight: 600; background: #fff;
  border: 1px solid #e8e4da; border-radius: 6px; cursor: pointer; color: var(--muted); }
.app-tab.is-active { border-color: var(--navy); color: var(--navy); }
.app-status { margin-top: 1rem; font-weight: 600; }
.app-warn { background: #fff7df; border: 1px solid var(--gold); border-radius: 8px;
  padding: 0.9rem 1.1rem; margin-top: 1rem; font-size: 0.95rem; }
.app-card { background: #fff; border: 1px solid #e8e4da; border-left: 4px solid var(--navy);
  border-radius: 8px; padding: 1.5rem; margin-top: 1.5rem; }
.app-steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 1.5rem 0 2rem;
  counter-reset: step; }
.app-steps li { flex: 1; text-align: center; font-size: 0.85rem; color: var(--muted);
  padding-top: 2rem; position: relative; counter-increment: step; }
.app-steps li::before { content: counter(step); position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; line-height: 26px;
  background: #e8e4da; color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.app-steps li.is-active { color: var(--navy); font-weight: 600; }
.app-steps li.is-active::before { background: var(--navy); color: #fff; }
.app-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem; margin-top: 1.5rem; }
.app-choice { text-align: left; background: #fff; border: 1px solid #e8e4da; border-radius: 8px;
  padding: 1rem 1.1rem; cursor: pointer; font: inherit; }
.app-choice strong { display: block; color: var(--navy); font-family: var(--serif); }
.app-choice em { display: block; font-style: normal; font-weight: 700; color: var(--navy); margin: 0.2rem 0; }
.app-choice span { font-size: 0.85rem; color: var(--muted); }
.app-choice:hover, .app-choice.is-active { border-color: var(--gold); }
.app-choice.is-active { box-shadow: 0 0 0 1px var(--gold); }
.app-seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem; margin-top: 0.5rem; }
.app-seat { font: inherit; font-size: 0.88rem; padding: 0.5rem 0.6rem; background: #fff;
  border: 1px solid #e8e4da; border-radius: 6px; cursor: pointer; }
.app-seat:hover:not([disabled]) { border-color: var(--gold); }
.app-seat[disabled] { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.app-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: #fff; }
.app-table th, .app-table td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid #eee7d9; }
.app-table th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.app-table tr.is-paid td { background: #f3faf3; }
.app-table tr.is-cancelled td { opacity: 0.5; }
.app-table .btn { padding: 0.25rem 0.7rem; font-size: 0.82rem; }

.app-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%;
  margin-top: 1.5rem; background: #fff; }
.app-or { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 1rem 0 0; }

/* ===== Platformă: foaie "diplomat" ===== */
[data-app-page] { background: #fff; border: 1px solid #e8e4da; border-radius: 14px;
  padding: 2.75rem 2.5rem 3rem; margin-top: 3rem; margin-bottom: 4.5rem;
  box-shadow: 0 14px 44px rgba(1, 16, 56, 0.07); }
[data-app-page] .section-title { font-size: 1.55rem; }
[data-app-page] .section-title::after { width: 44px; }
[data-app-page] .eyebrow { margin-bottom: 0.4rem; font-size: 0.72rem; }
[data-app-page] h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }

.form-field label { font-size: 0.85rem; color: var(--navy); }
.form-field label .opt { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #d6d1c4; border-radius: 8px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); }
.form-field select:invalid { color: var(--muted); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.25); }
.form-field { margin-bottom: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.app-tabs { border-bottom: 1px solid #e8e4da; gap: 0; margin: 1.75rem 0 1.5rem; }
.app-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  padding: 0.6rem 0; margin-right: 1.5rem; flex: none; font-size: 0.95rem; }
.app-tab.is-active { border-bottom-color: var(--gold); color: var(--navy); }

.app-google { border-color: #d6d1c4; font-weight: 600; }
.app-google:hover { border-color: var(--navy); }

.app-steps { margin: 2rem 0 2.25rem; border-bottom: 1px solid #f0ece2; padding-bottom: 1.5rem; }
.app-steps li { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.app-steps li::before { width: 22px; height: 22px; line-height: 22px; font-size: 0.72rem; }

/* Modal comitete */
.committee-modal { margin: auto; border: 0; border-radius: 14px; padding: 0; max-width: min(640px, calc(100vw - 2rem));
  width: 100%; box-shadow: 0 24px 80px rgba(1, 16, 56, 0.35); border-top: 4px solid var(--gold); }
.committee-modal::backdrop { background: rgba(1, 16, 56, 0.55); backdrop-filter: blur(3px); }
.committee-modal .modal-head { display: flex; gap: 1.25rem; align-items: center;
  padding: 1.75rem 2rem 1rem; }
.committee-emblem--sm { width: 72px; height: 72px; margin: 0; flex: none; }
.committee-modal h2 { margin: 0.15rem 0 0.5rem; font-size: 1.35rem; }
.committee-modal .modal-body { padding: 0.5rem 2rem 0; max-height: 46vh; overflow-y: auto; }
.committee-modal .modal-body p { margin-bottom: 0.9rem; font-size: 0.95rem; }
.committee-modal .modal-actions { padding: 1rem 2rem 1.75rem; margin: 0; }
.modal-close { position: absolute; top: 0.7rem; right: 0.9rem; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--navy); }

/* filigran logo în modal (ca pe carduri) */
.committee-modal .modal-mark { position: absolute; right: -1.5rem; bottom: -1.5rem;
  width: 240px; height: 240px; object-fit: contain; filter: invert(1); opacity: 0.07;
  pointer-events: none; }
.committee-modal .modal-head > div { position: relative; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.news-card { position: relative; display: block; background: #fff; border: 1px solid #e8e4da; border-radius: 8px;
  padding: 1.5rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(1, 16, 56, 0.08); }
.news-card h3 { font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }
.news-card p { color: var(--muted); font-size: 0.92rem; }
.news-byline { display: block; margin-top: 0.9rem; color: var(--muted); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.news-official { display: inline-block; background: var(--gold); color: var(--navy); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 999px; }
.news-card--sg { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 6px 28px rgba(253, 192, 2, 0.28); }
.news-card--sg:hover { box-shadow: 0 0 0 1px var(--gold), 0 10px 34px rgba(253, 192, 2, 0.4); }
.article--sg { border-left: 4px solid var(--gold); padding-left: 1.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-byline { border-top: 1px solid #e8e4da; padding-top: 1rem; margin-top: 2rem; }
.news-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e8e4da; border-radius: 8px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.news-row--sg { border-color: var(--gold); }
.news-row .btn { padding: 0.3rem 0.8rem; font-size: 0.85rem; }

/* welcome + nav login */
.apply-welcome { background: #fff7df; border: 1px solid var(--gold); border-radius: 10px;
  padding: 1rem 1.25rem; margin: 1.25rem 0 0; font-size: 0.98rem; }
.nav-login { padding: 0.45rem 1.1rem; font-size: 0.92rem; }
.nav--overlay .nav-links .nav-login { border-color: rgba(255,255,255,0.45); color: #fff; }
.nav--overlay.nav--solid .nav-links .nav-login { border-color: var(--navy); color: var(--navy); }

/* sloturi preferinte */
.pref-slot { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; }
.pref-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy);
  color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .pref-slot { flex-wrap: wrap; } }
.app-table select { font: inherit; font-size: 0.82rem; padding: 0.25rem; max-width: 190px; }

.app-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem;
  margin: 0.6rem 0; cursor: pointer; line-height: 1.45; }
.app-check input { margin-top: 0.25rem; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }

/* Dashboard shell (sidebar stanga + continut dreapta) */
.dash-shell { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.dash-nav button, .dash-nav a { display: block; width: 100%; text-align: left; background: none; border: 0;
  border-left: 3px solid transparent; padding: 0.55rem 0.9rem; font: inherit; font-size: 0.95rem;
  color: var(--ink); cursor: pointer; text-decoration: none; border-radius: 0 6px 6px 0; }
.dash-nav button:hover, .dash-nav a:hover { background: #f1ede3; }
.dash-nav button.is-active { border-left-color: var(--gold); color: var(--navy); font-weight: 600; background: #fff; }
.dash-nav-sep { border-top: 1px solid #e8e4da; margin: 0.6rem 0; }
.dash-content section > .app-card h3 { margin-top: 0; }
@media (max-width: 720px) {
  .dash-shell { grid-template-columns: 1fr; gap: 1rem; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .dash-nav button, .dash-nav a { width: auto; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; }
  .dash-nav button.is-active { border-bottom-color: var(--gold); }
}

/* Secțiuni mari comitete (/committees/) */
.committee-block { padding: 3.5rem 0; border-top: 1px solid #eee7d9; }
.committee-block--alt { background: #fff; }
.cb-inner { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.committee-block--alt .cb-inner { grid-template-columns: 1fr 300px; }
.committee-block--alt .cb-media { order: 2; }
.cb-media { background: var(--navy); border-radius: 14px; aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center; border-bottom: 4px solid var(--gold); }
.cb-media img { width: 62%; height: 62%; object-fit: contain; }
.cb-body h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.cb-teaser { font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.cb-desc { color: var(--ink); max-width: 62ch; }
.cb-meta { margin: 1.25rem 0 1.5rem; }
@media (max-width: 760px) {
  .cb-inner, .committee-block--alt .cb-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .committee-block--alt .cb-media { order: 0; }
  .cb-media { max-width: 220px; }
}

/* Roster țări pe pagina de detaliu */
.roster-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.roster-chip { background: #fff; border: 1px solid #e8e4da; border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.88rem; color: var(--navy); font-weight: 500; }
.roster-chip--taken { opacity: 0.45; background: #f4f0e6; }

/* dashboard full-width */
.dash-page { padding: 3rem clamp(1.25rem, 3.5vw, 3rem) 4rem; }
.dash-shell { grid-template-columns: 240px minmax(0, 1fr); }

/* Board */
.board-lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem; max-width: 720px; }
.board-lead { background: #fff; border: 1px solid var(--gold); border-radius: 14px; text-align: center;
  padding: 2.5rem 2rem 2.25rem; box-shadow: 0 0 0 1px var(--gold), 0 10px 36px rgba(253, 192, 2, 0.22); }
.board-lead-photo { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 1.25rem;
  overflow: hidden; border: 3px solid var(--gold); background: var(--navy);
  display: flex; align-items: center; justify-content: center; }
.board-lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-lead-photo .board-tba-emblem { width: 62%; height: 62%; object-fit: contain; opacity: 0.85; }
.board-role { color: #b8860b; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 0.35rem; }
.board-name { font-size: 1.3rem; margin: 0; }
.board-name-sm { font-size: 1.05rem; margin: 0; }
.board-soon { color: var(--muted); font-size: 0.82rem; font-style: italic; margin-top: 0.5rem; }
.board-lead.is-tba .board-name, .board-card.is-tba .board-name-sm { color: var(--muted); }
.board-section { margin-top: 3rem; }
.board-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.board-card { display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid #e8e4da; border-top: 3px solid var(--navy); border-radius: 10px; padding: 1rem 1.1rem; }
.board-card-photo { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
  background: var(--navy); display: flex; align-items: center; justify-content: center; }
.board-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.board-card-photo .board-tba-emblem { width: 60%; height: 60%; object-fit: contain; opacity: 0.8; }
.board-cta { margin-top: 4rem; background: #fff; border: 1px solid #e8e4da; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1.75rem 2rem; }

/* dashboard: lipit de navbar si footer, fara benzi crem */
.dash-page { padding: 1.75rem clamp(1.25rem, 3.5vw, 3rem) 2.5rem; min-height: calc(100vh - 64px); }
body:has(.dash-page) .footer { margin-top: 0; }

/* app chrome (layout-app: topbar in loc de navbarul de site, fara footer) */
.app-body { background: var(--ivory); }
.app-topbar { position: sticky; top: 0; z-index: 60; background: var(--navy); border-bottom: 3px solid var(--gold); }
.app-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px;
  padding: 0 clamp(1rem, 3vw, 2rem); }
.app-topbar .brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; }
.app-topbar .brand img { height: 30px; filter: brightness(0) invert(1); }
.app-topbar .brand b { color: var(--gold); font-weight: 900; }
.app-topbar .brand em { font-style: normal; font-weight: 400; color: #9aa6c8; font-size: 0.8rem; margin-left: 0.2rem; }
.app-topbar-right { display: flex; align-items: center; gap: 1.1rem; font-size: 0.88rem; }
.app-topbar-right a { color: #cfd6e4; text-decoration: none; }
.app-topbar-right a:hover { color: var(--gold); }
#topbar-user { color: #9aa6c8; }
.btn-topbar { background: transparent; border: 1px solid #33406b; color: #fff; border-radius: 4px;
  padding: 0.35rem 0.9rem; cursor: pointer; font: inherit; font-size: 0.84rem; }
.btn-topbar:hover { border-color: var(--gold); color: var(--gold); }
.app-main { min-height: calc(100vh - 56px); }
.dash-page { min-height: 0; }

/* sub-tab-uri secretariat + form chairs */
.sec-tabs { display: flex; gap: 0.4rem; margin: 0.75rem 0 1.25rem; border-bottom: 1px solid #e8e4da; }
.sec-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.5rem 1rem;
  font: inherit; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.sec-tabs button.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }
.chair-add { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.chair-add input, .chair-add select { padding: 0.55rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; }
.chair-add input { min-width: 260px; }

/* ============================================================
   PLATFORM V2 — "cancelarie diplomatică"
   Chrome navy sobru + conținut ca document oficial cu letterhead.
   Suprascrie stilurile de platformă anterioare.
   ============================================================ */

.app-body { background: #f6f3ea; }
.app-main { min-height: calc(100vh - 160px); }

/* — chrome — */
.app-topbar { position: sticky; top: 0; z-index: 60; background: var(--navy);
  border-bottom: 2px solid var(--gold); box-shadow: 0 6px 24px rgba(1, 16, 56, 0.25); }
.app-topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between; }
.app-topbar .brand { display: flex; align-items: center; gap: 0.6rem; color: #fff;
  text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.app-topbar .brand img { height: 30px; filter: brightness(0) invert(1); }
.app-topbar .brand b { font-weight: 900; }
.app-topbar .brand em { font-style: normal; font-weight: 500; color: var(--gold);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.25); padding-left: 0.7rem; margin-left: 0.15rem; }
.app-topbar-right { display: flex; align-items: center; gap: 1.25rem; font-size: 0.85rem; }
.app-topbar-right a { color: #cfd6e4; text-decoration: none; }
.app-topbar-right a:hover { color: var(--gold); }
#topbar-user { color: #9aa6c8; font-size: 0.82rem; }
.btn-topbar { background: none; border: 1px solid rgba(255,255,255,0.35); color: #fff;
  font: inherit; font-size: 0.8rem; padding: 0.35rem 0.9rem; border-radius: 3px; cursor: pointer; }
.btn-topbar:hover { border-color: var(--gold); color: var(--gold); }

.app-footline { max-width: 1100px; margin: 0 auto; padding: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center;
  font-size: 0.75rem; letter-spacing: 0.06em; color: #9b9484; text-transform: uppercase; }
.app-footline a { color: #9b9484; text-decoration: none; }
@media (max-width: 640px) { .app-topbar .brand em, .app-footline-sep { display: none; } }

/* — documentul oficial — */
[data-app-page] { background: #fffdf8; border: 1px solid #e3ddcd; border-radius: 4px;
  padding: 2rem 3rem 3.25rem; margin-top: 1.25rem; margin-bottom: 3rem;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px rgba(1, 16, 56, 0.07); }
[data-app-page]::before { content: "Timișoara International Model United Nations · MMXXVI";
  display: block; text-align: center; font-family: var(--sans); font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: #b8860b;
  padding: 62px 0 16px; margin-bottom: 2.25rem;
  background: url("/assets/img/emblem.png") center top / 46px no-repeat;
  border-bottom: 1px solid #e8e2d2; box-shadow: 0 3px 0 -2px #e8e2d2; }
@media (max-width: 640px) { [data-app-page] { padding: 1.5rem 1.25rem 2.5rem; } }

[data-app-page] .eyebrow { font-size: 0.68rem; letter-spacing: 0.28em; color: #b8860b; margin-bottom: 0.5rem; }
[data-app-page] .section-title { font-size: 1.5rem; letter-spacing: -0.01em; }
[data-app-page] .section-title::after { width: 38px; height: 2px; margin-top: 0.6rem; }
[data-app-page] h2 { font-size: 1.02rem; margin: 0 0 0.9rem; letter-spacing: 0.01em; }

/* — autentificare — */
.app-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%;
  margin-top: 1.6rem; background: #fff; border: 1px solid #d8d2c2; border-radius: 3px;
  font-weight: 600; padding: 0.75rem 1rem; }
.app-google:hover { border-color: var(--navy); background: #fff; }
.app-or { text-align: center; color: #9b9484; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 1.2rem 0 0; }
.app-tabs { display: flex; gap: 0; border-bottom: 1px solid #e8e2d2; margin: 1.4rem 0 1.6rem; }
.app-tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; margin-right: 1.75rem; padding: 0.55rem 0; font: inherit; font-size: 0.9rem;
  font-weight: 600; color: #9b9484; cursor: pointer; }
.app-tab.is-active { color: var(--navy); border-bottom-color: var(--gold); }

/* — câmpuri de registru — */
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.4rem; }
.form-field label .opt { font-weight: 500; color: #9b9484; text-transform: none; letter-spacing: 0.02em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.68rem 0.85rem; border: 1px solid #d8d2c2; border-radius: 3px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.22); }
.app-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem;
  margin: 0.65rem 0; cursor: pointer; line-height: 1.5; }
.app-check input { margin-top: 0.22rem; accent-color: var(--navy); width: 15px; height: 15px; flex: none; }

/* — pașii ca articole de tratat — */
.app-steps { display: flex; list-style: none; padding: 0 0 1.4rem; margin: 1.9rem 0 2rem;
  border-bottom: 1px solid #e8e2d2; counter-reset: step; }
.app-steps li { flex: 1; text-align: center; counter-increment: step; position: relative;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #b9b29e; padding-top: 1.85rem; }
.app-steps li::before { content: counter(step, upper-roman); position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); font-family: var(--serif); font-size: 0.95rem; font-weight: 800;
  color: #cfc8b2; letter-spacing: 0.05em; }
.app-steps li.is-active { color: var(--navy); }
.app-steps li.is-active::before { color: #b8860b; }

/* — opțiuni ca dosare oficiale — */
.app-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem; margin-top: 1.4rem; }
.app-choice { text-align: left; background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 1rem 1.1rem; cursor: pointer; font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s; }
.app-choice strong { display: block; color: var(--navy); font-family: var(--serif); font-size: 0.98rem; }
.app-choice em { display: block; font-style: normal; font-weight: 700; color: #b8860b; margin: 0.2rem 0; font-size: 0.9rem; }
.app-choice span { font-size: 0.82rem; color: #6b7280; line-height: 1.45; display: block; margin-top: 0.15rem; }
.app-choice:hover { border-color: var(--gold); border-left-color: var(--gold); }
.app-choice.is-active { border-left-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: #fffcf2; }
.app-choice[disabled] { opacity: 0.45; cursor: not-allowed; }

.app-seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.45rem; margin-top: 0.5rem; }
.app-seat { font: inherit; font-size: 0.85rem; padding: 0.48rem 0.6rem; background: #fff;
  border: 1px solid #e3ddcd; border-radius: 2px; cursor: pointer; color: var(--ink); }
.app-seat:hover:not([disabled]) { border-color: var(--gold); background: #fffcf2; }
.app-seat[disabled] { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* — preferințele I / II / III — */
#pref-slots { counter-reset: pref; margin-top: 1.5rem; }
.pref-slot { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; counter-increment: pref; }
.pref-num { flex: none; width: 34px; height: 34px; border: 1px solid var(--navy); border-radius: 2px;
  background: #fff; color: transparent; position: relative; }
.pref-num::before { content: counter(pref, upper-roman); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
  font-weight: 800; font-size: 0.8rem; color: var(--navy); }
@media (max-width: 560px) { .pref-slot { flex-wrap: wrap; } }

/* — dosarul din dashboard & note — */
.app-card { background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 1.6rem 1.75rem; margin-top: 1.5rem; }
.app-card h3 { font-size: 1.02rem; }
.app-warn { background: #fffcf2; border: 1px solid #eadfb8; border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 0.95rem 1.15rem; margin-top: 1.1rem; font-size: 0.92rem; }
.app-status { margin-top: 1rem; font-weight: 600; font-size: 0.9rem; }
.apply-welcome { background: #fffcf2; border: 1px solid #eadfb8; border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 0.95rem 1.2rem; margin: 1.1rem 0 0; font-size: 0.95rem; }
.badge { border-radius: 2px; letter-spacing: 0.06em; }

/* — registre (tabele) — */
.app-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: #fff;
  border: 1px solid #e3ddcd; }
.app-table th { background: #fffdf8; color: var(--navy); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-align: left;
  padding: 0.7rem 0.75rem; border-bottom: 2px solid var(--navy); white-space: nowrap; }
.app-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid #efe9da; vertical-align: top; }
.app-table tr.is-assigned td { background: #f6faf4; }
.app-table tr.is-paid td { background: #f4f8fd; }
.app-table tr:hover td { background: #fffcf2; }
.app-table .btn { padding: 0.28rem 0.7rem; font-size: 0.78rem; border-radius: 2px; }
.app-table select { font: inherit; font-size: 0.8rem; padding: 0.28rem; max-width: 190px;
  border: 1px solid #d8d2c2; border-radius: 2px; }

/* — newsroom — */
.news-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid #e3ddcd; border-left: 3px solid var(--navy);
  border-radius: 3px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.news-row--sg { border-left-color: var(--gold); }

/* footerul site-ului, adaptat pe platformă */
.footer--app { margin-top: 0; }

/* checkout */
.checkout-total { margin-top: 1.25rem; font-size: 1.05rem; }
.checkout-total strong { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.checkout-total s { color: #9b9484; margin-left: 0.5rem; font-size: 0.95rem; }
.checkout-box { background: #fffcf2; border: 1px solid #eadfb8; border-left: 3px solid var(--gold);
  border-radius: 3px; padding: 1.1rem 1.3rem; margin-top: 1rem; }
.checkout-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #b8860b; margin: 0 0 0.25rem; }
.checkout-amount { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--navy); margin: 0; }
.checkout-amount s { font-size: 1rem; color: #9b9484; font-weight: 500; margin-left: 0.5rem; }
.checkout-code { margin: 0.35rem 0 0; font-size: 0.85rem; color: #1d7a34; }

/* dashboard: document fără bordură */
[data-app-page="dashboard"] { border: 0; }

/* comitete pe homepage: 4 echilibrate + banner press separat */
.card-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .card-grid--four { grid-template-columns: 1fr; } }

.press-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.75rem;
  margin-top: 1.25rem; background: var(--navy); color: #fff; border-radius: 8px;
  border-left: 4px solid var(--gold); padding: 1.75rem 2.25rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s; }
.press-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(1, 16, 56, 0.3); }
.press-banner h3 { color: #fff; font-size: 1.25rem; margin: 0.2rem 0 0.4rem; }
.press-banner-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin: 0; }
.press-banner-sub { color: #b9c2da; font-size: 0.92rem; margin: 0; max-width: 60ch; }
.press-banner-mark { position: absolute; right: 2.5rem; bottom: -1.5rem; width: 120px; height: 120px;
  object-fit: contain; opacity: 0.14; pointer-events: none; }
.press-banner-go { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 1.3rem; flex: none; }
@media (max-width: 640px) { .press-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .press-banner-go { display: none; } }

/* FAQ + Contact: layout lat în două coloane (aside sticky + conținut) */
.faq-layout, .contact-layout { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: 3.5rem; align-items: start; }
.faq-aside, .contact-aside { position: sticky; top: 96px; }
.faq-aside > p, .contact-aside > p { color: var(--muted); max-width: 42ch; }

.faq-help { margin-top: 2rem; background: #fff; border: 1px solid #e8e4da; border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 1.4rem 1.6rem; }
.faq-help p { margin: 0; }
.faq-help-sub { font-size: 0.92rem; color: var(--muted); margin: 0.3rem 0 1.1rem !important; }
.faq-help .btn { margin-top: 1rem; }

.accordion--wide details { padding: 1.15rem 1.5rem; }
.accordion--wide summary { font-size: 1.02rem; }

.contact-cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.75rem; }
.contact-card { display: block; background: #fff; border: 1px solid #e8e4da; border-radius: 8px;
  padding: 0.95rem 1.2rem; text-decoration: none; color: var(--navy);
  transition: border-color 0.15s, transform 0.15s; }
a.contact-card:hover { border-color: var(--gold); transform: translateX(3px); }
.contact-card-label { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: #b8860b; margin-bottom: 0.2rem; }
.contact-card strong { font-weight: 600; font-size: 0.98rem; }

.contact-form-panel { background: #fff; border: 1px solid #e8e4da; border-radius: 10px;
  padding: 2.25rem 2.5rem; }
.contact-form-panel h2 { font-size: 1.3rem; margin: 0; }

@media (max-width: 900px) {
  .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .faq-aside, .contact-aside { position: static; }
  .contact-form-panel { padding: 1.5rem; }
}

/* PLATFORM V3: o singură suprafață — documentul se contopește cu pagina (cerință: o singură culoare) */
.app-body { background: #fffdf8; }
[data-app-page] { background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 1rem 1.25rem 0; margin-top: 0; margin-bottom: 1.5rem; }
.dash-page[data-app-page] { padding: 1.25rem clamp(1.25rem, 3.5vw, 3rem) 2.5rem; }

/* progress tracker dashboard (stil Common App) */
.dash-track { list-style: none; display: flex; margin: 0 0 1.5rem; padding: 0; max-width: 640px; }
.dash-track li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  position: relative; text-align: center; }
.dash-track li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px;
  background: #e3ddcd; }
.dash-track li:first-child::before { display: none; }
.dash-track li.is-done::before, .dash-track li.is-current::before { background: var(--navy); }
.dt-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: #fff; border: 2px solid #e3ddcd; color: #9b9484;
  font-size: 0.78rem; font-weight: 700; position: relative; z-index: 1; }
.is-done .dt-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.is-current .dt-dot { border-color: var(--gold); background: var(--gold); color: var(--navy);
  box-shadow: 0 0 0 4px rgba(253, 192, 2, 0.22); }
.dt-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9b9484; }
.is-done .dt-label, .is-current .dt-label { color: var(--navy); }
.ov-days { color: #b8860b; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; margin: 0 0 0.4rem; }
@media (max-width: 560px) { .dt-label { font-size: 0.58rem; } }

/* resurse: form publish (secretariat + chair) + liste delegat */
.res-form { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.res-form input[type="text"], .res-form input:not([type]), .res-form input[type="url"],
.res-form select { padding: 0.55rem 0.8rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; }
.res-form #rf-title { flex: 1; min-width: 220px; }
.res-form input[type="file"] { font-size: 0.85rem; }
.res-group { margin: 1.25rem 0 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: #b8860b; }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-list li { padding: 0.45rem 0; border-bottom: 1px solid #efeadd; }
.res-list li:last-child { border-bottom: 0; }
.res-list a { font-weight: 600; }

/* dashboard: titlul + salutul în coloana stângă — dreapta începe la același nivel cu stânga */
.dash-aside { position: sticky; top: 84px; align-self: start; }
.dash-aside .eyebrow { margin-bottom: 0.4rem; }
.dash-hello { margin: 0.5rem 0 1.5rem; font-size: 0.95rem; color: var(--muted); }
.dash-shell { margin-top: 0.5rem; }
.dash-aside .dash-nav { position: static; }
@media (max-width: 720px) { .dash-aside { position: static; } }

/* meniu dashboard categorizat pe roluri + newsroom drafturi + anunțuri */
.dash-group { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: #b8860b; margin: 1.1rem 0 0.3rem; padding-left: 0.9rem; }
.dash-nav .dash-group:first-child { margin-top: 0; }
.chip { display: inline-block; border: 1px solid; border-radius: 999px; padding: 0.05rem 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.ann-item, .review-item { border-top: 1px solid #efeadd; padding: 0.8rem 0; }
.ann-head { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.ann-head .ann-meta { color: #9b9484; font-size: 0.8rem; margin-left: auto; flex: none; }
.ann-head button { flex: none; }
.ann-body { margin: 0.35rem 0 0; color: var(--ink); font-size: 0.95rem; white-space: pre-line; }
.review-body { margin-top: 0.6rem; color: var(--ink); font-size: 0.95rem; }
.review-item summary { cursor: pointer; color: var(--navy); font-size: 0.9rem; margin-top: 0.4rem; }

/* galerie 2025 — masonry pe coloane + lightbox nativ <dialog> */
.gal-grid { columns: 3 300px; column-gap: 0.9rem; margin-top: 2rem; }
.gal-item { display: block; margin-bottom: 0.9rem; border-radius: 6px; overflow: hidden;
  break-inside: avoid; background: #e8e4da; }
.gal-item img { width: 100%; display: block; transition: transform 0.25s, filter 0.25s; }
.gal-item:hover img { transform: scale(1.03); filter: brightness(1.05); }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; overflow: visible; margin: auto; }
#lightbox::backdrop { background: rgba(1, 16, 56, 0.93); }
#lightbox img { max-width: 92vw; max-height: 84vh; display: block; margin: 0 auto;
  border-radius: 4px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.lb-bar { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.9rem; }
.lb-bar button { background: none; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
  border-radius: 4px; padding: 0.35rem 1.1rem; font: inherit; font-size: 0.9rem; cursor: pointer; }
.lb-bar button:hover { border-color: var(--gold); color: var(--gold); }

/* Digital ID — legitimația de conferință */
.tmun-id { max-width: 440px; background: var(--navy); color: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(1, 16, 56, 0.35); }
.tid-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.06); border-bottom: 2px solid var(--gold);
  font-size: 0.58rem; letter-spacing: 0.18em; font-weight: 700; text-transform: uppercase; color: var(--gold); }
.tid-head img { height: 24px; filter: brightness(0) invert(1); flex: none; }
.tid-body { display: flex; gap: 1.2rem; padding: 1.4rem 1.25rem; align-items: center; }
.tid-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none;
  background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); }
.tid-photo img { width: 100%; height: 100%; object-fit: cover; }
.tid-photo .tid-emblem { width: 58%; height: 58%; object-fit: contain; opacity: 0.7; filter: brightness(0) invert(1); }
.tid-role { color: var(--gold); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; margin: 0 0 0.3rem; }
.tid-info h3 { color: #fff; margin: 0 0 0.45rem; font-size: 1.3rem; }
.tid-line { margin: 0.12rem 0; color: #cfd6e4; font-size: 0.88rem; }
.tid-line a { color: var(--gold); text-decoration: none; }
.tid-foot { display: flex; justify-content: space-between; padding: 0.7rem 1.25rem;
  background: rgba(0, 0, 0, 0.28); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #9aa6c8; }
@media (max-width: 480px) { .tid-body { flex-direction: column; text-align: center; } }

/* avatar în panoul Profile */
.pf-avatar-row { display: flex; align-items: center; gap: 1.1rem; }
.pf-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-avatar .pf-avatar-emblem { width: 55%; height: 55%; object-fit: contain; opacity: 0.7; filter: brightness(0) invert(1); }

/* ===== MUN Command — chair live console ===== */
.cmd-bar { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.cmd-committee { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; color: var(--navy); letter-spacing: 0.04em; }
.cmd-mode { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.cmd-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .cmd-grid { grid-template-columns: 1fr; } }
.cmd-col h4 { margin: 0 0 0.5rem; }
.cmd-gsl { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.cmd-gsl li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; border: 1px solid #e8e4da; border-radius: 6px; margin-bottom: 0.35rem; }
.cmd-gsl li.speaking { border-color: var(--gold); background: #fff7df; }
.cmd-gsl li.spoke { opacity: 0.5; }
.cmd-gsl .sp-ctrls button { background: none; border: 1px solid #d6d1c4; border-radius: 4px; padding: 0.05rem 0.4rem; cursor: pointer; margin-left: 0.15rem; }
.cmd-requests { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cmd-timer { margin-bottom: 1rem; }
.cmd-timer-ctrls { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.35rem; }
.cmd-time { font-family: var(--serif); font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
/* Timer hits 0 (spec §7): brief red flash. Sound (beep()) fires regardless of this animation. */
.cmd-time.time-up { animation: cmd-time-up 0.6s ease; }
@keyframes cmd-time-up {
  0%, 100% { color: inherit; text-shadow: none; }
  50% { color: #d92626; text-shadow: 0 0 14px rgba(217, 38, 38, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .cmd-time.time-up { animation: none; }
}
.cmd-points .pt { padding: 0.35rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.9rem; }
.cmd-points .pt button { background: none; border: 1px solid #d6d1c4; border-radius: 4px; cursor: pointer; padding: 0.05rem 0.4rem; }
.cmd-attendance { list-style: none; padding: 0; margin: 0.5rem 0 0; max-height: 60vh; overflow: auto; }
.cmd-attendance li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.9rem; }
.att-toggle { display: inline-flex; gap: 0.2rem; }
.att { border: 1px solid #d6d1c4; background: #fff; border-radius: 4px; padding: 0.1rem 0.4rem; cursor: pointer; font-size: 0.78rem; }
.att.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-ft { background: var(--un-blue); color: #fff; font-size: 0.65rem; padding: 0.05rem 0.35rem; border-radius: 99px; }
.badge-ns { color: #b8860b; font-size: 0.65rem; }
.cmd-tally { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }

/* motions & voting */
.cmd-motions-area { margin-top: 1.5rem; border-top: 1px solid #e8e4da; padding-top: 1rem; }
.cmd-motion-add { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.75rem; }
.cmd-motion-add input, .cmd-motion-add select { padding: 0.4rem 0.5rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; }
.cmd-motions { list-style: none; padding: 0; margin: 0; }
.cmd-motion { border: 1px solid #e8e4da; border-radius: 6px; padding: 0.5rem 0.6rem; margin-bottom: 0.5rem; }
.cmd-motion-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.4rem; }
.cmd-motion-type { background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.1rem 0.45rem; border-radius: 99px; }
.cmd-motion-ctrls { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.cmd-motion-ctrls select { padding: 0.3rem 0.4rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; font-size: 0.85rem; }
.cmd-motion-ctrls .btn { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

.cmd-vote { margin-top: 1rem; border: 1px solid var(--gold); border-radius: 8px; background: #fffdf5; padding: 0.75rem 0.85rem; }
.cmd-vote-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.cmd-vote-tally { font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.cmd-vote-preview { font-weight: 800; letter-spacing: 0.03em; margin: 0.3rem 0 0.6rem; }
.cmd-vote-preview.passed, .cmd-vote-res.passed { color: #157347; }
.cmd-vote-preview.failed, .cmd-vote-res.failed { color: #b02a37; }
.cmd-vote-manual { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.cmd-vote-manual label { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted); gap: 0.2rem; }
.cmd-vote-manual input { width: 5rem; padding: 0.4rem 0.5rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; }
.cmd-vote-manual .btn, .cmd-vote-manual p { flex-basis: 100%; }
.cmd-ballots { list-style: none; padding: 0; margin: 0.3rem 0 0.75rem; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.25rem; max-height: 40vh; overflow: auto; }
.cmd-ballot { display: flex; justify-content: space-between; gap: 0.4rem; padding: 0.2rem 0.4rem;
  border: 1px solid #f0ece2; border-radius: 4px; font-size: 0.82rem; }
.cmd-ballot-choice { text-transform: uppercase; font-size: 0.7rem; font-weight: 700; }
.cmd-ballot.for { border-color: #157347; } .cmd-ballot.for .cmd-ballot-choice { color: #157347; }
.cmd-ballot.against { border-color: #b02a37; } .cmd-ballot.against .cmd-ballot-choice { color: #b02a37; }
.cmd-ballot.abstain .cmd-ballot-choice { color: var(--muted); }
.cmd-ballot.pending { opacity: 0.6; }
.cmd-vote-hist { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #f0ece2; font-size: 0.88rem; }
.cmd-vote-res { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
.live-dot { color: #d0202f; display: inline-block; animation: pj-pulse 1.4s ease-in-out infinite; }
.ls-attend { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0; flex-wrap: wrap; }
.ls-now { margin: 0.75rem 0; }
.ls-actions { display: flex; align-items: center; gap: 0.6rem; margin: 0.75rem 0; flex-wrap: wrap; }

.ls-motion { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 1rem 0 0.5rem;
  border-top: 1px solid #e8e4da; padding-top: 1rem; }
.ls-motion select, .ls-motion input { padding: 0.4rem 0.5rem; border: 1px solid #d6d1c4; border-radius: 6px; font: inherit; }

.ls-vote { margin-top: 1rem; border: 1px solid var(--gold); border-radius: 8px; background: #fffdf5; padding: 0.75rem 0.85rem; }
.ls-vote-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.ls-vote-ineligible { color: var(--muted); font-style: italic; margin: 0; }
.ls-vote-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ls-vote-btn { flex: 1 1 8rem; min-height: 3.2rem; padding: 0.75rem 1rem; border-radius: 8px; border: 2px solid #d6d1c4;
  background: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; letter-spacing: 0.02em; }
.ls-vote-btn--for.is-selected { border-color: #157347; background: #157347; color: #fff; }
.ls-vote-btn--against.is-selected { border-color: #b02a37; background: #b02a37; color: #fff; }
.ls-vote-btn--abstain.is-selected { border-color: var(--muted); background: var(--muted); color: #fff; }
.ls-vote-result { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; margin: 0.2rem 0; }
.ls-vote-result.passed { color: #157347; }
.ls-vote-result.failed { color: #b02a37; }

/* ===== MUN Command — projector (read-only big screen) ===== */
.projector { min-height: 100vh; background: var(--navy); color: #fff; text-align: center; padding: 4vh 4vw; }
.pj-committee { color: var(--gold); font-family: var(--serif); font-weight: 900; font-size: 2rem; letter-spacing: 0.1em; }
.pj-now { color: #9aa6c8; letter-spacing: 0.3em; margin-top: 6vh; }
.pj-current { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 6vw, 5rem); }
.projector .cmd-time { color: #fff; font-size: clamp(3rem, 12vw, 9rem); }
.pj-present { color: #9aa6c8; margin-top: 1vh; letter-spacing: 0.05em; }
.pj-gsl { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 0; margin-top: 4vh; color: #cfd6e4; }
@keyframes pj-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Digital ID — variante vizuale per rol */
/* Chairperson: banda de antet plină, aurie */
.tid--chair { border: 2px solid var(--gold); }
.tid--chair .tid-head { background: var(--gold); color: var(--navy); }
.tid--chair .tid-head img { filter: none; }
/* Press: accente UN blue */
.tid--press .tid-head { border-bottom-color: var(--un-blue); color: #bcd4f6; }
.tid--press .tid-photo { border-color: var(--un-blue); }
.tid--press .tid-role { color: var(--un-blue); }
.tid--press .tid-line a { color: #bcd4f6; }
/* Secretariat: card auriu, text navy */
.tid--secretariat { background: linear-gradient(135deg, #fdc002, #e8ae00); color: var(--navy); }
.tid--secretariat .tid-head { background: var(--navy); color: var(--gold); }
.tid--secretariat .tid-photo { border-color: var(--navy); background: rgba(1, 16, 56, 0.15); }
.tid--secretariat .tid-role { color: var(--navy); }
.tid--secretariat .tid-info h3 { color: var(--navy); }
.tid--secretariat .tid-line { color: #3a3413; }
.tid--secretariat .tid-line a { color: var(--navy); font-weight: 600; }
.tid--secretariat .tid-foot { background: rgba(1, 16, 56, 0.18); color: var(--navy); }
/* Staff/board (voluntari, PR): ivory, sobru */
.tid--staff { background: #fffdf8; color: var(--ink); border: 1px solid #e3ddcd; box-shadow: 0 12px 36px rgba(1, 16, 56, 0.12); }
.tid--staff .tid-head { background: var(--navy); }
.tid--staff .tid-photo { border-color: var(--navy); background: #efeadd; }
.tid--staff .tid-photo .tid-emblem { filter: none; opacity: 0.5; }
.tid--staff .tid-role { color: #b8860b; }
.tid--staff .tid-info h3 { color: var(--navy); }
.tid--staff .tid-line { color: var(--muted); }
.tid--staff .tid-line a { color: var(--navy); }
.tid--staff .tid-foot { background: #efeadd; color: #9b9484; }

/* platformă fără carduri: conținut direct pe pagină, secțiuni separate de titluri + hairline.
   Excepții intenționate: .tmun-id (legitimația e un obiect), .app-warn / .checkout-box (callouts). */
.app-card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.app-card > h3:first-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 1.1rem; }
.app-card > h3:first-child::after { content: ""; display: block; width: 30px; height: 2px;
  background: var(--gold); margin-top: 0.5rem; }
.app-card + .app-card, .dash-content .app-card + .app-card {
  margin-top: 2rem !important; border-top: 1px solid #eee7d9; padding-top: 1.75rem; }

/* overview editorial: statusul ca declarație, faptele ca bandă compactă */
.dash-content [data-panel="overview"], .dash-content [data-panel="id"],
.dash-content [data-panel="application"], .dash-content [data-panel="resources"] { max-width: 780px; }
.ov-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: #b8860b; margin: 1.5rem 0 0.6rem; }
[data-app-page] h2.ov-headline { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 0.55rem; line-height: 1.15; }
.ov-sub { color: var(--muted); max-width: 54ch; margin: 0; }
.ov-cta { margin-top: 1.6rem; }
.ov-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin-top: 3rem; padding: 1rem 0.1rem;
  border-top: 1px solid #eee7d9; border-bottom: 1px solid #eee7d9;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9b9484; }
.ov-facts #ov-days { color: #b8860b; font-weight: 700; }
.ov-facts a { color: #9b9484; text-decoration: none; text-transform: none; letter-spacing: 0.04em; }
.ov-facts a:hover { color: var(--navy); }

/* selecturi custom — proprietăți explicite ca să învingă shorthand-ul `background:#fff` din regulile vechi */
[data-app-page] select, .form-field select, .res-form select, .exp-add select, .chair-add select {
  -webkit-appearance: none !important; appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23011038' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 12px 8px !important;
  padding-right: 2.3rem !important;
  cursor: pointer; }
.app-table select { background-position: right 0.45rem center !important; padding-right: 1.7rem !important; }

/* exp-add: rând compact, nu câmpuri full-width stivuite */
.form-field .exp-add input, .form-field .exp-add select { width: auto; }
.form-field .exp-add input[type="number"] { width: 5.6rem; }
.form-field .exp-add #pfx-name, .form-field .exp-add #stx-name { flex: 1; min-width: 180px; width: auto; }

/* dropdown custom (.cs) — lista deschisă în tema site-ului */
.cs { position: relative; display: block; }
.exp-add .cs, .res-form .cs, .chair-add .cs { display: inline-block; min-width: 130px; }
.cs select { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px;
  opacity: 0; pointer-events: none; padding: 0 !important; }
.cs-btn { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.95rem;
  color: var(--ink); background-color: #fff; border: 1px solid #d8d2c2; border-radius: 4px;
  padding: 0.6rem 2.3rem 0.6rem 0.85rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23011038' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 12px 8px; }
.cs-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.22); }
.cs-btn .cs-ph { color: #9b9484; }
.cs-list { position: absolute; z-index: 90; top: calc(100% + 5px); left: 0; min-width: 100%;
  max-height: 270px; overflow: auto; background: #fff; border: 1px solid #e3ddcd;
  border-top: 2px solid var(--gold); border-radius: 8px; padding: 0.3rem;
  box-shadow: 0 16px 44px rgba(1, 16, 56, 0.16); }
.cs-opt { display: block; width: 100%; text-align: left; background: none; border: 0;
  font: inherit; font-size: 0.92rem; color: var(--ink); padding: 0.48rem 0.7rem;
  border-radius: 6px; cursor: pointer; white-space: nowrap; }
.cs-opt:hover, .cs-opt:focus-visible { background: #fff7df; color: var(--navy); outline: none; }
.cs-opt.is-sel { font-weight: 600; color: var(--navy); }
.cs-opt.is-sel::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 0.45rem; }
.cs-opt.is-dis { opacity: 0.4; cursor: default; }

/* Statistics: contoare + bare */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1rem; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9b9484; }
.stat-bar-row { display: flex; align-items: center; gap: 0.8rem; margin: 0.45rem 0; }
.stat-bar-label { width: 4.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--navy); }
.stat-bar { flex: 1; height: 10px; background: #efeadd; border-radius: 999px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e8ae00); border-radius: 999px; }
.stat-bar-num { width: 3.4rem; text-align: right; font-size: 0.8rem; color: var(--muted); }
.stat-days { display: flex; align-items: flex-end; gap: 6px; min-height: 90px; }
.stat-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-day span { display: block; width: 16px; min-height: 3px; background: var(--navy); border-radius: 3px 3px 0 0; }
.stat-day em { font-style: normal; font-size: 0.62rem; color: #9b9484; }

/* file input custom (.cf) */
.cf { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.cf input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-btn { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--navy); background: #fff;
  border: 1px solid var(--navy); border-radius: 4px; padding: 0.5rem 1.15rem; cursor: pointer;
  transition: background 0.15s, border-color 0.15s; }
.cf-btn:hover { background: var(--gold); border-color: var(--gold); }
.cf-name { font-size: 0.85rem; color: #9b9484; }
.cf-name.has-file { color: var(--ink); font-weight: 500; }

/* calendar custom (.cd) */
.cd { position: relative; display: block; }
.cd input[type="date"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0 !important; }
.cd-btn { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.95rem; color: var(--ink);
  background-color: #fff; border: 1px solid #d8d2c2; border-radius: 4px; padding: 0.6rem 2.3rem 0.6rem 0.85rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%23011038' stroke-width='1.6'%3E%3Crect x='1.5' y='2.5' width='12' height='11' rx='2'/%3E%3Cpath d='M1.5 6h12M5 1v3M10 1v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; }
.cd-btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 192, 2, 0.22); }
.cd-pop { position: absolute; z-index: 95; top: calc(100% + 5px); left: 0; width: 300px;
  background: #fff; border: 1px solid #e3ddcd; border-top: 2px solid var(--gold); border-radius: 10px;
  padding: 0.8rem; box-shadow: 0 16px 44px rgba(1, 16, 56, 0.16); }
.cd-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; }
.cd-head .cs { flex: 1; }
.cd-head .cs-btn { padding: 0.4rem 1.7rem 0.4rem 0.6rem; font-size: 0.85rem; background-position: right 0.5rem center; }
.cd-nav { flex: none; width: 30px; height: 30px; border: 1px solid #e3ddcd; border-radius: 6px;
  background: #fff; font-size: 1rem; color: var(--navy); cursor: pointer; }
.cd-nav:hover { border-color: var(--gold); background: #fff7df; }
.cd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cd-dow span { text-align: center; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  color: #9b9484; padding: 0.2rem 0 0.35rem; }
.cd-day { border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--ink);
  width: 100%; aspect-ratio: 1; border-radius: 50%; cursor: pointer; }
.cd-day:hover { background: #fff7df; color: var(--navy); }
.cd-day.is-sel { background: var(--gold); color: var(--navy); font-weight: 700; }

/* photo picker integrat (.pp): avatarul e butonul; crop-ul se face în același cerc */
.pp { display: block; }
.pp input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pp-circle { position: relative; width: 190px; height: 190px; border-radius: 50%; overflow: hidden;
  background: var(--navy); border: 3px solid var(--gold); cursor: pointer; }
.pp-circle > img { width: 100%; height: 100%; object-fit: cover; }
.pp-circle .pf-avatar-emblem { width: 52%; height: 52%; object-fit: contain; opacity: 0.65;
  filter: brightness(0) invert(1); position: absolute; inset: 0; margin: auto; }
.pp-crop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.pp-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55rem 0 0.7rem;
  text-align: center; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: rgba(1, 16, 56, 0.65);
  opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.pp-circle:hover .pp-overlay { opacity: 1; }
.pp-circle .pf-avatar-emblem ~ .pp-overlay, .pp-circle:has(.pf-avatar-emblem:not([hidden])) .pp-overlay { opacity: 1; }
.pp-circle.is-cropping { cursor: grab; }
.pp-circle.is-cropping .pp-overlay { display: none; }
.pp .crop-controls { margin-top: 0.8rem; }

/* butonul de fișier fără nume de fișier */
.cf-btn.has-file { border-color: #1d7a34; color: #1d7a34; }
.cf-btn.has-file:hover { background: #f0f7ef; border-color: #1d7a34; }
.cf-name { display: none; }

/* exp-rows: rânduri editabile cu Add pe ultimul și coș pe restul */
.exp-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.exp-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.exp-row input, .exp-row select { padding: 0.5rem 0.7rem; border: 1px solid #d6d1c4; border-radius: 4px; font: inherit; background: #fff; width: auto; }
.exp-row .xr-name { flex: 1; min-width: 180px; }
.exp-row .xr-year { width: 5.6rem; }
.exp-row .cs { display: inline-block; min-width: 120px; }
.xr-del { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e3ddcd; border-radius: 6px; color: #b00020; cursor: pointer; }
.xr-del:hover { border-color: #b00020; background: #fdf2f2; }

/* buton Digital ID pe cardurile de board */
.board-id-link { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #b8860b; text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.4); padding-bottom: 1px; }
.board-id-link:hover { color: var(--navy); border-color: var(--navy); }

/* ============================================================
   DIGITAL ID v2 — badge vertical de conferință (lanyard style)
   ============================================================ */
.tmun-id { position: relative; max-width: 340px; background: var(--navy); color: #fff;
  border-radius: 20px; padding: 1.4rem 0 0; overflow: hidden; border: 0;
  box-shadow: 0 24px 60px rgba(1, 16, 56, 0.4), 0 4px 14px rgba(1, 16, 56, 0.2); }
.tid-slot { display: block; width: 58px; height: 9px; margin: 0 auto 1.2rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6); }
.tid-wm { position: absolute; right: -55px; top: 34%; width: 240px; opacity: 0.05;
  filter: brightness(0) invert(1); pointer-events: none; }
.tid-brand { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.tid-brand b { font-weight: 900; color: var(--gold); }
.tid-brand span { display: block; margin-top: 0.3rem; font-family: var(--sans); font-weight: 700;
  font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase; color: #9aa6c8; }
.tmun-id .tid-photo { position: relative; width: 132px; height: 132px; margin: 1.3rem auto 0;
  border-radius: 50%; overflow: hidden; border: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; }
.tmun-id .tid-photo img { width: 100%; height: 100%; object-fit: cover; }
.tmun-id .tid-photo .tid-emblem { width: 54%; height: 54%; object-fit: contain; opacity: 0.65;
  filter: brightness(0) invert(1); }
.tid-name { color: #fff; text-align: center; font-size: 1.45rem; margin: 1rem 1.25rem 0.9rem;
  letter-spacing: -0.01em; }
.tmun-id .tid-role { display: block; background: var(--gold); color: var(--navy); text-align: center;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.55rem 1rem; margin: 0; }
.tid-details { padding: 1.1rem 1.5rem 1.2rem; text-align: center; position: relative; }
.tmun-id .tid-line { margin: 0.18rem 0; color: #cfd6e4; font-size: 0.88rem; }
.tmun-id .tid-line a { color: var(--gold); text-decoration: none; }
.tmun-id .tid-foot { display: flex; justify-content: space-between; padding: 0.75rem 1.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.22);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa6c8; }

/* variante pe rol — v2 */
.tid--chair { box-shadow: 0 0 0 2px var(--gold), 0 24px 60px rgba(1, 16, 56, 0.4); }
.tid--press .tid-role { background: var(--un-blue); color: #fff; }
.tid--press .tid-photo { border-color: var(--un-blue); }
.tid--press .tid-line a { color: #bcd4f6; }
.tid--secretariat { background: linear-gradient(160deg, #fdc002, #e8ae00); color: var(--navy); }
.tid--secretariat .tid-brand span { color: rgba(1, 16, 56, 0.55); }
.tid--secretariat .tid-brand b { color: var(--navy); }
.tid--secretariat .tid-photo { border-color: var(--navy); background: rgba(1, 16, 56, 0.12); }
.tid--secretariat .tid-photo .tid-emblem { filter: none; opacity: 0.55; }
.tid--secretariat .tid-name { color: var(--navy); }
.tid--secretariat .tid-role { background: var(--navy); color: var(--gold); }
.tid--secretariat .tid-line { color: #4a4213; }
.tid--secretariat .tid-line a { color: var(--navy); font-weight: 600; }
.tid--secretariat .tid-foot { border-top-color: rgba(1, 16, 56, 0.3); background: rgba(1, 16, 56, 0.14); color: rgba(1, 16, 56, 0.65); }
.tid--secretariat .tid-wm { filter: none; opacity: 0.08; }
.tid--secretariat .tid-slot { background: rgba(1, 16, 56, 0.4); border-color: rgba(1, 16, 56, 0.2); }
.tid--staff { background: #fffdf8; color: var(--ink); border: 1px solid #e3ddcd;
  box-shadow: 0 16px 44px rgba(1, 16, 56, 0.14); }
.tid--staff .tid-brand { color: var(--navy); }
.tid--staff .tid-brand span { color: #9b9484; }
.tid--staff .tid-photo { border-color: var(--navy); background: #efeadd; }
.tid--staff .tid-photo .tid-emblem { filter: none; opacity: 0.5; }
.tid--staff .tid-name { color: var(--navy); }
.tid--staff .tid-role { background: var(--navy); color: var(--gold); }
.tid--staff .tid-line { color: var(--muted); }
.tid--staff .tid-foot { border-top-color: #e3ddcd; background: #f4f0e6; color: #9b9484; }
.tid--staff .tid-wm { filter: none; opacity: 0.05; }
.tid--staff .tid-slot { background: #d9d2c2; border-color: #cfc7b4; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15); }

/* pagina publică a legitimației: badge-ul prezentat centrat */
.id-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 3rem; }
.id-hero .tmun-id { animation: id-in 0.5s ease-out both; }
@media (prefers-reduced-motion: reduce) { .id-hero .tmun-id { animation: none; } }
@keyframes id-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.id-verified { margin: 1.5rem auto 0; color: var(--muted); font-size: 0.85rem; max-width: 34ch; line-height: 1.5; }
.id-verified span { display: inline-flex; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 0.7rem; font-weight: 800;
  align-items: center; justify-content: center; margin-right: 0.25rem; }
.id-backlink { margin-top: 0.6rem; }
.id-backlink a { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #9b9484; text-decoration: none; }
.id-backlink a:hover { color: var(--navy); }

/* Admissions — tabel aerisit + status pills */
#admin-table { font-size: 0.88rem; }
#admin-table th { padding: 0.7rem 0.9rem; }
#admin-table td { padding: 0.85rem 0.9rem; vertical-align: top; }
#admin-table tr.is-assigned td { background: #f6faf4; }
#admin-table tr.is-paid td { background: #f4f8fd; }
#admin-table tr.is-reserved td { background: #fffdf5; }
#admin-table td:last-child { white-space: nowrap; }
#admin-table td:last-child .btn { margin: 0 0.2rem 0.35rem 0; padding: 0.32rem 0.75rem; font-size: 0.8rem; }
#admin-summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted); padding: 0.9rem 0; border-bottom: 1px solid #eee7d9; }

/* Digital ID public — verificat + backlink compacte imediat sub card */
.id-verified { margin: 1.1rem auto 0; color: var(--muted); font-size: 0.82rem; max-width: 32ch; line-height: 1.45; }
.id-verified span { display: inline-flex; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 0.62rem; font-weight: 800;
  align-items: center; justify-content: center; margin-right: 0.3rem; vertical-align: -3px; }
.id-backlink { margin-top: 0.35rem; }
.id-backlink a { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #b8860b; text-decoration: none; }
.id-backlink a:hover { color: var(--navy); }

/* CTA de aplicare dezactivat vizual când aplicările sunt închise */
.btn.is-disabled, a.is-disabled { opacity: 0.4; pointer-events: none; cursor: default; filter: grayscale(0.4); }
