/* AutoLand — stil comun pentru site-ul de vânzare și panoul de admin.
   Tokens într-un singur loc; componentele nu au culori proprii. */

:root {
  --bg: #050506;
  --bg-2: #08080a;
  --surface: #0e0e12;
  --surface-2: #14141a;
  --border: #212129;
  --border-soft: #1a1a20;

  --text: #f2f2f4;
  --muted: #8b8b98;
  --dim: #5c5c68;

  --accent: #dc2626;
  --accent-soft: #ef4444;
  --accent-dim: rgba(220, 38, 38, .12);

  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;

  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .55);

  --fast: 140ms cubic-bezier(.2, .7, .3, 1);
  --normal: 240ms cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fundal: două pete roșii foarte difuze, fixe. Nu se animează — un gradient
   care se mișcă permanent costă GPU fără să aducă nimic. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(220, 38, 38, .13), transparent 70%),
    radial-gradient(620px 420px at 92% 8%, rgba(120, 20, 20, .10), transparent 70%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; color: var(--muted); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(520px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.hide { display: none !important; }

/* ── Antet ─────────────────────────────────────────────────────────────── */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 6, .8);
  border-bottom: 1px solid var(--border-soft);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -.02em;
  font-size: 1.05rem;
}

.logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(220, 38, 38, .8);
}

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: .92rem; transition: color var(--fast); }
.nav-links a:hover { color: var(--text); }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
}

/* ── Butoane ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
  /* 44px înălțime minimă: ținta de atingere pe telefon */
  min-height: 44px;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn.ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn.ghost:hover { background: #1b1b22; }
.btn.line { background: transparent; border-color: var(--border); color: var(--muted); }
.btn.line:hover { color: var(--text); border-color: #2c2c36; background: transparent; }
.btn.sm { padding: 8px 14px; font-size: .85rem; min-height: 36px; }
.btn.block { width: 100%; }
.btn.danger { background: #7f1d1d; }
.btn.danger:hover { background: #991b1b; }

/* ── Carduri ───────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.18rem); max-width: 60ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(220, 38, 38, .25);
  color: var(--accent-soft);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

section { padding: clamp(48px, 7vw, 88px) 0; }
section > .wrap > h2 { margin-bottom: 8px; }
section > .wrap > p.sub { margin-bottom: 34px; max-width: 60ch; }

/* ── Pachete ───────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--normal), transform var(--normal);
}
.plan:hover { border-color: #33333f; transform: translateY(-3px); }

.plan.featured { border-color: rgba(220, 38, 38, .45); background: linear-gradient(180deg, rgba(220, 38, 38, .06), transparent 55%), var(--surface); }
.plan .tag { position: absolute; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--dim); font-size: .82rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { color: var(--muted); font-size: .92rem; padding: 6px 0 6px 24px; position: relative; }
.plan li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.plan .btn { margin-top: auto; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent-soft);
  border: 1px solid rgba(220, 38, 38, .3);
}

/* ── Formulare ─────────────────────────────────────────────────────────── */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(220, 38, 38, .55);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
input::placeholder { color: var(--dim); }

/* Câmpul de cheie: mare, centrat, monospace — ușor de tastat pe telefon. */
input.key {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(.95rem, 3.6vw, 1.15rem);
  letter-spacing: .06em;
  min-height: 56px;
  text-transform: uppercase;
}

.msg { font-size: .88rem; margin-top: 10px; min-height: 1.2em; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.msg.warn { color: var(--warn); }
.msg.info { color: var(--muted); }

/* ── Tabele (admin) ────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 620px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
th { color: var(--dim); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-2); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }

.st { padding: 3px 9px; border-radius: 6px; font-size: .74rem; font-weight: 650; }
.st.active, .st.paid { background: rgba(34, 197, 94, .14); color: var(--ok); }
.st.expired, .st.revoked, .st.failed, .st.suspended { background: rgba(239, 68, 68, .14); color: var(--err); }
.st.available, .st.pending { background: rgba(245, 158, 11, .14); color: var(--warn); }
.st.refunded, .st.cancelled { background: rgba(139, 139, 152, .14); color: var(--muted); }

/* ── Stat / KPI ────────────────────────────────────────────────────────── */

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; }
.stat .k { color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 1.85rem; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

details.faq {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--surface);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 12px 0 0; font-size: .93rem; }

/* ── Cheia afișată ─────────────────────────────────────────────────────── */

.keybox {
  background: var(--bg-2);
  border: 1px solid rgba(220, 38, 38, .3);
  border-radius: var(--r);
  padding: 20px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(.9rem, 3.6vw, 1.25rem);
  letter-spacing: .08em;
  color: var(--accent-soft);
  word-break: break-all;
  margin: 18px 0;
}

/* ── Încărcare ─────────────────────────────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, #1b1b22 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
  height: 14px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Apariție la scroll — o singură proprietate animată (transform/opacity). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 420ms ease-out, transform 420ms cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Subsol ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 34px 0;
  color: var(--dim);
  font-size: .87rem;
}
.foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ── Tabs (admin) ──────────────────────────────────────────────────────── */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.tab { padding: 8px 16px; border-radius: var(--r-sm); background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: .9rem; transition: all var(--fast); }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.on { background: var(--accent-dim); border-color: rgba(220, 38, 38, .3); color: var(--accent-soft); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; flex: 0 1 auto; }

/* ── Modal ─────────────────────────────────────────────────────────────── */

.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade 160ms ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  width: min(460px, 100%);
  max-height: 86vh;
  overflow: auto;
  box-shadow: var(--shadow);
  animation: pop 200ms cubic-bezier(.2, .7, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } }

/* ── Telefon ───────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .burger { display: block; }
  .hero .cta .btn { width: 100%; }
  .card { padding: 20px; }
  .toolbar input, .toolbar select { width: 100%; }
}

/* Respectă preferința de sistem pentru mai puțină mișcare. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ══ Panou de admin — aspect rotunjit, mai aerisit ═══════════════════════
   Totul e scoped sub body.admin: pagina de vânzare rămâne neschimbată. */

body.admin {
  --ar: 22px;          /* raza cardurilor mari */
  --ar-md: 16px;       /* câmpuri, butoane mari */
}

/* Tabs: control segmentat, tot într-o pastilă */
body.admin .tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 8px 24px rgba(0, 0, 0, .35);
}
body.admin .tab {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 550;
  letter-spacing: .01em;
}
body.admin .tab:hover { background: rgba(255, 255, 255, .05); }
body.admin .tab.on {
  background: linear-gradient(135deg, #e23232, #a31515);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(220, 38, 38, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* Carduri de statistici: egale, rotunjite, cu lumină discretă */
body.admin .grid.g4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
body.admin .stat {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: var(--ar);
  background: linear-gradient(160deg, #16161d 0%, var(--surface) 60%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform var(--normal), border-color var(--normal), box-shadow var(--normal);
}
body.admin .stat::before {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  right: -50px; top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, .22), transparent 70%);
  pointer-events: none;
}
body.admin .stat:hover { transform: translateY(-3px); border-color: rgba(220, 38, 38, .35); box-shadow: 0 16px 38px rgba(0, 0, 0, .45); }
body.admin .stat .k { font-size: .72rem; letter-spacing: .09em; font-weight: 600; }
body.admin .stat .v {
  font-size: 2.3rem;
  font-weight: 800;
  margin-top: 8px;
  background: linear-gradient(180deg, #fff, #c9c9d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Carduri (ex. „Generează chei") */
body.admin .card {
  border-radius: var(--ar);
  padding: 24px 26px;
  background: linear-gradient(165deg, #15151c 0%, var(--surface) 55%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* Câmpuri */
body.admin input,
body.admin select,
body.admin textarea {
  border-radius: var(--ar-md);
  padding: 12px 18px;
  background-color: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast), background-color var(--fast);
}
body.admin input:hover, body.admin select:hover { border-color: #31313c; }
body.admin input:focus, body.admin select:focus {
  background-color: #12121a;
  border-color: rgba(220, 38, 38, .6);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .13);
}
body.admin select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b8b98' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
body.admin input[type=number] { -moz-appearance: textfield; }
body.admin input[type=number]::-webkit-inner-spin-button,
body.admin input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.admin .toolbar { gap: 12px; margin-bottom: 20px; }
body.admin .toolbar input { min-width: 280px; }
body.admin .toolbar select { min-width: 200px; }

/* Butoane: pastile */
body.admin .btn { border-radius: 999px; padding: 12px 26px; }
body.admin .btn.sm { padding: 8px 18px; min-height: 36px; }
body.admin .btn:not(.ghost):not(.line):not(.danger) {
  background: linear-gradient(135deg, #e23232, #b01818);
  box-shadow: 0 6px 18px rgba(220, 38, 38, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
}
body.admin .btn:not(.ghost):not(.line):not(.danger):hover {
  background: linear-gradient(135deg, #ee4040, #c11d1d);
  box-shadow: 0 8px 24px rgba(220, 38, 38, .42), inset 0 1px 0 rgba(255, 255, 255, .2);
}
body.admin .btn.ghost { background: #1a1a22; border-color: #2a2a34; }
body.admin .btn.ghost:hover { background: #22222c; border-color: #383844; }
body.admin .btn.line { border-color: #2a2a34; }
body.admin .btn.line:hover { background: rgba(255, 255, 255, .04); border-color: #3a3a46; }

/* Tabele: container rotunjit, rânduri aerisite */
body.admin .table-wrap {
  border-radius: var(--ar);
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
body.admin th {
  padding: 16px 18px;
  background: linear-gradient(180deg, #13131a, #0e0e13);
  font-size: .7rem;
  letter-spacing: .09em;
}
body.admin td { padding: 14px 18px; }
body.admin tbody tr { transition: background var(--fast); }
body.admin tbody tr:hover { background: rgba(220, 38, 38, .045); }

/* Status: pastile cu punct */
body.admin .st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-size: .73rem;
  letter-spacing: .02em;
}
body.admin .st::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Butoane mici (ochisor / copiaza) in tabel */
body.admin .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px; min-width: 30px; height: 30px; padding: 0 10px;
  border-radius: 999px; border: 1px solid #2a2a34; background: #1a1a22;
  color: var(--muted); font: inherit; font-size: .75rem; cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
  vertical-align: middle;
}
body.admin .icon-btn:hover:not(:disabled) { color: #fff; border-color: rgba(220, 38, 38, .5); background: #22222c; }
body.admin .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
body.admin .icon-btn.hide { display: none; }

/* Modale */
body.admin .modal { border-radius: 26px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
body.admin .modal-bg { backdrop-filter: blur(6px); }
body.admin .keybox { border-radius: var(--ar-md); }
body.admin .badge { border-radius: 999px; }
body.admin .skeleton { border-radius: 14px; }

@media (max-width: 760px) {
  body.admin .tabs { display: flex; border-radius: 24px; }
  body.admin .toolbar input, body.admin .toolbar select { min-width: 0; width: 100%; }
  body.admin .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  body.admin .stat .v { font-size: 1.9rem; }
}

/* ── Joburi în cheie (ca „Minijocuri în cheie” din Hot Wheels) ─────────── */
.feat-box { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); }
.feat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.feat-head b { font-size: .95rem; }
.feat-badge { margin-left: 10px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: .72rem; vertical-align: middle; }
.feat-badge.none { color: var(--accent-soft); border-color: rgba(220, 38, 38, .45); }
.feat-links a { margin-left: 14px; color: var(--muted); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.feat-links a:hover { color: var(--text); }
.feat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.feat-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem;
  transition: background var(--fast), border-color var(--fast), color var(--fast); }
.feat-pill .feat-tick { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem;
  border: 1px solid var(--border); color: transparent; transition: background var(--fast), color var(--fast); }
.feat-pill.on { background: var(--accent-dim); border-color: rgba(220, 38, 38, .55); color: var(--text); }
.feat-pill.on .feat-tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.feat-pill:hover { border-color: rgba(220, 38, 38, .7); }

/* ── Admin: tabelul de licente incape tot (coloana Joburi + Actiuni) ─────── */
body.admin .wrap { width: min(1440px, 100% - 40px); }
.lic-table th, .lic-table td { padding: 11px 12px; white-space: nowrap; }
.lic-table td.lic-user { white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.lic-table td.lic-act { white-space: nowrap; text-align: right; }
.lic-table td.lic-act .btn { margin-left: 6px; }

/* Conturi (admin) */
.user-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.user-link:hover { text-decoration-color: currentColor; }
.acc-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 22px; }
.acc-row { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.acc-row .dim { font-size: .78rem; }
.acc-lic { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.acc-lic:last-of-type { border-bottom: 0; }
.acc-key code { font-size: .85rem; user-select: all; }

/* ── Comutator panou OG / P4K (dreapta sus) ───────────────────────────── */
.pswitch { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2, #14141a);
  border: 1px solid var(--border, #212129); isolation: isolate; user-select: none; }
.pswitch-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; z-index: -1;
  background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 4px 16px rgba(220, 38, 38, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform 260ms cubic-bezier(.3, .8, .25, 1); }
.pswitch[data-active="p4k"] .pswitch-thumb { transform: translateX(100%); }
.pswitch .pswitch-opt { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 78px; padding: 6px 14px 6px 10px;
  border-radius: 999px; color: var(--muted, #8b8b98); font-size: .84rem; font-weight: 700; letter-spacing: .02em; text-decoration: none;
  transition: color 200ms; }
.pswitch .pswitch-opt:hover { color: var(--text, #f2f2f4); }
.pswitch .pswitch-opt.on { color: #fff; cursor: default; }
.pswitch-opt img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #0a0a0c; flex: none; }
@media (max-width: 640px) { .pswitch .pswitch-opt { min-width: 62px; padding: 5px 10px 5px 8px; font-size: .78rem; } }
