/*! © 2026 Loombytle (https://loombytle.online) — platforma Unlimit Scripts (magazin, conturi, licențe, plăți, forum, admin) a fost proiectată și dezvoltată de Loombytle. Toate drepturile rezervate. Mențiunea de autor nu se elimină și nu se ascunde; vezi LICENSE.txt. */
/* Unlimit Scripts — cont, licență și panoul de admin (folosește tokenii din site.css). */

/* ---------- NAV ---------- */
.acct { display: flex; align-items: center; gap: 8px; }
.login-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(88, 101, 242, .55); background: rgba(88, 101, 242, .16); font-weight: 800; font-size: 14px; }
.login-btn:hover { background: rgba(88, 101, 242, .3); }
.login-btn svg, .btn-discord svg { width: 18px; height: 18px; }
.me-btn { position: relative; display: block; border-radius: 50%; box-shadow: 0 0 0 2px var(--line-2); }
.me-btn:hover { box-shadow: 0 0 0 2px var(--blue-2); }
.av { border-radius: 50%; object-fit: cover; display: block; background: var(--card-2); flex: 0 0 auto; }
.av-t { display: grid; place-items: center; font-weight: 900; color: var(--blue-l); background: linear-gradient(135deg, #16244a, #0b1226); border: 1px solid var(--line-2); }
.dot-n { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--no); color: #fff; font: 800 11px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.dot-n.inline { position: static; display: inline-block; vertical-align: 2px; margin-left: 4px; box-shadow: none; }
.admin-link { font-size: 12px; padding: 5px 9px; border-radius: 7px; border: 1px solid rgba(255, 181, 71, .4); color: var(--warn); }
.add.owned { color: var(--ok); border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); display: inline-flex; align-items: center; position: relative; z-index: 3; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px -10px rgba(88, 101, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-discord:hover { background: #6a75f5; }

/* ---------- PAGINA DE CONT ---------- */
.acc { max-width: 1400px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 90px; animation: rise .35s both; }
.loading { color: var(--muted); padding: 80px 0; text-align: center; font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue-2); font-weight: 700; font-size: 14px; }
.linkish:hover { color: var(--blue-l); }
.pill { display: inline-block; font: 700 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--blue-l); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.pill.warn { color: var(--warn); border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); }
.pill.grad { color: #fff; border-color: rgba(168, 216, 255, .55); background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 0 18px -6px rgba(61, 155, 255, .9); }
.acc-head .pill.grad { margin: 8px 0 6px; }
.acc-grades { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.acc-grades .pill.grad { margin: 0; }
.pill.pass { color: #1a1204; border-color: rgba(255, 226, 150, .7); background: linear-gradient(180deg, #ffe6a3, #e7b24a); box-shadow: 0 0 18px -6px rgba(240, 190, 80, .9); text-decoration: none; }
.pill.pass .i { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }
.pill.no { color: var(--no); border-color: rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .08); }
.t-ok { color: var(--ok); }
.t-no { color: var(--no); }

.acc-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: center; min-height: calc(80vh - var(--nav-h)); }
.acc-login h1 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 900; margin: 6px 0 18px; text-wrap: balance; }
.acc-perks { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 12px; }
.acc-perks li { padding: 14px 16px 14px 46px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); position: relative; }
.acc-perks li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 6px; background: rgba(31, 107, 255, .2); }
.acc-perks li::after { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; background: var(--blue-2); }
.acc-perks b { display: block; }
.acc-perks span { color: var(--muted); font-size: 14.5px; }
.acc-warn { margin-top: 16px; color: var(--warn); font-size: 14px; }
.lic-demo { display: grid; gap: 16px; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); }
.lic-card { padding: 26px; border-radius: 20px; border: 1px solid var(--line-2); background: radial-gradient(ellipse at 100% 0%, rgba(31, 107, 255, .35), transparent 60%), linear-gradient(160deg, #0f1b3d, #070d1f); box-shadow: 0 40px 100px -30px rgba(31, 107, 255, .6); }
.lic-top { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; color: var(--blue-l); margin-bottom: 26px; }
.ok-dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.lic-key { font-size: clamp(16px, 2vw, 22px); letter-spacing: .06em; margin-bottom: 22px; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lic-meta { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lic-meta span { color: var(--dim); }
.lic-meta b { font-weight: 700; text-align: right; }

.acc-head { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acc-head .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(61, 155, 255, .5); }
.acc-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.acc-head .kicker { margin-bottom: 4px; }
.acc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.acc-main { display: grid; gap: 40px; min-width: 0; }
.acc-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.acc-sec-h h2 { font-size: 26px; font-weight: 900; }
.acc-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.pay-banner { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255, 181, 71, .35); background: linear-gradient(90deg, rgba(255, 181, 71, .1), transparent); }
.pay-banner b { color: #ffdca3; }
.pay-banner span { color: var(--muted); flex: 1; min-width: 200px; }
.own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.own { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.own-img { aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-2); }
.own-img img { width: 100%; height: 100%; object-fit: cover; }
.own-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.own-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.own-row h3 { font-size: 20px; font-weight: 800; }
.own-meta { font-size: 12px; color: var(--dim); }
.own-cl summary { cursor: pointer; color: var(--blue-2); font-weight: 700; font-size: 14px; }
.own-cl p { color: var(--muted); font-size: 14px; margin-top: 6px; white-space: pre-line; }
.own-btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.acc-empty { padding: 36px; border-radius: var(--r); border: 1px dashed var(--line-2); text-align: center; display: grid; gap: 8px; justify-items: center; background: var(--card); }
.acc-empty.big { max-width: 560px; margin: 60px auto; }
.acc-empty .btn { margin-top: 10px; }
.ords { border-top: 1px solid var(--line); }
.ord { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.ord-id { color: var(--blue-2); font-size: 15px; padding-top: 2px; }
.ord-main > b { display: block; }
.ord-main span { color: var(--dim); font-size: 13px; }
.ord-pay { margin-top: 8px; color: #ffdca3; font-size: 14px; }
.ord-r { display: grid; justify-items: end; gap: 8px; }
.ord-r .price { font-size: 20px; }

.side-card { padding: 20px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); display: grid; gap: 12px; }
.side-card h3 { font-size: 18px; font-weight: 800; }
.side-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lic-side { background: radial-gradient(ellipse at 100% 0%, rgba(31, 107, 255, .2), transparent 60%), var(--card); }
.lic-side.revoked { border-color: rgba(255, 93, 108, .4); }
.lic-side .codebox { margin: 0; }
.key-row { display: flex; align-items: center; gap: 6px; }
.key-row code { flex: 1; min-width: 0; font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: #050b1c; border: 1px solid var(--line); color: var(--blue-l); overflow-x: auto; white-space: nowrap; }
.side-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.checks { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.chk { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.chk i, .chk-row i.st { width: 8px; height: 8px; border-radius: 50%; background: var(--no); }
.chk i.ok, .chk-row i.st.ok { background: var(--ok); }
.chk time { grid-column: 2 / -1; color: var(--dim); font-size: 12px; }

/* ---------- ADMIN ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); display: grid; gap: 6px; }
.kpi span { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kpi b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.kpi.hot { border-color: rgba(255, 181, 71, .45); background: linear-gradient(135deg, rgba(255, 181, 71, .12), var(--card) 60%); }
.kpi.hot b { color: var(--warn); }
.tab-n { font-size: 11px; padding: 2px 6px; border-radius: 999px; background: rgba(61, 155, 255, .15); color: var(--blue-l); margin-left: 4px; }
.adm-body { padding-top: 22px; }
.adm-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.adm-row { display: grid; grid-template-columns: 70px minmax(0, 1.6fr) 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.adm-list > .adm-row:last-child, .adm-list > .adm-client:last-child > .adm-row { border-bottom: 0; }
.adm-row b { display: block; }
.adm-row .price { font-size: 18px; }
.adm-btns { display: flex; gap: 6px; justify-content: flex-end; }
.adm-row.as-btn { background: none; border: 0; border-bottom: 1px solid var(--line); grid-template-columns: 40px minmax(0, 1.4fr) 1fr auto 130px; cursor: pointer; font: inherit; color: inherit; }
.adm-row.as-btn:hover { background: rgba(61, 155, 255, .05); }
.adm-client.open > .adm-row { background: rgba(31, 107, 255, .08); }
.adm-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 16px 22px 70px; border-bottom: 1px solid var(--line); background: rgba(3, 7, 18, .4); }
.adm-detail code { display: block; font-size: 13px; color: var(--blue-l); margin: 6px 0 10px; word-break: break-all; }
.chips-own { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.own-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.own-chip button { border: 0; background: rgba(255, 93, 108, .15); color: var(--no); width: 20px; height: 20px; border-radius: 50%; line-height: 1; }
.grant { display: flex; gap: 8px; }
.grant select, .up-form select, .up-form input, .up-form textarea { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #050b1c; color: var(--text); font: 600 14px var(--font); }
.up-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.adm-search { margin-bottom: 14px; max-width: 460px; }
.adm-split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.up-form { position: sticky; top: calc(var(--nav-h) + 20px); }
.up-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.up-form label.file { position: relative; }
.up-form label.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.up-form label.file span { padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); text-align: center; color: var(--blue-l); background: rgba(31, 107, 255, .05); }
.up-status { color: var(--blue-l); min-height: 1em; }
.pad { padding: 24px; }
.chk-row { grid-template-columns: 20px minmax(0, 1.4fr) 1fr auto auto; }
.adm-row.prod-row { grid-template-columns: 64px minmax(0, 1.6fr) 1fr auto 80px; }
.prod-row .pill { margin-left: 2px; vertical-align: 2px; }
.prod-row .linkish { text-align: right; }
.prod-th { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-2); }
.up-form.prod-form { position: static; padding-left: 96px; }
.prod-col { display: grid; gap: 12px; align-content: start; }

@media (max-width: 1180px) {
  .acc-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .adm-split { grid-template-columns: minmax(0, 1fr); }
  .up-form { position: static; }
}
@media (max-width: 980px) {
  .acc-login, .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .lic-demo { transform: none; }
  .acc-side { position: static; }
  .adm-row, .adm-row.as-btn, .adm-row.prod-row, .chk-row { grid-template-columns: auto minmax(0, 1fr); }
  .adm-row > .adm-btns { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .adm-row > :nth-child(n+3):not(.adm-btns):not(:last-child) { display: none; }
  .adm-detail, .up-form.prod-form { grid-template-columns: 1fr; padding-left: 16px; }
  .prod-th { display: none; }
}
@media (max-width: 640px) {
  .kpi b { font-size: 26px; }
  .ord { grid-template-columns: minmax(0, 1fr); }
  .ord-r { justify-items: start; grid-auto-flow: column; align-items: center; }
  .login-btn span { display: none; }
  .login-btn { padding: 0 11px; }
  .acc-actions { margin-left: 0; }
}
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-new { margin-bottom: 16px; border-color: var(--blue-2); }
.adm-row.new-h { grid-template-columns: auto 1fr; background: rgba(31, 107, 255, .08); }
.fw-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fw-pick legend { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; padding: 0; width: 100%; }
.fw-pick label.chk { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); }
.fw-pick input { width: 16px; height: 16px; accent-color: var(--blue); }
.prod-img { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; }
.prod-img > div:last-child { display: grid; gap: 6px; justify-items: start; }
.prod-prev { aspect-ratio: 16 / 9; border-radius: 10px; border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: #050b1c; }
.prod-prev img { width: 100%; height: 100%; object-fit: cover; }
.prod-file { position: relative; overflow: hidden; cursor: pointer; }
.prod-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Admin → Clienți: panoul unui client (012_admin_clienti.sql) */
.adm-detail.cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; align-items: stretch; }
.cl-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.cl-card h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-card .side-btns { margin-top: auto; }
.cl-wide { grid-column: span 2; }
.cl-grid > .adm-note { grid-column: 1 / -1; }
.adm-note { margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); color: var(--warn); font-size: 13.5px; }
.cl-id { display: flex; gap: 12px; align-items: center; }
.cl-id b { display: block; font-size: 17px; }
.cl-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13.5px; }
.cl-dl dt { color: var(--dim); }
.cl-dl dd { margin: 0; overflow-wrap: anywhere; }
.cl-discord .btn { margin-top: auto; }
.cl-form { display: grid; gap: 8px; }
.cl-form label, .cl-sanc label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cl-form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.cl-form input, .cl-sanc textarea, .cl-sanc select { min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #050b1c; color: var(--text); font: 600 14px var(--font); color-scheme: dark; }
.cl-sanc textarea { height: auto; padding: 10px 12px; resize: vertical; }
.cl-form .btn { justify-self: start; }
.cl-big { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.cl-sanc { display: grid; gap: 10px; }
.cl-sanc-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-sanc-btns select { height: 34px; width: auto; }
.cl-sanc-btns .btn-danger { margin-left: auto; }
.cl-warns, .cl-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cl-warns li, .cl-log li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.cl-log li { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 8px; }
.cl-log li > .muted { grid-column: 1 / -1; }
.adm-row.log-row { grid-template-columns: 150px minmax(0, 1.6fr) auto auto; }
.adm-row.log-row .pill { justify-self: start; }
@media (max-width: 1180px) {
  .adm-detail.cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-grid > .cl-card:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .adm-detail.cl-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .cl-wide, .cl-grid > .cl-card:last-child { grid-column: auto; }
  .adm-row.log-row { grid-template-columns: auto minmax(0, 1fr); }
  .adm-row.log-row > :nth-child(n+3) { display: none; }
  .cl-sanc-btns .btn-danger { margin-left: 0; }
}

/* Mentenanță: vizitatorii văd doar pagina asta; adminii văd banda de jos */
html.in-maint, html.in-maint body { overflow: hidden; }
#maint { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px 16px; overflow: auto;
  background: radial-gradient(ellipse 70% 50% at 50% 28%, rgba(31, 107, 255, .28), transparent 70%), var(--bg); }
.mt-box { max-width: 540px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.mt-box img { filter: drop-shadow(0 0 28px rgba(61, 155, 255, .6)); }
.mt-box h1 { margin: 0; font-size: clamp(36px, 7vw, 58px); letter-spacing: -.02em; line-height: 1; }
.mt-box p.muted { margin: 0; font-size: 16.5px; line-height: 1.6; white-space: pre-line; }
.mt-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.mt-btns svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
#maintStrip { position: fixed; left: 16px; bottom: 16px; z-index: 9000; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, .45); background: rgba(20, 14, 2, .85); color: var(--warn); font: 700 13px var(--font); text-decoration: none; backdrop-filter: blur(8px); }
#maintStrip i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }

/* Admin → Promoții: reduceri și coduri */
.promo-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 200px auto; gap: 18px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.adm-list > .promo-row:last-child { border-bottom: 0; }
.promo-code { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.promo-code code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 11px; border-radius: 8px; border: 1px dashed rgba(168, 216, 255, .45); background: rgba(31, 107, 255, .08); color: var(--blue-l); font: 800 14px var(--mono); letter-spacing: .06em; }
.promo-big { font-size: 22px; font-weight: 900; letter-spacing: -.01em; line-height: 1; }
.promo-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.promo-main.col { display: grid; gap: 3px; }
.promo-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.promo-tag { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--muted); font: 700 11.5px var(--font); white-space: nowrap; }
.promo-tag.blue { color: var(--blue-l); border-color: rgba(61, 155, 255, .4); background: rgba(31, 107, 255, .1); }
.promo-meta { display: grid; gap: 4px; font-size: 13.5px; }
.promo-bar { display: block; height: 4px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.promo-bar i { display: block; height: 100%; background: var(--blue-2); }
.promo-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .promo-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .promo-main, .promo-meta { grid-column: 1 / -1; }
  .promo-act { grid-column: 1 / -1; justify-content: flex-start; }
}
.lic-ip { display: grid; gap: 8px; margin-top: 14px; }
.lic-ip label { font-size: 13px; font-weight: 700; color: var(--muted); }
.lic-ip-row { display: flex; gap: 8px; }
.lic-ip-row input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #050b1c; color: var(--text); font: 600 14px var(--mono); }
.lic-ip-row input:focus { outline: none; border-color: var(--blue-2); }
.lic-ip p { margin: 0; }

/* Admin → Produse: «Actualizează» lângă fiecare resursă */
.prod-line { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.prod-line .prod-row { flex: 1; min-width: 0; }
.prod-upd { flex: none; }
.up-form.upd-form { position: static; padding-left: 96px; }
.upd-form .upd-page:not([hidden]) { display: contents; }
.upd-form .upd-btns { grid-column: 1 / -1; }
@media (max-width: 760px) { .up-form.upd-form { grid-template-columns: 1fr; padding-left: 16px; } .prod-line { flex-wrap: wrap; padding: 0 14px 12px; } }
.prod-line .adm-row.prod-row { grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr) auto auto; overflow: hidden; }
.prod-line .prod-row > .linkish { white-space: nowrap; padding-left: 8px; }
@media (max-width: 1100px) { .prod-line .adm-row.prod-row { grid-template-columns: 64px minmax(0, 1fr) auto auto; } .prod-line .prod-row > span.muted { display: none; } }
@media (max-width: 760px) { .prod-line .adm-row.prod-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* Telefon: rândul produsului pe toată lățimea, «Actualizează» dedesubt; tab-urile din admin pe două rânduri, fără scroll */
@media (max-width: 760px) {
  .prod-line { padding: 0 0 12px; }
  .prod-line .prod-row { flex: 1 1 100%; }
  .prod-line .adm-row.prod-row { overflow: visible; border-bottom: 0; padding-bottom: 10px; }
  .adm-list > .adm-client:has(> .prod-line) { border-bottom: 1px solid var(--line); }
  .adm-list > .adm-client:has(> .prod-line):last-child { border-bottom: 0; }
  .prod-line .prod-row b { overflow-wrap: anywhere; }
  .prod-line .prod-row b .pill { margin-top: 6px; }
  .prod-upd { margin-left: 16px; }
}
@media (max-width: 640px) {
  #admin .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
  #admin .tabs button { padding: 12px 4px; font-size: 13px; text-align: center; white-space: normal; }
}

/* Notificări: iconiță colorată pe tip, timp relativ, „Noi” / „Mai vechi” */
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.notes-g { margin: 6px 0 2px; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.notes .note { --k: var(--blue-2); position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 11px 12px; border-radius: 14px;
  border: 1px solid transparent; transition: background .2s, border-color .2s; }
.notes .note:hover { background: rgba(255, 255, 255, .025); border-color: var(--line); }
.notes .note.unread { background: linear-gradient(90deg, color-mix(in srgb, var(--k) 12%, transparent), transparent 85%); border-color: color-mix(in srgb, var(--k) 22%, transparent); }
.notes .note.unread::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--k); box-shadow: 0 0 10px var(--k); }
.notes .note-ic, .notes-empty .note-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--k, var(--muted));
  background: color-mix(in srgb, var(--k, #8aa0c8) 14%, transparent); border: 1px solid color-mix(in srgb, var(--k, #8aa0c8) 30%, transparent); }
.notes .note-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notes .note:not(.unread) .note-ic { filter: saturate(.55); opacity: .8; }
.notes .note-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.notes .note-h b { font-size: 14px; line-height: 1.35; }
.notes .note-h time { flex: none; color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.notes .note-b > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; white-space: pre-line; }
.notes .note-b .linkish { margin-top: 6px; }
.notes .note.k-update { --k: var(--warn); } .notes .note.k-grant { --k: var(--ok); } .notes .note.k-pass { --k: #f5c451; } .notes .note.k-gift { --k: #f472b6; }
.notes .note.k-review { --k: var(--warn); } .notes .note.k-warn { --k: var(--no); } .notes .note.k-admin { --k: var(--warn); } .notes .note.k-license { --k: #7dd3fc; }
.notes-more { width: 100%; margin-top: 8px; padding: 9px; border-radius: 10px; border: 1px dashed var(--line-2); background: none; color: var(--muted); font: 700 13px var(--font); cursor: pointer; }
.notes-more:hover { color: var(--text); border-color: var(--blue-2); }
.notes-empty { display: flex; gap: 12px; align-items: center; }
.notes-empty p { margin: 0; font-size: 13.5px; }

/* Ecranul de după plată */
.done-box { width: min(470px, 100%); gap: 8px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--ok) 20%, transparent), transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(31, 107, 255, .16), transparent 60%), #0a1330; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--ok); margin-bottom: 6px;
  background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok) 6%, transparent), 0 0 40px color-mix(in srgb, var(--ok) 30%, transparent); animation: done-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: done-draw .45s .25s ease-out forwards; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
.done-box .kicker { color: var(--ok); margin: 0; }
.done-box p { max-width: 380px; }
.done-items { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; gap: 6px; max-height: 210px; overflow: auto; }
.done-items li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: left; }
.done-items img { width: 64px; height: 38px; object-fit: cover; border-radius: 7px; }
.done-items b { font-size: 14px; }
.done-sum { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.done-btns { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.done-btns .btn { flex: 1; justify-content: center; gap: 8px; }
.done-btns svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .done-btns { flex-direction: column; } }
.notes-card .notes > .note { margin: 0; }
.notes-card .note-h b { color: var(--text); }
.notes-card .notes-g { margin: 2px 0 8px; }
.notes-card .notes + .notes-g { margin-top: 14px; }
.done-items li > div { display: grid; gap: 2px; }
.done-items small { color: var(--warn); font-size: 12px; }

/* Unlimit Pass activ (contul meu) */
.pass-live { background: radial-gradient(ellipse at 100% 0%, rgba(245, 196, 81, .16), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(31, 107, 255, .14), transparent 60%), var(--card);
  border-color: rgba(245, 196, 81, .28); }
.pass-live .side-h h3 { display: flex; align-items: center; gap: 8px; }
.pass-star { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #f5c451; background: rgba(245, 196, 81, .14); border: 1px solid rgba(245, 196, 81, .35); }
.pass-star .i { width: 15px; height: 15px; }
.pass-period { margin-top: 4px; }
.pp-top, .pp-dates { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pp-top b { color: var(--text); font-size: 13px; }
.pp-bar { height: 8px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5c451, #ffd98a); box-shadow: 0 0 12px rgba(245, 196, 81, .5); }
.pp-dates { font-size: 11.5px; color: var(--dim); }
.pass-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.pass-stats > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: grid; gap: 2px; }
.pass-stats b { font-size: 19px; font-weight: 900; }
.pass-stats span { font-size: 12px; color: var(--muted); }
.pass-incl { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pass-incl li { display: flex; gap: 8px; align-items: flex-start; }
.pass-incl .i { color: var(--ok); margin-top: 2px; }
.pass-help { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pass-help a { display: inline-block; margin-top: 4px; color: var(--blue-2); font-weight: 700; }
