/* ===== Temă ===== */
:root {
  --bg: #0a0a12;
  --bg2: #10101c;
  --card: #151524;
  --card2: #1b1b2e;
  --line: #26263d;
  --text: #ecebf5;
  --muted: #9a98b3;
  --accent: #7c5cff;
  --accent2: #22c1ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #b05cff 45%, #22c1ee 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Manrope, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: #a996ff; text-decoration: none; }
a:hover { color: #c9bcff; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Space Grotesk', Manrope, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.pad { padding: 16px; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.hp { position: absolute; left: -9999px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: 24px; }
.h3 { font-size: 18px; margin-top: 8px; }

/* ===== Butoane / formulare ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 700 15px Manrope, sans-serif; cursor: pointer; transition: .15s; color: var(--text); background: var(--card2); text-decoration: none; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(124, 92, 255, .35); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: #3a3a5c; background: var(--card); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { color: var(--text); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; font-size: 17px; flex: none; }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  font: 15px Manrope, sans-serif; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
label.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.field-label { font-weight: 700; font-size: 14px; margin: 14px 0 8px; display: block; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.form-card { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .span2, .form-grid h2 { grid-column: 1 / -1; }
.inline, .inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 4px 0; }
.inline-form input { min-width: 220px; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; border: 1px solid; font-size: 14px; }
.alert-ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.alert-bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.alert-warn, .alert-info { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); color: #fde68a; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.chip { display: inline-flex; padding: 6px 12px; border-radius: 99px; background: var(--card2); color: var(--text); font-weight: 700; font-size: 13px; }
.st { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--card2); }
.st-ok { color: var(--ok); background: rgba(52, 211, 153, .12); }
.st-warn { color: var(--warn); background: rgba(251, 191, 36, .12); }
.st-bad { color: var(--bad); background: rgba(248, 113, 113, .12); }

/* ===== Tabele ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--bg2); }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table .center { text-align: center; }
.row-dim td { opacity: .5; }
.clip { max-width: 360px; }
.table.cmp td.hl, .table.cmp th.hl { background: rgba(124, 92, 255, .08); color: #fff; font-weight: 700; }

/* ===== Public: antet ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 18, .75); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px 'Space Grotesk', sans-serif; color: var(--text); }
.logo:hover { color: #fff; }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); box-shadow: 0 0 22px rgba(124, 92, 255, .6); position: relative; }
.logo-mark::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--muted); font-weight: 600; }
.topnav a:hover { color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang-switch a { padding: 5px 8px; font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.lang-switch a.on { background: var(--card2); color: var(--text); }

/* ===== Landing ===== */
.hero { position: relative; overflow: hidden; padding: 80px 0 30px; }
.hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 720px; background:
  radial-gradient(closest-side, rgba(124, 92, 255, .35), transparent 70%) 30% 40% / 60% 80% no-repeat,
  radial-gradient(closest-side, rgba(34, 193, 238, .22), transparent 70%) 75% 30% / 50% 70% no-repeat; pointer-events: none; }
.hero-in { position: relative; text-align: center; }
.pill { display: inline-block; padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(124, 92, 255, .45); background: rgba(124, 92, 255, .1); font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.hero-title { font-size: clamp(40px, 7vw, 78px); font-weight: 700; margin-bottom: 18px; }
.hero-sub { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.hero-kinds { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.kind { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.kind span { font-size: 20px; }
.kind:hover { border-color: var(--accent); color: #fff; }
.marquee { margin-top: 50px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-item { padding: 10px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; white-space: nowrap; color: #cfcce4; }
@keyframes scroll { to { transform: translateX(-50%); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 50px auto; }
.stat-big { text-align: center; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.stat-big strong { display: block; font: 700 40px 'Space Grotesk', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big span { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 90px auto; }
.feature-rev .feature-text { order: 2; }
.feature h2 { font-size: clamp(28px, 4vw, 42px); }
.feature p { font-size: 17px; margin-bottom: 22px; }
.eyebrow { display: inline-block; font-weight: 800; color: #b9a8ff; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.feature-art { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.art-img { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.art-tile { border-radius: 14px; }
.t1 { background: linear-gradient(135deg, #ff8a5b, #b83280); }
.t2 { background: linear-gradient(135deg, #22c1ee, #3b2c8f); }
.t3 { background: linear-gradient(135deg, #7c5cff, #1b1b2e); }
.t4 { background: linear-gradient(135deg, #34d399, #0e7490); }
.art-prompt { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 12px; background: rgba(10, 10, 18, .8); backdrop-filter: blur(8px); font-weight: 600; }
.art-vid { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #3b2c8f, #0a0a12 70%); }
.art-vid .play { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--grad); box-shadow: 0 0 60px rgba(124, 92, 255, .7); animation: pulse 2.4s ease-in-out infinite; }
.art-vid .film { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: repeating-linear-gradient(90deg, #1b1b2e 0 30px, #26263d 30px 34px); opacity: .8; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.art-chat { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; }
.mock-msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-weight: 500; }
.mock-msg.me { align-self: flex-end; background: var(--accent); }
.mock-msg.ai { background: var(--card2); border: 1px solid var(--line); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--accent2); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mock-models span { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.art-mus { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 30px; }
.art-mus i { width: 8px; height: var(--h); border-radius: 4px; background: var(--grad); animation: eq 1.2s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes eq { from { transform: scaleY(.35); } }
.section { margin: 90px auto; }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 42px); }
.section-sub { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text); transition: .15s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.tool-ico { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.tool-ico.big { font-size: 44px; }
.tool-foot { margin-top: auto; padding-top: 6px; }
.group-title { margin-top: 30px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(980px, 100%); margin: 0 auto 26px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 22px; margin: 0; }
.plan-pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(124, 92, 255, .25); }
.plan-flag { position: absolute; top: -11px; right: 16px; padding: 3px 10px; border-radius: 99px; background: var(--grad); font-size: 11px; font-weight: 800; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; font: 700 40px/1 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.plan-price .plan-cur { font: 800 13px/1 Manrope, sans-serif; letter-spacing: .08em; color: var(--muted); }
.plan-credits { font-weight: 700; color: #b9a8ff; margin-bottom: 8px; }
.plan-list { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.plan-quotas { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 4px; }
.plan-quotas div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 8px 8px 7px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 42%), rgba(0,0,0,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -8px 10px rgba(0,0,0,.2); }
.plan-quotas span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plan-quotas strong { font: 700 clamp(13px, 4.2cqi, 26px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -.04em; white-space: nowrap; max-width: 100%; }
.plan-quotas strong i { font-style: normal; font-size: .62em; font-weight: 700; color: var(--muted); margin-right: .2em; position: relative; top: -.28em; }
.plan-quotas .plan-rate strong i { font-size: .5em; letter-spacing: .01em; top: -.4em; }
.plan-quotas em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.2; }
.plan-quota-note { max-width: 720px; margin: 0 auto 14px; }
/* Cardul pe două coloane: stânga cine ești, dreapta cât primești. Pe îngust coloana din dreapta trece dedesubt. */
.plan-top { flex: 1 0 auto; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.plan-info { flex: 1 1 250px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.plan-sum { container: plansum / inline-size; flex: 1 1 172px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.plan-sum .plan-credits { margin-bottom: 2px; }
.plan-sum .plan-quotas { margin: 0; }
.plan-sum .plan-quotas div { align-items: center; text-align: center; }
@container plansum (max-width: 279px) {
  .plan-sum .plan-price { margin-top: 4px; }
  .plan-sum .plan-quotas { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .plan-sum .plan-quotas div { text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "l v" "l u"; align-items: center; column-gap: 10px; row-gap: 1px; padding: 7px 11px; }
  .plan-sum .plan-quotas span { grid-area: l; }
  .plan-sum .plan-quotas strong { grid-area: v; justify-self: end; font-size: 19px; }
  .plan-sum .plan-quotas em { grid-area: u; justify-self: end; text-align: right; font-size: 10.5px; }
}
.plan-market { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 4px; }
.plan-market-top { display: flex; align-items: center; gap: 8px; }
.plan-logo { width: 28px; height: 28px; display: block; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.plan-market b { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-market .hook { font: 700 16px/1.25 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.plan-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-pills span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 6px 10px 6px 7px; border-radius: 10px; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 46%), rgba(8,8,14,.4);
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(0,0,0,.4), 0 2px 0 rgba(0,0,0,.28); }
.plan-pills svg { width: 14px; height: 14px; display: block; flex: none; }
.theme-ig .plan-pills span { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0) 44%), linear-gradient(135deg, #f0b429, #e2266d 55%, #7a2ad4); }
.theme-yt .plan-pills span { background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 42%), linear-gradient(180deg, #ff4d5c, #d01028); }
.theme-fb .plan-pills span { background: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 42%), linear-gradient(180deg, #4d97f7, #0f62d4); }
.theme-tt .plan-pills span { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 42%), #121218; border-color: rgba(37,244,238,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 #fe2c55, 0 2px 0 rgba(0,0,0,.45); }
body.landing .land-plan,
.card.plan {
  isolation: isolate;
  z-index: 1;
  min-width: 0;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -16px 24px rgba(0,0,0,.28), 0 16px 34px rgba(0,0,0,.32);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card.plan { padding: 16px 16px 14px; }
.land-plan .plan-price,
.card.plan .plan-price { font-size: 34px; margin-top: 0; }
.land-plan .btn,
.card.plan .btn {
  position: relative;
  isolation: isolate;
  appearance: none;
  min-height: 48px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.42);
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #34343f, #16161e);
  color: #fff;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.18), 0 8px 14px rgba(0,0,0,.34);
}
.land-plan .btn::before,
.card.plan .btn::before {
  content: '';
  width: 18px; height: 14px; flex: none; border-radius: 3px;
  background:
    linear-gradient(rgba(90,58,12,.7), rgba(90,58,12,.7)) center / 1px 100% no-repeat,
    linear-gradient(rgba(90,58,12,.7), rgba(90,58,12,.7)) center / 100% 1px no-repeat,
    linear-gradient(145deg, #fff1c2, #e2b657 42%, #8d641c 70%, #f3d78a);
  box-shadow: inset 0 0 0 1px #6d5218, 0 1px 0 rgba(255,255,255,.45);
}
.land-plan .btn::after,
.card.plan .btn::after {
  content: '';
  position: absolute; left: 14px; right: 14px; top: 4px; height: 8px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  pointer-events: none;
}
.land-plan.theme-ig .btn,
.card.plan.theme-ig .btn { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%), linear-gradient(180deg, #ff6b9d, #c21868); }
.land-plan.theme-yt .btn,
.card.plan.theme-yt .btn { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0) 40%), linear-gradient(180deg, #ff4d5c, #c20e22); }
.land-plan.theme-fb .btn,
.card.plan.theme-fb .btn { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0) 40%), linear-gradient(180deg, #4b97f8, #0d5ec8); }
.land-plan.theme-tt .btn,
.card.plan.theme-tt .btn { border-color: rgba(37,244,238,.75);
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 40%), linear-gradient(180deg, #22222c, #09090e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -3px 0 #fe2c55, 0 1px 0 rgba(37,244,238,.25), 0 8px 14px rgba(0,0,0,.4); }
.land-plan .btn:hover,
.card.plan .btn:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); }
.land-plan .btn:active,
.card.plan .btn:active { filter: brightness(.96); transform: translateY(1px);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.45), 0 1px 0 rgba(0,0,0,.3); }
body.landing .land-plan > :not(.card-skin):not(.plan-flag),
.card.plan > :not(.card-skin):not(.plan-flag) { position: relative; z-index: 1; }
.plan-flag { z-index: 3; }
.card-skin { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.card-mesh { position: absolute; inset: 0; opacity: .55; background:
  repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 1px, transparent 1px 5px); }
.card-shine { position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.02) 42%, rgba(255,255,255,.34) 50%, rgba(255,255,255,.05) 56%, transparent 66%) 140% 0 / 240% 100% no-repeat;
  animation: card-glass 5.2s ease-in-out infinite; }
.land-plan:nth-child(2) .card-shine, .card.plan:nth-child(2) .card-shine { animation-delay: -1.3s; }
.land-plan:nth-child(3) .card-shine, .card.plan:nth-child(3) .card-shine { animation-delay: -2.6s; }
.land-plan:nth-child(4) .card-shine, .card.plan:nth-child(4) .card-shine { animation-delay: -3.9s; }
@keyframes card-glass { 0%, 18% { background-position: 140% 0; } 62%, 100% { background-position: -90% 0; } }
.card-hw { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.card-chip { width: 44px; height: 34px; flex: none; filter: drop-shadow(0 1px 0 rgba(255,255,255,.35)) drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.card-wave { width: 22px; height: 22px; color: rgba(255,255,255,.82); flex: none; }
body.landing .land-plan h3,
.card.plan h3 { letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.28), 0 2px 2px rgba(0,0,0,.45); }
body.landing .land-plan.theme-ig,
.card.plan.theme-ig { background: linear-gradient(165deg, rgba(255,255,255,.2), transparent 32%), radial-gradient(90% 80% at 0% 0%, rgba(249,206,52,.34), transparent 46%), radial-gradient(80% 80% at 100% 100%, rgba(238,42,123,.42), transparent 52%), linear-gradient(155deg, #3a243c, #160e1c 58%, #4a1a34); border-color: rgba(244, 196, 150, .55); }
body.landing .land-plan.theme-yt,
.card.plan.theme-yt { background: linear-gradient(165deg, rgba(255,255,255,.16), transparent 30%), radial-gradient(100% 80% at 100% 0%, rgba(255,42,60,.4), transparent 48%), linear-gradient(155deg, #32181c, #121014 58%, #241014); border-color: rgba(255, 120, 130, .5); }
body.landing .land-plan.theme-fb,
.card.plan.theme-fb { background: linear-gradient(165deg, rgba(255,255,255,.18), transparent 30%), radial-gradient(90% 80% at 0% 0%, rgba(90,170,255,.42), transparent 50%), linear-gradient(155deg, #163056, #0c1424 58%, #12325c); border-color: rgba(140, 190, 255, .5); }
body.landing .land-plan.theme-tt,
.card.plan.theme-tt { background: linear-gradient(165deg, rgba(255,255,255,.14), transparent 28%), radial-gradient(90% 70% at 100% 0%, rgba(37,244,238,.32), transparent 42%), radial-gradient(80% 80% at 0% 100%, rgba(254,44,85,.38), transparent 50%), linear-gradient(155deg, #1c1c26, #08080e 55%, #16161e); border-color: rgba(37,244,238,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px rgba(254,44,85,.28), 0 18px 40px rgba(0,0,0,.4); }
.theme-tt .plan-logo { width: 34px; height: 34px; }
.theme-tt .hook { font-size: 18px; }
.theme-tt .plan-market b { color: #d7fbff; }
body.landing .land-plan.pop,
.card.plan.plan-pop,
body.landing .land-plan.pop.theme-yt,
.card.plan.plan-pop.theme-yt { border-color: #d4c6ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 0 0 1px rgba(167,139,250,.95), 0 18px 46px rgba(124, 92, 255, .34); }
@media (min-width: 981px) {
  body.landing .land-plan,
  .card.plan { width: 100%; align-self: stretch; aspect-ratio: 85.6 / 54; }
}
@media (hover: hover) {
  body.landing .land-plan:hover,
  .card.plan:hover { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  body.landing .land-plan, .card.plan, .card-shine { transition: none; animation: none; }
  body.landing .land-plan:hover, .card.plan:hover,
  .land-plan .btn:hover, .card.plan .btn:hover,
  .land-plan .btn:active, .card.plan .btn:active { transform: none; }
}
.plan .btn { margin-top: auto; }
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: none; border: 0; color: var(--text);
  font: 700 17px Manrope, sans-serif; text-align: left; cursor: pointer; }
.faq-q span { font-size: 22px; color: var(--muted); transition: .2s; }
.faq-a { display: none; padding: 0 0 18px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.cta-final { text-align: center; padding: 60px 20px; margin-bottom: 70px; border-radius: 26px; background: radial-gradient(circle at 50% 0, rgba(124, 92, 255, .3), transparent 70%), var(--card); border: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(26px, 4vw, 40px); }
.footer { border-top: 1px solid var(--line); padding: 36px 0 26px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.legal { max-width: 820px; }
.legal h2 { font-size: 20px; margin-top: 26px; }
.legal p { color: #cfcce4; }

/* ===== Autentificare ===== */
.auth-body { background: radial-gradient(circle at 50% -10%, rgba(124, 92, 255, .3), transparent 60%), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 26px; margin: 10px 0 0; }

/* ===== Aplicația ===== */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--side); flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg2); border-right: 1px solid var(--line); padding: 16px 12px; z-index: 60; }
.sidebar-head { padding: 4px 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: #c3c0da; font-weight: 600; }
.side-nav a:hover { background: var(--card); color: var(--text); }
.side-nav a.on { background: var(--card2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-nav .ico { width: 22px; text-align: center; }
.side-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.balance { display: block; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.balance strong { font: 700 22px 'Space Grotesk', sans-serif; }
.balance span:first-child { display: block; }
/* Monedele (Photoshop și After Effects) */
.coin-ico { display: inline-block; vertical-align: -3px; flex: none; }
.balance.balance-coins { margin-top: 6px; padding: 8px 14px; }
.balance.balance-coins strong { font-size: 18px; }
.balance.balance-coins .balance-val { display: flex; align-items: center; gap: 6px; }
/* Plăcuța de monede de pe card: același material ca TEXT / IMAGINI / VIDEO, cu tentă aurie,
   ca să se vadă că e altă monedă, folosită doar în editor (Photoshop, After Effects). */
.plan-coins { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "a a" "u u"; align-items: center; gap: 5px 10px;
  margin: 6px 0 0; padding: 8px 11px 8px; border-radius: 12px; border: 1px solid rgba(245, 184, 61, .28);
  background: linear-gradient(180deg, rgba(255, 214, 120, .14), rgba(255, 214, 120, 0) 46%), rgba(0, 0, 0, .26);
  box-shadow: inset 0 1px 0 rgba(255, 235, 180, .22), inset 0 -8px 10px rgba(0, 0, 0, .2); }
.plan-coins .pc-label { grid-area: l; display: flex; align-items: center; gap: 5px; min-width: 0; color: #f5c96b; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
/* Eticheta trece pe două rânduri doar când nu încape lângă sumă (texte lungi în rusă, cardurile înguste de la ~1024px). */
html[lang="ru"] .plan-coins .pc-label { letter-spacing: .04em; } /* „/день” e mai lat: așa eticheta rusă încape pe un rând, ca în română */
@container plansum (max-width: 279px) {
  /* coloana din dreapta e prea îngustă (~1024px): eticheta pe toată lățimea, suma dedesubt */
  .plan-sum .plan-coins { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "v" "a" "u"; }
  .plan-sum .plan-coins strong { justify-self: start; }
}
.plan-coins .pc-apps { grid-area: a; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.plan-coins .pc-apps b { flex: 1 1 auto; text-align: center; }
.plan-coins .pc-apps b { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.plan-coins .pc-ps { color: #9ccfff; background: rgba(70, 150, 255, .16); border: 1px solid rgba(110, 180, 255, .35); }
.plan-coins .pc-ae { color: #cdbaff; background: rgba(140, 110, 255, .16); border: 1px solid rgba(170, 150, 255, .35); }
.plan-coins strong { grid-area: v; justify-self: end; font: 700 22px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; color: #ffd27a; white-space: nowrap; }
.plan-coins strong i { font-style: normal; font-size: .52em; font-weight: 700; color: #d9b45c; margin-left: 2px; }
.plan-coins em { grid-area: u; justify-self: start; text-align: left; font-style: normal; color: var(--muted); font-size: 10.5px; font-weight: 700; line-height: 1.25; }
.coins-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(245, 184, 61, .4); color: #f5c96b; font-weight: 700; }
.coins-card { margin: 16px 0; }
.coins-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.coins-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.coins-bal strong { font: 700 30px 'Space Grotesk', sans-serif; color: #f5c96b; }
.coins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0 10px; }
.coins-box { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.coins-box strong { font: 700 20px 'Space Grotesk', sans-serif; color: #f5c96b; }
.coins-costs { margin-bottom: 12px; }
.coins-ref { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.coins-ref-row { display: flex; gap: 8px; }
.coins-ref-row input { flex: 1; min-width: 0; }
.coins-log { margin-top: 12px; }
.coins-log summary { cursor: pointer; }
.side-row { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mobilebar { display: none; }
.demo-banner { padding: 10px 20px; background: rgba(251, 191, 36, .1); border-bottom: 1px solid rgba(251, 191, 36, .3); color: #fde68a; font-size: 13px; }
.demo-banner a { color: #fff; text-decoration: underline; }
.main > .alert { margin: 14px 24px 0; }
.page { padding: 26px 28px 60px; width: 100%; max-width: 1200px; }
.page.narrow { max-width: 720px; }
.page-title { font-size: 28px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; }
.tabs a.on { background: var(--card2); color: #fff; border-color: #3a3a5c; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.stat strong { font: 700 24px 'Space Grotesk', sans-serif; }
.stat-wide { flex: 1; min-width: 260px; justify-content: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.pager a, .pager span { min-width: 36px; padding: 6px 10px; text-align: center; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); }
.pager span.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.order-box { margin-bottom: 24px; border-color: var(--accent); }
.pay-instr { padding: 14px 16px; margin: 10px 0; border-radius: 12px; background: var(--bg2); border: 1px dashed #3a3a5c; font-weight: 600; }

/* ===== Chat ===== */
.main:has(> .chat) { height: 100vh; height: 100dvh; overflow: hidden; }
.chat { display: flex; flex: 1; min-height: 0; }
.chat-list { width: 260px; flex: none; border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.chat-items { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.chat-item { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: #c3c0da; font-size: 14px; }
.chat-item:hover, .chat-item.on { background: var(--card); color: #fff; }
.chat-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-acts { display: none; gap: 2px; }
.chat-item:hover .chat-item-acts { display: flex; }
.chat-item-acts button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.chat-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.model-select { width: auto; min-width: 220px; font-weight: 700; }
.messages { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.chat-empty { position: relative; margin: auto; text-align: center; max-width: 760px; width: 100%; padding: 10px 0 20px; }
.hello-orb { position: absolute; left: 50%; top: -30px; width: 420px; height: 260px; transform: translateX(-50%); pointer-events: none; filter: blur(50px); opacity: .55; z-index: 0; }
.hello-orb span { position: absolute; border-radius: 50%; animation: orb 9s ease-in-out infinite; }
.hello-orb span:nth-child(1) { width: 220px; height: 220px; left: 30px; top: 10px; background: #7c5cff; }
.hello-orb span:nth-child(2) { width: 180px; height: 180px; right: 40px; top: 40px; background: #22c1ee; animation-delay: -3s; }
.hello-orb span:nth-child(3) { width: 150px; height: 150px; left: 140px; top: 90px; background: #b05cff; animation-delay: -6s; }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -20px) scale(1.12); } 66% { transform: translate(-30px, 20px) scale(.9); } }
.chat-empty > :not(.hello-orb) { position: relative; z-index: 1; }
.hello-mark { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 10px 40px rgba(124, 92, 255, .55); animation: mark-in .6s cubic-bezier(.2, 1.4, .4, 1) both, float 5s ease-in-out .6s infinite; }
@keyframes mark-in { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }
.hello-title { font-size: clamp(26px, 4vw, 34px); background: linear-gradient(90deg, #fff 0%, #d9ceff 40%, #fff 60%, #bfeeff 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fade-up .5s .1s both, shine 6s linear 1s infinite; }
@keyframes shine { to { background-position: -250% 0; } }
.hello-sub { max-width: 520px; margin: 0 auto; animation: fade-up .5s .18s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; text-align: left; transition: opacity .18s, transform .18s; }
.ideas.out { opacity: 0; transform: translateY(6px); }
.idea { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; cursor: pointer; overflow: hidden;
  background: rgba(21, 21, 36, .8); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; backdrop-filter: blur(6px);
  animation: fade-up .45s var(--d) both; transition: transform .18s, border-color .18s, box-shadow .18s; }
.idea::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) 150% 0 / 250% 100% no-repeat; transition: background-position .6s; pointer-events: none; }
.idea:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .6); box-shadow: 0 12px 30px rgba(124, 92, 255, .18); }
.idea:hover::after { background-position: -50% 0; }
.idea:active { transform: translateY(-1px) scale(.99); }
.idea-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #c9bcff; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .25); transition: background .18s, color .18s; }
.idea:hover .idea-ico { background: var(--grad); color: #fff; border-color: transparent; }
.idea-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.idea-txt strong { font-size: 14px; }
.idea-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ideas-more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; animation: fade-up .5s .45s both; }
.ideas-more:hover { color: #c9bcff; }
.composer-row.flash { animation: flash .7s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .6); border-color: var(--accent); } 100% { box-shadow: 0 0 0 14px rgba(124, 92, 255, 0); } }
@media (max-width: 1100px) { .ideas { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .hello-orb span, .hello-mark, .hello-title, .idea, .ideas-more { animation: none; } }
.msg { display: flex; flex-direction: column; max-width: 860px; width: 100%; margin: 0 auto; }
.msg-user { align-items: flex-end; }
.msg-user .bubble { background: var(--accent); color: #fff; border-radius: 18px 18px 4px 18px; max-width: 80%; }
.msg-assistant .bubble { background: transparent; padding-left: 0; padding-right: 0; }
.bubble { padding: 12px 16px; overflow-wrap: anywhere; }
.msg-img { max-width: 260px; border-radius: 12px; margin-bottom: 8px; }
.msg-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.md p { margin: 0 0 .8em; }
.md p:last-child { margin-bottom: 0; }
.md pre { position: relative; background: #0d0d18; border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 13px; }
.md code { font-family: ui-monospace, Consolas, monospace; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.md pre code { background: none; padding: 0; }
.md table { border-collapse: collapse; margin: 10px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; }
.md a { text-decoration: underline; }
.code-copy { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--card2); color: var(--muted); font-size: 11px; cursor: pointer; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; transform: translateY(-3px); } }
.composer { padding: 12px 20px 16px; max-width: 900px; width: 100%; margin: 0 auto; }
.composer-tool { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px 4px; padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.composer-row:focus-within { border-color: var(--accent); }
.composer textarea { border: 0; background: none; resize: none; padding: 9px 6px; max-height: 220px; }
.send-btn { width: 44px; height: 40px; padding: 0; border-radius: 12px; }
.attach-preview { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.attach-preview img { height: 64px; border-radius: 10px; }

/* ===== Studio ===== */
.studio { display: grid; grid-template-columns: 420px 1fr; gap: 24px; padding: 24px 28px 60px; align-items: start; }
.studio-form { position: sticky; top: 20px; }
.tool-head { display: flex; gap: 14px; align-items: center; margin: 12px 0 4px; }
.tool-head h1 { margin: 0; }
.tool-head p { margin: 4px 0 0; }
.model-grid { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.model-card input { position: absolute; opacity: 0; pointer-events: none; }
.model-card { display: block; }
.model-card-in { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-weight: 500; }
.model-card-in > .badge { align-self: flex-start; }
.model-card input:checked + .model-card-in { border-color: var(--accent); background: rgba(124, 92, 255, .1); box-shadow: 0 0 0 1px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font: 700 13px Manrope, sans-serif; cursor: pointer; }
.chip-opt.on { color: #fff; border-color: var(--accent); background: rgba(124, 92, 255, .15); }
.dropzone { display: grid; place-items: center; min-height: 110px; border-radius: 14px; border: 1.5px dashed #3a3a5c; background: var(--bg2) center / cover no-repeat; cursor: pointer; font-weight: 600; color: var(--muted); text-align: center; padding: 12px; }
.dropzone.drag { border-color: var(--accent); }
.dropzone span { background: rgba(10, 10, 18, .7); padding: 4px 10px; border-radius: 8px; }
.studio-form .btn-lg { margin-top: 18px; }
.studio-form .check { margin-top: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gen-card { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.gen-media img, .gen-media video { width: 100%; aspect-ratio: auto; background: #000; }
.gen-audio { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 4px;
  background: radial-gradient(120% 90% at 0 0, rgba(124, 92, 255, .22), transparent 60%), radial-gradient(120% 90% at 100% 100%, rgba(34, 193, 238, .14), transparent 60%); }

/* Player audio propriu */
.aplayer { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "play info acts" "bar bar bar" "lyr lyr lyr" "cut cut cut"; align-items: center; gap: 10px 10px;
  padding: 10px 12px 12px; border-radius: 14px; background: rgba(10, 10, 18, .55); border: 1px solid var(--line); transition: border-color .2s, background .2s, box-shadow .2s; }
.aplayer:hover, .aplayer.playing, .aplayer.cutting { border-color: rgba(124, 92, 255, .55); }
.aplayer.playing { background: rgba(124, 92, 255, .1); box-shadow: 0 0 0 1px rgba(124, 92, 255, .2), 0 8px 30px rgba(124, 92, 255, .15); }
.aplayer audio { display: none; }
.ap-play { grid-area: play; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: var(--grad); box-shadow: 0 4px 16px rgba(124, 92, 255, .4); transition: transform .12s; }
.ap-play:hover { transform: scale(1.07); }
.ap-play svg { margin-left: 2px; }
.aplayer.playing .ap-play { animation: ap-pulse 1.8s ease-in-out infinite; }
.aplayer.playing .ap-play svg { margin-left: 0; }
@keyframes ap-pulse { 50% { box-shadow: 0 0 0 6px rgba(124, 92, 255, .18), 0 4px 16px rgba(124, 92, 255, .4); } }
.ap-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ap-title { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-acts { grid-area: acts; display: flex; gap: 4px; }
.ap-btn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: transparent; cursor: pointer; }
.ap-btn:hover, .aplayer.cutting .ap-cut { color: #fff; border-color: #3a3a5c; background: var(--card2); }
.aplayer.cutting .ap-cut { border-color: var(--accent); color: #c9bcff; }
.ap-btn svg { width: 16px; height: 16px; }
.ap-vol-wrap { position: relative; }
.ap-vol-pop { position: absolute; bottom: calc(100% + 8px); right: -8px; z-index: 5; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid #3a3a5c; box-shadow: var(--shadow); animation: ap-pop .15s ease-out; }
@keyframes ap-pop { from { opacity: 0; transform: translateY(4px); } }
.ap-vol-range { width: 110px; padding: 0; border: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
.ap-bar { grid-area: bar; position: relative; height: 6px; border-radius: 99px; background: var(--line); cursor: pointer; touch-action: none; }
.ap-bar::before { content: ''; position: absolute; inset: -8px 0; }
.ap-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ap-fill { position: relative; height: 100%; width: 0; border-radius: inherit; background: var(--grad); }
.ap-fill::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .45); opacity: 0; transition: opacity .15s; }
.aplayer:hover .ap-fill::after, .aplayer.playing .ap-fill::after { opacity: 1; }
/* editorul de ton de apel */
.ap-cutter { grid-area: cut; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; animation: ap-pop .2s ease-out; }
.ap-cut-msg { padding: 14px 0; text-align: center; }
.ap-wave-wrap { position: relative; height: 64px; border-radius: 10px; background: rgba(10, 10, 18, .6); cursor: crosshair; touch-action: none; user-select: none; }
.ap-wave { width: 100%; height: 100%; display: block; }
.ap-sel { position: absolute; top: 0; bottom: 0; border-radius: 8px; border: 2px solid var(--accent); background: rgba(124, 92, 255, .12); cursor: grab; box-shadow: 0 0 18px rgba(124, 92, 255, .35); }
.ap-sel:active { cursor: grabbing; }
.ap-h { position: absolute; top: 50%; width: 12px; height: 34px; margin-top: -17px; border-radius: 6px; background: #fff; cursor: ew-resize; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.ap-h::after { content: ''; position: absolute; left: 5px; top: 9px; bottom: 9px; width: 2px; border-radius: 1px; background: var(--accent); }
.ap-h-s { left: -7px; }
.ap-h-e { right: -7px; }
.ap-cut-pos { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; }
.ap-cut-times { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-cut-times strong { color: var(--text); }
.ap-cut-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ap-cut-row .check { font-size: 13px; }
.ap-cut-hint { margin: 0; }
@media (min-width: 1200px) { .gallery .gen-type-audio { grid-column: span 2; } }

/* Bife stilizate (pe tot site-ul) */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; border-radius: 6px;
  border: 1.5px solid #4a4a6e; background: var(--bg2); cursor: pointer; display: inline-grid; place-content: center; vertical-align: middle;
  transition: background .15s, border-color .15s, box-shadow .15s; }
input[type="checkbox"]::before { content: ''; width: 10px; height: 6px; margin-top: -2px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
input[type="checkbox"]:hover { border-color: var(--accent); }
input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; box-shadow: 0 2px 10px rgba(124, 92, 255, .45); }
input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
label.check { cursor: pointer; align-items: center; }
label.check input { margin-top: 0; }
.gen-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 4 / 3; padding: 20px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px;
  background: linear-gradient(110deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%) 0 0 / 300% 100%; animation: shimmer 2s linear infinite; }
.gen-err { animation: none; background: rgba(248, 113, 113, .06); color: #fecaca; }
@keyframes shimmer { to { background-position: -300% 0; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-info { padding: 10px 12px; }
.gen-prompt { margin: 0 0 6px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gen-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }

/* ===== Admin ===== */
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; padding: 5px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.admin-tabs a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.admin-tabs a.on { background: var(--card2); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { font: 700 26px 'Space Grotesk', sans-serif; }
.kpi em { font-style: normal; color: var(--muted); font-size: 12px; }
.kpi-ok strong { color: var(--ok); }
.kpi-bad strong { color: var(--bad); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-row { display: flex; gap: 8px; margin-bottom: 16px; max-width: 520px; }
.switch { width: 42px; height: 24px; border-radius: 99px; border: 0; background: #3a3a5c; position: relative; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 21px; }
.plan-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

/* ===== Toast ===== */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; transition: .3s; }
.toast-bad { border-color: rgba(248, 113, 113, .5); }
.toast.hide { opacity: 0; transform: translateY(8px); }

.show-sm { display: none; }

/* ===== Mobil ===== */
@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; padding: 16px; }
  .studio-form { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 26px; margin: 60px auto; }
  .feature-rev .feature-text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .topnav, .hide-sm { display: none; }
  .show-sm { display: inline-grid; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 40; }
  .mobilebar .logo { font-size: 17px; }
  #chat-title { display: none; }
  .demo-banner { font-size: 12px; padding: 8px 16px; }
  .chat-list { position: fixed; top: 0; bottom: 0; left: 0; z-index: 55; transform: translateX(-100%); transition: transform .2s; width: 82%; max-width: 300px; }
  .chat-list.open { transform: none; box-shadow: var(--shadow); }
  .chat-top { padding: 10px 16px; }
  .model-select { min-width: 0; flex: 1; }
  .messages { padding: 16px; }
  .composer { padding: 8px 12px 12px; }
  .ideas { grid-template-columns: 1fr; }
  .hello-orb { width: 300px; }
  .page { padding: 18px 16px 50px; }
  .form-grid { grid-template-columns: 1fr; }
  .inline-form input { min-width: 0; }
  .hero { padding-top: 50px; }
  .topbar-in { gap: 10px; }
  .topbar .btn { white-space: nowrap; }
}
@media (max-width: 440px) {
  .topbar .logo { font-size: 0; gap: 0; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Shared vector icons and illustrated tool cards */
.svg-icon { display:inline-block; flex-shrink:0; vertical-align:-.18em; }
.text-bolt, .svg-icon-bolt { color:#f5c66b; }
.text-accent { color:#b6a4ff; }
.kind-ico, .tool-ico { display:inline-grid; place-items:center; color:#c3b5ff; background:linear-gradient(135deg,rgba(124,92,255,.2),rgba(34,193,238,.08)); border:1px solid rgba(166,140,255,.22); border-radius:14px; }
.kind-ico { width:36px; height:36px; margin-right:6px; }
.tool-ico { width:52px; height:52px; }
.tool-ico.big { width:64px; height:64px; }
.tool-card { overflow:hidden; transition: border-color .2s, transform .2s; }
.tool-card:hover { border-color:#7560b8; transform:translateY(-3px); }
.tool-card-visual { position:relative; margin-bottom:8px; }
.tool-card-visual img, .tool-card-visual video { width:100%; height:160px; object-fit:cover; border-radius:12px; }
.tool-card-visual:has(img, video) .tool-ico { position:absolute; left:12px; bottom:10px; width:40px; height:40px; background:rgba(17,16,33,.92); }
.tool-card-thumb { position:relative; }
.tool-card-thumb img, .tool-card-thumb video { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:12px; }
.tool-thumb-badge { position:absolute; bottom:10px; left:10px; display:grid; place-items:center; width:32px; height:32px; border-radius:10px; color:#d9cfff; background:rgba(17,16,33,.9); border:1px solid rgba(166,140,255,.3); }
.tool-card-body { display:flex; flex-direction:column; gap:8px; }
.icon-btn:hover { border-color:#7560b8; background:#25203e; }
.icon-btn:focus-visible, .tool-card:focus-visible { outline:2px solid #b6a4ff; outline-offset:3px; }
.chat-item button .svg-icon { width:16px !important; height:16px !important; }
.gen-meta .svg-icon { width:14px !important; height:14px !important; }
@media (prefers-reduced-motion:reduce) { .tool-card { transition:none; } .tool-card:hover { transform:none; } }

/* Layout for the existing image, video and music showcases */
.art-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; height:100%; padding:14px; }
.art-card { position:relative; min-height:0; overflow:hidden; border-radius:13px; }
.art-card img { width:100%; height:100%; object-fit:cover; }
.art-tag { position:absolute; top:10px; left:10px; padding:4px 8px; font-size:10px; font-weight:700; border-radius:7px; background:rgba(10,10,18,.75); backdrop-filter:blur(8px); }
.art-prompt { z-index:1; font-size:12px; }
.vid-bg-img { width:100%; height:100%; object-fit:cover; }
.vid-overlay { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; padding:20px; background:linear-gradient(rgba(5,5,15,.4),transparent 45%,rgba(5,5,15,.8)); }
.vid-topbar,.vid-meta-row,.mus-controls-row { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:11px; }
.vid-badge { padding:5px 9px; border:1px solid #ffffff30; border-radius:7px; background:#10101c70; }
.rec-dot { display:inline-block; width:6px; height:6px; margin-right:5px; border-radius:50%; background:#f87171; }
.play-btn-wrap { display:grid; place-items:center; }
.play-circle { display:grid; place-items:center; width:66px; height:66px; border-radius:50%; border:1px solid #ffffff66; background:#ffffff20; backdrop-filter:blur(10px); }
.vid-progress,.mus-slider { height:4px; border-radius:4px; background:#ffffff30; margin-bottom:10px; overflow:hidden; }
.vid-bar,.mus-slider-fill { width:40%; height:100%; background:var(--grad); }
.art-mus-showcase { display:grid; place-items:center; padding:24px; background:radial-gradient(ellipse at top,#352255,var(--card) 75%); }
.mus-album-card { display:flex; align-items:center; gap:20px; width:100%; }
.mus-cover { width:43%; aspect-ratio:1; object-fit:cover; border-radius:14px; box-shadow:0 12px 28px #0006; }
.mus-player-body { flex:1; min-width:0; }
.mus-track-title { font-weight:800; font-size:18px; line-height:1.3; margin-bottom:8px; }
.mus-track-artist { font-size:10px; color:var(--muted); }
.mus-waves { display:flex; align-items:center; gap:3px; height:60px; margin:12px 0; }
.mus-waves i { flex:1; height:var(--h); background:var(--grad); border-radius:3px; }
.mus-btn-play { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.mus-slider { flex:1; margin:0; }
.mock-author { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted); margin-bottom:5px; }
@media(max-width:440px) { .art-mus-showcase { padding:16px; } .mus-album-card { gap:12px; } .mus-track-title { font-size:15px; } .vid-model { font-size:9px; } .art-prompt { left:16px; right:16px; bottom:16px; padding:8px; } }
label.check input[type="checkbox"] { width: 20px; margin-top: 0; }
/* player în carduri înguste (telefon): butoanele trec pe rândul de jos, titlul rămâne vizibil */
.gen-audio { container-type: inline-size; }
@container (max-width: 250px) {
  .aplayer { grid-template-columns: auto 1fr; grid-template-areas: "play info" "bar bar" "acts acts" "lyr lyr" "cut cut"; }
  .ap-acts { justify-content: space-between; }
  .ap-acts .ap-btn { width: 100%; }
  .ap-acts > * { flex: 1; }
  .ap-vol-pop { right: auto; left: 0; }
}
/* player: copertă, stil, versuri */
.aplayer.has-cover .ap-play { width: 52px; height: 52px; border-radius: 12px; background: #1b1b2e center / cover no-repeat; position: relative; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.aplayer.has-cover .ap-play span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 18, .35); transition: background .15s; }
.aplayer.has-cover .ap-play:hover span, .aplayer.has-cover.playing .ap-play span { background: rgba(124, 92, 255, .45); }
.aplayer.has-cover.playing .ap-play { animation: none; box-shadow: 0 0 0 2px var(--accent), 0 6px 22px rgba(124, 92, 255, .5); }
.ap-tags { font-size: 11.5px; color: var(--muted); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-lyrics { grid-area: lyr; max-height: 260px; overflow-y: auto; padding: 12px 14px; border-radius: 10px; background: rgba(10, 10, 18, .6); border: 1px solid var(--line);
  white-space: pre-line; font-size: 13.5px; line-height: 1.65; color: #d8d5ea; animation: ap-pop .2s ease-out; }
.ap-lyrics b { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #b9a8ff; }
.ap-lyrics b:first-child { margin-top: 0; }
.aplayer.show-lyrics .ap-lyr { color: #c9bcff; border-color: var(--accent); }

/* ===== Vocea mea ===== */
.voice-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-chip { display: inline-flex; flex-direction: row; font-weight: 600; font-size: 13px; }
.voice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.voice-chip-in { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); cursor: pointer; transition: .15s; }
.voice-chip-in:hover { border-color: #3a3a5c; color: var(--text); }
.voice-chip input:checked + .voice-chip-in { color: #fff; border-color: var(--accent); background: rgba(124, 92, 255, .15); box-shadow: 0 0 0 1px var(--accent); }
button.voice-chip { border: 0; padding: 0; background: none; font: inherit; }
.voice-chip .svg-icon { width: 15px; height: 15px; }
.voice-del { margin-left: 2px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.voice-del:hover { color: var(--bad); }
.voice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: ap-pulse 1.4s infinite; }
.voice-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 11px; border: 1.5px dashed #4a4a6e; background: transparent; color: #c9bcff; font: 700 13px Manrope, sans-serif; cursor: pointer; transition: .15s; }
.voice-add:hover { border-color: var(--accent); background: rgba(124, 92, 255, .1); }
.voice-hint { margin: 8px 0 4px; }

.modal-back { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 12, .7); backdrop-filter: blur(6px); animation: fade .2s; overflow-y: auto; }
.modal-back.closing { animation: fade .2s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid #2f2f4a; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: modal-in .28s cubic-bezier(.2, 1.2, .4, 1); display: flex; flex-direction: column; gap: 14px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal h2 { margin: 0; font-size: 22px; }
.modal p { margin: 0; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--card2); color: var(--muted); font-size: 20px; cursor: pointer; }
.modal-x:hover { color: #fff; }
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.modal-err:empty { display: none; }
.steps { display: flex; gap: 6px; margin-right: 40px; }
.steps span { flex: 1; padding-top: 8px; border-top: 3px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); transition: .3s; }
.steps span.on { border-color: var(--accent); color: #c9bcff; }
.voice-tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 3px; }
.rec { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(10, 10, 18, .5); border: 1px solid var(--line); text-align: center; }
.rec-btn { --lvl: 0; position: relative; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 28px rgba(124, 92, 255, .45); transition: transform .15s; }
.rec-btn:hover { transform: scale(1.05); }
.rec-btn .svg-icon { width: 30px; height: 30px; position: relative; }
.rec-ring { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(248, 113, 113, .0); transform: scale(calc(1 + var(--lvl) * .45)); transition: transform .06s linear; }
.rec.recording .rec-btn { background: linear-gradient(135deg, #f87171, #e11d48); box-shadow: 0 8px 28px rgba(225, 29, 72, .5); }
.rec.recording .rec-ring { border-color: rgba(248, 113, 113, .6); }
.rec-time { font: 700 22px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.rec.recording .rec-time { color: #fecaca; }
.voice-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.voice-or::before, .voice-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.voice-upload { align-self: center; }
.voice-form { gap: 12px; }
.voice-seg input { padding: 0; accent-color: var(--accent); }
.phrase { margin: 0; padding: 18px 20px; border-radius: 14px; border-left: 4px solid var(--accent); background: rgba(124, 92, 255, .1); font: 700 19px/1.45 'Space Grotesk', sans-serif; color: #fff; }
.voice-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 6px; }
.spinner.big { width: 54px; height: 54px; border-width: 4px; }
.big-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.big-ico .svg-icon { width: 30px; height: 30px; }
.big-ico.ok { background: rgba(52, 211, 153, .15); color: var(--ok); animation: modal-in .4s cubic-bezier(.2, 1.6, .4, 1); }
.big-ico.neg { background: rgba(248, 113, 113, .12); }
.modal .v-new { align-self: center; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.voice-upload { flex-direction: row; font-weight: 700; }

/* ===== Galeria de șabloane (video) ===== */
.tpl-gallery { padding: 26px 28px 0; max-width: 1400px; }
.tpl-head p { margin: 4px 0 0; }
.tpl-cats { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 8px; scrollbar-width: none; }
.tpl-cats::-webkit-scrollbar { display: none; }
.tpl-cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 92px; padding: 10px 8px; border: 0; background: none; color: var(--muted); font: 700 12.5px Manrope, sans-serif; cursor: pointer; border-radius: 14px; transition: .15s; }
.tpl-cat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: #b9a8ff; transition: .2s; }
.tpl-cat:hover { color: var(--text); }
.tpl-cat:hover .tpl-cat-ico { transform: translateY(-2px); border-color: #3a3a5c; }
.tpl-cat.on { color: #fff; }
.tpl-cat.on .tpl-cat-ico { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(124, 92, 255, .45); }
.tpl-row { margin-top: 22px; animation: fade-up .35s both; }
.tpl-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.tpl-row-head h2 { margin: 0; }
.tpl-row-head p { margin: 2px 0 0; }
.tpl-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: #2f2f4a transparent; }
.tpl-gallery.filtered .tpl-track { flex-wrap: wrap; overflow: visible; }
.tpl-gallery.filtered .tpl-all { display: none; }
.tpl-card { flex: none; width: 240px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.tpl-card:hover { color: #fff; }
.tpl-media { position: relative; display: block; aspect-ratio: 7 / 5; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tpl-media img, .tpl-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tpl-card:hover .tpl-media { transform: translateY(-3px); border-color: rgba(124, 92, 255, .6); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(124, 92, 255, .3); }
.tpl-card:hover .tpl-media img, .tpl-card:hover .tpl-media video { transform: scale(1.06); }
.tpl-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 12, .65)); pointer-events: none; }
.tpl-ico { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.tpl-ico .svg-icon { filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); transition: transform .3s; }
.tpl-card:hover .tpl-ico .svg-icon { transform: scale(1.15) rotate(-6deg); }
.tpl-popular .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 25% 20%, #ff8ad8 0, transparent 45%), linear-gradient(135deg, #7c5cff, #b83280); }
.tpl-motion .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 75% 25%, #ffd36b 0, transparent 45%), linear-gradient(135deg, #ff7a45, #c2185b); }
.tpl-effects .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 30% 75%, #7ef9ff 0, transparent 45%), linear-gradient(135deg, #22c1ee, #6d28d9); }
.tpl-transitions .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 70% 70%, #a5b4fc 0, transparent 45%), linear-gradient(135deg, #1e3a8a, #0ea5e9); }
.tpl-business .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 25% 30%, #bbf7d0 0, transparent 45%), linear-gradient(135deg, #059669, #0e7490); }
.tpl-media:not(:has(img, video))::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%) 200% 0 / 250% 100% no-repeat; animation: tpl-shine 4.5s ease-in-out infinite; }
@keyframes tpl-shine { 60%, 100% { background-position: -100% 0; } }
.tpl-badge { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: rgba(10, 10, 18, .7); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; color: #fff; }
.tpl-badge .svg-icon { width: 12px; height: 12px; }
.tpl-go { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a0a12; opacity: 0; transform: translateY(6px); transition: .25s; }
.tpl-card:hover .tpl-go { opacity: 1; transform: none; }
.tpl-title { font-weight: 700; font-size: 14.5px; padding: 0 2px; }
.tpl-desc { font-size: 12.5px; color: var(--muted); padding: 0 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-scratch-title { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.tpl-scratch-title h2 { margin: 0; }
@media (max-width: 800px) { .tpl-gallery { padding: 18px 16px 0; } .tpl-card { width: 70vw; max-width: 260px; } }

/* demonstrațiile reale de pe prima pagină */
.play-circle { cursor: pointer; color: #fff; padding: 0; font: inherit; transition: transform .2s, background .2s, opacity .25s; }
.play-circle:hover { transform: scale(1.08); background: #ffffff33; color: #fff; }
.art-vid-showcase.playing .play-circle { opacity: 0; }
.art-vid-showcase.playing:hover .play-circle { opacity: 1; }
.art-vid-showcase video.vid-bg-img { object-fit: cover; }
.vid-progress.sv-bar, .mus-slider.sa-bar { cursor: pointer; }
.sv-sound { color: #fff; font-size: 12px; font-weight: 700; }
button.mus-btn-play { border: 0; cursor: pointer; font: inherit; }
a.mus-btn-play { color: inherit; }
.art-mus-showcase.playing .mus-waves i { animation-play-state: running; }
.cover-pick { display: flex; flex-direction: column; gap: 8px; }
.cover-now { display: flex; align-items: center; gap: 12px; }
.cover-now img, .cover-now video { width: 160px; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.cover-opt { position: relative; cursor: pointer; }
.cover-opt input { position: absolute; opacity: 0; }
.cover-opt img, .cover-opt video { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.cover-opt input:checked + img, .cover-opt input:checked + video { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, .3); }
/* mai multe poze într-un șablon + gradienturi pentru categoriile noi */
.dropzone.multi #drop-text { background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop-thumbs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.drop-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--accent); }
.drop-count { font-size: 12px; font-weight: 700; color: #c9bcff; }
.tpl-basic .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 70% 25%, #fda4af 0, transparent 45%), linear-gradient(135deg, #4f46e5, #0f172a); }
.tpl-tools .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 25% 25%, #93c5fd 0, transparent 45%), linear-gradient(135deg, #2563eb, #7c3aed); }
.tpl-photostudio .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 70% 30%, #f5f5f5 0, transparent 40%), linear-gradient(135deg, #3f3f46, #0a0a0a); }
.tpl-trends .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 30% 70%, #fde68a 0, transparent 45%), linear-gradient(135deg, #f97316, #db2777); }
.tpl-design .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 75% 70%, #c4b5fd 0, transparent 45%), linear-gradient(135deg, #a21caf, #1e1b4b); }
.tpl-marketplace .tpl-media:not(:has(img, video)) { background: radial-gradient(circle at 25% 30%, #a7f3d0 0, transparent 45%), linear-gradient(135deg, #0d9488, #1e3a8a); }

/* ===== Fundal public: auroră violet–cyan ===== */
body:has(.sky) { background: #06060e; }
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #06060e; }
.sky span { position: absolute; border-radius: 50%; filter: blur(46px); }
.sky span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: rgba(124, 92, 255, .72); animation: sky-a 24s ease-in-out infinite alternate; }
.sky span:nth-child(2) { width: 38vw; height: 38vw; right: -12vw; top: -10vw; background: rgba(34, 193, 238, .46); animation: sky-b 28s ease-in-out infinite alternate; }
.sky span:nth-child(3) { width: 34vw; height: 34vw; left: 38vw; bottom: -20vw; background: rgba(150, 70, 255, .38); animation: sky-a 32s ease-in-out infinite alternate-reverse; }
.sky::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 130% 85% at 50% -8%, transparent 0%, rgba(6, 6, 14, .2) 42%, rgba(6, 6, 14, .88) 100%),
  radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  mask-image: linear-gradient(#000 0%, #000 55%, transparent 100%); }
@keyframes sky-a { to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }
@keyframes sky-b { to { transform: translate3d(-3vw, 4vh, 0) scale(1.12); } }
body:has(.sky) .topbar { background: rgba(6, 6, 14, .62); }
body:has(.sky) main, body:has(.sky) .footer { position: relative; z-index: 1; }
@media (max-width: 800px) {
  .sky span:nth-child(1) { width: 78vw; height: 78vw; }
  .sky span:nth-child(2) { width: 64vw; height: 64vw; }
  .sky span:nth-child(3) { width: 70vw; height: 70vw; left: 10vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sky span { animation: none; }
}

/* ===== Landing: ritmul de produs, culorile NeuroHub ===== */
body.landing > section { position: relative; z-index: 1; }
body.landing .hero::before { opacity: .35; }
body.landing [id] { scroll-margin-top: 86px; }
body.landing .hero { padding: 42px 0 8px; }
body.landing .hero-title { letter-spacing: -.03em; }
body.landing .hero-sub { margin-bottom: 22px; }
body.landing .hero-kinds { gap: 10px; margin-top: 8px; }
body.landing .kind { border-radius: 999px; padding: 7px 16px 7px 7px; background: rgba(21, 21, 36, .72); }
body.landing .kind-ico { width: 32px; height: 32px; margin: 0; border-radius: 50%; }
body.landing .kind-soft { padding: 10px 16px; color: var(--muted); background: transparent; border-style: dashed; }
body.landing .hero .marquee { margin: 26px 0 6px; }
body.landing .hero-cta { margin-top: 22px; }
body.landing .land-proof { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 8px; }
body.landing .land-avatars { display: flex; }
body.landing .land-avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
body.landing .land-avatars img:first-child { margin-left: 0; }
body.landing .land-proof p { margin: 0; max-width: 440px; min-width: 0; text-align: left; color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.35; }
body.landing .land-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; margin: 92px auto; }
body.landing .land-split.rev .land-card { order: 2; }
body.landing .land-split.rev .land-copy { order: 1; }
body.landing .land-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border-radius: 24px; background:
  radial-gradient(120% 80% at 0% 0%, rgba(124, 92, 255, .16), transparent 55%), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
body.landing .land-stat { display: flex; align-items: flex-end; gap: 10px; padding: 2px 4px 0; }
body.landing .land-stat b { font: 700 clamp(46px, 5vw, 68px)/.85 'Space Grotesk', sans-serif; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.landing .land-stat span { padding-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
body.landing .land-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.landing .land-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: #fff; }
body.landing .land-thumb img, body.landing .land-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
body.landing .land-thumb:hover img, body.landing .land-thumb:hover video { transform: scale(1.05); }
body.landing .land-thumb em { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 8px; background: linear-gradient(transparent, rgba(5, 5, 12, .88)); font: 700 13px/1.25 Manrope, sans-serif; }
body.landing .land-ph { display: grid; place-items: center; height: 100%; }
body.landing .land-all { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
body.landing .land-copy { max-width: 460px; }
body.landing .land-copy p { font-size: 17px; margin: 0 0 20px; }
body.landing .land-h { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; margin-bottom: 12px; }
body.landing .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
body.landing .center-eye { display: block; text-align: center; }
body.landing .land-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #07070f; }
body.landing .land-stage.playing .play-circle { opacity: 0; }
body.landing .land-stage.playing:hover .play-circle { opacity: 1; }
body.landing .land-chat { min-height: 420px; background: radial-gradient(90% 60% at 80% 0%, rgba(34, 193, 238, .12), transparent 50%), var(--card); }
body.landing .land-models { display: flex; flex-wrap: wrap; gap: 8px; }
body.landing .land-models span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 12px; font-weight: 800; }
body.landing .land-models span.on { color: #fff; border-color: transparent; background: var(--grad); }
body.landing .land-chat .mock-msg { max-width: 92%; }
body.landing .land-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); }
body.landing .land-audio { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: center; background: radial-gradient(ellipse at top, #352255, var(--card) 72%); }
body.landing .land-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
body.landing .land-audio-body { min-width: 0; display: flex; flex-direction: column; }
body.landing .land-audio-body strong { font-size: 18px; }
body.landing .land-audio .mus-waves { height: 52px; }
body.landing .land-audio .mus-waves i { transform-origin: center; animation: eq 1.15s ease-in-out infinite alternate; animation-delay: var(--d); }
body.landing .land-cmp { margin-top: 28px; border: 1px solid var(--line); border-radius: 20px; overflow-x: auto; background: var(--card); }
body.landing .land-cmp-row { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(140px, .7fr) minmax(150px, .75fr); min-width: 560px; }
body.landing .land-cmp-row > span { display: flex; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
body.landing .land-cmp-row.head > span { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
body.landing .land-cmp-row > span:nth-child(2) { justify-content: center; color: var(--muted); }
body.landing .land-cmp-row .us { justify-content: center; background: rgba(124, 92, 255, .14); color: #fff; font-weight: 800; }
body.landing .land-uses { margin: 80px 0 20px; }
body.landing .land-uses .wrap { text-align: center; }
body.landing .land-use-title { margin-bottom: 8px; }
body.landing .land-uses .marquee { margin-top: 18px; }
body.landing .land-use-track { gap: 16px; animation-duration: 46s; }
body.landing .land-uses .marquee:hover .land-use-track { animation-play-state: paused; }
body.landing .land-use { flex: none; width: 320px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: left; }
body.landing .land-use h3 { margin: 14px 0 6px; font-size: 20px; }
body.landing .land-use p { margin: 0; color: var(--muted); }
body.landing .land-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; width: min(980px, 100%); margin: 8px auto 22px; }
body.landing .land-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
body.landing .land-plan.pop { border-color: #d4c6ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 0 0 1px rgba(167,139,250,.95), 0 18px 46px rgba(124, 92, 255, .34); }
body.landing .land-plan h3 { margin: 4px 0 0; font-size: 22px; }
body.landing .land-plan .btn { margin-top: auto; }
body.landing .faq { max-width: none; }
body.landing .land-faq-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end; margin-bottom: 8px; }
body.landing .land-faq-head .land-h { margin: 0; }
body.landing .land-faq-head p { margin: 0; font-size: 16px; }
@media (max-width: 980px) {
  body.landing .land-split, body.landing .land-split.rev { grid-template-columns: 1fr; gap: 22px; margin: 56px auto; }
  body.landing .land-split.rev .land-card, body.landing .land-split.rev .land-copy { order: 0; }
  body.landing .land-copy { max-width: none; }
  body.landing .land-plans, .plans { grid-template-columns: 1fr; width: min(520px, 100%); }
  body.landing .land-faq-head { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  body.landing .hero { padding-top: 28px; }
  body.landing .hero-title { font-size: clamp(34px, 12vw, 52px); }
  body.landing .kind { font-size: 14px; }
  body.landing .land-audio { grid-template-columns: 96px minmax(0, 1fr); padding: 14px; }
  body.landing .land-plans, .plans { width: min(420px, 100%); }
  .plan-quotas { gap: 6px; }
  .plan-quotas div { padding: 7px 6px 6px; }
  body.landing .land-use { width: min(300px, 78vw); }
  body.landing .land-proof { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body.landing .marquee-track, body.landing .land-audio .mus-waves i, body.landing .caret { animation: none; }
  body.landing .land-thumb img, body.landing .land-thumb video { transition: none; }
}

/* ===== Instrumente, studio, istoric ===== */
.app-body .main { background:
  radial-gradient(880px 420px at 0% -12%, rgba(124, 92, 255, .2), transparent 58%),
  radial-gradient(680px 340px at 100% 0%, rgba(34, 193, 238, .09), transparent 52%),
  var(--bg); }
.side-nav a.on { background: linear-gradient(90deg, rgba(124, 92, 255, .34), rgba(34, 193, 238, .07)); box-shadow: inset 3px 0 0 #c4b5fd; }
.balance { background: radial-gradient(120% 90% at 0% 0%, rgba(124, 92, 255, .22), transparent 58%), var(--card); }
.page-public { padding: 28px 0 72px; }
.tools-page > h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.04em; margin: 0 0 8px; }
.tools-page > .muted { max-width: 620px; margin: 0 0 6px; font-size: 16px; }
.tools-page .group-title { margin: 34px 0 14px; font-size: 22px; letter-spacing: -.02em; }
.tools-page .tools-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card.has-thumb { padding: 0; gap: 0; border-radius: 20px; background: #12121e; }
.tool-card.has-thumb .tool-card-visual { margin: 0; overflow: hidden; border-radius: 20px 20px 0 0; }
.tool-card.has-thumb .tool-card-visual img,
.tool-card.has-thumb .tool-card-visual video { height: 188px; border-radius: 0; transition: transform .45s ease; }
.tool-card.has-thumb:hover img, .tool-card.has-thumb:hover video { transform: scale(1.05); }
.tool-card.has-thumb .tool-card-body { padding: 14px 16px 16px; }
.tool-card strong { font-size: 16px; letter-spacing: -.02em; }
.tool-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.tool-card.tool-free { min-height: 176px; justify-content: flex-end; padding: 18px; border-radius: 20px;
  background: radial-gradient(90% 80% at 100% 0%, rgba(124, 92, 255, .22), transparent 52%), radial-gradient(80% 70% at 0% 100%, rgba(34, 193, 238, .1), transparent 48%), var(--card); }
.tool-card.tool-free .tool-card-body { padding: 0; }
@media (min-width: 1001px) {
  .tool-page.tool-chat { grid-template-columns: minmax(0, 680px); }
}
.tool-poster { grid-column: 1 / -1; position: relative; height: 280px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.tool-poster img, .tool-poster video { width: 100%; height: 100%; object-fit: cover; }
.tool-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(6, 6, 14, .78)); pointer-events: none; }
.tool-back { display: inline-flex; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.tool-back:hover { color: #fff; }
.studio-form.card { border-radius: 22px; padding: 22px 22px 18px; border-color: rgba(124, 92, 255, .34);
  background: radial-gradient(120% 70% at 0% 0%, rgba(124, 92, 255, .18), transparent 46%), linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 30%), var(--card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28); }
.studio-form .h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.studio-form textarea, .studio-form input[type="text"], .studio-form input[type="search"] { border-radius: 14px; background: rgba(8, 8, 16, .55); }
.studio-form textarea { min-height: 112px; }
.studio-form textarea::placeholder, .studio-form input::placeholder { color: #7e7c96; }
.chip-opt { border-radius: 999px; padding: 8px 14px; }
.chip-opt.on { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 6px 16px rgba(124, 92, 255, .35); }
.studio-form .dropzone { min-height: 132px; border-radius: 16px; border-color: rgba(124, 92, 255, .45);
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, .16), transparent 58%), var(--bg2) center / cover no-repeat; }
.studio { align-items: stretch; }
.studio-results { display: flex; flex-direction: column; min-height: 320px; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: rgba(12, 12, 20, .42); }
.studio-results .gallery { flex: 1; align-content: start; }
.studio-results .gallery:has(#gallery-empty),
.studio-results .gallery:has(> .muted.pad) { align-content: stretch; grid-template-rows: 1fr; }
.results-head h2 { font-size: 22px; letter-spacing: -.02em; }
.gallery > .muted.pad, #gallery-empty { min-height: 240px; margin: 0; display: grid; place-items: center; text-align: center; border-radius: 16px; border: 1px dashed rgba(124, 92, 255, .38);
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, .14), transparent 62%); }
.gen-card { border-radius: 18px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.gen-card:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.history-page > h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -.04em; }
.history-page .tabs a.on { background: var(--grad); border-color: transparent; color: #fff; }
@media (max-width: 800px) {
  .page-public { padding-top: 16px; }
  .tool-poster { height: 200px; border-radius: 16px; }
  .studio-results { padding: 12px; }
  .tool-card.has-thumb .tool-card-visual img,
  .tool-card.has-thumb .tool-card-visual video { height: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card.has-thumb img, .tool-card.has-thumb video, .gen-card { transition: none; }
  .tool-card.has-thumb:hover img, .tool-card.has-thumb:hover video, .gen-card:hover { transform: none; }
}

/* ===== Cont ===== */
.account-page { max-width: 960px; }
.account-page > h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -.04em; margin-bottom: 4px; }
.account-mail { margin: 0 0 18px; color: var(--muted); font-weight: 700; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.account-stats .stat { min-width: 0; border-radius: 18px; padding: 16px 18px; border-color: rgba(124, 92, 255, .3);
  background: radial-gradient(120% 90% at 0% 0%, rgba(124, 92, 255, .2), transparent 58%), var(--card); }
.account-stats .stat strong { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; display: flex; align-items: center; gap: 6px; }
.account-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.account-forms .form-card { height: 100%; margin: 0; border-radius: 22px; padding: 22px; border-color: rgba(124, 92, 255, .32);
  background: radial-gradient(120% 70% at 0% 0%, rgba(124, 92, 255, .16), transparent 48%), var(--card);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24); }
.account-forms h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.account-forms .btn { margin-top: auto; }
.account-page input, .account-page select { border-radius: 14px; background: rgba(8, 8, 16, .55); }
.account-page input:disabled { color: var(--muted); cursor: not-allowed; }
@media (max-width: 800px) {
  .account-stats, .account-forms { grid-template-columns: 1fr; }
}

/* ===== Retuș foto ===== */
.edit-app { padding: 24px 28px 60px; min-width: 0; }
.edit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 8px; }
.edit-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.edit-head .tabs { margin: 0; }
.edit-note { max-width: 720px; margin: 0 0 14px; }
.edit-sub { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-left { flex: none; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; white-space: nowrap; }
.edit-recent { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.edit-thumb { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg2); cursor: pointer; }
.edit-thumb img { width: 100%; height: 52px; object-fit: cover; display: block; }
.edit-thumb:hover { border-color: var(--accent); }
.edit-range { width: 100%; height: 22px; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.edit-hist { display: block; width: 100%; height: 48px; border-radius: 8px; background: rgba(8, 8, 16, .55); border: 1px solid var(--line); }
.edit-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.edit-swatch { width: 20px; height: 20px; padding: 0; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .35); cursor: pointer; }
.edit-swatch:hover { transform: scale(1.12); }
.edit-swatch:disabled { opacity: .4; cursor: default; transform: none; }
.band-dot { width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; display: inline-block; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, .45); }
.edit-lock { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 22px; border-color: rgba(124, 92, 255, .34);
  background: radial-gradient(120% 70% at 0% 0%, rgba(124, 92, 255, .18), transparent 46%), var(--card); }
.edit-lock h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.edit-lock p { margin: 0; color: var(--muted); }
.gen-links { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Fereastra editorului: meniu, opțiuni, unelte | pânză | panouri, bară de stare. */
.ps-page { padding: 14px 18px 18px; }
.ps-page .edit-head { margin-bottom: 4px; }
.ps-page .edit-head h1 { font-size: 24px; }
.ps-page .edit-note { margin: 0 0 8px; font-size: 12px; }
.ps-win { --ps-bar: #23232b; --ps-panel: #1b1b22; --ps-edge: #33333f; --ps-hi: #2e2e3a; --ps-text: #d9d9e3;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: max(560px, calc(100vh - 128px)); border: 1px solid var(--ps-edge); border-radius: 12px;
  overflow: hidden; background: var(--ps-panel); color: var(--ps-text); font-size: 13px; user-select: none; }
.ps-win button { font-family: inherit; }
.ps-vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ps-menubar { display: flex; align-items: center; gap: 2px; padding: 3px 8px; background: var(--ps-bar); border-bottom: 1px solid var(--ps-edge); position: relative; z-index: 30; }
.ps-menu { position: relative; }
.ps-menu-btn { padding: 5px 10px; border: 0; border-radius: 6px; background: none; color: var(--ps-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.ps-menu-btn:hover, .ps-menu.open .ps-menu-btn { background: var(--ps-hi); color: #fff; }
.ps-drop { display: none; position: absolute; left: 0; top: calc(100% + 3px); min-width: 270px; padding: 5px; border-radius: 10px; border: 1px solid var(--ps-edge);
  background: #202028; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); z-index: 80; }
.ps-menu.open .ps-drop { display: block; }
.ps-drop [data-cmd] { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--ps-text); font-size: 13px; text-align: left; cursor: pointer; }
.ps-drop [data-cmd]:hover { background: var(--accent); color: #fff; }
.ps-drop [data-cmd]:hover kbd { color: rgba(255, 255, 255, .8); }
.ps-drop kbd { font: 600 11px Manrope, sans-serif; color: #8c8c9c; white-space: nowrap; }
.ps-drop [data-cmd]:disabled { opacity: .45; cursor: default; background: none; }
.ps-sep { height: 1px; margin: 5px 4px; background: var(--ps-edge); }
.ps-drop-label { padding: 6px 10px 4px; color: #8c8c9c; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ps-drop .edit-recent { padding: 2px 8px 6px; }
.ps-panel .ps-drop-label { padding: 2px 0 0; }
.ps-menubar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ps-menubar-end .btn { padding: 5px 12px; }
.ps-undo-top { display: inline-flex; gap: 2px; padding: 1px; border: 1px solid var(--ps-edge); border-radius: 7px; background: #24242d; }
.ps-undo-top .ps-ico { width: 30px; height: 26px; color: #e4e4ee; }
.ps-undo-top .ps-ico svg { width: 17px; height: 17px; }
.ps-rl-start { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 8px; border: 1px solid #4a3d9a; background: #211d33; }
.ps-rl-defbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ps-rl-defbtns .ps-mini { white-space: normal; line-height: 1.2; padding: 5px 6px; }
.ps-rl-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.ps-rl-presets button { display: flex; flex-direction: column; gap: 3px; padding: 4px; border-radius: 8px; border: 1px solid var(--ps-edge); background: #24242d; color: var(--ps-text); font-size: 10.5px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.15; }
.ps-rl-presets button:hover { border-color: #6e5bd6; color: #fff; }
.ps-rl-presets button.on { border-color: #8b78ff; box-shadow: 0 0 0 1px #8b78ff inset; }
.ps-rl-presets i { display: block; height: 26px; border-radius: 5px; }
.ps-rl-addfx { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-rl-addfx button { padding: 4px 7px; border-radius: 999px; border: 1px solid var(--ps-edge); background: #24242d; color: var(--ps-text); font-size: 11px; font-weight: 700; cursor: pointer; }
.ps-rl-addfx button:hover { border-color: #6e5bd6; color: #fff; }
.ps-rl-addfx button:disabled { opacity: .5; cursor: progress; }
#ps-rl-fxbox[hidden] { display: none; }
.ps-rl-lights { display: flex; flex-direction: column; gap: 3px; }
.ps-rl-light { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 7px; border: 1px solid var(--ps-edge); background: #1f1f27; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ps-text); }
.ps-rl-light.on { background: #34344a; border-color: #6e5bd6; color: #fff; }
.ps-rl-light.off { opacity: .55; }
.ps-rl-light .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); flex: none; }
.ps-rl-light .nm { flex: 1; min-width: 0; text-align: left; }
.ps-rl-light .ty { color: #9a9ab0; font-weight: 600; font-size: 11px; }
.ps-rl-light .ps-ico { width: 22px; height: 22px; }
.ps-rl-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ps-rl-add svg { width: 13px; height: 13px; }
.ps-rl-box { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 8px; border: 1px solid var(--ps-edge); background: #1c1c23; }
.ps-rl-sw { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ps-rl-sw button { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 2px solid #2a2a34; cursor: pointer; }
.ps-rl-sw button.on { border-color: #fff; }
.ps-rl-sw button[data-k] { border-radius: 5px; }
.ps-rl-sw .ps-color { width: 22px; height: 22px; }
#ps-rl-cone-row[hidden], #ps-rl-patopts[hidden] { display: none; }
#ps-rl-patopts { display: flex; flex-direction: column; gap: 6px; }
.ps-rl-remove { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #ffb4b4; border-color: #5a3340; }
.ps-rl-remove[hidden] { display: none; }
.ps-rl-remove svg { width: 14px; height: 14px; }
.ps-mini { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--ps-edge); background: #2a2a34; color: var(--ps-text); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ps-mini:hover { border-color: #4b4b5a; background: #32323e; color: #fff; }
.ps-mini:disabled { opacity: .4; cursor: default; }
.ps-mini.ps-go { background: var(--accent); border-color: var(--accent); color: #fff; }

.ps-options { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 5px 12px; background: #1f1f27; border-bottom: 1px solid var(--ps-edge); overflow-x: auto; scrollbar-width: thin; }
.ps-opt-tool { flex: none; padding-right: 12px; border-right: 1px solid var(--ps-edge); color: #fff; font-weight: 800; white-space: nowrap; }
.ps-opt { display: flex; align-items: center; gap: 12px; flex: none; }
.ps-opt[hidden] { display: none; }
.ps-hint { color: #8c8c9c; font-size: 12px; white-space: nowrap; }
.ps-num { display: flex; flex-direction: row; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 600; color: var(--ps-text); white-space: nowrap; }
.ps-num .edit-range { width: 96px; }
.ps-num output { min-width: 40px; padding: 2px 5px; border-radius: 4px; background: #121217; border: 1px solid var(--ps-edge); font-size: 11px; text-align: right; color: #fff; }
.ps-sel, .ps-check { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--ps-text); white-space: nowrap; }
.ps-sel select { width: auto; padding: 4px 8px; border-radius: 6px; font-size: 12px; background: #121217; border-color: var(--ps-edge); }
.ps-check input { width: auto; accent-color: var(--accent); }
.ps-seg { display: inline-flex; flex: none; border: 1px solid var(--ps-edge); border-radius: 7px; overflow: hidden; }
.ps-seg button { padding: 4px 10px; border: 0; border-left: 1px solid var(--ps-edge); background: #2a2a34; color: #a9a9b8; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ps-seg button:first-child { border-left: 0; }
.ps-seg button.on { background: var(--accent); color: #fff; }
.ps-text { width: 220px; padding: 5px 9px; border-radius: 6px; font-size: 13px; background: #121217; border-color: var(--ps-edge); }
.ps-color { position: relative; display: inline-block; width: 26px; height: 26px; margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--ps-edge); flex: none; cursor: pointer; }
.ps-color input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); padding: 0; border: 0; cursor: pointer; }

.ps-body { display: grid; grid-template-columns: auto minmax(0, 1fr) 272px; min-height: 0; }
.ps-tools { display: grid; grid-template-columns: 34px; grid-auto-rows: 34px; align-content: start; gap: 2px; padding: 6px; background: var(--ps-bar); border-right: 1px solid var(--ps-edge); overflow-y: auto; scrollbar-width: none; }
.ps-tool { display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: #c7c7d4; cursor: pointer; }
.ps-tool svg { width: 19px; height: 19px; }
.ps-tool:hover { background: var(--ps-hi); color: #fff; }
.ps-tool.on { background: #3b3554; border-color: #6e5bd6; color: #fff; }
.ps-tool:disabled { opacity: .35; cursor: default; }
.ps-colors { position: relative; grid-row: span 2; width: 34px; height: 46px; margin-top: 6px; }
.ps-fg, .ps-bg { position: absolute; width: 22px; height: 22px; padding: 0; border: 1px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px #000; cursor: pointer; }
.ps-fg { left: 0; top: 0; z-index: 2; }
.ps-bg { left: 11px; top: 12px; }
.ps-swap { position: absolute; right: -2px; top: -3px; width: 14px; height: 14px; padding: 0; border: 0; background: none; color: #c7c7d4; cursor: pointer; }
.ps-swap svg { width: 13px; height: 13px; }
.ps-reset { position: absolute; left: 0; bottom: 0; width: 12px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }
.ps-reset i { position: absolute; width: 7px; height: 7px; border: 1px solid #c7c7d4; }
.ps-reset i:first-child { left: 0; top: 0; background: #000; z-index: 1; }
.ps-reset i:last-child { left: 4px; top: 4px; background: #fff; }

.ps-stage { position: relative; display: flex; min-width: 0; min-height: 0; overflow: auto; padding: 16px; background: #121216; }
.ps-stage.drop { outline: 2px dashed var(--accent); outline-offset: -8px; }
.ps-canvas { position: relative; flex: none; margin: auto; background-color: #fff; background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 14px 40px rgba(0, 0, 0, .5); }
.ps-canvas[hidden] { display: none; }
.ps-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#edit-canvas { pointer-events: none; }
.ps-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; padding: 30px 26px; text-align: center; border-radius: 16px; border: 1px dashed rgba(124, 92, 255, .45);
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, .14), transparent 62%); }
.ps-empty[hidden] { display: none; }
.ps-empty strong { font-size: 17px; color: #fff; }
.ps-empty .edit-recent { width: 100%; }

.ps-panels { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--ps-bar); border-left: 1px solid var(--ps-edge); scrollbar-width: thin; }
.ps-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-bottom: 1px solid var(--ps-edge); }
.ps-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 2px; color: #fff; font: 800 12px Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.ps-color-row { display: flex; align-items: center; gap: 8px; }
.ps-color-big { width: 38px; height: 30px; }
.ps-hex { width: 100px; padding: 5px 8px; border-radius: 6px; font: 600 12px 'Courier New', monospace; background: #121217; border-color: var(--ps-edge); text-transform: lowercase; }
.ps-note { margin: 0; font-size: 12px; line-height: 1.45; }
.ps-note[hidden] { display: none; }
.ps-adj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ps-adj-grid[hidden] { display: none; }
.ps-adj-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--ps-edge); background: #24242d; color: var(--ps-text);
  font-size: 11px; font-weight: 700; cursor: pointer; }
.ps-adj-grid button:hover { border-color: #6e5bd6; color: #fff; }
.ps-adj-grid button:disabled { opacity: .4; cursor: default; }
.ps-adj-grid svg { width: 20px; height: 20px; }
.ps-adj-grid .ps-adj-wide { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 8px; border-color: #4a3d9a;
  background: linear-gradient(90deg, #2b2440, #24242d); }
.ps-dlg { display: flex; flex-direction: column; gap: 6px; }
.ps-dlg[hidden] { display: none; }
.ps-dlg .ps-num { display: grid; grid-template-columns: 1fr 46px; grid-template-areas: "l o" "r r"; gap: 2px 8px; }
.ps-dlg .ps-num span { grid-area: l; }
.ps-dlg .ps-num output { grid-area: o; }
.ps-dlg .ps-num .edit-range { grid-area: r; width: 100%; }
.ps-dlg .chip-opt { padding: 5px 10px; font-size: 12px; }
.ps-color-pair { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 6px 8px; }
.ps-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ps-dlg-actions[hidden] { display: none; }
.ps-panel-hist { flex: 1; min-height: 140px; }
.ps-hist-btns { display: flex; gap: 4px; }
.ps-hist-btns .ps-mini { padding: 1px 8px; font-size: 14px; }
.ps-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; max-height: 260px; }
.ps-status { display: flex; gap: 18px; padding: 4px 12px; background: var(--ps-bar); border-top: 1px solid var(--ps-edge); color: #9a9aaa; font: 600 11px Manrope, sans-serif; white-space: nowrap; overflow: hidden; }
.ps-win.is-locked .ps-stage { opacity: .85; }
@media (max-height: 820px) {
  .ps-tools { grid-template-columns: 34px 34px; }
  .ps-colors { grid-column: span 2; grid-row: span 2; margin-left: 17px; }
}
@media (max-width: 1200px) {
  .ps-body { grid-template-columns: auto minmax(0, 1fr) 236px; }
}
@media (max-width: 900px) {
  .edit-app { padding: 16px 16px 48px; }
  .ps-page { padding: 12px 10px 40px; }
  .ps-win { height: auto; grid-template-rows: auto auto auto auto; border-radius: 10px; }
  .ps-menubar { flex-wrap: wrap; overflow: visible; }
  .ps-menubar-end { flex: 1 0 100%; margin-left: 0; justify-content: flex-start; }
  .ps-drop { position: fixed; left: 10px; right: 10px; top: auto; min-width: 0; max-height: 70vh; overflow-y: auto; }
  .ps-menubar-end .ps-mini { display: none; }
  .ps-menubar-end #edit-forget { display: inline-block; }
  .ps-body { grid-template-columns: 1fr; }
  .ps-tools { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 38px; grid-template-rows: 38px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--ps-edge); }
  .ps-colors { grid-row: auto; grid-column: auto; width: 38px; height: 38px; margin: 0 0 0 4px; transform: scale(.82); }
  .ps-stage { height: 62vh; min-height: 300px; padding: 10px; }
  .ps-panels { border-left: 0; border-top: 1px solid var(--ps-edge); overflow: visible; }
  .ps-hint { white-space: normal; min-width: 200px; }
  .ps-text { width: 160px; }
}
/* Panouri cu tab-uri, straturi și istoric, ca în editoarele clasice. */
.ps-win, .ps-win *, .ps-modal-box { scrollbar-width: thin; scrollbar-color: #4a4a58 transparent; }
.ps-win ::-webkit-scrollbar { width: 10px; height: 10px; }
.ps-win ::-webkit-scrollbar-track { background: transparent; }
.ps-win ::-webkit-scrollbar-thumb { background: #44444f; border-radius: 10px; border: 2px solid var(--ps-bar); }
.ps-win ::-webkit-scrollbar-thumb:hover { background: #5a5a68; }
.ps-win ::-webkit-scrollbar-corner { background: transparent; }
.ps-group { flex: none; display: flex; flex-direction: column; min-height: 0; border-bottom: 1px solid var(--ps-edge); }
.ps-group-grow { flex: 1; min-height: 220px; border-bottom: 0; }
.ps-tabs { display: flex; align-items: stretch; gap: 0; min-height: 30px; background: #1c1c23; border-bottom: 1px solid var(--ps-edge); }
.ps-tabs > [data-tab] { padding: 6px 12px; border: 0; border-right: 1px solid var(--ps-edge); background: none; color: #8c8c9c; font-size: 12px; font-weight: 700; cursor: pointer; }
.ps-tabs > [data-tab]:hover { color: #fff; }
.ps-tabs > [data-tab].on { background: var(--ps-bar); color: #fff; box-shadow: inset 0 2px 0 var(--accent); }
.ps-tabs-end { margin-left: auto; display: flex; align-items: center; gap: 2px; padding-right: 6px; }
.ps-tabs-end[hidden] { display: none; }
.ps-pane { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; min-height: 0; }
.ps-pane[hidden] { display: none; }
.ps-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: #b9b9c8; cursor: pointer; }
.ps-ico svg { width: 16px; height: 16px; }
.ps-ico:hover { background: var(--ps-hi); border-color: var(--ps-edge); color: #fff; }
.ps-ico:disabled { opacity: .35; cursor: default; background: none; border-color: transparent; }

.ps-pane-layers { flex: 1; gap: 6px; padding: 8px 8px 6px; }
.ps-layer-head { display: flex; align-items: center; gap: 8px; }
.ps-layer-head select { flex: 1; min-width: 0; width: auto; padding: 4px 6px; border-radius: 6px; font-size: 12px; background: #121217; border-color: var(--ps-edge); }
.ps-num-lay { gap: 5px; }
.ps-num-lay span { font-size: 11px; color: #8c8c9c; }
.ps-num-lay .edit-range { width: 58px; }
.ps-num-lay output { min-width: 36px; }
.ps-layers { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 80px; overflow-y: auto; border: 1px solid var(--ps-edge); border-radius: 6px; background: #19191f; }
.ps-layer { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 4px; border-bottom: 1px solid #26262e; cursor: pointer; }
.ps-layer:hover { background: #24242c; }
.ps-layer.on { background: #3b3554; }
.ps-layer.off .ps-thumb-wrap, .ps-layer.off .ps-lname { opacity: .45; }
.ps-layer.drop { box-shadow: inset 0 2px 0 var(--accent); }
.ps-eye { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: #d9d9e3; cursor: pointer; }
.ps-eye svg { width: 15px; height: 15px; }
.ps-eye:hover { background: rgba(255, 255, 255, .08); }
.ps-thumb-wrap { flex: none; display: grid; place-items: center; width: 48px; height: 36px; border: 1px solid #44444f; background-color: #fff; background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%); background-size: 8px 8px; background-position: 0 0, 0 4px, 4px -4px, -4px 0; }
.ps-thumb { display: block; max-width: 44px; max-height: 32px; }
.ps-lname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ps-text); }
.ps-layer.on .ps-lname { color: #fff; font-weight: 700; }
.ps-layer em { flex: none; font-style: normal; font-size: 10px; color: #8c8c9c; }
.ps-lname-in { flex: 1; min-width: 0; padding: 2px 6px; border-radius: 4px; font-size: 12px; background: #121217; border-color: var(--accent); }
.ps-layer-foot { display: flex; justify-content: flex-end; gap: 2px; padding-top: 2px; }

.ps-pane-hist { flex: 1; padding: 8px; }
.ps-history { flex: 1; min-height: 80px; max-height: none; border: 1px solid var(--ps-edge); border-radius: 6px; background: #19191f; gap: 0; }
.ps-hrow { display: flex; align-items: center; border-bottom: 1px solid #26262e; }
.ps-hrow .ps-hstep { flex: 1; min-width: 0; padding: 7px 10px; border: 0; border-radius: 0; background: none; color: var(--ps-text); font-size: 12px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-hrow:hover { background: #24242c; }
.ps-hrow.on { background: #3b3554; }
.ps-hrow.on .ps-hstep { color: #fff; font-weight: 700; }
.ps-hrow.after .ps-hstep { color: #6f6f7d; }
.ps-hrow .ps-hx { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-right: 4px; padding: 0; border: 0; border-radius: 5px; background: none; color: #8c8c9c; cursor: pointer; opacity: .55; }
.ps-hrow .ps-hx svg { width: 13px; height: 13px; }
.ps-hrow:hover .ps-hx, .ps-hrow.on .ps-hx { opacity: 1; }
.ps-hrow .ps-hx:hover { background: #c62f45; color: #fff; }
.ps-hrow .ps-hx:disabled { visibility: hidden; }
.ps-hist-clear { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; }
.ps-hist-clear svg { width: 14px; height: 14px; }

.ps-size-row { display: flex; align-items: center; gap: 6px; }
.ps-field { display: flex; flex-direction: row; align-items: center; gap: 5px; margin: 0; font-size: 12px; font-weight: 700; color: #8c8c9c; }
.ps-field input { width: 70px; padding: 4px 6px; border-radius: 5px; font-size: 12px; background: #121217; border-color: var(--ps-edge); }
.ps-field em { font-style: normal; font-weight: 600; }
.ps-link { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--ps-edge); border-radius: 5px; background: none; color: #6f6f7d; cursor: pointer; }
.ps-link svg { width: 14px; height: 14px; }
.ps-link.on { color: #fff; border-color: #6e5bd6; background: #3b3554; }
#ps-doc-apply { align-self: flex-start; }
.ps-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; }
.ps-facts dt { color: #8c8c9c; }
.ps-facts dd { margin: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ps-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.ps-modal[hidden] { display: none; }
.ps-modal-box { width: min(900px, 100%); max-height: 86vh; overflow: auto; border-radius: 12px; border: 1px solid #33333f; background: #1f1f27; color: #d9d9e3; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.ps-modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #23232b; border-bottom: 1px solid #33333f; }
.ps-modal-head h3 { margin: 0; font-size: 16px; color: #fff; }
.ps-keys-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 26px; padding: 16px; }
.ps-keys-cols h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #a99cff; }
.ps-keys-cols dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 13px; }
.ps-keys-cols dd { margin: 0; }
.ps-keys-cols kbd { padding: 1px 6px; border-radius: 4px; border: 1px solid #44444f; background: #2a2a34; font: 600 11px Manrope, sans-serif; color: #fff; white-space: nowrap; }
@media (max-width: 900px) {
  .ps-group-grow { min-height: 300px; }
}

/* Unelte grupate: triunghi în colț și listă cu uneltele grupului. */
.ps-tg { position: relative; display: grid; }
.ps-tg > .ps-tool { position: relative; width: 100%; height: 100%; }
.ps-tri { position: absolute; right: 2px; bottom: 2px; width: 0; height: 0; border-style: solid; border-width: 0 0 5px 5px; border-color: transparent transparent currentColor transparent; opacity: .75; pointer-events: auto; cursor: pointer; }
.ps-tri::after { content: ''; position: absolute; right: -4px; bottom: -6px; width: 12px; height: 12px; }
.ps-tool:hover .ps-tri { opacity: 1; }
.ps-fly { position: fixed; z-index: 120; min-width: 240px; padding: 5px; border-radius: 10px; border: 1px solid var(--ps-edge); background: #202028; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.ps-fly[hidden] { display: none; }
.ps-fly-item { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--ps-text); font-size: 13px; text-align: left; cursor: pointer; }
.ps-fly-item svg { width: 18px; height: 18px; }
.ps-fly-item kbd { font: 700 11px Manrope, sans-serif; color: #8c8c9c; }
.ps-fly-item:hover { background: var(--accent); color: #fff; }
.ps-fly-item:hover kbd { color: rgba(255, 255, 255, .85); }
.ps-fly-item.on { box-shadow: inset 3px 0 0 var(--accent); color: #fff; font-weight: 700; }
.ps-fly-item.on:hover { box-shadow: none; }
.ps-fly-item:disabled { opacity: .4; cursor: default; background: none; }
.ps-read { flex: none; padding: 3px 8px; border-radius: 6px; background: #121217; border: 1px solid var(--ps-edge); font: 700 12px Manrope, sans-serif; color: #fff; white-space: nowrap; }
.ps-read:empty { display: none; }
.ps-samp-read { display: flex; gap: 12px; }
.ps-samp { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ps-samp i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .35); }
.ps-opt .ps-field input { width: 52px; }
.ps-drop-tall { max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
.ps-anchor { display: grid; grid-template-columns: repeat(3, 24px); gap: 3px; margin: 2px 0 6px; }
.ps-anchor button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--ps-edge); border-radius: 5px; background: #2a2a34; cursor: pointer; }
.ps-anchor button.on { background: var(--accent); border-color: var(--accent); }
.ps-anchor button:hover:not(.on) { background: #35353f; }
.ps-seg-col { display: flex; flex-direction: column; width: 100%; }
.ps-seg-col button { border-left: 0; border-top: 1px solid var(--ps-edge); text-align: left; }
.ps-seg-col button:first-child { border-top: 0; }
.ps-dlg .ps-sel { margin: 4px 0; }
.ps-dlg .ps-sel select { max-width: 150px; }
#ps-sides-wrap[hidden], #ps-smudge-hint[hidden], #ps-wcontig-wrap[hidden] { display: none; }

/* Unde încap, pachetele stau 4 pe rând, ca niște carduri verticale. Lățimea se ia din părinte, nu din ecran (cabinetul are meniu lateral). */
:has(> .plans), :has(> .land-plans) { container: plans / inline-size; }
@container plans (min-width: 1100px) {
  body.landing .land-plans,
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  body.landing .land-plan,
  .card.plan { aspect-ratio: 5 / 7; }
  .plan-top .plan-quotas div { padding: 7px 3px 6px; }
  .plan-top .plan-quotas span { font-size: 9px; letter-spacing: .03em; }
  .plan-top .plan-quotas em { font-size: 10px; }
}

/* Card compact (4 pe rând și pe telefon): suma sus în dreapta lângă cip, apoi numele, platforma și cotele pe un rând. */
@container plans (min-width: 1100px) or (max-width: 560px) {
  .plan-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto 1fr auto auto; gap: 6px 10px;
    grid-template-areas: "hw price" "hw cred" "name name" "tag tag" "market market" "quotas quotas" "coins coins"; }
  .plan-top .plan-coins { grid-area: coins; }
  .plan-info, .plan-sum { display: contents; }
  .plan-top .card-hw { grid-area: hw; align-self: center; }
  .plan-top h3 { grid-area: name; }
  .plan-info > p { grid-area: tag; margin: 0; }
  .plan-top .plan-market { grid-area: market; }
  .plan-top .plan-price { grid-area: price; justify-self: end; align-self: end; font-size: 30px; margin: 0; }
  .plan-top .plan-credits { grid-area: cred; justify-self: end; align-self: start; font-size: 13px; margin: 0; }
  .plan-top .plan-quotas { grid-area: quotas; gap: 6px; }
}

/* ===== Telefon: ajustări ===== */
.mnav { position: relative; }
.mnav > summary { list-style: none; cursor: pointer; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 210px; display: flex; flex-direction: column; padding: 6px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); box-shadow: var(--shadow); }
.mnav-panel a { padding: 12px 14px; border-radius: 10px; color: var(--text); font-weight: 700; }
.mnav-panel a:hover { background: var(--card2); color: var(--text); }
.mnav-panel .mnav-login { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: #c9bcff; }
.mnav-lang { display: none; padding: 8px 8px 4px; }
.mnav-lang .lang-switch { display: flex; }
.mnav-lang .lang-switch a { flex: 1; text-align: center; padding: 8px; font-size: 13px; }
.tpl-all { white-space: nowrap; flex: none; }
.gallery > .muted.pad, #gallery-empty { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .mnav.show-sm { display: block; }
  .stat-row .stat { flex: 1 1 100%; min-width: 0; }
  .account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .account-stats .stat { padding: 12px; border-radius: 14px; }
  .account-stats .stat strong { font-size: 22px; }
}
@media (max-width: 640px) {
  body.landing .land-cmp { overflow: hidden; }
  body.landing .land-cmp-row { grid-template-columns: minmax(0, 1fr) 76px 76px; min-width: 0; }
  body.landing .land-cmp-row > span { padding: 12px 8px; font-size: 14px; line-height: 1.3; }
  body.landing .land-cmp-row > span:first-child { padding-left: 14px; }
  body.landing .land-cmp-row.head > span { justify-content: center; text-align: center; font-size: 10px; letter-spacing: .02em; line-height: 1.2; }
}
@media (max-width: 440px) {
  .topbar-right > .lang-switch { display: none; }
  .mnav-lang { display: block; }
}

/* ===== After Effects ===== */
.ae-page { padding-bottom: 12px; }
.ae { height: calc(100vh - 108px); min-height: 520px; display: grid; grid-template-rows: auto minmax(160px, 1fr) 220px;
  border: 1px solid #33333f; border-radius: 12px; overflow: hidden; background: #16161c; color: #d9d9e3; min-width: 0; }
.ae-bar, .ae-ttools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; background: #23232b; border-bottom: 1px solid #33333f; }
.ae-time { min-height: 0; display: flex; flex-direction: column; background: #1b1b22; }
.ae-ttools { border-bottom: 1px solid #33333f; border-top: 1px solid #33333f; }
.ae label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #b7b7c6; }
.ae input, .ae select, .ae-side input, .ae-side select { width: auto; padding: 3px 6px; border-radius: 6px; border: 1px solid #3a3a48; background: #101016; color: #eee; font: inherit; font-size: 12px; }
.ae input[type="color"] { padding: 0; width: 28px; height: 22px; }
.ae input[type="number"] { width: 64px; }
.ae input[type="range"] { width: 120px; padding: 0; border: 0; background: transparent; accent-color: #8b74ff; }
.ae-mini, .ae-tool { border: 1px solid #3a3a48; background: #2a2a34; color: #eee; border-radius: 7px; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ae-mini:hover, .ae-tool:hover { border-color: #8b74ff; }
.ae-mini.on, .ae-tool.on { background: #3a2f63; border-color: #8b74ff; color: #fff; }
.ae-play { min-width: 36px; }
.ae-sp { flex: 1; min-width: 8px; }
.ae-tc { font-variant-numeric: tabular-nums; font-weight: 800; min-width: 72px; }
.ae-status { color: #9a9ab0; font-size: 12px; }
.ae-body { min-height: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 280px; }
.ae-tools { display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; background: #1c1c23; border-right: 1px solid #33333f; }
.ae-tool { width: 32px; height: 32px; padding: 0; }
.ae-stage { min-width: 0; min-height: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background:
  linear-gradient(45deg, #12121a 25%, transparent 25%), linear-gradient(-45deg, #12121a 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #12121a 75%), linear-gradient(-45deg, transparent 75%, #12121a 75%);
  background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; background-color: #0c0c12; }
.ae-wrap { position: relative; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.ae-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#ae-over { pointer-events: none; }
.ae-empty { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; text-align: center; color: #b7b7c6; font-size: 13px; }
.ae-side { min-width: 0; min-height: 0; overflow: auto; padding: 8px; border-left: 1px solid #33333f; background: #1b1b22; }
.ae-side h3 { margin: 10px 0 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #9a9ab0; }
.ae-rowf { display: grid; grid-template-columns: 16px 72px 1fr 42px; gap: 4px; align-items: center; margin: 3px 0; font-size: 11px; }
.ae-rowf input[type="range"] { width: 100%; }
.ae-rowf .ae-watch { width: 14px; height: 14px; padding: 0; border-radius: 2px; transform: rotate(45deg); background: #2a2a34; border: 1px solid #666; }
.ae-rowf .ae-watch.on { background: #e8e84a; border-color: #e8e84a; }
.ae-fx { border-top: 1px solid #33333f; padding-top: 6px; margin-top: 6px; }
.ae-fx header { display: flex; gap: 6px; align-items: center; font-weight: 700; }
.ae-check { display: flex; gap: 6px; align-items: center; margin: 4px 0; font-size: 12px; }
.ae-tl { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); user-select: none; }
.ae-names { overflow: hidden; border-right: 1px solid #33333f; }
.ae-name, .ae-lane { height: 28px; display: flex; align-items: center; gap: 3px; border-bottom: 1px solid #2c2c36; font-size: 12px; }
.ae-name { padding: 0 4px; cursor: pointer; }
.ae-name.on, .ae-lane.on { background: rgba(124, 92, 255, .18); }
.ae-name button { width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: #c8c8d4; cursor: pointer; font-weight: 800; }
.ae-name button.on { color: #e8e84a; }
.ae-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-sheet { position: relative; overflow: auto; }
.ae-ruler { position: sticky; top: 0; height: 22px; background: #23232b; z-index: 2; border-bottom: 1px solid #33333f; cursor: ew-resize; touch-action: none; }
.ae-tick { position: absolute; top: 2px; font-size: 10px; color: #9a9ab0; transform: translateX(2px); }
.ae-mark { position: absolute; top: 0; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid #5cdb95; }
.ae-lane { position: relative; }
.ae-seg { position: absolute; top: 6px; height: 16px; border-radius: 4px; background: linear-gradient(180deg, #8d79ff, #5b46c7); cursor: ew-resize; touch-action: none; }
.ae-seg b { position: absolute; top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
.ae-seg b.l { left: 0; } .ae-seg b.r { right: 0; }
.ae-key { position: absolute; top: 8px; width: 10px; height: 10px; margin-left: -5px; background: #e8e84a; transform: rotate(45deg); cursor: ew-resize; touch-action: none; z-index: 1; border: 1px solid rgba(0, 0, 0, .55); }
/* forma diamantului arată interpolarea, ca în editorul clasic: ease = rotunjit, hold = pătrat */
.ae-key.ae-k-ease { border-radius: 50%; transform: none; }
.ae-key.ae-k-in { border-radius: 0 50% 50% 0; transform: none; }
.ae-key.ae-k-out { border-radius: 50% 0 0 50%; transform: none; }
.ae-key.ae-k-hold { transform: none; border-radius: 1px; background: #f2a65a; }
.ae-key.on { background: #4ac3ff; box-shadow: 0 0 0 2px rgba(74, 195, 255, .45); }
.ae-wave { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; opacity: .85; }
.ae-seg-audio { background: linear-gradient(180deg, #3fc79a, #23866a); }
.ae-wa { position: absolute; bottom: 0; height: 5px; background: rgba(124, 92, 255, .75); border-radius: 2px; pointer-events: none; }
.ae-keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; padding: 8px; border-radius: 8px; background: rgba(232, 232, 74, .07); border: 1px solid rgba(232, 232, 74, .25); font-size: 12px; }
.ae-keyrow b { flex-basis: 100%; color: #e8e84a; }
select.ae-mini { padding: 3px 6px; }
#ae-playhead { position: absolute; top: 0; width: 14px; margin-left: -7px; background: transparent; cursor: ew-resize; z-index: 4; touch-action: none; }
#ae-playhead::after { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; background: #e8e84a; }
@media (max-width: 900px) {
  .ae { height: auto; min-height: 0; grid-template-rows: auto auto auto; }
  .ae-body { grid-template-columns: 1fr; grid-template-rows: auto 240px auto; }
  .ae-tools { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #33333f; }
  .ae-side { max-height: 280px; border-left: 0; border-top: 1px solid #33333f; }
  .ae-time { height: 240px; }
  .ae-stage { height: 240px; }
}

/* ===== Vitrina publică: prezentare nouă (prismă violet–roz–cyan) =====
   Se aplică doar pe body.site (pagini publice + intrare/înregistrare). Aplicația din cont nu are clasa și rămâne neatinsă.
   Cardurile de plată (.land-plan, .card.plan) își primesc înapoi exact valorile de dinainte, vezi „Carduri de plată: neschimbate”. */
body.site {
  --bg: #07060f; --bg2: #0e0d1b; --card: #121120; --card2: #1a1830;
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --text: #f3f1fb; --muted: #a6a3c0;
  --accent: #8b5cf6; --accent2: #22d3ee;
  --grad: linear-gradient(110deg, #8b5cf6 0%, #d946ef 48%, #22d3ee 100%);
  --grad-text: linear-gradient(100deg, #c4b5fd 0%, #f0abfc 28%, #67e8f9 58%, #c4b5fd 100%);
  --edge: linear-gradient(140deg, rgba(196, 181, 253, .55), rgba(255, 255, 255, .07) 36%, rgba(255, 255, 255, .04) 64%, rgba(103, 232, 249, .45));
  --glass: rgba(16, 15, 30, .62);
  --display: Unbounded, 'Space Grotesk', Manrope, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  background: var(--bg); color: var(--text); font-size: 16px;
}
/* Carduri de plată: neschimbate. Aceleași variabile, culoare și mărime de text ca înainte de restilizare. */
body.site .land-plan, body.site .card.plan {
  --bg: #0a0a12; --bg2: #10101c; --card: #151524; --card2: #1b1b2e; --line: #26263d; --text: #ecebf5; --muted: #9a98b3;
  --accent: #7c5cff; --accent2: #22c1ee; --grad: linear-gradient(120deg, #7c5cff 0%, #b05cff 45%, #22c1ee 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  color: var(--text); font-size: 15px;
}
body.site ::selection { background: rgba(217, 70, 239, .35); color: #fff; }
body.site h1, body.site h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
body.site .grad-text { background: var(--grad-text) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: prism-flow 9s linear infinite; }
@keyframes prism-flow { to { background-position: -200% 0; } }
body.site .section-title { font-size: clamp(28px, 4vw, 46px); }
body.site .section-sub { font-size: 17px; }
body.site .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #dcd2ff; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
body.site .eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); flex: none; }
body.site .eyebrow .svg-icon { color: #f0abfc; }
body.site .center-eye { display: flex; justify-content: center; }

/* Fundalul: lumini de prismă care se mișcă încet */
body.site .sky { background: #07060f; }
body.site .sky span:nth-child(1) { background: rgba(124, 58, 237, .62); }
body.site .sky span:nth-child(2) { background: rgba(6, 182, 212, .36); }
body.site .sky span:nth-child(3) { background: rgba(217, 70, 239, .34); }

/* Butoane noi, peste tot în afară de cardurile de plată */
body.site .btn:not(:where(.land-plan, .card.plan) .btn) { border-radius: 14px; letter-spacing: .005em;
  transition: transform .2s, box-shadow .25s, background-color .2s, border-color .2s, color .2s; }
body.site .btn-primary:not(:where(.land-plan, .card.plan) .btn) { position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(110deg, #7c3aed 0%, #c026d3 52%, #0891b2 100%) 0 0 / 170% 100%;
  box-shadow: 0 12px 30px rgba(168, 85, 247, .38), inset 0 1px 0 rgba(255, 255, 255, .3); }
body.site .btn-primary:not(:where(.land-plan, .card.plan) .btn)::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%) 200% 0 / 250% 100% no-repeat; transition: background-position .8s; }
body.site .btn-primary:not(:where(.land-plan, .card.plan) .btn):hover { background-position: 100% 0; transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(192, 38, 211, .42), inset 0 1px 0 rgba(255, 255, 255, .35); }
body.site .btn-primary:not(:where(.land-plan, .card.plan) .btn):hover::after { background-position: -60% 0; }
body.site .btn-ghost:not(:where(.land-plan, .card.plan) .btn) { background: rgba(255, 255, 255, .04); border-color: var(--line2); backdrop-filter: blur(8px); color: var(--text); }
body.site .btn-ghost:not(:where(.land-plan, .card.plan) .btn):hover { background: rgba(255, 255, 255, .08); border-color: rgba(196, 181, 253, .55); }
body.site .btn-lg:not(:where(.land-plan, .card.plan) .btn) { padding: 15px 26px; border-radius: 16px; }
body.site .btn:not(:where(.land-plan, .card.plan) .btn):focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }

/* Formulare */
body.site input:not([type="checkbox"]):not([type="hidden"]), body.site select, body.site textarea { border-radius: 12px; background: rgba(7, 6, 15, .6); border-color: var(--line2);
  transition: border-color .15s, box-shadow .15s; }
body.site input:not([type="checkbox"]):focus, body.site select:focus, body.site textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(139, 92, 246, .2); }

/* Antet */
body.site .topbar { background: rgba(7, 6, 15, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .06); }
body.site .topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .45), rgba(240, 171, 252, .35), rgba(103, 232, 249, .4), transparent); }
body.site .topbar-in { height: 70px; }
body.site .logo { font: 700 18px var(--display); letter-spacing: -.03em; color: #fff; }
body.site .logo-mark { width: 30px; height: 30px; border-radius: 10px; background: conic-gradient(from 210deg, #8b5cf6, #d946ef, #fbbf24, #22d3ee, #8b5cf6);
  box-shadow: 0 0 26px rgba(192, 38, 211, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
body.site .logo-mark::after { inset: 8px 7px 9px; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(7, 6, 15, .82); }
body.site .topnav { gap: 4px; }
body.site .topnav a { padding: 8px 14px; border-radius: 999px; color: #c3bfdc; transition: background .2s, color .2s; }
body.site .topnav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
body.site .lang-switch { border-radius: 999px; border-color: var(--line2); background: rgba(255, 255, 255, .03); }
body.site .lang-switch a { padding: 5px 9px; }
body.site .lang-switch a.on { background: rgba(196, 181, 253, .18); color: #fff; }
body.site .icon-btn { border-radius: 12px; border-color: var(--line2); background: rgba(255, 255, 255, .04); }
body.site .mnav-panel { border-radius: 18px; border-color: var(--line2); background: rgba(16, 15, 30, .94); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
body.site .mnav-panel a:hover { background: rgba(255, 255, 255, .06); }

/* Prima pagină: eroul */
body.site.landing .hero { padding: 64px 0 12px; overflow: visible; }
body.site.landing .hero::before { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 40px; align-items: center; }
.hero-copy { position: relative; min-width: 0; }
body.site .pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0; padding: 7px 15px 7px 10px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--edge) border-box; backdrop-filter: blur(8px); color: #ece7ff; font-size: 13px; font-weight: 700; }
body.site .pill .svg-icon { color: #f0abfc; }
body.site.landing .hero-title { margin: 20px 0 18px; font-size: clamp(34px, 4.9vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
body.site.landing .hero-sub { max-width: 540px; margin: 0 0 30px; font-size: 18px; line-height: 1.6; }
body.site.landing .hero-cta { justify-content: flex-start; margin: 0 0 16px; }
.hero-bonus { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; color: #d9d4f5; font-size: 14px; font-weight: 600; }
.hero-bonus .svg-icon { color: #fbbf24; }
body.site.landing .land-proof { justify-content: flex-start; margin: 0; }
body.site.landing .land-avatars img { border-color: #07060f; }

.hero-visual { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; justify-self: end; }
.hv-prism { position: absolute; inset: 14%; border-radius: 50%; background: conic-gradient(from 0deg, #8b5cf6, #d946ef, #f59e0b, #22d3ee, #8b5cf6);
  filter: blur(64px); opacity: .42; animation: hv-spin 20s linear infinite; }
.hv-card { position: absolute; margin: 0; overflow: hidden; border-radius: 24px; background: #111020; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2); }
.hv-card img { width: 100%; height: 100%; object-fit: cover; }
.hv-card figcaption { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(7, 6, 15, .62); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 12px; font-weight: 700; }
.hv-main { left: 17%; top: 9%; width: 52%; height: 64%; rotate: -4deg; z-index: 2; animation: hv-float 7s ease-in-out infinite; }
.hv-side { right: 0; top: 2%; width: 33%; height: 40%; rotate: 7deg; z-index: 1; animation: hv-float 8s ease-in-out -2s infinite; }
.hv-vid { right: 1%; bottom: 7%; width: 47%; height: 35%; rotate: 3deg; z-index: 3; animation: hv-float 9s ease-in-out -4s infinite; }
.hv-play { position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 0 0 8px rgba(255, 255, 255, .06); }
.hv-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; color: #ece9fb; font-size: 13px; font-weight: 600; line-height: 1.35;
  background: rgba(16, 15, 30, .74); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.hv-chat { left: 1%; bottom: 5%; max-width: 49%; animation: hv-float 6s ease-in-out -1s infinite; }
.hv-dot { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.hv-mus { left: 4%; top: 4%; animation: hv-float 7.5s ease-in-out -3s infinite; }
.hv-mus .svg-icon { color: #f0abfc; }
.hv-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.hv-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--grad); transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.hv-eq i:nth-child(2) { animation-delay: -.3s; } .hv-eq i:nth-child(3) { animation-delay: -.6s; } .hv-eq i:nth-child(4) { animation-delay: -.15s; } .hv-eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes hv-float { 50% { translate: 0 -12px; } }
@keyframes hv-spin { to { transform: rotate(360deg); } }

body.site.landing .hero-kinds { justify-content: center; margin-top: 46px; }
body.site.landing .kind { background: var(--glass); border-color: var(--line2); backdrop-filter: blur(10px); transition: transform .2s, border-color .2s, background .2s; }
body.site.landing .kind:hover { transform: translateY(-2px); border-color: rgba(196, 181, 253, .55); background: rgba(26, 24, 48, .8); }
body.site.landing .kind-soft { background: transparent; }
body.site .kind-ico { color: #e9ddff; background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(217, 70, 239, .18) 50%, rgba(34, 211, 238, .2)); border-color: rgba(196, 181, 253, .28); }
body.site.landing .hero .marquee { margin: 30px 0 4px; }
body.site .marquee-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .035); border-color: var(--line); color: #bdb8d8; font-size: 13px; }
body.site .marquee-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* Prima pagină: secțiunile cu exemple */
body.site.landing .land-split { gap: 64px; margin: 110px auto; }
body.site.landing .land-card { padding: 20px; border-radius: 28px; border: 1px solid transparent; box-shadow: var(--shadow);
  background: radial-gradient(120% 80% at 0% 0%, rgba(139, 92, 246, .2), transparent 55%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
body.site.landing .land-chat { background: radial-gradient(90% 60% at 85% 0%, rgba(34, 211, 238, .16), transparent 52%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
body.site.landing .land-audio { background: radial-gradient(ellipse at top, rgba(192, 38, 211, .3), transparent 70%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
body.site.landing .land-stat b { background: var(--grad-text) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; }
body.site.landing .land-thumb { border-radius: 16px; border-color: var(--line2); transition: transform .3s, box-shadow .3s; }
body.site.landing .land-thumb:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
body.site.landing .land-h { font-size: clamp(26px, 3.3vw, 42px); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 16px; }
body.site.landing .land-copy p { font-size: 17px; line-height: 1.65; margin-bottom: 26px; }
body.site.landing .land-all { color: #dcd2ff; }
body.site.landing .land-models span { background: rgba(255, 255, 255, .04); border-color: var(--line2); }
body.site.landing .land-models span.on { background: var(--grad); }
body.site .mock-msg { border-radius: 18px; }
body.site .mock-msg.me { background: linear-gradient(120deg, #7c3aed, #c026d3); box-shadow: 0 10px 26px rgba(192, 38, 211, .3); }
body.site .mock-msg.ai { background: rgba(255, 255, 255, .04); border-color: var(--line2); }
body.site.landing .land-input { border-radius: 16px; background: rgba(7, 6, 15, .6); border-color: var(--line2); }
body.site.landing .land-input .svg-icon { color: #f0abfc; }
body.site.landing .land-stage { border-radius: 18px; }

/* Cum funcționează */
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.how-step { position: relative; overflow: hidden; padding: 28px 24px 26px; border-radius: 26px; border: 1px solid transparent;
  background: radial-gradient(100% 70% at 100% 0%, rgba(217, 70, 239, .12), transparent 55%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  transition: transform .3s, box-shadow .3s; }
.how-step:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 0, 0, .4); }
.how-n { position: absolute; right: 20px; top: 14px; font: 700 64px/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(196, 181, 253, .35); }
body.site .how-step .kind-ico { width: 48px; height: 48px; margin: 0; border: 0; border-radius: 15px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(168, 85, 247, .35); }
.how-step h3 { margin: 20px 0 8px; font: 700 19px/1.25 var(--display); letter-spacing: -.03em; }
.how-step p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Comparație, pentru cine */
body.site.landing .land-cmp { border-radius: 24px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
body.site.landing .land-cmp-row .us { background: linear-gradient(180deg, rgba(139, 92, 246, .2), rgba(217, 70, 239, .12)); }
body.site.landing .land-cmp-row.head .us { color: #fff; background: var(--grad); }
body.site.landing .land-use { border-radius: 24px; border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; transition: transform .3s; }
body.site.landing .land-use:hover { transform: translateY(-4px); }
body.site.landing .land-use h3 { font: 700 18px/1.25 var(--display); letter-spacing: -.03em; }

/* Prețuri: doar decorul din jurul cardurilor, nu cardurile */
body.site.landing #pricing::before { content: ''; position: absolute; left: 8%; right: 8%; top: 18%; height: 62%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .26), transparent), radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, .14), transparent); filter: blur(30px); }

/* Întrebări */
body.site.landing .land-faq-head { margin-bottom: 22px; }
body.site.landing .faq-item { margin-bottom: 10px; padding: 0 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
body.site.landing .faq-item:hover { border-color: var(--line2); }
body.site.landing .faq-item.open { border-color: rgba(196, 181, 253, .42); background: rgba(26, 24, 48, .72); }
body.site.landing .faq-q { padding: 19px 0; font-size: 16.5px; }
body.site.landing .faq-q span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #dcd2ff; font-size: 20px; line-height: 1; transition: transform .25s, background .25s; }
body.site.landing .faq-item.open .faq-q span { background: var(--grad); color: #fff; }
body.site.landing .faq-item.open .faq-a { animation: fade-up .3s both; }
body.site.landing .faq-a { line-height: 1.65; }

/* Chemarea de final */
body.site .cta-final { position: relative; overflow: hidden; isolation: isolate; padding: 76px 24px; border-radius: 34px; border: 1px solid transparent;
  background: radial-gradient(60% 120% at 50% 0%, rgba(217, 70, 239, .26), transparent 70%) padding-box, linear-gradient(#100f1e, #100f1e) padding-box, var(--edge) border-box; }
body.site .cta-final::before { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; left: 50%; top: 25%; margin-left: -280px; pointer-events: none;
  background: conic-gradient(from 0deg, #8b5cf6, #d946ef, #f59e0b, #22d3ee, #8b5cf6); filter: blur(100px); opacity: .22; animation: hv-spin 24s linear infinite; }
body.site .cta-final h2 { font-size: clamp(28px, 4.2vw, 50px); }
body.site .cta-final p { font-size: 17px; margin: 0 0 28px; }

/* Subsol */
body.site .footer { margin-top: 30px; padding: 52px 0 28px; border-top: 0; background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .07)); }
body.site .footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, .4), rgba(240, 171, 252, .3), rgba(103, 232, 249, .36), transparent); }
body.site .footer-in { align-items: flex-start; margin-bottom: 28px; }
body.site .footer-in p { max-width: 340px; margin: 14px 0 0; }
body.site .footer-links { gap: 8px 22px; }
body.site .footer-links a { color: #bdb8d8; font-weight: 600; }
body.site .footer-links a:hover { color: #fff; }
body.site .footer-bottom { padding-top: 20px; border-top: 1px solid var(--line); }

/* Instrumente, pagina unui instrument */
body.site .tools-page > h1 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.045em; }
body.site .tools-page .group-title { font-size: 20px; letter-spacing: -.03em; }
body.site .tool-card { border-radius: 22px; background: rgba(18, 17, 32, .78); border-color: var(--line); backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s, border-color .25s; }
body.site .tool-card:hover { transform: translateY(-4px); border-color: rgba(196, 181, 253, .55); box-shadow: 0 0 0 1px rgba(196, 181, 253, .2), 0 22px 46px rgba(0, 0, 0, .45); }
body.site .tool-card.has-thumb { background: rgba(18, 17, 32, .85); }
body.site .tool-card.has-thumb .tool-card-visual { border-radius: 22px 22px 0 0; }
body.site .tool-card.tool-free { background: radial-gradient(90% 80% at 100% 0%, rgba(217, 70, 239, .2), transparent 52%), radial-gradient(80% 70% at 0% 100%, rgba(34, 211, 238, .12), transparent 48%), rgba(18, 17, 32, .85); }
body.site .tool-ico { color: #e9ddff; background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(217, 70, 239, .18) 50%, rgba(34, 211, 238, .2)); border-color: rgba(196, 181, 253, .28); }
body.site .studio-form.card { border-radius: 26px; border: 1px solid transparent; box-shadow: var(--shadow);
  background: radial-gradient(120% 70% at 0% 0%, rgba(139, 92, 246, .2), transparent 46%) padding-box, linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
body.site .studio-results { border-radius: 26px; background: rgba(16, 15, 30, .55); border-color: var(--line); backdrop-filter: blur(10px); }
body.site .tool-poster { border-radius: 26px; border-color: var(--line2); }

/* Prețuri (pagina): tabelul de costuri */
body.site .table-wrap { border-radius: 20px; border-color: var(--line2); background: var(--glass); backdrop-filter: blur(10px); }
body.site .table th { background: rgba(255, 255, 255, .04); }
body.site .table td, body.site .table th { border-bottom-color: var(--line); }

/* Pagini legale */
body.site .legal { padding: 40px clamp(20px, 4vw, 52px); border-radius: 28px; background: rgba(16, 15, 30, .58); border: 1px solid var(--line); backdrop-filter: blur(12px); }
body.site .legal h1 { font-size: clamp(26px, 3.6vw, 40px); }
body.site .legal h2 { font-size: 18px; letter-spacing: -.02em; margin-top: 30px; }
body.site .legal p { color: #d4d0ea; line-height: 1.7; }

/* Intrare și înregistrare */
body.site.auth-body { background:
  radial-gradient(60% 50% at 15% 0%, rgba(124, 58, 237, .38), transparent 70%),
  radial-gradient(50% 40% at 95% 10%, rgba(6, 182, 212, .24), transparent 70%),
  radial-gradient(60% 50% at 50% 110%, rgba(217, 70, 239, .24), transparent 70%), var(--bg); background-attachment: fixed; }
body.site .auth-card { gap: 16px; padding: 32px 28px; border-radius: 28px; border: 1px solid transparent; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  background: linear-gradient(rgba(18, 17, 34, .86), rgba(18, 17, 34, .86)) padding-box, var(--edge) border-box; backdrop-filter: blur(18px); }
body.site .auth-card h1 { font-size: 26px; letter-spacing: -.04em; }
body.site .auth-card .logo { align-self: flex-start; }

/* Apariție la derulare (activată din app.js doar dacă e voie de mișcare) */
html.rv-on body.site .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.rv-on body.site .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { text-align: center; }
  body.site.landing .hero-sub { margin-inline: auto; }
  body.site.landing .hero-cta, .hero-bonus, body.site.landing .land-proof { justify-content: center; }
  .hero-visual { justify-self: center; max-width: 460px; }
  .how-steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  body.site.landing .land-split { gap: 26px; margin: 70px auto; }
}
@media (max-width: 640px) {
  body.site.landing .hero { padding-top: 30px; }
  body.site.landing .hero-title { font-size: clamp(30px, 9.4vw, 42px); }
  body.site.landing .hero-sub { font-size: 16px; }
  body.site.landing .hero-cta .btn { flex: 1 1 100%; }
  .hero-bonus { font-size: 13px; }
  .hero-visual { aspect-ratio: 1 / .94; }
  .hv-chip { padding: 8px 11px; font-size: 12px; border-radius: 14px; }
  .hv-chat { max-width: 54%; bottom: 3%; }
  .hv-dot { width: 26px; height: 26px; }
  .hv-card { border-radius: 18px; }
  .hv-card figcaption { left: 8px; bottom: 8px; padding: 4px 9px; font-size: 11px; }
  body.site.landing .hero-kinds { margin-top: 30px; }
  body.site.landing .land-card { padding: 14px; border-radius: 22px; }
  body.site.landing .land-split { margin: 56px auto; }
  body.site .cta-final { padding: 50px 18px; border-radius: 26px; }
  body.site .legal { padding: 26px 18px; border-radius: 22px; }
  body.site .auth-card { padding: 26px 20px; }
  .how-n { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  body.site .grad-text, .hv-prism, .hv-main, .hv-side, .hv-vid, .hv-chip, .hv-eq i, body.site .cta-final::before { animation: none; }
  body.site .btn:not(:where(.land-plan, .card.plan) .btn), .how-step, body.site .tool-card, body.site.landing .land-use { transition: none; }
}
body.site .tool-card-visual:has(img, video) .tool-ico { background: rgba(17, 16, 33, .9); }
@media (max-width: 440px) {
  body.site .topbar .logo { font-size: 0; gap: 0; }
}
body.site .page-public { padding-top: 40px; }
body.site .tool-page > * { min-width: 0; }
body.site .studio-form .h2 { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  body.site .page-public { padding-top: 24px; }
  body.site .page-public .studio { padding-left: 0; padding-right: 0; }
  body.site .studio-form.card { padding: 20px 16px 16px; }
  body.site .tool-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  body.site .studio-form .h2 { font-size: 22px; }
}
body.site h1, body.site h2 { overflow-wrap: break-word; }
@media (max-width: 640px) {
  body.site .legal h1 { font-size: 22px; }
}
/* Antetul cu numele lung: meniul compact apare mai devreme, ca nimic să nu iasă din ecran. */
@media (max-width: 960px) {
  body.site .topnav { display: none; }
  body.site .mnav.show-sm { display: block; }
}
@media (max-width: 600px) {
  body.site .topbar .logo { font-size: 0; gap: 0; }
  body.site .topbar-right > .lang-switch { display: none; }
  body.site .mnav-lang { display: block; }
}
@media (max-width: 360px) {
  body.site .topbar .btn-sm { padding: 7px 10px; font-size: 12px; }
}

/* ===== Plata: „Cumpără” întoarce cardul; pe spate sunt metodele de plată (Google Pay, PayPal, card) =====
   Fața cardului rămâne neatinsă: întoarcerea e în două jumătăți, iar spatele e un strat peste card. */
.card.plan.flip-out { transform: perspective(1400px) rotateY(90deg) !important; transition: transform .22s ease-in !important; }
.card.plan.flip-in { animation: plan-flip-in .24s ease-out; }
@keyframes plan-flip-in { from { transform: perspective(1400px) rotateY(-90deg); } }
.card.plan.is-back > :not(.card-skin):not(.plan-back) { visibility: hidden; }
.card.plan.is-back > .plan-back.plan-back { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: 8px; padding: 16px;
  overflow-y: auto; border-radius: inherit; background: linear-gradient(180deg, rgba(7, 6, 15, .3), rgba(7, 6, 15, .62)); }
.plan-back-title { margin: 0; color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-back-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-back-head strong { font: 700 20px 'Space Grotesk', sans-serif; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 2px rgba(0, 0, 0, .45); }
.plan-back-price { font: 700 22px/1 'Space Grotesk', sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.plan-back-sub { margin: -4px 0 2px; color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 700; }
.plan-back-pay { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.gpay-slot:empty { display: none; }
.plan-back .pp-msg { margin: 0; font-size: 13px; font-weight: 700; }
.plan-back .pp-msg:empty { display: none; }
.plan-back .pp-msg.ok { color: #86efac; }
.plan-back .pp-msg.err { color: #fca5a5; }
.plan-back .pp-note { margin: 0; color: rgba(255, 255, 255, .66); font-size: 11px; line-height: 1.4; }
.plan-back-x { margin-top: auto; align-self: flex-start; padding: 6px 0; border: 0; background: none; color: #fff; font: 700 13px Manrope, sans-serif; cursor: pointer; opacity: .85; }
.plan-back-x:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card.plan.flip-out, .card.plan.flip-in { transition: none !important; animation: none; }
}
.billing-history-link { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.account-history { margin: 18px 0 16px; }
.account-history > h2 { display: flex; align-items: center; gap: 8px; }
.account-history h3.muted { font-size: 15px; margin: 6px 0 10px; }
.tx-person { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-bottom: 16px; }
.tx-person strong { font-size: 18px; }
.tx-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.tx-filter label { font-size: 12px; gap: 4px; }
.tx-filter input, .tx-filter select { width: auto; min-width: 150px; padding: 8px 10px; }

/* ===== Asistentul adminului (Panou, Setări) ===== */
.asst { margin-bottom: 20px; border-color: rgba(124, 92, 255, .4); background: radial-gradient(120% 70% at 0% 0%, rgba(124, 92, 255, .16), transparent 50%), var(--card); }
.asst-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.asst-head h2 { margin: 0 0 2px; }
.asst-head p { margin: 0; max-width: 760px; }
.asst-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; }
.asst-log { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px 2px 8px; }
.asst-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.asst-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; }
.asst-msg.bot { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.asst-msg .pos, .asst-msg .neg { white-space: pre-line; }
.asst-wait { color: var(--muted); animation: dot 1s infinite; }
.asst-plan ul { margin: 6px 0 10px; padding-left: 18px; }
.asst-acts { display: flex; gap: 8px; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.asst-form { display: flex; gap: 8px; align-items: flex-end; }
.asst-form textarea { flex: 1; min-height: 46px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; }
@media (max-width: 640px) {
  .asst-form { flex-direction: column; align-items: stretch; }
  .asst-msg { max-width: 100%; }
}

/* ===== Admin → MCP ===== */
.mcp-new { margin-bottom: 18px; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .06); }
.mcp-new h2 { margin-top: 0; }
.mcp-how h2 { margin-top: 0; }
.mcp-code { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ===== Generările: ștergere, termen de păstrare, poza încărcată întreagă ===== */
.gen-del { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border-radius: 8px; color: var(--muted); }
.gen-del:hover { color: var(--bad); background: rgba(248, 113, 113, .12); }
.gen-del .svg-icon { width: 15px !important; height: 15px !important; }
.gen-exp { color: #fbbf24; }
.gen-keep-note { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); color: #fde68a; font-size: 13px; }
.gen-keep-note .svg-icon { flex: none; }
/* poza încărcată pentru animare/modificare: întreagă, la mărimea ei, nu mărită ca fundal */
.dropzone.has-img { background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: #0b0a14 !important; min-height: 200px; }
.dropzone.has-img > span { position: relative; z-index: 1; align-self: end; margin-bottom: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-thumbs img { object-fit: contain; background: #0b0a14; }

/* ===== Photoshop: fâșia cu imaginile generate ===== */
.edit-head { flex-wrap: nowrap; align-items: center; }
.edit-head > h1 { flex: none; }
.ps-reel { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ps-reel-item { position: relative; flex: none; scroll-snap-align: start; }
.ps-reel-thumb { display: block; width: 56px; height: 56px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--bg2); cursor: pointer; transition: transform .15s, border-color .15s; }
.ps-reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-reel-thumb:hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, .7); }
.ps-reel-thumb.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124, 92, 255, .35); }
.ps-reel-del { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #1b1b2e; color: #fff; font: 700 14px/20px Manrope, sans-serif; cursor: pointer; opacity: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: opacity .15s, background .15s; }
.ps-reel-item:hover .ps-reel-del, .ps-reel-del:focus-visible { opacity: 1; }
.ps-reel-del:hover { background: #e11d48; }
@media (hover: none) { .ps-reel-del { opacity: 1; } }
@media (max-width: 900px) {
  .edit-head { flex-wrap: wrap; }
  .ps-reel { order: 3; flex: 1 1 100%; }
  .ps-reel-thumb { width: 52px; height: 52px; }
}
/* titlul instrumentului: destul de mic cât să încapă și cuvintele lungi (ex. „Нейрофотосессия”), fără rupere în mijloc */
body.site .studio-form .h2 { font-size: clamp(20px, 1.9vw, 24px); overflow-wrap: normal; hyphens: auto; }

/* Panou admin: „Pune la 0” sub cifrele de bani */
.kpi-reset { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: -8px 0 22px; }
.kpi-reset .muted { margin-right: auto; }

/* ---------- Suport: tichete, conversație, traducere, notificări ---------- */
.st-info { color: var(--accent2); background: rgba(34, 193, 238, .12); }
.side-badge { margin-left: auto; font-size: 11px; min-width: 20px; text-align: center; }
.side-badge[hidden] { display: none; }
.sup-page { max-width: 980px; }
.sup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; }
.sup-new { display: flex; flex-direction: column; gap: 12px; }
.sup-label { font-weight: 600; font-size: 14px; margin-bottom: -6px; }
.sup-list { display: flex; flex-direction: column; gap: 10px; }
.sup-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: var(--text); transition: border-color .15s; }
.sup-item:hover { border-color: var(--accent); }
.sup-item.has-new { border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 1px rgba(124, 92, 255, .35); }
.sup-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sup-item-top strong { overflow-wrap: anywhere; }
.sup-new-dot { color: var(--accent2); }
.sup-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 6px; }
.sup-head .page-title, .sup-head .h3 { margin: 0; overflow-wrap: anywhere; }
.sup-client { margin: 0 0 10px; }
.sup-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.sup-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.sup-msg { max-width: min(680px, 88%); padding: 12px 15px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sup-msg.mine { align-self: flex-end; background: rgba(124, 92, 255, .14); border-color: rgba(124, 92, 255, .35); border-bottom-right-radius: 5px; }
.sup-msg.theirs { align-self: flex-start; border-bottom-left-radius: 5px; }
.sup-msg.from-admin.theirs { border-color: rgba(34, 193, 238, .35); }
.sup-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sup-body { white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.sup-tr { margin-top: 6px; font-size: 12px; color: var(--accent2); display: inline-flex; align-items: center; gap: 4px; }
.sup-tr-out { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--accent2); background: rgba(34, 193, 238, .07); border-radius: 0 8px 8px 0; font-size: 14px; white-space: pre-wrap; }
.sup-note { text-align: center; }
.sup-reply { display: flex; flex-direction: column; gap: 10px; }
.sup-compose { display: flex; flex-direction: column; gap: 10px; }
.sup-compose textarea { width: 100%; resize: vertical; min-height: 96px; }
.sup-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sup-trbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sup-trbar select { width: auto; padding: 6px 10px; }
.sup-close { margin-top: 10px; display: flex; justify-content: flex-end; }
.sup-table tr.sup-wait td { background: rgba(251, 191, 36, .05); }
.sup-wait-txt { color: var(--warn); margin-top: 3px; }
.sup-snip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sup-pops { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100% - 32px)); }
.sup-pop { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #1b1b2e; border: 1px solid rgba(124, 92, 255, .55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: supIn .25s ease-out; }
.sup-pop-pay { border-color: rgba(52, 211, 153, .6); }
.sup-pop strong { padding-right: 22px; font-size: 14px; }
.sup-pop span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sup-pop .btn { align-self: flex-start; }
.sup-pop-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes supIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .sup-grid { grid-template-columns: 1fr; }
  .sup-msg { max-width: 94%; }
  .sup-tools > .btn { width: 100%; justify-content: center; }
  .sup-snip { max-width: 180px; }
}
.media-info div + div { margin-top: 2px; }
