/* Fabrica de UGC - pagina principala
   Sistemul vizual: tokeni pentru culori, raze, umbre si miscare; marginile sunt umbre semi-transparente,
   animatiile folosesc doar transform si opacity, cu curbe ease-out puternice si durate sub 300 ms. */
:root {
  --bg: #f7f7fa; --panel: #ffffff; --panel-2: #fbfbfd; --soft: #f3f4f8; --soft-2: #eceef4;
  --ink: #0b0d14; --ink-2: #363c4b; --muted: #6b7183; --faint: #9aa0b1;
  --line: rgba(15, 18, 34, .08); --line-2: rgba(15, 18, 34, .14);
  --brand: #5b5bf7; --brand-2: #9b5cf6; --brand-soft: #f0f0ff; --brand-ink: #4338ca; --brand-ring: rgba(91, 91, 247, .18);
  --ok: #047857; --ok-soft: #ecfdf5; --ok-line: rgba(4, 120, 87, .18);
  --warn: #b45309; --warn-soft: #fffaeb; --warn-line: rgba(180, 83, 9, .2);
  --bad: #dc2626; --bad-soft: #fef2f2; --bad-line: rgba(220, 38, 38, .2);
  --r-xl: 24px; --r-lg: 18px; --r: 14px; --r-sm: 10px; --r-xs: 8px;
  --edge: 0 0 0 1px var(--line);
  --shadow-sm: var(--edge), 0 1px 2px rgba(15, 18, 34, .04);
  --shadow: var(--edge), 0 1px 2px rgba(15, 18, 34, .04), 0 6px 16px -4px rgba(15, 18, 34, .06);
  --shadow-md: var(--edge), 0 2px 4px rgba(15, 18, 34, .04), 0 16px 32px -8px rgba(15, 18, 34, .12);
  --shadow-lg: 0 0 0 1px rgba(15, 18, 34, .06), 0 24px 64px -12px rgba(15, 18, 34, .28);
  --glow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px -6px rgba(91, 91, 247, .55);
  --grad: linear-gradient(135deg, #5b5bf7 0%, #7c5cf7 55%, #a855f7 100%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1000px 520px at 50% -220px, rgba(91, 91, 247, .14), transparent 70%),
    radial-gradient(700px 380px at 100% 0, rgba(168, 85, 247, .07), transparent 70%);
  background-repeat: no-repeat;
}
::selection { background: rgba(91, 91, 247, .2); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 4px; font-weight: 650; }
h3 { font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; margin: 0 0 6px; font-weight: 650; }
h4 { font-size: 13px; letter-spacing: .01em; font-weight: 650; color: var(--ink-2); }
p { margin: 0 0 8px; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
code { font-family: var(--mono); background: var(--soft); box-shadow: var(--edge); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.u-muted { color: var(--muted); font-weight: 400; }
.small { font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
ul.small, ol.small { padding-left: 18px; }
.u-cost, .u-seg b, .u-stage .n, .u-count, #more-summary, .u-area-foot { font-variant-numeric: tabular-nums; }

/* ---------- bara de sus: material translucid, continutul trece pe sub ea ---------- */
.u-top { position: sticky; top: 0; z-index: 30; background: rgba(247, 247, 250, .72); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); box-shadow: 0 1px 0 var(--line); }
.u-top-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 32px); }
/* identitatea: simbolul (logo.svg) + numele; "UGC" preia gradientul simbolului */
.u-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); border-radius: 12px; flex-shrink: 0; min-width: 0; }
.u-logo { width: 34px; height: 34px; display: block; flex-shrink: 0; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(91, 91, 247, .6), 0 2px 4px -1px rgba(91, 91, 247, .25); transition: transform 200ms var(--ease-out); }
.u-brand:active .u-logo { transform: scale(.95); }
.u-word { font-family: var(--font-display); font-size: 17.5px; line-height: 1; letter-spacing: -.03em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 5px; }
.u-word-a { font-weight: 560; color: var(--ink); }
.u-word b { font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-pill-short { display: none; }
.u-nav { display: flex; align-items: center; gap: 6px; }
.u-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 0; background: var(--panel); box-shadow: var(--shadow-sm); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out), box-shadow 150ms ease; font-variant-numeric: tabular-nums; }
.u-pill:active { transform: scale(.97); }
.u-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4c9d6; display: inline-block; flex-shrink: 0; }
.u-dot.ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.u-dot.warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.u-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(220, 38, 38, .16); }
.u-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: 999px; transition: background-color 150ms ease, color 150ms ease; }
.u-link svg { width: 16px; height: 16px; color: var(--muted); }

.u-main { max-width: 1080px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 32px) 48px; display: flex; flex-direction: column; gap: 24px; }

/* ---------- hero + link ---------- */
.u-hero { text-align: center; padding: 20px 0 8px; }
.u-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; }
.u-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--brand-ring); }
.u-hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; margin: 0 auto 14px; max-width: 820px; text-wrap: balance; }
.u-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-sub { color: var(--muted); font-size: 16.5px; line-height: 1.6; margin: 0 auto 26px; max-width: 640px; text-wrap: pretty; }
.u-url { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 18px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-md); max-width: 780px; margin: 0 auto; transition: box-shadow 200ms var(--ease-out); }
.u-url:focus-within { box-shadow: 0 0 0 1px rgba(91, 91, 247, .55), 0 0 0 5px var(--brand-ring), 0 16px 32px -8px rgba(15, 18, 34, .12); }
.u-url-ic { width: 20px; height: 20px; color: var(--faint); flex-shrink: 0; }
.u-url input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 12px 4px; background: transparent; color: var(--ink); }
.u-url input::placeholder { color: var(--faint); }
.u-add-status { max-width: 780px; margin: 12px auto 0; text-align: left; }
.u-add-status:empty { display: none; }

/* cele 3 etape: un traseu numerotat sub campul de link */
/* „2 pasi simpli”: doi pasi de confirmare + ce face aplicatia singura, cu promisiunea vizibila */
.u-steps { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 28px; text-align: left; }
.u-steps h2 { font-size: 22px; letter-spacing: -.025em; margin: 0 0 18px; text-align: center; }
.u-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.u-steps-list li { position: relative; border-radius: var(--r-lg); padding: 18px 18px 18px; background: var(--panel-2); box-shadow: var(--edge); display: flex; flex-direction: column; gap: 6px; }
.u-steps-list li.auto { background: linear-gradient(160deg, #f4f3ff, #faf5ff); box-shadow: 0 0 0 1px rgba(124, 92, 247, .18); }
.u-steps-n { align-self: flex-start; font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: #fff; background: var(--grad); padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 8px -2px rgba(91, 91, 247, .5); }
.u-steps-list li.auto .u-steps-n { background: #fff; color: var(--brand-ink); box-shadow: 0 0 0 1px rgba(124, 92, 247, .25); }
.u-steps-list b { font-family: var(--font-display); font-size: 16.5px; letter-spacing: -.015em; font-weight: 650; margin-top: 4px; }
.u-steps-list p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.u-promise { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--ok-soft); box-shadow: 0 0 0 1px var(--ok-line); color: #065f46; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.u-promise svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ok); margin-top: 1px; }

/* ---------- butoane ---------- */
.u-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 0; background: var(--panel); box-shadow: var(--shadow-sm); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; cursor: pointer; white-space: nowrap; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease, filter 150ms ease, color 150ms ease; }
.u-btn:active:not(:disabled) { transform: scale(.97); }
.u-btn:disabled { opacity: .45; cursor: not-allowed; }
.u-btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 12px -4px rgba(11, 13, 20, .5); }
.u-btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.u-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.u-btn-ghost { background: transparent; box-shadow: none; color: var(--ink-2); }

/* ---------- carduri si sectiuni ---------- */
.u-card { background: var(--panel); border-radius: var(--r-xl); padding: 26px 28px; box-shadow: var(--shadow); }
.u-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.u-card-head p { margin: 0; font-size: 14px; }
.u-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 4px 14px; }
.u-section-head h2 { font-size: 21px; }
.u-count { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow-sm); }
.u-count:empty { display: none; }

/* ---------- produs selectat ---------- */
.u-selected { background: var(--panel); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
/* produsul selectat: un rand compact (imagine mica, nume, informatii cheie); detaliile se deschid la cerere */
.u-sel-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.u-sel-img { width: 76px; height: 76px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--soft); box-shadow: var(--edge); display: grid; place-items: center; color: var(--faint); }
.u-sel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-sel-img svg { width: 30px; height: 30px; }
.u-sel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.u-sel-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); }
.u-sel-name { font-size: 18px; font-weight: 700; margin: 0 0 2px; line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-sel-change { flex-shrink: 0; }
.u-chip-link { text-decoration: none; }
.u-sel-more { box-shadow: 0 -1px 0 var(--line); }
.u-sel-more > summary { list-style: none; cursor: pointer; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.u-sel-more > summary::-webkit-details-marker { display: none; }
.u-sel-more > summary::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; border-radius: 5px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23363c4b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; transition: transform 200ms var(--ease-out); }
.u-sel-more[open] > summary::before { transform: rotate(90deg); }
.u-sel-more > summary .u-muted { font-weight: 400; }
.u-sel-more-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.u-sel-thumbs { display: flex; gap: 6px; }
.u-sel-thumbs img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 18, 34, .1); cursor: pointer; transition: transform 160ms var(--ease-out); }
.u-sel-thumbs img:active { transform: scale(.94); }
.u-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--muted); }
.u-desc { color: var(--ink-2); font-size: 14px; line-height: 1.6; max-height: 4.8em; overflow: hidden; position: relative; white-space: pre-line; max-width: 72ch; }
.u-desc:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.u-desc.open { max-height: none; }
.u-benefits { display: flex; flex-wrap: wrap; gap: 6px; }
.u-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600; box-shadow: var(--edge); line-height: 1.5; }
.u-benefits .u-chip { white-space: normal; }
.u-chip.ok { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 1px var(--ok-line); }
.u-chip.warn { background: var(--warn-soft); color: var(--warn); box-shadow: 0 0 0 1px var(--warn-line); }
.u-chip.bad { background: var(--bad-soft); color: var(--bad); box-shadow: 0 0 0 1px var(--bad-line); }
.u-chip.brand { background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 1px rgba(91, 91, 247, .18); }
.u-sel-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- produsele mele ---------- */
.u-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.u-prod { text-align: left; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--panel); overflow: hidden; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.u-prod:active { transform: scale(.98); }
.u-prod.sel { box-shadow: 0 0 0 2px var(--brand), 0 0 0 6px var(--brand-ring), 0 12px 28px -10px rgba(91, 91, 247, .35); }
.u-prod-img { aspect-ratio: 4 / 3; background: var(--soft); display: grid; place-items: center; color: var(--faint); overflow: hidden; position: relative; }
.u-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.u-prod-img svg { width: 36px; height: 36px; }
.u-prod-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(91, 91, 247, .4); opacity: 0; transform: scale(.9); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.u-prod.sel .u-prod-check { opacity: 1; transform: scale(1); }
.u-prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.u-prod-name { font-weight: 650; font-size: 14px; line-height: 1.35; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-prod-dom { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-prod-ads { font-size: 12.5px; color: var(--brand-ink); font-weight: 600; margin-top: 4px; }
.u-empty { border-radius: var(--r-lg); padding: 34px 26px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, .6); grid-column: 1 / -1; box-shadow: inset 0 0 0 1.5px rgba(15, 18, 34, .1); font-size: 14.5px; }

/* ---------- selectorul numarului de reclame (control segmentat) ---------- */
.u-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; background: var(--soft); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.u-seg button { border: 0; background: transparent; border-radius: 12px; padding: 14px 6px 12px; cursor: pointer; font: inherit; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 1px; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease, color 150ms ease; }
.u-seg button:active { transform: scale(.97); }
.u-seg button b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.u-seg button span { font-size: 12.5px; color: var(--muted); }
.u-seg button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 18, 34, .06), 0 6px 14px -6px rgba(15, 18, 34, .16); }
.u-seg button[aria-checked="true"] b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- mai multe optiuni ---------- */
.u-more { padding: 0; }
.u-more > summary { list-style: none; cursor: pointer; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: var(--r-xl); -webkit-tap-highlight-color: transparent; }
.u-more > summary::-webkit-details-marker { display: none; }
.u-more > summary > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u-more > summary b { font-family: var(--font-display); font-size: 17px; letter-spacing: -.015em; font-weight: 650; }
.u-more > summary .u-muted { font-size: 13px; }
.u-chev { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--soft); color: var(--ink-2); transition: transform 250ms var(--ease-out); flex-shrink: 0; }
.u-more[open] .u-chev { transform: rotate(180deg); }
.u-more-body { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 24px; }
.u-more[open] .u-more-body { animation: u-reveal 250ms var(--ease-out); }
@keyframes u-reveal { from { opacity: 0; transform: translateY(-4px); } }
.u-opt { padding-top: 22px; box-shadow: 0 -1px 0 var(--line); }
.u-opt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.u-opt-head h3 { display: flex; align-items: center; font-size: 16px; }
.u-opt-head p { margin: 2px 0 0; font-size: 13.5px; }
.u-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 750; margin-right: 10px; box-shadow: 0 2px 6px -1px rgba(91, 91, 247, .45); flex-shrink: 0; }

.u-voice-group h4 { font-size: 12px !important; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.u-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.u-voice { border-radius: var(--r); padding: 13px 14px 12px; background: var(--panel); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; gap: 8px; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), box-shadow 150ms ease, background-color 150ms ease; }
.u-voice:active { transform: scale(.98); }
.u-voice.sel { background: #fafaff; box-shadow: 0 0 0 1.5px var(--brand), 0 0 0 5px var(--brand-ring); }
.u-voice.sel .u-voice-name { color: var(--brand-ink); }
.u-voice.disabled { opacity: .55; cursor: not-allowed; }
.u-shot-ref { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.u-shot-ref img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: var(--edge); }
.u-voice-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.u-voice-name { font-weight: 650; letter-spacing: -.005em; transition: color 150ms ease; }
.u-voice-tags { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); }
.u-voice-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.u-play { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--soft); box-shadow: var(--edge); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.u-play:active { transform: scale(.96); }
.u-play.playing { background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 1px rgba(91, 91, 247, .25); }
.u-play svg { width: 11px; height: 11px; }
.u-star { color: #f59e0b; font-size: 12px; font-weight: 700; }

.u-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.u-radio { border-radius: var(--r); padding: 15px 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; background: var(--panel); box-shadow: var(--shadow-sm); -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), box-shadow 150ms ease, background-color 150ms ease; }
.u-radio:active { transform: scale(.985); }
.u-radio.sel { background: #fafaff; box-shadow: 0 0 0 1.5px var(--brand), 0 0 0 5px var(--brand-ring); }
.u-radio i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c4c9d6; flex-shrink: 0; margin-top: 2px; position: relative; background: #fff; transition: box-shadow 150ms ease; }
.u-radio.sel i { box-shadow: inset 0 0 0 1.5px var(--brand); }
.u-radio i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--brand); opacity: 0; transform: scale(.6); transition: opacity 150ms var(--ease-out), transform 200ms var(--ease-out); }
.u-radio.sel i::after { opacity: 1; transform: scale(1); }
.u-radio b { display: block; font-weight: 650; letter-spacing: -.005em; }
.u-radio span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.u-radio.compact { padding: 11px 14px; }

textarea.u-area { width: 100%; min-height: 160px; resize: vertical; border: 0; border-radius: var(--r); padding: 14px 16px; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--panel-2); line-height: 1.6; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 150ms ease, background-color 150ms ease; }
textarea.u-area::placeholder { color: var(--faint); }
textarea.u-area:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(91, 91, 247, .6), 0 0 0 4px var(--brand-ring); }
.u-area-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- butonul principal ---------- */
.u-go-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 6px; }
.u-go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 520px); padding: 19px 28px; border: 0; border-radius: 18px; background: var(--grad); color: #fff; font: inherit; font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -.015em; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -1px 0 rgba(0, 0, 0, .12) inset, 0 12px 32px -8px rgba(91, 91, 247, .6), 0 4px 10px -4px rgba(91, 91, 247, .4);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, filter 150ms ease; }
.u-go::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.u-go:active:not(:disabled) { transform: scale(.98); }
.u-go:disabled { opacity: .5; cursor: not-allowed; filter: saturate(.6); box-shadow: 0 6px 16px -8px rgba(91, 91, 247, .45); }
.u-go svg { width: 21px; height: 21px; position: relative; }
.u-go span { position: relative; }
.u-go-hint { color: var(--muted); font-size: 13.5px; margin: 0; text-align: center; max-width: 520px; text-wrap: pretty; }

/* ---------- progres ---------- */
.u-prog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.u-prog-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.u-prog-ad { border-radius: var(--r-lg); padding: 16px 18px; background: var(--panel-2); box-shadow: var(--shadow-sm); }
.u-prog-ad h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
.u-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.u-stage { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 8px 0; }
.u-stage:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 32px; bottom: -6px; width: 2px; border-radius: 2px; background: var(--soft-2); }
.u-stage.done:not(:last-child)::before { background: rgba(4, 120, 87, .28); }
.u-stage .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; box-shadow: inset 0 0 0 2px #d6dae4; color: transparent; background: #fff; }
.u-stage.done .ic { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); color: #fff; }
.u-stage.error .ic { background: var(--bad); box-shadow: 0 0 0 3px rgba(220, 38, 38, .14); color: #fff; }
.u-stage.running .ic { background: transparent; box-shadow: none; border: 2px solid var(--brand-soft); border-top-color: var(--brand); animation: u-spin 700ms linear infinite; }
.u-stage .t { font-weight: 600; font-size: 14px; letter-spacing: -.005em; }
.u-stage .m { font-size: 12.5px; color: var(--muted); word-break: break-word; margin-top: 1px; }
.u-stage.error .m { color: var(--bad); }
.u-stage .n { font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; background: var(--soft); padding: 1px 8px; border-radius: 999px; }
.u-stage.pending .t { color: var(--muted); font-weight: 500; }
.u-stage.running .t { color: var(--brand-ink); }
@keyframes u-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- rezultate ---------- */
.u-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.u-res { border-radius: var(--r-lg); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.u-res video { width: 100%; aspect-ratio: 4 / 5; background: #07080d; display: block; object-fit: contain; }
.u-res-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.u-res-name { font-weight: 650; font-size: 14.5px; line-height: 1.35; letter-spacing: -.01em; }
.u-res-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.u-fb { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); box-shadow: var(--edge); }
.u-drafts { margin-top: 18px; }
.u-draft { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; box-shadow: 0 -1px 0 var(--line); flex-wrap: wrap; }
.u-draft:first-child { box-shadow: none; }

/* ---------- notificari, ferestre (folosite si de core.js) ---------- */
.notice, .u-note { padding: 12px 14px 12px 16px; border-radius: 12px; border: 0; margin-bottom: 10px; font-size: 14px; line-height: 1.55; position: relative; color: var(--ink-2); }
.notice::before, .u-note::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.notice.info, .u-note.info { background: var(--brand-soft); box-shadow: 0 0 0 1px rgba(91, 91, 247, .14); }
.notice.info::before, .u-note.info::before { background: var(--brand); }
.notice.warn, .u-note.warn { background: var(--warn-soft); box-shadow: 0 0 0 1px var(--warn-line); }
.notice.warn::before, .u-note.warn::before { background: #f59e0b; }
.notice.bad, .u-note.bad { background: var(--bad-soft); box-shadow: 0 0 0 1px var(--bad-line); }
.notice.bad::before, .u-note.bad::before { background: var(--bad); }
.notice.ok, .u-note.ok { background: var(--ok-soft); box-shadow: 0 0 0 1px var(--ok-line); }
.notice.ok::before, .u-note.ok::before { background: #10b981; }
.u-note b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 650; }

/* fereastra: centrata (nu e ancorata de un buton), apare din scale(.96) + opacitate */
.modal-back { position: fixed; inset: 0; background: rgba(11, 13, 20, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px;
  opacity: 1; transition: opacity 250ms var(--ease-out); }
.modal { background: var(--panel); border-radius: 22px; max-width: 640px; width: 100%; max-height: min(92vh, 900px); overflow-y: auto; overscroll-behavior: contain; padding: 26px 28px; box-shadow: var(--shadow-lg);
  transform-origin: center; opacity: 1; transform: scale(1); transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
@starting-style {
  .modal-back { opacity: 0; }
  .modal { opacity: 0; transform: scale(.96); }
}
.modal.wide { max-width: 880px; }
.modal h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 16px; padding-right: 8px; text-wrap: balance; }
.modal h3 { margin-top: 18px; }
.modal .actions { position: sticky; bottom: -26px; display: flex; justify-content: flex-end; gap: 8px; margin: 22px -28px -26px; padding: 14px 28px 18px; flex-wrap: wrap; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 22px 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 11px; border: 0; background: var(--panel); box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, filter 150ms ease, box-shadow 150ms ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary, .btn.ai { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--soft); color: var(--muted); box-shadow: var(--edge); }
.badge.ok { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 1px var(--ok-line); }
.progress { height: 6px; background: rgba(255, 255, 255, .16); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width 300ms var(--ease-out); }

/* notificarile intra si ies pe acelasi drum (de jos); tranzitie, nu keyframes, ca sa se poata intrerupe */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: min(400px, calc(100vw - 40px)); }
.toast { background: rgba(17, 19, 28, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 16px 40px -12px rgba(0, 0, 0, .45); font-size: 13.5px; line-height: 1.5; white-space: pre-line;
  opacity: 1; transform: translateY(0); transition: opacity 400ms ease, transform 400ms ease; }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast.bad { background: #b91c1c; } .toast.ok { background: #047857; }
.toast b { font-weight: 650; }
.toast .muted { color: #c6cbd8; }

.u-cost { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 10px; }
.u-cost th { text-align: left; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px; background: var(--soft); }
.u-cost th:first-child { border-radius: 8px 0 0 8px; } .u-cost th:last-child { border-radius: 0 8px 8px 0; }
.u-cost td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.u-cost td:last-child { text-align: right; white-space: nowrap; font-weight: 650; }
.u-cost tr.total td { border-bottom: 0; font-size: 15px; padding-top: 12px; }
.u-cost .u-muted { font-size: 12.5px; }
.u-cost input[type=number] { font: inherit; font-size: 13px; padding: 6px 8px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--panel-2); }
.u-cost input[type=number]:focus { outline: 0; box-shadow: inset 0 0 0 1px rgba(91, 91, 247, .6), 0 0 0 3px var(--brand-ring); background: #fff; }
.u-miss { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.u-miss li { background: var(--panel-2); box-shadow: var(--shadow-sm); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.u-miss li b { display: block; font-weight: 650; }
.u-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); box-shadow: 0 0 0 1px rgba(91, 91, 247, .16); cursor: pointer; margin-top: 12px; }
.u-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.u-svc { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.u-svc:last-of-type { border-bottom: 0; }

.u-foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 12px 16px 32px; }
.u-foot svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- fluxul in 3 etape: carduri, galerie, campuri editabile ---------- */
.u-batch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); box-shadow: var(--edge); }
.u-works { display: flex; flex-direction: column; gap: 14px; }
.u-work { border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); box-shadow: var(--shadow-sm); }
.u-work-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.u-work-head .u-check { background: transparent; box-shadow: none; padding: 0; font-size: 15px; }
.u-stagebox { border-top: 1px solid var(--line); padding-top: 10px; }
.u-stagebox > summary { cursor: pointer; padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.u-stagebox > summary::-webkit-details-marker { display: none; }
.u-stagebox > summary::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; border-radius: 6px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23363c4b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform 200ms var(--ease-out); }
.u-stagebox[open] > summary::before { transform: rotate(90deg); }
.u-stagebox > summary b { font-weight: 650; letter-spacing: -.005em; }
.u-stagebox[open] > summary { margin-bottom: 10px; }
.u-stagebox details > summary { cursor: pointer; color: var(--brand-ink); font-weight: 600; padding: 4px 0; }
.u-brief { display: grid; gap: 4px; background: var(--panel-2); box-shadow: var(--edge); border-radius: 12px; padding: 12px 14px; margin: 6px 0; line-height: 1.55; }
.u-brief b { color: var(--ink); font-weight: 650; }
.u-field { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.u-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.u-field textarea.u-area { min-height: 0; padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.u-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 150ms ease, background-color 150ms ease; }
.u-input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(91, 91, 247, .6), 0 0 0 4px var(--brand-ring); }
.u-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
.u-scenes-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.u-scene-edit { border-radius: 12px; padding: 10px 12px; background: var(--panel-2); box-shadow: var(--edge); }
.u-area.mono, textarea.u-area.mono { font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.u-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 12px; }
.u-shot { border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--panel); box-shadow: var(--shadow-sm); }
.u-shot-img { aspect-ratio: 4 / 5; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.u-shot-img img { width: 100%; height: 100%; object-fit: cover; }
.u-shot-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.u-refphoto { display: flex; gap: 14px; align-items: center; border-radius: 14px; padding: 10px; margin: 10px 0; background: var(--panel-2); box-shadow: var(--edge); }
.u-refphoto img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 10px; flex-shrink: 0; box-shadow: var(--edge); }

/* ---------- hover: doar pe dispozitive cu mouse (pe ecranele tactile hover-ul ar ramane agatat dupa atingere) ---------- */
@media (hover: hover) and (pointer: fine) {
  .u-pill:hover { box-shadow: var(--edge), 0 2px 8px -2px rgba(15, 18, 34, .12); }
  .u-link:hover { background: rgba(15, 18, 34, .05); color: var(--ink); }
  .u-btn:hover:not(:disabled) { background: var(--soft); }
  .u-btn-dark:hover:not(:disabled) { background: #1d2130; }
  .u-btn-primary:hover:not(:disabled) { background: var(--grad); filter: brightness(1.07); }
  .u-btn-ghost:hover:not(:disabled) { background: rgba(15, 18, 34, .05); color: var(--ink); }
  .u-prod:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .u-prod.sel:hover { box-shadow: 0 0 0 2px var(--brand), 0 0 0 6px var(--brand-ring), 0 16px 32px -10px rgba(91, 91, 247, .4); }
  .u-prod:hover .u-prod-img img { transform: scale(1.03); }
  .u-seg button:hover:not([aria-checked="true"]) { background: rgba(255, 255, 255, .6); color: var(--ink); }
  .u-more > summary:hover .u-chev { background: var(--soft-2); }
  .u-voice:hover:not(.sel) { box-shadow: var(--edge), 0 4px 12px -4px rgba(15, 18, 34, .14); }
  .u-radio:hover:not(.sel) { box-shadow: var(--edge), 0 4px 12px -4px rgba(15, 18, 34, .14); }
  .u-play:hover { background: var(--soft-2); }
  .u-play.playing:hover { background: #e6e6ff; }
  .u-go:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 -1px 0 rgba(0, 0, 0, .12) inset, 0 16px 40px -8px rgba(91, 91, 247, .7), 0 4px 10px -4px rgba(91, 91, 247, .4); }
  .btn:hover:not(:disabled) { background: var(--soft); }
  .btn.primary:hover:not(:disabled), .btn.ai:hover:not(:disabled) { background: var(--grad); filter: brightness(1.07); }
  .u-stagebox > summary:hover::before { background-color: var(--soft-2); }
  .u-sel-thumbs img:hover { transform: scale(1.06); }
}

/* ---------- miscare redusa: raman doar schimbarile de opacitate si culoare ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: opacity, background-color, color, box-shadow, filter !important; }
  .modal { transform: none !important; }
  @starting-style { .modal { transform: none; } .toast { transform: none; } }
  .toast { transform: none !important; }
  .u-more[open] .u-more-body { animation: u-fade 200ms ease; }
  .u-stage.running .ic { animation-duration: 1.6s; }
  .u-prod:hover, .u-prod:active, .u-prod:hover .u-prod-img img { transform: none; }
}
@keyframes u-fade { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .u-top { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toast, .modal .actions, .u-sel-thumbs { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .modal .actions { background: #fff; }
}

/* ---------- ferestre mici ---------- */
@media (max-width: 760px) {
  .u-main { padding-top: 22px; gap: 18px; }
  .u-hero { padding-top: 6px; }
  .u-eyebrow { font-size: 12px; }
  .u-choice { grid-template-columns: 1fr; }
  .u-seg button { padding: 10px 2px; }
  .u-seg button b { font-size: 22px; }
  .u-seg button span { font-size: 11px; }
  .u-card { padding: 20px 18px; border-radius: 20px; }
  .u-more > summary { padding: 18px; }
  .u-more-body { padding: 0 18px 20px; }
  .u-url { flex-wrap: wrap; padding: 8px; border-radius: 16px; }
  .u-url-ic { display: none; }
  .u-url input { flex-basis: 100%; padding: 10px 8px; }
  .u-url .u-btn { width: 100%; }
  .u-link { display: none; }
  .u-top-in { padding-top: 10px; padding-bottom: 10px; }
  .u-logo { width: 30px; height: 30px; border-radius: 9px; }
  .u-pill { padding: 7px 12px; }
  #svc-text { display: none; }
  .u-pill-short { display: inline; }
  .u-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .modal { padding: 22px 20px; border-radius: 20px; }
  .modal .actions { margin: 20px -20px -22px; padding: 12px 20px 16px; bottom: -22px; }
}
@media (max-width: 420px) {
  .u-word { font-size: 16px; }
}

/* =====================================================================
   Navigarea intre pagini + „Reclamele mele” + „Creditele mele”
   ===================================================================== */
.u-top-in { max-width: 1240px; }
.u-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(15, 18, 34, .045); box-shadow: inset 0 0 0 1px rgba(15, 18, 34, .04); }
.u-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.u-tab svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transition: color 150ms ease; }
.u-tab:active { transform: scale(.97); }
.u-tab[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(15, 18, 34, .06), 0 4px 10px -4px rgba(15, 18, 34, .14); }
.u-tab[aria-current="page"] svg { color: var(--brand); }
.u-tab-live { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.u-tab.live .u-tab-live { display: inline-block; }
.u-link span { white-space: nowrap; }
.u-page { display: flex; flex-direction: column; gap: 24px; }
.u-page[hidden] { display: none !important; }
.u-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 8px 2px 0; }
.u-page-head h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 6px; font-weight: 700; }
.u-page-head p { margin: 0; max-width: 62ch; }
.u-lib-loading { padding: 40px; text-align: center; }

/* Reclamele mele */
.u-lib-tools { display: flex; flex-direction: column; gap: 12px; }
.u-search { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 0 14px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-sm); transition: box-shadow 150ms ease; }
.u-search:focus-within { box-shadow: 0 0 0 1px rgba(91, 91, 247, .55), 0 0 0 4px var(--brand-ring); }
.u-search svg { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; }
.u-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 11px 0; color: var(--ink); }
.u-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.u-filter { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 5px 12px 5px 6px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow-sm); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; max-width: 260px;
  transition: box-shadow 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.u-filter:first-child { padding-left: 12px; }
.u-filter:active { transform: scale(.97); }
.u-filter img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.u-filter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-filter i { font-style: normal; font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-variant-numeric: tabular-nums; }
.u-filter[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 1.5px var(--brand); }
.u-filter[aria-pressed="true"] i { background: #fff; color: var(--brand-ink); }
.u-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.u-res-media { position: relative; background: #07080d; }
.u-res-status { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.u-res-product { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink); text-decoration: none; min-width: 0; }
.u-res-product img { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; box-shadow: var(--edge); flex-shrink: 0; }
.u-res-product span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-res-name { font-size: 15px; }
details.u-fb { display: block; }
details.u-fb > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; }
details.u-fb > summary::-webkit-details-marker { display: none; }
details.u-fb > summary::after { content: ' ▾'; color: var(--faint); }
details.u-fb[open] > summary { margin-bottom: 6px; }
details.u-fb[open] { display: flex; flex-direction: column; gap: 4px; }
.u-lib-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; }
.u-lib-empty b { color: var(--ink); font-size: 17px; }
.u-lib-empty p { margin: 0 0 8px; }

/* Creditele mele */
.u-cr-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: linear-gradient(160deg, #ffffff 40%, #f6f4ff); }
.u-cr-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.u-cr-big { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.u-cr-big b { font-family: var(--font-display); font-size: 64px; line-height: 1; letter-spacing: -.04em; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.u-cr-big.none b { background: none; color: var(--faint); }
.u-cr-big span { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.u-cr-sum-main p { margin: 0; font-size: 14px; max-width: 52ch; }
.u-cr-bars { display: flex; flex-direction: column; gap: 10px; }
.u-cr-bar-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.u-cr-bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.u-cr-bar-row.limit { color: var(--ink); font-weight: 650; }
.u-cr-track { height: 8px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.u-cr-track i { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--grad); transform-origin: left center; }
.u-cr-track i.mid { background: #f59e0b; } .u-cr-track i.hi { background: var(--bad); }
.u-cr-bar-row.limit .u-cr-track i { background: #f59e0b; }
.u-cr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.u-cr-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; }
.u-cr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.u-cr-head h3 { font-size: 17px; margin: 0 0 2px; }
.u-cr-remain { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.u-cr-remain .u-cr-label { flex-basis: 100%; }
.u-cr-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.u-cr-meter { display: flex; flex-direction: column; gap: 6px; }
.u-cr-note { margin: 0; }
.u-cr-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 14px; box-shadow: 0 -1px 0 var(--line); }
.u-cr-stats > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.u-cr-stats dt { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.u-cr-stats dd { margin: 0; font-size: 15px; font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.u-cr-ads dd b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--brand-ink); }
.u-cr-manual { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--panel-2); box-shadow: var(--edge); }
.u-cr-input { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.u-cr-input input { width: 160px; font: inherit; font-size: 15px; padding: 8px 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-variant-numeric: tabular-nums; }
.u-cr-input input:focus { outline: 0; box-shadow: inset 0 0 0 1px rgba(91, 91, 247, .6), 0 0 0 4px var(--brand-ring); }
.u-cr-legend { padding: 4px 4px 0; }
.u-cr-legend h3 { font-size: 14px; }
.u-cr-legend ul { margin: 0 0 10px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }

@media (hover: hover) and (pointer: fine) {
  .u-tab:hover:not([aria-current="page"]) { background: rgba(255, 255, 255, .7); color: var(--ink); }
  .u-filter:hover:not([aria-pressed="true"]) { box-shadow: var(--edge), 0 4px 10px -4px rgba(15, 18, 34, .16); }
  .u-res-product:hover span { text-decoration: underline; }
}
@media (max-width: 1240px) { .u-link span { display: none; } .u-link { padding: 8px; } }
@media (max-width: 1100px) {
  #svc-text { display: none; }
  .u-pill-short { display: inline; }
}
@media (max-width: 900px) {
  .u-cr-summary { grid-template-columns: 1fr; }
  .u-cr-grid { grid-template-columns: 1fr; }
  .u-steps-list { grid-template-columns: 1fr; }
}
/* telefon: meniul devine bara de navigare de jos (ca la aplicatiile native), sus raman doar logo-ul si serviciile */
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* backdrop-filter pe bara de sus ar face din ea reperul elementelor fixe: meniul de jos ar aparea sus */
  .u-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 247, 250, .97); }
  .u-sel-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: start; }
  .u-sel-change { grid-column: 2; justify-self: start; margin-top: -4px; padding: 4px 0 !important; color: var(--brand-ink); }
  .u-tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-radius: 0;
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); box-shadow: 0 -1px 0 var(--line); }
  .u-tab { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 11px; justify-content: center; text-align: center; }
  .u-tab svg { width: 22px; height: 22px; }
  .u-tab[aria-current="page"] { background: var(--brand-soft); box-shadow: none; color: var(--brand-ink); }
  .u-tab-live { position: absolute; top: 6px; right: calc(50% - 20px); }
  .u-steps { padding: 20px 18px; }
  .u-steps h2 { font-size: 19px; }
  .u-sel-row { gap: 12px; padding: 12px; }
  .u-sel-img { width: 60px; height: 60px; border-radius: 12px; }
  .u-sel-name { font-size: 16px; }
  .u-sel-change { padding: 7px 8px; }
  .u-cr-stats { grid-template-columns: 1fr 1fr; }
  .u-cr-ads { grid-column: 1 / -1; }
  .u-cr-big b { font-size: 52px; }
  .u-cr-bar-row { grid-template-columns: 110px 1fr 30px; }
  .u-lib-grid { grid-template-columns: 1fr; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) { .u-tabs { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ---------- platforma: cont, credite, rol ---------- */
/* elementele doar pentru administrator (costuri API, servicii) dispar pentru utilizatori */
body[data-role="user"] .admin-only { display: none !important; }
.u-account { display: flex; align-items: center; gap: 6px; }
.u-credits-pill { text-decoration: none; }
.u-credits-pill b { font-weight: 750; color: var(--ink); }
.u-credits-pill span { color: var(--muted); font-weight: 600; }
.u-beta { font-size: 11px; padding: 2px 8px; letter-spacing: .04em; text-transform: uppercase; }
.u-credit-line { display: flex; align-items: baseline; gap: 4px; font-size: 16px; font-variant-numeric: tabular-nums; margin: 2px 0 6px; }
.u-regen-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; margin: 8px 0; border-radius: var(--r-sm); background: var(--panel-2); box-shadow: var(--edge); }
.u-regen-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* „Creditele mele” */
.u-wallet { display: flex; flex-direction: column; gap: 18px; }
.u-w-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.u-w-label { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.u-w-big { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.u-w-big b { font-family: var(--font-display); font-size: 64px; line-height: 1; letter-spacing: -.04em; font-weight: 750; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.u-w-big span { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.u-w-main p { margin: 0; max-width: 46ch; }
.u-w-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.u-w-tile { background: var(--panel-2); border-radius: var(--r); padding: 14px; box-shadow: var(--edge); }
.u-w-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.u-w-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.u-w-pkg { background: var(--panel-2); border-radius: var(--r); padding: 14px; box-shadow: var(--edge); }
.u-w-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.u-w-table td:nth-child(2) { white-space: nowrap; }
.u-w-table td:last-child { width: 1%; }
.u-w-rules summary { cursor: pointer; }
.u-w-rules ul { margin: 12px 0 0; display: grid; gap: 4px; }

/* „Contul meu” */
.u-acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.u-acc-dl { display: grid; gap: 10px; margin: 8px 0 0; }
.u-acc-dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; box-shadow: 0 1px 0 var(--line); }
.u-acc-dl dt { color: var(--muted); font-size: 13.5px; }
.u-acc-dl dd { margin: 0; font-weight: 600; word-break: break-all; text-align: right; }
.u-acc-form { display: grid; gap: 4px; }
.u-acc-form .u-btn { justify-self: start; margin-top: 6px; }

@media (max-width: 1100px) { .u-beta { display: none; } }
@media (max-width: 900px) { .u-w-hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  /* meniul de jos: atatea coloane cate file sunt (5 pentru cont) */
  .u-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .u-tab { font-size: 10.5px; padding: 7px 2px; }
  .u-w-big b { font-size: 52px; }
  .u-w-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .u-w-tile { padding: 10px; }
  .u-w-value { font-size: 22px; }
  .u-credits-pill span { display: none; }
}

/* antetul cu 5 file: mai lat decat continutul si compact pana la 1480 px (fara rupere pe mai multe randuri) */
.u-top-in { max-width: 1280px; }
.u-pill, .u-link, .u-tab { white-space: nowrap; }
.u-tab-short { display: none; }
@media (max-width: 1480px) {
  #svc-text { display: none; }
  .u-pill-short { display: inline; }
  .u-link span { display: none; }
  .u-link { padding: 8px; }
}
@media (max-width: 1180px) { .u-tab { padding: 8px 10px; gap: 6px; } }
@media (max-width: 1020px) { .u-tab svg { display: none; } }
@media (max-width: 760px) {
  .u-tab svg { display: block; }
  .u-tab-long { display: none; }
  .u-tab-short { display: inline; }
}
