/* Aplicația evenimentebuzau.ro. Sistemul de design (tokeni --eb-*, clase eb-*) vine din sistem-design.css, încărcat înainte.
   Aici: clasele vechi ale ecranelor (.btn, .card, .notice…) redate cu tokenii noi, plus ce nu e în sistem. */

html { min-height: 100%; }
body { margin: 0; background: var(--eb-paper); min-height: 100vh; }

/* ---------- cadru ---------- */
.eb-topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--eb-on-deep-2); }
.eb-topbar .who form { margin: 0; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--eb-accent); color: var(--eb-on-accent); font: 800 .85rem/1 var(--eb-f-display); flex: none; }
.topbar__out { background: none; border: 0; color: var(--eb-white); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 4px; }
@media (max-width: 600px) { .who__name { display: none; } }
.eb-tabbar { grid-template-columns: repeat(var(--n, 4), 1fr); }
.eb-shell > main { min-width: 0; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---------- oaspete (înscriere, autentificare) ---------- */
.auth { min-height: 100vh; background: var(--eb-deep); color: var(--eb-white); display: flex; flex-direction: column; }
.auth__in { flex: 1; display: grid; gap: 28px; align-content: start; padding-block: 28px 40px; }
.auth__in--solo { max-width: 520px; }
.auth__in--solo .auth__aside { display: block; }
@media (min-width: 960px) {
    .auth__in:not(.auth__in--solo) { grid-template-columns: 1fr 440px; gap: 64px; align-items: center; padding-block: 64px; }
}
.auth__main .card { box-shadow: var(--eb-shadow-pop); }
.auth .perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth .perks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--eb-on-deep-2); }
.auth .perks li b { color: var(--eb-white); font-weight: 600; }
.auth .perks .eb-ico { color: var(--eb-accent); }
.auth h1.hero { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.auth .eb-eyebrow { color: var(--eb-accent); }
.foot { padding-block: 20px; font-size: .875rem; color: var(--eb-ink-2); text-align: center; }
.foot.on-deep, .foot.on-deep a { color: var(--eb-on-deep-2); }

/* ---------- titluri și text ---------- */
h1 { color: var(--eb-deep); margin: 0 0 8px; font-size: clamp(1.9rem, 6vw, 2.6rem); }
h2 { color: var(--eb-deep); margin: 0 0 8px; font-size: 1.35rem; }
h3 { color: var(--eb-deep); }
h2.sub { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--eb-mist); }
.muted { color: var(--eb-ink-2); margin-top: 0; }
.small { font-size: .875rem; }
a { color: var(--eb-deep-2); }
.alt { text-align: center; margin: 14px 0 0; font-size: .95rem; }
.back { color: var(--eb-deep-2); }
hr.sep { border: 0; border-top: 1px solid var(--eb-mist); margin: 22px 0; }

/* ---------- suprafețe ---------- */
.card { background: var(--eb-white); border: 1px solid var(--eb-mist); border-radius: var(--eb-r); padding: var(--eb-s5); margin-bottom: 16px; }
.card > :last-child { margin-bottom: 0; }
.page-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-h h1 { margin: 0; }

/* ---------- formulare ---------- */
label { display: block; font-weight: 500; font-size: .95rem; margin: 16px 0 6px; color: var(--eb-ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], textarea, select {
    width: 100%; min-height: 52px; padding: 0 14px; font: inherit; color: var(--eb-ink); border: 1.5px solid var(--eb-line); border-radius: 12px; background: var(--eb-white);
}
textarea { padding-block: 12px; min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--eb-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eb-deep) 10%, transparent); }
label.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .9rem; cursor: pointer; color: var(--eb-ink); }
label.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--eb-deep); }
.error { color: var(--eb-bad); font-size: .875rem; font-weight: 500; margin: 6px 0 0; }
.field { margin-top: 4px; }

/* ---------- butoane ---------- */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 22px; padding: 0 22px;
    font: 700 1rem/1 var(--eb-f-body); text-decoration: none; color: var(--eb-on-accent); background: var(--eb-accent);
    border: 0; border-radius: var(--eb-r-pill); cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--eb-accent); }
.btn.inline { display: inline-flex; width: auto; margin-top: 8px; }
.nav .btn.inline { margin-top: 0; }
.btn.ghost { background: transparent; color: var(--eb-deep); box-shadow: inset 0 0 0 1.5px var(--eb-deep); }
.btn.deep { background: var(--eb-deep); color: var(--eb-white); }
.btn.danger { background: var(--eb-bad-soft); color: var(--eb-bad); }
button.link { background: none; border: 0; color: var(--eb-deep-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }

/* ---------- anunțuri, etichete ---------- */
.notice { padding: 14px 16px; border-radius: var(--eb-r); margin-bottom: 16px; background: var(--eb-mist); font-size: .95rem; }
.notice.ok { background: var(--eb-ok-soft); color: var(--eb-ok); }
.notice.warn { background: var(--eb-warn-soft); color: var(--eb-warn); }
.notice.bad { background: var(--eb-bad-soft); color: var(--eb-bad); }
.badge { display: inline-flex; align-items: center; font: 700 .78rem/1 var(--eb-f-body); letter-spacing: .04em; padding: 6px 8px; border-radius: 8px; background: var(--eb-deep); color: var(--eb-white); }
.badge.new { background: var(--eb-accent); color: var(--eb-on-accent); }
.badge.ok { background: var(--eb-ok-soft); color: var(--eb-ok); }
.badge.warn { background: var(--eb-warn-soft); color: var(--eb-warn); }
.badge.soft { background: var(--eb-mist); color: var(--eb-ink-2); }

/* ---------- ghidul în pași ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 12px 0 8px; font-size: .78rem; }
.steps li { display: grid; gap: 6px; color: var(--eb-ink-2); font-weight: 500; }
.steps li::before { content: ""; height: 5px; border-radius: 9px; background: var(--eb-mist); }
.steps li.done::before { background: var(--eb-deep); }
.steps li.current::before { background: var(--eb-accent); }
.steps li.current { color: var(--eb-ink); font-weight: 700; }
.steps a { text-decoration: none; color: inherit; }
.steps .num, .steps li a span { display: inline-block; margin-right: 4px; font-weight: 700; }
.meter { display: flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; }
.meter .eb-progress { flex: 1; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 16px; }
.options.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 700px) { .options.big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
label.choice { position: relative; border: 1.5px solid var(--eb-line); border-radius: var(--eb-r); padding: 14px 16px; margin: 0; cursor: pointer; background: var(--eb-white); color: var(--eb-ink); transition: border-color .15s, background .15s; }
label.choice:has(input:checked) { border-color: var(--eb-deep); background: var(--eb-paper); }
.choice small { color: var(--eb-ink-2); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.nav form { margin: 0; }
.preview h2.big { font-size: 1.7rem; margin-bottom: 4px; }
.preview .meta { color: var(--eb-ink-2); margin-top: 0; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 0; }
.specs dt { color: var(--eb-ink-2); }
.specs dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } .specs dd { margin-bottom: 8px; } }

/* ---------- poze ---------- */
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.upload input[type=file] { flex: 1 1 220px; font: inherit; }
.main-photo { display: block; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--eb-r); border: 1px solid var(--eb-mist); }
.gallery { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.gallery li { position: relative; cursor: grab; border-radius: 10px; overflow: hidden; border: 1px solid var(--eb-mist); background: var(--eb-white); }
.gallery li.dragging { opacity: .4; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery form { position: absolute; top: 4px; right: 4px; margin: 0; }
.gallery .del { width: 28px; height: 28px; line-height: 24px; border: 0; border-radius: 50%; background: var(--eb-white); color: var(--eb-ink); font-size: 18px; cursor: pointer; padding: 0; }
.preview-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--eb-r); margin-bottom: 14px; }
.preview-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 18px; }
.preview-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* ---------- admin ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; align-items: center; }
.tabs a { padding: 9px 14px; border-radius: var(--eb-r-pill); background: var(--eb-white); border: 1.5px solid var(--eb-line); color: var(--eb-ink); text-decoration: none; font: 600 .88rem/1 var(--eb-f-body); }
.tabs a.on { background: var(--eb-deep); color: var(--eb-white); border-color: var(--eb-deep); }
.tabs a span { opacity: .7; margin-left: 4px; font-weight: 500; }
.row { display: block; padding: 14px 0; border-bottom: 1px solid var(--eb-mist); text-decoration: none; color: var(--eb-ink); }
.row:last-child { border-bottom: 0; }
a.row:hover strong { color: var(--eb-pop); }
.row span { display: block; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist .eb-ico { width: 18px; height: 18px; }
.checklist .ok { color: var(--eb-ok); }
.checklist .warn { color: var(--eb-warn); }

.qr { width: 200px; max-width: 100%; padding: 8px; background: #fff; border: 1.5px solid var(--eb-line); border-radius: var(--eb-r); }
.qr svg { display: block; width: 100%; height: auto; }
.codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; background: var(--eb-paper); border-radius: var(--eb-r); }
.next-tl { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
dialog.eb-sheet form label { margin: 12px 0 4px; }
dialog.eb-sheet .eb-split > div { min-width: 0; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; }
.bars__col { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: end; height: 100%; gap: 2px; font-size: .78rem; color: var(--eb-ink-2); }
.bars__col i { display: block; width: 100%; max-width: 44px; background: var(--eb-accent); border-radius: 8px 8px 2px 2px; min-height: 4px; align-self: end; }
.bars__col b { color: var(--eb-ink); font-weight: 600; }
.eb-kcard a.plain { text-decoration: none; color: inherit; }
.eb-kcard__t b { min-width: 0; overflow-wrap: anywhere; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .92rem; }
.hist li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding-left: 14px; position: relative; }
.hist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--eb-line); }
.hist li.is-note { background: var(--eb-paper); border-radius: 10px; padding: 10px 12px 10px 24px; }
.hist li.is-note::before { background: var(--eb-accent); left: 10px; top: 1.1em; }
.crm-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.crm-table th { text-align: left; color: var(--eb-ink-2); font-weight: 500; font-size: .78rem; padding: 6px 8px 6px 0; }
.crm-table td { padding: 10px 8px 10px 0; border-top: 1px solid var(--eb-mist); vertical-align: top; }
.crm-table form { margin: 0; }
.crm-table .is-revoked { opacity: .5; text-decoration: line-through; }
.crm-table .is-revoked td:last-child { text-decoration: none; }
@media (max-width: 600px) { .crm-table thead { display: none; } .crm-table td { display: inline-block; padding-right: 12px; border-top: 0; } .crm-table tr { display: block; border-top: 1px solid var(--eb-mist); padding: 8px 0; } }

/* ---------- cereri ---------- */
.badge.new.dot { padding: 4px 8px; }
.req-lock { position: relative; }
.eb-req__title { font-size: 1.4rem; }
.eb-req.is-lost { opacity: .6; }
.race { display: flex; align-items: center; gap: 10px; font-size: .88rem; padding: 10px 12px; border-radius: 12px; background: var(--eb-accent-soft); color: var(--eb-ink); margin-bottom: 14px; }
.race .eb-ico { color: var(--eb-accent-ink); }
.quote { padding: 12px 14px; border-left: 3px solid var(--eb-accent); background: var(--eb-paper); border-radius: 0 10px 10px 0; margin: 14px 0; }
.d-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.d-actions a { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--eb-deep); color: var(--eb-white); text-decoration: none; font: 600 .82rem/1 var(--eb-f-body); }
.d-actions .eb-ico { color: var(--eb-accent); }

/* ---------- contul meu ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.timeline div { display: grid; gap: 8px; font-size: .78rem; color: var(--eb-ink-2); font-weight: 500; }
.timeline div::before { content: ""; height: 6px; border-radius: 9px; background: var(--eb-mist); }
.timeline .ok::before { background: var(--eb-ok); }
.timeline .ok { color: var(--eb-ink); }
.timeline .now::before { background: var(--eb-accent); }
.action-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; margin-bottom: 16px; border-radius: var(--eb-r); background: var(--eb-white); border: 1px solid var(--eb-mist); text-decoration: none; color: var(--eb-ink); }
.action-card:hover { border-color: var(--eb-deep); }
.action-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--eb-accent-soft); color: var(--eb-accent-ink); }
.action-card .ic.deep { background: var(--eb-deep); color: var(--eb-accent); }
.stack-gap > * + * { margin-top: 16px; }
