:root {
  color-scheme: dark;
  /* YouTube tamsiosios temos paletė — praktiškai tokia, kokią naudoja jie patys.
     Paviršiai skiriami ne šešėliais, o pilkumo laipsniu. */
  --bg: #0f0f0f;            /* puslapio fonas */
  --surface: #212121;       /* kortelės, meniu, lentelės */
  --surface-2: #181818;     /* įdubę plotai: laukai, įvestys */
  --surface-3: #272727;     /* chip'ai, ženkliukai */
  --hover: #303030;         /* užvedimo būsena */
  --border: #303030;
  --border-light: #3f3f3f;
  --ink: #f1f1f1;
  --muted: #aaaaaa;
  --dim: #717171;
  --link: #3ea6ff;          /* YouTube mėlyna nuorodoms */

  /* PREKĖS ŽENKLAS #ba141a. Kaip ir YouTube, jis NIEKADA nenaudojamas mygtukams –
     tik logotipui, progreso juostai ir „gyvos/aktyvios" būsenos taškams.
     Todėl raudona sąsajoje visada reiškia arba ženklą, arba klaidą, ir šie
     du dalykai niekada nesusiduria toje pačioje vietoje. */
  --brand: #ba141a;
  --brand-bright: #e0242b;  /* šviesesnė, kai reikia matomumo ant tamsaus */
  --grad: linear-gradient(90deg, #ba141a, #e0242b);

  /* Statusai (5 %) */
  --ok: #2ba640;            /* YouTube žalia */
  --ok-soft: rgba(43,166,64,.14);
  --warn: #ffd24c;
  --warn-soft: rgba(255,210,76,.14);
  --danger: #ff7b72;
  --danger-soft: rgba(255,123,114,.14);

  /* Pasirinkimas ir fokusas – neutralūs, kaip pas YouTube. */
  --pick: #f1f1f1;
  --pick-ring: rgba(255,255,255,.2);

  /* YouTube beveik nenaudoja šešėlių – tik iškylantiems sluoksniams. */
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  --shadow-lg: 0 4px 32px rgba(0,0,0,.5);
  --ease: cubic-bezier(.2,0,0,1);

  --sidebar: 252px;
  --radius: 12px;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img, video { max-width: 100%; }
::selection { color: #0f0f0f; background: #fff; }
:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 2px; border-radius: 4px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar);
  display: flex; flex-direction: column; padding: 20px 14px 14px;
  background: rgba(15,15,15,.95); backdrop-filter: blur(16px); border-right: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; width: fit-content; padding: 2px 10px 16px; text-decoration: none; }
.brand-logo { position: relative; display: block; width: 124px; height: 36px; overflow: hidden; flex: none; }
.brand-logo img { position: absolute; top: -64px; left: -21px; width: 155px; height: 155px; max-width: none; display: block; }
.side-nav { display: grid; flex: 1 1 auto; min-height: 0; align-content: start; gap: 4px; overflow-y: auto; padding-right: 2px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; transition: .18s ease; }
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.nav-link.active { color: var(--ink); background: var(--surface-3); font-weight: 700; }
.nav-link.active .nav-icon { color: var(--ink); }
.nav-count { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.compact-select { min-width: 126px; min-height: 36px; padding: 7px 30px 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--ink); }
/* ---------------------------------------------------------------------------
   PAGALBA — gyvas pokalbis (vartotojui) ir gautieji (administratoriui).
   Vartotojas mato tik kabanti burbuliuka desineje; administratorius — pilnus
   gautuosius kaireje esancioje meniu skiltyje.
--------------------------------------------------------------------------- */
/* Paleidiklis visada toje pacioje vietoje — apacioje desineje, kaip Messenger.
   Tempti nebegalima: isiminta vieta kitame ekrane atsidurdavo uz krasto. */
.support-chat-bubble { position: fixed; right: 24px; bottom: 24px; z-index: 96; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 42px rgba(0,0,0,.36); cursor: pointer; font-size: 25px; font-weight: 900; transition: transform .15s ease, background .15s ease; }
.support-chat-bubble:hover { transform: translateY(-2px); background: var(--brand-bright); }
.support-chat-bubble.is-open { background: var(--surface-3); color: var(--ink); }
.support-chat-bubble .icon { width: 25px; height: 25px; }
.support-chat-bubble span:not(.icon) { position: absolute; right: -3px; top: -3px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--brand); border: 2px solid var(--brand); font-size: 11px; font-weight: 800; }
.support-chat-bubble.has-unread { animation: support-pulse 1.8s infinite; }
@keyframes support-pulse { 0%,100% { box-shadow: 0 16px 42px rgba(0,0,0,.36),0 0 0 0 rgba(239,68,68,.38); } 50% { box-shadow: 0 16px 42px rgba(0,0,0,.36),0 0 0 10px rgba(239,68,68,0); } }
.support-chat-panel { position: fixed; right: 24px; bottom: 96px; z-index: 95; width: min(400px,calc(100vw - 32px)); height: min(620px,calc(100vh - 132px)); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.48); transform-origin: bottom right; animation: support-rise .18s cubic-bezier(.2,.9,.3,1); }
@keyframes support-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.support-chat-panel > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.support-chat-panel > header > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.support-chat-panel > header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-panel > header span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-chat-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.support-chat-avatar .icon { width: 19px; height: 19px; }
.support-chat-tools { display: flex; gap: 4px; flex: none; }
.support-tool { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.support-tool:hover { background: var(--hover); color: var(--ink); }
.support-tool.is-active { background: var(--surface-3); color: var(--ink); }

.support-chat-messages { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; }
.support-day { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; color: var(--dim); font-size: 11px; }
.support-day::before, .support-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.support-message { max-width: 84%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); align-self: flex-start; }
/* Sava zinute — desineje, pasnekovo — kaireje. */
.support-message.other { align-self: flex-start; margin-right: auto; margin-left: 0; border-radius: 14px 14px 14px 4px; background: var(--surface-3); }
.support-message.own { align-self: flex-end; margin-left: auto; margin-right: 0; border-radius: 14px 14px 4px 14px; background: rgba(220,38,38,.18); }
.support-message > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.support-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message time { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.support-receipt { float: right; margin-top: 5px; padding-left: 10px; color: var(--dim); font-size: 10px; }

.support-chat-welcome { justify-content: flex-end; }
.support-welcome-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.support-welcome-card strong { display: block; margin-bottom: 6px; }
.support-welcome-card p { margin: 0; color: var(--muted); font-size: 13px; }
.support-chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.support-chip { padding: 6px 11px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: pointer; }
.support-chip:hover { background: var(--hover); color: var(--ink); }
.support-chip.is-active { border-color: var(--pick); background: var(--surface-3); color: var(--ink); font-weight: 700; }

.support-chat-history { overflow-y: auto; padding: 12px; display: grid; gap: 8px; align-content: start; }
.support-history-row { padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.support-history-row:hover { background: var(--hover); }
.support-history-row.is-active { border-color: var(--border-light); background: var(--surface-3); }
.support-history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.support-history-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.support-history-row p { margin: 5px 0 4px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-history-row > span { color: var(--dim); font-size: 11px; }
.support-chat-empty { margin: auto; color: var(--muted); text-align: center; }

.support-chat-panel > footer { display: grid; gap: 6px; padding: 11px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.support-composer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.support-composer textarea { min-height: 42px; max-height: 160px; padding: 10px 12px; border-radius: 12px; resize: none; overflow-y: auto; }
.support-send { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; }
.support-send:hover { background: var(--brand-bright); }
.support-send .icon { width: 19px; height: 19px; }
.support-hint { margin: 0; color: var(--dim); font-size: 11px; }
.support-chat-panel > footer .error-text { margin: 0; }
.support-chat-closed { display: grid; gap: 9px; justify-items: start; }
.support-chat-closed p { margin: 0; color: var(--muted); font-size: 12px; }

/* --- Administratoriaus gautieji -------------------------------------------- */
/* Gautieji uzima VISA puslapio plota: jokios antrastes, jokiu parasciu. Del to
   .main ir .page pertvarkomi butent siam vienam ekranui. */
.main:has(.support-inbox) { height: 100vh; min-height: 0; padding: 0; overflow: hidden; }
.main:has(.support-inbox) .page { max-width: none; height: 100%; animation: none; }
.support-inbox { display: grid; grid-template-columns: minmax(300px,380px) 1fr; height: 100%; min-height: 0; }
.support-inbox-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.support-inbox-loading .icon { width: 28px; height: 28px; color: var(--dim); }
/* Flex, o ne grid: masinių veiksmų juosta atsiranda tik ką nors pažymėjus, o
   fiksuotas eilučių šablonas tada atimtų iš sąrašo slinktį. */
.support-inbox-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.support-inbox-search { flex: none; padding: 11px 11px 8px; }
.support-inbox-search .search { width: 100%; min-width: 0; max-width: none; }
.support-buckets { flex: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 0 11px 9px; }
.support-bucket { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: pointer; }
.support-bucket:hover { background: var(--hover); color: var(--ink); }
.support-bucket.is-active { border-color: var(--pick); background: var(--pick); color: #0f0f0f; font-weight: 700; }
.support-bucket span { min-width: 17px; padding: 0 4px; border-radius: 999px; background: rgba(255,255,255,.09); font-size: 10px; font-weight: 800; text-align: center; }
.support-bucket.is-active span { background: rgba(0,0,0,.14); }
.support-inbox-filters { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 11px 10px; border-bottom: 1px solid var(--border); }
.support-inbox-filters select { min-width: 0; min-height: 34px; padding: 6px 26px 6px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--ink); font-size: 12px; }
.support-bulk { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--border); background: var(--surface-3); font-size: 12px; }
.support-bulk-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.support-rows { flex: 1; overflow-y: auto; min-height: 0; }
.support-rows-empty { display: grid; justify-items: center; gap: 5px; padding: 42px 18px; color: var(--muted); text-align: center; }
.support-rows-empty .icon { width: 26px; height: 26px; color: var(--dim); }
.support-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.support-row:hover { background: var(--surface-2); }
.support-row.is-active { background: var(--surface-3); box-shadow: inset 3px 0 0 var(--brand); }
.support-row.is-unread .support-row-title { font-weight: 800; color: var(--ink); }
.support-row-check { width: 18px; height: 18px; margin-top: 2px; display: grid; place-items: center; border: 1px solid var(--border-light); border-radius: 5px; background: var(--surface-2); color: #0f0f0f; }
.support-row-check.is-checked { border-color: var(--pick); background: var(--pick); }
.support-row-check .icon { width: 12px; height: 12px; }
.support-row-avatar { width: 32px; height: 32px; margin-top: 1px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .3px; }
.support-row-avatar.is-creator { background: rgba(62,166,255,.16); color: #7cc4ff; }
.support-row-avatar.is-business { background: rgba(43,166,64,.16); color: #6ddb85; }
.support-row-body { min-width: 0; }
.support-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.support-row-top strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-row-top time { flex: none; color: var(--dim); font-size: 11px; }
.support-row-title { margin-top: 1px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-row-preview { margin: 4px 0 6px; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-row-you { color: var(--muted); }
.support-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.support-tag { padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 10px; }
.support-wait { padding: 2px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 10px; font-weight: 700; }
.support-unread { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; text-align: center; }

.support-inbox-thread { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; background: var(--surface); overflow: hidden; }
.support-thread-empty { grid-row: 1 / -1; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 40px; color: var(--muted); text-align: center; }
.support-thread-empty .icon { width: 30px; height: 30px; color: var(--dim); }
.support-thread-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.support-thread-head .support-row-avatar { width: 38px; height: 38px; margin: 0; font-size: 13px; }
.support-thread-who { display: grid; gap: 2px; min-width: 0; }
.support-thread-who strong { font-size: 15px; }
.support-thread-who span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-thread-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.support-wait-lg { flex: none; padding: 4px 10px; font-size: 11px; }
.support-thread-controls .compact-select { min-width: 118px; min-height: 32px; padding: 5px 26px 5px 9px; font-size: 12px; }
.support-thread-messages { min-height: 0; background: var(--bg); }
.support-thread-messages .support-message { max-width: 72%; }
.support-thread-composer { display: grid; gap: 8px; padding: 11px 14px 13px; border-top: 1px solid var(--border); background: var(--surface-2); }
.support-snippets { display: flex; flex-wrap: wrap; gap: 6px; }
.support-thread-composer textarea { min-height: 58px; max-height: 200px; padding: 10px 12px; border-radius: 12px; resize: none; overflow-y: auto; }
.support-thread-quick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.support-thread-composer .error-text { margin: 0; }
.snippet-list { display: grid; gap: 7px; }
.snippet-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.snippet-row div { display: grid; gap: 3px; min-width: 0; }
.snippet-row span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 1100px) {
  /* Siaurame ekrane sarasas ir gija vienas po kito, o puslapis vel slenka iprastai. */
  .main:has(.support-inbox) { height: auto; overflow: visible; padding: 0 0 40px; }
  .main:has(.support-inbox) .page { height: auto; }
  .support-inbox { grid-template-columns: 1fr; height: auto; }
  .support-inbox-list { max-height: 62vh; border-right: 0; border-bottom: 1px solid var(--border); }
  .support-inbox-thread { min-height: 540px; }
  .support-thread-head { grid-template-columns: auto 1fr; }
  .support-wait-lg { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .support-chat-panel { right: 12px; left: 12px; bottom: 84px; width: auto; height: calc(100vh - 100px); }
  .support-chat-bubble { right: 16px; bottom: 16px; }
  .support-inbox-filters { grid-template-columns: 1fr; }
}
.nav-icon { width: 19px; height: 19px; flex: none; display: grid; place-items: center; color: #8a8a8a; }
.icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.nav-icon svg, .icon svg { width: 100%; height: 100%; display: block; }
.side-bottom { flex: none; margin-top: auto; padding-top: 12px; }
.side-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); text-decoration: none; transition: .18s ease; }
.side-balance:hover { background: var(--hover); border-color: var(--border-light); }
.side-balance span { color: var(--muted); font-size: 12px; font-weight: 500; }
.side-balance strong { color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.side-user { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; margin-top: 8px; padding: 13px 8px 7px; border-top: 1px solid var(--border); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); font-weight: 800; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 13px; }
.user-copy span { margin-top: 1px; color: var(--dim); font-size: 11px; }
.logout { width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.logout:hover { color: var(--ink); background: var(--surface-3); }
.role-switcher { width: 100%; margin-bottom: 6px; }
.role-switcher select { width: 100%; min-height: 38px; padding: 6px 30px 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: border-color .16s, color .16s, background .16s; }
.role-switcher select:hover { border-color: var(--border-light); color: var(--ink); }
.role-switcher select:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.08); color: var(--ink); }

/* Paskyrų persijungimas (tik administratoriaus meniu) */
.account-switch-wrap { position: relative; margin: 0 2px 6px; }
.account-switch { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; user-select: none; transition: background .16s, border-color .16s; }
.account-switch:hover, .account-switch:focus-visible { background: var(--hover); border-color: var(--border-light); }
.account-switch-icon { font-size: 15px; line-height: 1; flex: none; color: var(--muted); }
.account-switch-label { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.account-switch-arrow { font-size: 10px; flex: none; color: var(--dim); transition: transform .18s ease; }
.account-switch[aria-expanded="true"] .account-switch-arrow { transform: rotate(180deg); }
.account-switch-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.55); animation: switchMenuIn .14s ease both; }
.account-switch-menu:not([hidden]) { display: flex; }
@keyframes switchMenuIn { from { opacity: 0; transform: translateY(-6px); } }
.account-switch-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; transition: background .12s; }
.account-switch-option:hover { background: var(--hover); }
.account-switch-option:disabled { opacity: .5; cursor: wait; }
.account-switch-role { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 11px; font-weight: 800; }
.account-switch-role.admin { background: var(--brand); color: #fff; }
.account-switch-role.creator { background: #3ea6ff; color: #fff; }
.account-switch-role.business { background: var(--ok); color: #fff; }
.account-switch-hint { margin-left: auto; color: var(--dim); font-size: 11px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }

.mobile-topbar { display: none; }

.main { min-height: 100vh; margin-left: var(--sidebar); padding: 30px clamp(24px, 4vw, 58px) 64px; }
.page { width: 100%; max-width: 1440px; margin: 0 auto; animation: enter .22s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
/* Perpiešus TĄ PATĮ ekraną (pažymėjus parinktį, pridėjus nuorodą, atėjus foniniam
   atnaujinimui) įėjimo animacijos nebekartojamos — kitaip kiekvienas veiksmas
   atrodydavo kaip viso puslapio perkrovimas. Perėjimai tarp ekranų animuojami. */
#app[data-enter="off"] .page,
#app[data-enter="off"] .checkout-page .onboarding-body,
#app[data-enter="off"] .checkout-page .checkout-grid,
#app[data-enter="off"] .onboarding-card { animation: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.18; letter-spacing: -.03em; }
.page-head p { margin: 7px 0 0; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.eyebrow { margin-bottom: 7px; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--muted); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), opacity .15s; }
.btn:active:not(:disabled) { opacity: .8; }
/* Pagrindinis: baltas su juodu tekstu – kaip YouTube „Subscribe". */
.btn-primary { color: #0f0f0f; background: #f1f1f1; }
.btn-primary:hover:not(:disabled) { background: #d9d9d9; }
/* Antrinis: pilkas chip'as, šviesėja užvedus. */
.btn-secondary { border-color: transparent; background: var(--surface-3); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: var(--hover); }
.btn-ghost { padding-inline: 10px; border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover:not(:disabled) { color: var(--ink); background: var(--surface-3); }
/* Žalias TIK „patvirtinu, kad tai teisinga" veiksmui (verslas priima turinį). */
.btn-success { color: #7ee08c; background: var(--ok-soft); }
.btn-success:hover:not(:disabled) { background: rgba(43,166,64,.24); }
.btn-danger { color: var(--danger); background: var(--danger-soft); }
.btn-danger:hover:not(:disabled) { background: rgba(255,123,114,.24); }
.btn-sm { min-height: 32px; padding: 6px 14px; font-size: 12.5px; }
.btn-icon { width: 38px; padding: 8px; }
.btn:disabled, .btn.disabled { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(.4); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel { padding: 22px; }
.card-title { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.card-sub { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 28px; }
.metric { position: relative; min-height: 132px; padding: 20px; overflow: hidden; text-decoration: none; transition: background .15s var(--ease), border-color .15s; }

.metric:hover { border-color: var(--border-light); background: var(--hover); }
.metric-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.metric-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.metric-value { font-variant-numeric: tabular-nums; margin-top: 17px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.metric-note { margin-top: 2px; color: var(--dim); font-size: 11px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.text-link { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--ink); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.search { position: relative; min-width: min(100%, 260px); flex: 1; max-width: 390px; }
.search .icon { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; color: var(--dim); transform: translateY(-50%); pointer-events: none; }
.search input { width: 100%; padding-left: 38px; }
/* position: relative — kad klaustuko paaiškinimas būtų dedamas pagal patį lauką,
   o ne pagal 16 px ikonėlę (kitaip jis išlenda po kairiuoju meniu). */
.field, .field-group { position: relative; display: grid; gap: 7px; }
.field label, .field-label { color: var(--ink); font-size: 13px; font-weight: 600; }
.optional { color: var(--dim); font-size: 11px; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; outline: 0; background: var(--surface-2); color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--border-light); }
input::placeholder, textarea::placeholder { color: #656565; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,255,255,.55); background: var(--surface-3); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
textarea { min-height: 106px; resize: vertical; }
select { width: auto; min-width: 150px; padding-right: 32px; }
/* Natūralus select pats piešia rodyklę ir prideda savo vidinius tarpus, todėl
   formos tinklelyje („Šalis“ tarp paprastų input'ų) jis atrodydavo nelygiai:
   kitas teksto poslinkis ir kitas aukštis. Rodyklę piešiame patys, o valdiklio
   apipavidalinimą išjungiame — tada laukas sutampa su kaimynais tiksliai.
   Taisyklė kartojama su :hover/:focus, nes tos būsenos naudoja `background`
   trumpinį, kuris kitaip ištrintų rodyklės piešinį. */
.field select, .field select:hover, .field select:focus {
  width: 100%; padding-right: 34px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a3a3a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.75 6 6.25 11 1.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px 8px;
}
.field select option { background: var(--surface-2); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.span-2 { grid-column: span 2; }
/* Vienodo aukščio laukų tinklelis: visi blokeliai lygiuojami, išskyrus aukštus
   (aprašymo) laukus, kurie auga pagal turinį. */
.form-grid-even > .field { align-content: start; min-height: var(--field-min-height, 118px); }
.form-grid-even > .field-tall { min-height: 0; }
.help { color: var(--dim); font-size: 11px; }
.invalid { border-color: var(--danger) !important; background: var(--danger-soft) !important; }
.invalid:focus { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255,123,114,.25) !important; }
.field-invalid label { color: var(--danger); }
.error-text { display: flex; align-items: center; gap: 6px; color: var(--danger); font-size: 11.5px; font-weight: 500; }
.error-text .icon { width: 14px; height: 14px; flex: none; }
.save-state { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; font-weight: 500; white-space: nowrap; }
.save-state .icon { width: 14px; height: 14px; color: var(--ok); }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.choice { position: relative; display: block; min-height: 132px; padding: 20px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; transition: .18s ease; }
.choice:hover { border-color: var(--border-light); background: var(--hover); }
.choice.selected { border-color: #f1f1f1; background: rgba(255,255,255,.08); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-check { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--border-light); border-radius: 50%; color: transparent; font-size: 12px; }
.choice.selected .choice-check { color: #0f0f0f; border-color: #fff; background: #fff; }
.choice h3 { margin: 0 34px 7px 0; font-size: 17px; }
.choice p { margin: 0; color: var(--muted); font-size: 13px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: .18s var(--ease); }
.chip input:checked + span { border-color: transparent; background: #f1f1f1; color: #0f0f0f; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--pick); }
.check-row-invalid { color: var(--danger); }
.check-row-invalid input { accent-color: var(--danger); outline: 2px solid var(--danger); outline-offset: 2px; }
.radio-list { display: flex; flex-wrap: wrap; gap: 10px; }

.tabs { display: flex; gap: 5px; overflow-x: auto; margin: -4px 0 20px; padding-bottom: 1px; border-bottom: 1px solid var(--border); }
.tab { padding: 11px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 600; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-count { margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-green { color: #7ee08c; background: var(--ok-soft); }
.status-amber { color: var(--warn); background: var(--warn-soft); }
.status-red { color: var(--danger); background: var(--danger-soft); }
.status-blue { color: var(--link); background: rgba(62,166,255,.14); }
.status-gray { color: #bbb; background: rgba(255,255,255,.07); }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--ink); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.035); }
.cell-title { display: block; color: var(--ink); font-weight: 700; }
.cell-sub { display: block; margin-top: 2px; color: var(--dim); font-size: 11px; }
/* Nuoroda lentelės langelyje — neišplečia stulpelio, ilgas adresas nukerpamas. */
.cell-link { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.cell-link:hover { text-decoration: underline; }
.cell-link + .cell-link { margin-top: 3px; }
/* Pateikto turinio suvestinė pagal platformą (administratoriaus apžvalga). */
.submission-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 12px; }
.submission-tile { display: grid; gap: 3px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.submission-platform { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.submission-platform .icon { width: 14px; height: 14px; }
.submission-tile strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
/* Lentelė be slinkties į dešinę: tekstas laužomas, mygtukai persikelia į kitą eilutę. */
.table-fit { table-layout: fixed; }
.table-fit th, .table-fit td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.table-fit .table-actions { flex-wrap: wrap; }
.table-fit .col-amount { text-align: right; white-space: nowrap; }
.table-fit .col-actions { text-align: right; }
.payout-request-table th:nth-child(1) { width: 9%; }
.payout-request-table th:nth-child(2) { width: 18%; }
.payout-request-table th:nth-child(3) { width: 9%; }
.payout-request-table th:nth-child(4) { width: 20%; }
.payout-request-table th:nth-child(5) { width: 14%; }
.payout-request-table th:nth-child(6) { width: 12%; }
.payout-request-table th:nth-child(7) { width: 18%; }
.menu-wrap { position: relative; }
.context-menu { position: absolute; top: calc(100% + 5px); right: 0; z-index: 20; min-width: 170px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); box-shadow: var(--shadow); }
.context-menu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.context-menu button:hover { color: #fff; background: var(--surface-3); }
.context-menu button.danger { color: var(--danger); }

.campaign-grid, .people-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.campaign-card { display: flex; flex-direction: column; min-height: 245px; padding: 19px; text-decoration: none; transition: transform .18s, border-color .18s; }
.campaign-card:hover { border-color: var(--border-light); background: var(--hover); }
.campaign-card h3 { margin: 0 0 6px; font-size: 16px; }
.campaign-card p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
/* Svarbiausi kampanijos reikalavimai — platforma, kūrėjo tipas, kalba. */
.campaign-reqs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.campaign-req { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border-light); border-radius: 999px; background: var(--surface-3); color: var(--ink); font-size: 11px; font-weight: 600; }
.campaign-req .icon { width: 13px; height: 13px; color: var(--muted); }
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; color: var(--dim); font-size: 11px; }
.meta-list span { display: flex; align-items: center; gap: 5px; }
.meta-list .icon { width: 13px; height: 13px; flex: none; }

/* ---------------------------------------------------------------------------
   Kūrėjo kampanijos pasiūlymas. Kūrėjas renkasi pagal du skaičius — kiek moka už
   1000 peržiūrų ir kiek biudžeto dar liko — todėl būtent jie ir yra didžiausi
   elementai kortelėje, virš aprašymo ir reikalavimų.
   ------------------------------------------------------------------------- */
.offer-card { display: flex; flex-direction: column; gap: 13px; padding: 18px; transition: border-color .18s var(--ease), background .18s var(--ease); }
.offer-card:hover { border-color: var(--border-light); background: var(--hover); }
.offer-head { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.offer-logo { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--border-light); border-radius: 11px; background: var(--surface-3); font-size: 16px; font-weight: 700; }
.offer-titles { display: grid; gap: 2px; min-width: 0; }
.offer-titles strong { overflow: hidden; font-size: 15.5px; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.offer-titles > span { overflow: hidden; color: var(--dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.offer-head:hover .offer-titles strong { text-decoration: underline; }
/* Aprašymas – tik dvi eilutės, kad visos kortelės liktų vienodo aukščio. */
.offer-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.offer-card .campaign-reqs, .offer-card .meta-list { margin: 0; }
/* Terminas gali būti nenurodytas — tada ženkliuko nėra, bet mygtukas vis tiek
   privalo likti dešinėje, kad kortelės neatrodytų skirtingai. */
.offer-card .card-foot { justify-content: flex-end; margin-top: auto; }
.offer-card .card-foot .status { margin-right: auto; }

/* Baneris. Verslo įkeltas paveikslėlis yra pirmas dalykas, kurį kūrėjas pamato,
   todėl jis eina virš viso teksto ir per visą kortelės plotį (kortelė turi
   `overflow: hidden`, kad kampai liktų apvalūs). Neįkėlus banerio rodomas
   spalvotas laukas su pavadinimo raide: taip tinklelis lieka vienodo ritmo, o
   ne su skylėmis ten, kur paveikslėlio nėra. */
.offer-card { overflow: hidden; }
.offer-banner-link { display: block; margin: -18px -18px 0; text-decoration: none; }
.campaign-banner { position: relative; aspect-ratio: 40 / 21; overflow: hidden; background: var(--surface-2); }
.campaign-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.offer-card:hover .campaign-banner img { transform: scale(1.02); }
.campaign-banner img { transition: transform .3s var(--ease); }
.campaign-banner-blank { display: grid; place-items: center;
  background: linear-gradient(140deg, hsl(var(--banner-hue) 42% 26%), hsl(calc(var(--banner-hue) + 40) 38% 15%)); }
.campaign-banner-blank span { font-size: 46px; font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.82); }
.campaign-banner-wide { margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; aspect-ratio: 100 / 27; }
.campaign-banner-wide.campaign-banner-blank span { font-size: 60px; }

/* „Kaip tai veikia“ virš kampanijų sąrašo — trys žingsniai vienoje eilutėje.
   Kūrėjas neturi ieškoti paaiškinimo kampanijos viduje. */
.how-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.how-strip li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.how-num { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 14px; font-weight: 800; }
.how-copy { display: grid; gap: 2px; min-width: 0; }
.how-copy strong { font-size: 14px; letter-spacing: -.01em; }
.how-copy span { color: var(--dim); font-size: 12px; line-height: 1.45; }

/* Mokesčio juosta: „sumokėjo − mokestis = jums“. Trys skaičiai vienodo svorio,
   todėl 14 % nebėra smulkus prierašas, kurio niekas neperskaito. */
.fee-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; margin: 0 0 24px; }
.fee-step { display: grid; align-content: center; gap: 3px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.fee-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.fee-value { font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.fee-note { color: var(--dim); font-size: 11.5px; line-height: 1.4; }
.fee-op { display: grid; place-items: center; color: var(--dim); font-size: 22px; font-weight: 700; }
.fee-step-cut .fee-value { color: var(--muted); }
.fee-step-you { border-color: rgba(43,166,64,.4); background: linear-gradient(150deg, var(--ok-soft), rgba(43,166,64,.03)); }
.fee-step-you .fee-value { color: #6ee07f; }
.cell-minus { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Kampanijos peržiūra apmokėjimo žingsnyje: tikra kūrėjo kortelė, tik be nuorodų. */
.preview-section .card-sub { margin: 0 0 14px; }
.preview-stage { max-width: 380px; margin-top: 16px; }
.preview-stage a, .preview-stage button { pointer-events: none; }
/* Peržiūroje veikia TIK įkėlimo valdikliai — visa kita lieka maketu. */
.preview-stage .media-drop, .preview-stage .media-clear, .preview-stage .media-reset,
.preview-stage .offer-logo-edit { pointer-events: auto; }

/* Baneris ir logotipas keliami paspaudus tiesiai ant jų vietos: laukas yra ten,
   kur atsiras rezultatas. Tuščias plotas kviečia visada, o užpildytą uždengia
   tik užvedus/fokusavus — kitaip valdiklis nuolat dengtų patį paveikslėlį. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.offer-card-edit .offer-banner-link { position: relative; display: block; }
.media-drop { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 12px; text-align: center; cursor: pointer; transition: background .18s var(--ease), opacity .18s var(--ease); }
.media-drop-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; background: rgba(15,15,15,.82); color: #fff; font-size: 13px; font-weight: 600; }
.media-drop-cta .icon { width: 16px; height: 16px; }
.media-drop-note { color: rgba(255,255,255,.78); font-size: 10.5px; text-shadow: 0 1px 4px rgba(0,0,0,.75); }
/* Be banerio – kvietimas matomas visą laiką; su baneriu – tik prireikus. */
.media-edit .media-drop { background: rgba(10,10,10,.42); }
.media-edit:has(img) .media-drop { opacity: 0; background: rgba(10,10,10,.62); }
.media-edit:has(img) .media-drop:hover,
.media-edit:has(img) .media-drop:focus-within { opacity: 1; }
.media-drop:focus-within .media-drop-cta { outline: 2px solid rgba(255,255,255,.8); outline-offset: 2px; }
.media-clear { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(10,10,10,.72); color: #fff; cursor: pointer; transition: background .16s, border-color .16s; }
.media-clear:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.media-clear .icon { width: 15px; height: 15px; }
/* Įkeliant pulsuoja pati vieta, į kurią atsiras paveikslėlis — atskiros būsenos
   eilutės po kortele nebereikia. */
@keyframes mediaBusy { 0%,100% { opacity: .45; } 50% { opacity: .85; } }
.media-edit.is-busy, .offer-logo-edit.is-busy { animation: mediaBusy 1.1s ease-in-out infinite; }
.media-edit.is-busy .media-drop { opacity: 1; }
.media-edit.is-busy .media-drop, .offer-logo-edit.is-busy { pointer-events: none; }

.offer-logo img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.offer-logo-edit { position: relative; overflow: visible; cursor: pointer; transition: border-color .16s, background .16s; }
.offer-logo-edit:hover, .offer-logo-edit:focus-within { border-color: #fff; background: var(--hover); }
.offer-logo-edit:focus-within { outline: 2px solid rgba(255,255,255,.75); outline-offset: 2px; }
.offer-logo-badge { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--surface); border-radius: 50%; background: #f1f1f1; color: #0f0f0f; }
.offer-logo-badge .icon { width: 12px; height: 12px; }
.offer-logo-hint { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--dim); font-size: 11px; font-weight: 600; white-space: nowrap; }
.offer-logo-hint .icon { width: 12px; height: 12px; }
.media-reset { margin-left: auto; flex: none; }

.rate-box { display: grid; gap: 4px; padding: 15px 16px; border: 1px solid var(--border-light); border-radius: 12px; background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.015)); }
.rate-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.rate-value { font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.rate-unit { color: var(--muted); font-size: 13px; font-weight: 600; }
.rate-note { color: var(--dim); font-size: 11px; line-height: 1.45; }
.rate-cap { display: flex; align-items: center; gap: 7px; margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.rate-cap .icon { width: 14px; height: 14px; flex: none; color: var(--dim); }
.rate-cap b { color: var(--ink); font-weight: 700; }
.rate-box-lg .rate-value { font-size: 38px; }

.budget-box { display: grid; gap: 8px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.budget-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.budget-line strong { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 15px; font-weight: 700; }
.budget-line-sub { color: var(--dim); font-size: 11px; }
.budget-line-sub b { color: var(--ink); font-weight: 700; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--border); }
.empty-state { display: grid; place-items: center; min-height: 250px; padding: 30px; text-align: center; }
.empty-state .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface-3); color: var(--dim); }
.empty-state h3 { margin: 13px 0 4px; }
.empty-state p { max-width: 400px; margin: 0; color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.7fr); gap: 20px; }
/* Vienodo pločio stulpeliai — pvz., administratoriaus kampanijos „Apžvalga“ ir
   „Biudžeto išnaudojimas“. */
.detail-grid-even { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.detail-section { padding: 22px; }
.detail-section + .detail-section { margin-top: 14px; }
.detail-section h2 { margin: 0 0 14px; font-size: 17px; }
.prose { color: var(--muted); }
.prose p { margin: 0 0 13px; }
/* Verslo įrašytas tekstas rodomas taip, kaip parašytas — su eilučių lūžiais. */
.campaign-desc p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.brief-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.brief-block h3 { margin: 0 0 5px; color: var(--dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.brief-block p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
/* Logotipo reikalavimas lemia patį montažą, todėl jis negali atrodyti kaip dar
   viena briefo pastraipa — paryškintas rėmelis ir failai iškart po tekstu. */
.brief-logo { margin-top: 16px; padding: 14px 15px; border: 1px solid rgba(255,210,76,.34); border-radius: 12px; background: var(--warn-soft); }
.brief-logo h3 { display: flex; align-items: center; gap: 7px; color: var(--warn); font-size: 12px; }
.brief-logo h3 .icon { width: 15px; height: 15px; }
.brief-logo p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.brief-logo-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }

/* Kampanijos vidus kūrėjui: būsenų ženkliukai antraštėje, uždarbio skaičiuoklė ir
   lipnus apsiėmimo blokas dešinėje. */
.page-head .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; letter-spacing: 0; text-transform: none; }
.metric-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.list-note { display: flex; align-items: center; gap: 7px; margin: -6px 0 16px; color: var(--dim); font-size: 12px; }
.list-note .icon { width: 14px; height: 14px; flex: none; }
.metric-static { min-height: 122px; }
.calc-help { margin: -8px 0 15px; color: var(--muted); font-size: 13px; }
.calc-out { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--border-light); border-radius: 12px; background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.015)); }
.calc-amount { font-variant-numeric: tabular-nums; font-size: clamp(32px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.calc-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.calc-note-warn { color: var(--warn); }
#earnCalcOut.value-flash .calc-amount { animation: payLineIn .28s var(--ease) both; }
/* Juostelė nėra įprastas laukas — jai netinka nei rėmelis, nei 44 px aukštis. */
.calc-range { width: 100%; min-height: 0; margin: 18px 0 15px; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: #f1f1f1; cursor: pointer; }
.calc-range:focus { border: 0; background: transparent; box-shadow: none; }
.calc-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.calc-field { display: grid; gap: 6px; width: 170px; }
.calc-field span { color: var(--dim); font-size: 11px; font-weight: 600; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 7px; }

.join-panel { display: grid; gap: 13px; }
.join-panel .info-list { margin: 0; }
.join-cta .btn { width: 100%; }
.join-hint { margin: 0; color: var(--dim); font-size: 11.5px; line-height: 1.5; }
.join-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: joinstep; }
.join-steps li { position: relative; padding-left: 34px; color: var(--muted); font-size: 13px; line-height: 1.5; counter-increment: joinstep; }
.join-steps li::before { content: counter(joinstep); position: absolute; top: -1px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-light); border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 700; }
.info-list { display: grid; }
.info-row { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1.2fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--dim); }
.info-row dd { margin: 0; color: var(--ink); font-weight: 500; }
.file-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.file-row + .file-row { margin-top: 8px; }
.file-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.07); border: 1px solid var(--border); font-size: 10px; font-weight: 700; }
.file-copy { min-width: 0; }
.file-copy strong, .file-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-copy strong { font-size: 12px; }
.file-copy span { color: var(--dim); font-size: 10px; }
.sticky { position: sticky; top: 24px; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 6px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-left: 25px; }
.timeline-item::before { content: ""; position: absolute; top: 5px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px var(--surface); }
.timeline-item strong { display: block; font-size: 13px; }
.timeline-item p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.timeline-item time { color: var(--dim); font-size: 10px; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.comment .avatar { width: 36px; height: 36px; font-size: 12px; }
.comment-head { display: flex; justify-content: space-between; gap: 12px; }
.comment-head strong { font-size: 12px; }
.comment-head time { color: var(--dim); font-size: 10px; }
.comment p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.comment-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.comment-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; }
.questions-panel { padding: 0; overflow: hidden; }
.questions-panel > summary { padding: 16px 20px; color: var(--ink); font-weight: 700; cursor: pointer; list-style-position: inside; }
.questions-panel > .detail-section { margin: 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
/* Zinuciu skiltis: abu blokai slenka viduje, o ne visas puslapis. */
.message-thread { max-height: min(640px, calc(100vh - 210px)); overflow-y: auto; }
.message-thread .comment-box { position: sticky; bottom: 0; background: var(--surface); }
.video-placeholder { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #262626, #141414); border: 1px solid var(--border); }
.play { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--grad); box-shadow: 0 15px 35px rgba(186,20,26,.3); cursor: pointer; }
.play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff; }

.onboarding { min-height: 100vh; padding: 30px 20px 42px; background: radial-gradient(circle at 50% -15%, rgba(186,20,26,.18), transparent 32%), var(--bg); }
.onboarding-shell { width: min(920px,100%); margin: 0 auto; }
.onboarding-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 35px; }
.onboarding-top .brand { padding: 0; }
.save-state { color: var(--dim); font-size: 12px; }
.role-page { display: grid; align-content: center; min-height: calc(100vh - 120px); }
.role-continue { width: auto; min-width: 116px; min-height: 42px; padding: 9px 20px; font-size: 14px; }
.onboarding-title { margin-bottom: 28px; text-align: center; }
.onboarding-title h1 { margin: 0; font-size: clamp(28px,4vw,42px); letter-spacing: -.04em; }
.onboarding-title p { margin: 9px 0 0; color: var(--muted); font-size: 16px; }
.onboarding-card { padding: clamp(20px,4vw,34px); }
.steps { display: grid; grid-template-columns: repeat(var(--step-count, 5),1fr); gap: 8px; margin-bottom: 28px; }
.step-item { position: relative; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--dim); font-size: 11px; font-weight: 600; text-align: left; }
.step-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 99px; background: var(--border); transition: background .3s var(--ease); }
.step-item { padding-top: 14px; }
.step-num, .step-tick { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--surface-3); color: var(--dim); font-size: 10px; font-weight: 700; transition: .2s var(--ease); }
.step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-item.active { color: var(--ink); }
.step-item.active .step-num { background: #fff; color: #0f0f0f; }
.step-item.active::before, .step-item.done::before { background: rgba(255,255,255,.85); }
.step-item.done { color: var(--muted); }
.step-item.done .step-tick { background: rgba(255,255,255,.14); color: #fff; }
.step-link { cursor: pointer; transition: color .18s; }
.step-link:hover { color: var(--ink); }
.step-link:hover .step-tick { background: #fff; color: #0f0f0f; }
.onboarding-body h2 { margin: 0 0 5px; font-size: 23px; }
.onboarding-body > p { margin: 0 0 24px; color: var(--muted); }
.form-section + .form-section { margin-top: 29px; padding-top: 25px; border-top: 1px solid var(--border); }
.form-section h3 { margin: 0 0 5px; font-size: 16px; }
.form-section > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.onboarding-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.onboarding-actions > .btn:first-child { justify-self: start; }
.onboarding-actions > .btn:last-child { justify-self: end; }
.onboarding-actions .save-state { justify-self: center; }
.onboarding-actions .action-pair { display: flex; gap: 10px; justify-self: end; }
.draft-card { margin-bottom: 18px; padding: 16px 18px; }
.draft-card .section-head { margin-bottom: 10px; }
.draft-card .section-head h2 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.draft-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.draft-row .file-copy strong { font-size: 14px; }
.draft-row .file-copy span { font-size: 11px; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 16px; border: 1px dashed var(--border-light); border-radius: 11px; background: var(--surface-2); }
.upload-preview { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--surface-3); color: var(--dim); }
.upload-preview img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.upload-copy { flex: 1; min-width: 170px; }
.upload-copy strong, .upload-copy span { display: block; }
.upload-copy span { margin-top: 2px; color: var(--dim); font-size: 10px; }
.review-section { padding: 17px; border: 1px solid var(--border); border-radius: 11px; }
.review-section + .review-section { margin-top: 10px; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-head h3 { margin: 0; }
.review-section p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.admin-auth { display: grid; align-items: center; }
.admin-auth .onboarding-shell { width: min(920px,100%); }
.admin-login-card { width: min(470px,100%); margin: 0 auto; }
.admin-login-card .onboarding-title { margin-bottom: 24px; }
.admin-login-card .onboarding-title h1 { font-size: clamp(25px,4vw,34px); }
.admin-login-form { display: grid; gap: 16px; }
.admin-login-form .btn { width: 100%; }
.admin-auth-message { min-height: 20px; margin: -2px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.auth-alt { margin: -4px 0 0; text-align: center; font-size: 13px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
/* Antraštė ir mygtukų juosta lieka vietoje, slenka tik turinys — kitaip
   apatiniai mygtukai nukeliauja už ekrano ribų ir jų nesimato. */
.modal { display: flex; flex-direction: column; width: min(620px,100%); max-height: min(820px,calc(100vh - 40px)); overflow: hidden; border: 1px solid var(--border-light); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal-sm { width: min(450px,100%); }
.modal-lg { width: min(940px,100%); }
/* Kompaktiškas variantas — kai turinys turi tilpti be slinkimo. */
.modal-tight { width: min(560px,100%); }
.modal-tight .modal-body { padding: 16px 18px; }
.modal-tight .prose { font-size: 12px; }
.modal-tight .info-row { padding: 7px 0; font-size: 12px; }
.modal-tight .checkout-total { margin-bottom: 0; padding: 10px 14px; }
.modal-tight .checkout-total strong { font-size: 20px; }
.modal-tight .notice { padding: 9px 12px; font-size: 11px; }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--border); background: rgba(33,33,33,.94); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.modal-close:hover { color: #fff; background: var(--surface-3); }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 21px; }
.modal-actions { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 15px 21px; border-top: 1px solid var(--border); }
/* Žemuose languose (nešiojami kompiuteriai) modalas suspaudžiamas, kad visas
   turinys ir mygtukai tilptų be slinkimo. */
@media (max-height: 780px) {
  .modal-backdrop { padding: 12px; }
  .modal { max-height: calc(100vh - 24px); }
  .modal-head { padding: 14px 18px; }
  .modal-head h2 { font-size: 16px; }
  .modal-body { padding: 15px 18px; }
  .modal-body .form-grid { gap: 12px; }
  .modal-body textarea { min-height: 84px; }
  .modal-actions { padding: 12px 18px; }
  .modal-tight .modal-body { padding: 12px 16px; }
  .modal-tight .info-row { padding: 5px 0; }
}
.admin-user-info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-info-section { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.admin-info-section h3 { margin: 0 0 10px; font-size: 15px; }
.admin-info-section .info-row { grid-template-columns: minmax(125px,.8fr) minmax(0,1.2fr); padding: 8px 0; }
.admin-info-section .info-row dd { overflow-wrap: anywhere; }
.admin-info-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-info-section:has(.admin-info-files), .admin-info-section:has(.notice) { align-self: start; }
.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
/* Pranesimai neturi uzdengti nei pagalbos paleidiklio, nei rasomos zinutes. */
body:has(.support-chat-bubble) .toast-root { bottom: 92px; }
@media (min-width: 641px) { body:has(.support-chat-panel) .toast-root { right: calc(min(400px, 100vw - 32px) + 36px); } }
@media (max-width: 640px) { body:has(.support-chat-panel) .toast-root { top: 70px; bottom: auto; } }
/* YouTube tamsiame režime pranešimai (snackbar) yra ŠVIESŪS su tamsiu tekstu –
   todėl jie matomi akimirksniu, nesusiliedami su tamsiu fonu. */
.toast { min-width: 280px; max-width: 390px; padding: 13px 15px; border: 0; border-radius: 11px; background: #f1f1f1; box-shadow: 0 4px 24px rgba(0,0,0,.5); animation: toast-in .22s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.toast strong { display: block; color: #0f0f0f; font-size: 13px; }
.toast span { display: block; margin-top: 2px; color: #606060; font-size: 11px; }

.wizard-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.summary-mini { padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.summary-mini span, .summary-mini strong { display: block; }
.summary-mini span { color: var(--dim); font-size: 10px; }
.summary-mini strong { margin-top: 3px; font-size: 13px; }
.progress { height: 6px; overflow: hidden; border-radius: 99px; background: var(--bg); border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-bright); transition: width .5s var(--ease); }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.notice { padding: 13px 15px; border: 1px solid rgba(62,166,255,.28); border-radius: 10px; background: rgba(62,166,255,.12); color: var(--link); font-size: 12px; }
.danger-notice { border-color: rgba(255,123,114,.3); background: var(--danger-soft); color: var(--danger); }
/* Įspėjimas, kurio nepraleisi: dalijimosi teisės yra dažniausia priežastis,
   dėl kurios kūrėjai lieka be medžiagos, todėl blokas oranžinis, o ne mėlynas. */
.notice-warn { display: flex; align-items: flex-start; gap: 10px; border-color: rgba(255,210,76,.34); background: var(--warn-soft); color: var(--warn); }
.notice-warn > .icon { width: 16px; height: 16px; flex: none; margin: 1px 0 0; }
.notice-warn > div { display: grid; gap: 5px; }
.notice-warn strong { color: var(--warn); font-weight: 700; }
.notice-warn span { color: var(--muted); line-height: 1.55; }
.notice-warn b { color: var(--ink); font-weight: 600; }
.notice-warn .text-link { justify-self: start; color: var(--warn); font-weight: 600; }
.mobile-only { display: none; }

/* Paaiškinimo burbulas */
/* position: static — burbulo atskaitos taškas tampa .field / .field-group, todėl
   jo kairė kraštinė sutampa su lauko kairiąja kraštine ir niekada neišlenda. */
.hint { position: static; display: inline-grid; place-items: center; width: 16px; height: 16px; min-height: 0; margin-left: 6px; padding: 0; border: 1px solid var(--border-light); border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1; vertical-align: middle; cursor: help; }
.hint:hover, .hint:focus { border-color: var(--border-light); background: rgba(255,255,255,.1); color: var(--ink); outline: 0; }
.hint-bubble { position: absolute; bottom: calc(100% + 9px); left: 0; z-index: 40; width: max-content; max-width: min(320px, 100%); padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--surface-3); box-shadow: 0 14px 34px rgba(0,0,0,.6); color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.55; text-align: left; white-space: normal; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .16s, transform .16s, visibility .16s; pointer-events: none; }
.hint:hover .hint-bubble, .hint:focus .hint-bubble { opacity: 1; visibility: visible; transform: translateY(0); }

/* Vizualus kelių variantų pasirinkimas */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 96px; padding: 15px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); text-align: center; transition: border-color .18s var(--ease), background .18s, transform .18s var(--ease), box-shadow .18s; }
.pick:hover .pick-body { border-color: var(--border-light); background: var(--hover); }
.pick input:checked + .pick-body { border-color: #f1f1f1; background: #f1f1f1; }
.pick input:focus-visible + .pick-body { box-shadow: 0 0 0 3px var(--pick-ring); }
.pick-mark { display: block; }
.pick-mark svg { display: block; width: 26px; height: 26px; }
.pick-icon { color: var(--ink); }
.pick-flag { font-size: 25px; line-height: 1.1; }
.pick-code { color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: 1px; line-height: 1.1; }
.pick input:checked + .pick-body .pick-code { color: #0f0f0f; }
.pick-grid-compact { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); }
.pick-compact .pick-body { min-height: 62px; padding: 11px 8px; gap: 3px; }
.pick-name { color: var(--muted); font-size: 13px; font-weight: 600; }
.pick-sub { color: var(--dim); font-size: 10px; font-weight: 500; }
.pick input:checked + .pick-body .pick-sub { color: #606060; }
.pick input:checked + .pick-body .pick-name { color: #0f0f0f; }
.pick input:checked + .pick-body .pick-icon { color: #0f0f0f !important; }
.pick-check { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #0f0f0f; font-size: 10px; font-weight: 700; opacity: 0; transform: scale(.6); transition: .16s; }
.pick input:checked ~ .pick-check { opacity: 1; transform: scale(1); }

/* Įkainio už 1000 peržiūrų slankiklis */
.cpm-block { gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.cpm-head { display: flex; align-items: baseline; gap: 9px; }
.cpm-value { font-variant-numeric: tabular-nums; color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.cpm-unit { color: var(--muted); font-size: 13px; font-weight: 500; }
.cpm-track { padding: 8px 0; }
.cpm-track input[type=range] { width: 100%; height: 7px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--surface-3) 0 var(--band-start), rgba(43,166,64,.5) var(--band-start) var(--band-end), var(--surface-3) var(--band-end) 100%); appearance: none; -webkit-appearance: none; cursor: pointer; }
.cpm-track input[type=range]:focus { box-shadow: none; }
.cpm-track input[type=range]:focus-visible { box-shadow: 0 0 0 3px var(--pick-ring); }
.cpm-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border: 3px solid #0f0f0f; border-radius: 50%; background: #fff; box-shadow: 0 2px 9px rgba(0,0,0,.55); cursor: grab; }
.cpm-track input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #0f0f0f; border-radius: 50%; background: #fff; box-shadow: 0 2px 9px rgba(0,0,0,.55); cursor: grab; }
.cpm-scale { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 11px; font-weight: 500; }
.cpm-scale-good { color: #7ee08c; }
.cpm-note { padding: 11px 13px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 9px; font-size: 12px; font-weight: 500; line-height: 1.55; }
.cpm-note-warn { border-left-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.cpm-note-good { border-left-color: var(--ok); background: var(--ok-soft); color: #7ee08c; }
.cpm-note-info { border-left-color: var(--link); background: rgba(62,166,255,.12); color: var(--link); }

/* Kampanijos laikotarpio pasirinkimas */
.range-block { gap: 10px; }
.range-cal { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.range-io { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.range-cell { display: grid; gap: 2px; min-width: 128px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .16s; }
.range-cell > span { color: var(--dim); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.range-cell strong { color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.range-cell.range-active { border-color: #f1f1f1; }
.range-clear { margin-left: auto; }
.range-arrow { color: var(--dim); font-size: 17px; }
.cal-months { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cal-nav { position: absolute; top: -4px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; transition: .16s; }
.cal-nav:hover:not(:disabled) { background: var(--hover); border-color: var(--border-light); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-nav-prev { left: 0; }
.cal-nav-next { right: 0; }
.cal-title { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-week { margin-bottom: 2px; }
.cal-week span { padding: 4px 0; color: var(--dim); font-size: 10px; font-weight: 600; text-transform: uppercase; text-align: center; }
.cal-day { display: grid; place-items: center; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .14s; }
button.cal-day:hover { background: var(--hover); }
.cal-empty, .cal-day.is-off { cursor: default; }
.cal-day.is-off { color: var(--dim); opacity: .45; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--border-light); }
.cal-day.in-range, .cal-day.in-preview { background: var(--hover); }
.cal-day.is-start, .cal-day.is-end { background: #f1f1f1; color: #0f0f0f; font-weight: 700; }
button.cal-day.is-start:hover, button.cal-day.is-end:hover { background: #fff; }
.cal-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.cal-presets > span { color: var(--dim); font-size: 12px; font-weight: 500; }
.cal-preset { padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; transition: .16s; }
.cal-preset:hover { background: var(--hover); color: var(--ink); }
.cal-preset.active { background: #f1f1f1; border-color: #f1f1f1; color: #0f0f0f; }
.range-foot { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; }
.range-foot .icon { width: 15px; height: 15px; }
.range-foot strong { color: #fff; }
.range-ok { background: var(--ok-soft); color: #7ee08c; }
.range-error { background: var(--danger-soft); }
.range-error .error-text { margin: 0; }
.range-ok strong { color: #7ee08c; }

/* Peržiūrų atnaujinimo mygtukas */
.refresh-note { color: var(--dim); font-size: 11px; font-weight: 500; white-space: nowrap; }

/* Biudžeto išnaudojimas */
.progress-warn > span { background: var(--warn); }
.progress-full > span { background: var(--brand-bright); }
.progress-legend { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 500; }
.progress-legend strong { color: #fff; }
td .progress { margin-top: 6px; }
td .cell-title + .progress { margin-top: 5px; }

/* Antisukčiavimo detalės */
.fraud-detail { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.5; white-space: pre; overflow-x: auto; }

/* Kampanijos apibendrinimas ir apmokėjimas */
.checkout-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--surface-2); }
.checkout-total span { color: var(--muted); font-size: 12px; font-weight: 500; }
.checkout-total strong { font-variant-numeric: tabular-nums; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.notice .icon { width: 15px; height: 15px; margin-right: 4px; vertical-align: -3px; }


/* Sąskaitos faktūros lapas — šviesus ir ekrane, ir spausdinant. */
.invoice-sheet { max-width: 800px; padding: 40px 44px; border-radius: 14px; background: #fff; color: #1a1a1a; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.invoice-kind { color: #666; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.invoice-no { margin: 4px 0; color: #111; font-size: 22px; letter-spacing: -.01em; }
.invoice-date { color: #555; font-size: 13px; }
/* Logotipo failas turi platų permatomą apvadą – apkerpame tokiu pat santykiu
   kaip šoninio meniu .brand-logo (151×44 langas, 190px paveikslas, -26/-78). */
.invoice-logo { position: relative; width: 172px; height: 50px; overflow: hidden; flex: none; }
.invoice-logo img { position: absolute; top: -89px; left: -30px; width: 216px; height: 216px; max-width: none; display: block; }
.btn-block { width: 100%; }

/* Checkout puslapis — kompaktiškas, telpa be scroll. Kaina pateikiama kvito
   principu: smulkios eilutės, o total — žalias (teigiamas patvirtinimas),
   vidutinio dydžio, kad kaina „nešauktų". Vertės akcentas – peržiūros. */
.checkout-grid { grid-template-columns: minmax(0,1.25fr) minmax(320px,1fr); gap: 16px; align-items: start; }
.checkout-page .steps { margin-bottom: 16px; }
.checkout-page .page-head { margin-bottom: 14px; }
.checkout-page .page-head h1 { font-size: 24px; }
.checkout-page .detail-section { padding: 18px 20px; }
.checkout-page .info-row { padding: 7px 0; }
.checkout-page .section-head { margin-bottom: 10px; }
/* Vertės akcentas stovi TIESIAI po „Mokėti“: už ką mokama, matoma kartu su suma,
   o ne kitame puslapio gale. */
.checkout-value { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); color: #7ee08c; font-size: 13px; line-height: 1.35; }
.checkout-value .icon { width: 15px; height: 15px; flex: none; }
.checkout-value strong { color: #7ee08c; font-variant-numeric: tabular-nums; }
/* Logotipo pasirinkimas stovi virš kvito eilučių ir yra nuo jų atskirtas —
   tai vienintelis dalykas šiame bloke, kurį verslas dar gali pakeisti. */
.pay-option { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
/* Perjungus logotipą kvitas nebeperpiešiamas visas — pasikeitusios eilutės
   trumpai persilieja, kad akis pastebėtų naują sumą be ekrano mirktelėjimo. */
#payReceipt.value-flash .pay-row, #payReceipt.value-flash .pay-total, #payReceipt.value-flash .checkout-value { animation: payLineIn .28s var(--ease) both; }
#payReceipt.value-flash .pay-row:nth-child(2) { animation-delay: .03s; }
#payReceipt.value-flash .pay-row:nth-child(3) { animation-delay: .06s; }
#payReceipt.value-flash .pay-row:nth-child(4) { animation-delay: .09s; }
#payReceipt.value-flash .pay-total { animation-delay: .12s; }
@keyframes payLineIn { from { opacity: .25; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.pay-option .field-label { margin-bottom: 8px; }
.pay-option .pick-grid-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); font-size: 13.5px; }
.pay-row strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-minus strong { color: #7ee08c; }
/* PVM juosta: PVM, suma be jo ir su juo — vienoje horizontalioje eilutėje tiesiai
   virš „Mokėti“, kad abu skaičiai būtų matomi vienu žvilgsniu. */
.pay-vat { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-top: 12px; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--border); }
.pay-vat-cell { display: grid; gap: 2px; padding: 9px 11px; background: var(--surface-2); }
.pay-vat-cell span { color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.pay-vat-cell strong { color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-vat-cell:last-child strong { color: #fff; }
.pay-note { margin-top: 8px; color: var(--dim); font-size: 11.5px; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.pay-total span { color: var(--ink); font-size: 14px; font-weight: 600; }
.pay-total strong { color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pay-billing { margin-top: 12px; color: var(--dim); font-size: 12px; }
.pay-billing strong { color: var(--muted); font-weight: 600; }
.pay-trust { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; color: var(--dim); font-size: 12px; }
.pay-trust .icon { width: 14px; height: 14px; }
/* Inkarinė kaina: perbrauktas standartinis tarifas šalia tikrojo — sąmoningai
   blankus, kad tik užsimintų apie sutaupymą, bet nekonkuruotų su tikra kaina. */
.price-anchor { color: var(--dim); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; opacity: .55; }
.price-anchor-lg { font-size: 14px; }
.pay-total-value { display: inline-flex; align-items: baseline; gap: 7px; }
.pay-total-value strong { color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Biudžetas ir mokėtina suma – greta: kairėje įvedama, dešinėje iškart matyti,
   kiek tai kainuos. Išskaidymas atsidaro po „?“, kad neužgožtų pačios sumos. */
/* Suma – juosta PO biudžeto lauku per visą plotį: šone ji niekaip nesusilygiuoja
   su lauku, nes virš lauko dar yra jo pavadinimas. Kairėje – ką rodome,
   dešinėje – kiek. */
.budget-row { display: grid; gap: 12px; }
.pay-box { display: grid; gap: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.pay-box.is-empty { border-style: dashed; }
.pay-box-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pay-box-head { display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 12px; font-weight: 600; }
.pay-box-sum { display: flex; align-items: baseline; gap: 7px; }
.pay-box-value { color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.25; }
.pay-box.is-empty .pay-box-value { color: var(--dim); }
.pay-box.is-covered .pay-box-value { color: #7ee08c; }
.pay-box-note { color: var(--dim); font-size: 11.5px; }
.pay-box-hint { flex: none; width: 18px; height: 18px; padding: 0; border: 1px solid var(--border-light); border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .14s, color .14s, border-color .14s; }
.pay-box-hint:hover, .pay-box-hint.is-open { background: var(--hover); color: var(--ink); border-color: var(--border-light); }
.pay-box-rows { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); animation: fieldReveal .2s var(--ease) both; }
.pay-box-rows .pay-row { padding: 3px 0; font-size: 12px; }
.pay-box-note-row { margin-top: 5px; color: var(--dim); font-size: 11px; line-height: 1.5; }

/* Formos eiga: dar neprieinami blokai lieka matomi, bet pilki ir neliečiami —
   akis mato, kiek liko, o pirštai negali užbėgti į priekį. */
.flow-step { margin-bottom: 24px; transition: opacity .22s var(--ease), filter .22s var(--ease); }
.flow-step:last-child { margin-bottom: 0; }
.flow-step.is-locked { filter: grayscale(1); opacity: .34; pointer-events: none; user-select: none; }
.flow-step.is-locked * { cursor: default !important; }

/* Nuorodų dėžė: pavadinimas, adresas ir „Pridėti“ vienoje eilutėje. */
.link-adder { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto; gap: 10px; align-items: start; }
.link-adder .btn { min-height: 44px; white-space: nowrap; }
.link-adder-help { margin-top: -2px; }
.link-adder-help b { color: var(--muted); font-weight: 600; }
.link-rows { display: grid; gap: 8px; margin-top: 4px; }
.link-rows:empty { display: none; }
.link-empty { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 11px; color: var(--dim); font-size: 13px; }
.link-empty .icon { width: 17px; height: 17px; }

/* Reikalavimų redaktorius. */
.rich-editor { border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); overflow: hidden; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.rich-editor:focus-within { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.rich-editor.invalid { border-color: var(--danger); background: var(--danger-soft); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--border); background: var(--surface-3); }
.rich-btn { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; transition: background .14s, color .14s, border-color .14s; }
.rich-btn:hover { background: var(--hover); color: var(--ink); border-color: var(--border); }
.rich-input { min-height: 168px; padding: 12px 13px; color: var(--ink); font-size: 14px; line-height: 1.65; outline: 0; overflow-y: auto; }
.rich-input:empty::before { content: attr(data-placeholder); color: #656565; }
.rich-input p { margin: 0 0 8px; }
.rich-input ul, .rich-input ol { margin: 0 0 8px; padding-left: 22px; }
.rich-input li { margin: 3px 0; }
/* Tas pats tekstas, kaip jį mato kūrėjas briefe. */
.rich-text { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.rich-text p { margin: 0 0 8px; }
.rich-text ul, .rich-text ol { margin: 0 0 8px; padding-left: 22px; }
.rich-text strong, .rich-text b { color: var(--ink); font-weight: 600; }
.rich-text a { color: var(--link, #6ea8ff); }

/* Sėkmės ekranas po kampanijos paskelbimo — be papildomų CTA. */
.success-page { max-width: 520px; margin: 8vh auto 0; text-align: center; }
.success-page h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.02em; }
.success-page p { margin: 0; color: var(--muted); line-height: 1.6; }
.success-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--ok-soft); color: #7ee08c; animation: successPop .35s var(--ease) both; }
.success-check .icon { width: 34px; height: 34px; }
@keyframes successPop { from { opacity: 0; transform: scale(.6); } }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.invoice-parties h4 { margin: 0 0 6px; color: #888; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.invoice-parties strong { display: block; margin-bottom: 3px; color: #111; font-size: 14px; }
.invoice-parties span { display: block; color: #444; font-size: 12.5px; line-height: 1.5; }
.invoice-table { width: 100%; margin-bottom: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.invoice-table th { padding: 9px 10px; border-bottom: 2px solid #111; color: #555; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; background: none; }
.invoice-table th:last-child, .invoice-table td:last-child { text-align: right; }
.invoice-table td { padding: 10px; border-bottom: 1px solid #e5e5e5; color: #222; font-size: 13.5px; }
/* Sąskaitos lapas nėra `.table-wrap`, todėl bendrasis `th, td { nowrap }` čia
   išstumdavo ilgą paslaugos pavadinimą už lapo krašto siaurame ekrane. */
.invoice-table th, .invoice-table td { white-space: normal; }
.invoice-table th:last-child, .invoice-table td:last-child { white-space: nowrap; }
.invoice-totals { display: grid; gap: 6px; justify-items: end; margin-bottom: 22px; }
.invoice-totals > div { display: flex; gap: 28px; color: #444; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.invoice-totals strong { min-width: 110px; color: #111; font-weight: 600; text-align: right; }
.invoice-grand { padding-top: 8px; border-top: 2px solid #111; }
.invoice-grand span, .invoice-grand strong { color: #111; font-size: 16px; font-weight: 700; }
.invoice-note { margin-top: 10px; color: #666; font-size: 12px; line-height: 1.5; }
@media print {
  body * { visibility: hidden; }
  .invoice-sheet, .invoice-sheet * { visibility: visible; }
  .invoice-sheet { position: absolute; top: 0; left: 0; width: 100%; max-width: none; padding: 10px 4px; border-radius: 0; }
}

/* Pirmojo karto checklist verslo dashboard'e. */
.start-steps { max-width: 720px; }
.start-step { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.start-step:last-child { border-bottom: 0; padding-bottom: 4px; }
.start-step:first-child { padding-top: 4px; }
.start-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: 14px; font-weight: 700; }
.start-step.done .start-num { background: var(--ok-soft); color: #7ee08c; }
.start-copy h3 { margin: 0 0 3px; font-size: 15px; }
.start-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.start-action { margin-left: auto; align-self: center; flex: none; }

/* Vartotojo kodo laukas: grotelės rodomos, bet ne rašomos. */
.prefixed-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.prefixed-input .input-prefix { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--border); background: var(--surface-3); color: var(--muted); font-weight: 700; }
.prefixed-input input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; }
.prefixed-input:focus-within { border-color: var(--brand); }
/* Verslo komentaras užduočių lentelėje. */

/* ---------------------------------------------------------------------------
   Sklandūs perėjimai formose
   --------------------------------------------------------------------------- */
/* Anksčiau kiekvienas pasirinkimas perpiešdavo visą puslapį ir ekranas
   mirktelėdavo. Dabar keičiamas tik pasikeitęs gabalas, o šios animacijos
   parodo, kad kažkas pasikeitė — švelniai, be šuolio. */
@keyframes fieldReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.field-reveal:not(:empty) { animation: fieldReveal .24s var(--ease) both; }

/* Žingsnio turinys įslenka, o ne šokteli — pereinant tarp kampanijos kūrimo
   žingsnių tai vienintelis judesys, kurį mato vartotojas. */
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.checkout-page .onboarding-body, .checkout-page .checkout-grid { animation: stepIn .28s var(--ease) both; }

/* Klaidos pranešimas atsiranda kartu su lauku, o ne staiga. */
.field-invalid .error-text, .check-row-invalid { animation: fieldReveal .2s var(--ease) both; }
#materialsError:empty { display: none; }

/* Pasirinkimo kortelės jau turi perėjimus – lieka tik varnelė ir paspaudimo
   atsakas, kad pasirinkimas jaustųsi iš karto. */
.pick-body { will-change: transform; }
.pick:active .pick-body { transform: scale(.985); }
.pick input:checked + .pick-body { transform: none; }

/* Judesys yra papuošimas: kam jis trukdo, tam jo nerodome. */
@media (prefers-reduced-motion: reduce) {
  .field-reveal:not(:empty),
  .checkout-page .onboarding-body,
  .checkout-page .checkout-grid,
  .field-invalid .error-text,
  .check-row-invalid,
  #payReceipt.value-flash .pay-row,
  #payReceipt.value-flash .pay-total,
  #payReceipt.value-flash .checkout-value,
  #earnCalcOut.value-flash .calc-amount { animation: none; }
  .pick:active .pick-body { transform: none; }
  .media-edit.is-busy, .offer-logo-edit.is-busy { animation: none; opacity: .5; }
}

/* ---------------------------------------------------------------------------
   SIAURI EKRANAI
   ---------------------------------------------------------------------------
   Visos ekrano pločio taisyklės laikomos FAILO GALE. Anksčiau jos stovėjo
   viduryje, o po jų einantys blokai (.checkout-grid, .pay-vat, .link-adder,
   .invoice-parties) tokio pat svorio selektoriais tyliai grąžindavo stalinio
   kompiuterio tinklelį — telefone puslapis slinkdavo į šoną. Naujas mobilus
   niuansas rašomas ČIA, po visomis įprastomis taisyklėmis.
   ------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .campaign-grid, .people-grid, .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-grid, .detail-grid-even, .checkout-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .campaign-banner-wide { aspect-ratio: 100 / 34; }
  /* Apmokėjimo blokas – pirmas: telefone svarbiausia suma ir mygtukas, o ne
     peržiūra, kurią galima paslinkti žemiau. */
  .checkout-grid > aside { order: -1; }
}
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .mobile-topbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 14px; border-bottom: 1px solid var(--border); background: rgba(10,10,10,.95); backdrop-filter: blur(10px); }
  .mobile-topbar .brand { padding: 0; }
  .mobile-menu { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; }
  .sidebar.mobile-open { display: flex; width: min(300px,88vw); box-shadow: 20px 0 70px rgba(0,0,0,.7); }
  .main { margin: 0; padding: 22px 16px 48px; }
  .page-head { flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .metric-grid, .campaign-grid, .people-grid, .portfolio-grid, .choice-grid, .form-grid, .split { grid-template-columns: 1fr; }
  /* Mokesčio juosta ir žingsniai siaurame ekrane – vienas po kito. „−“ ir „=“
     lieka matomi, tik pasisuka į eilučių tarpus. */
  .fee-strip, .how-strip { grid-template-columns: 1fr; }
  .fee-op { padding: 2px 0; }
  .preview-stage { max-width: none; }
  .link-adder { grid-template-columns: 1fr; }
  .pay-vat { grid-template-columns: 1fr; }
  .budget-row { grid-template-columns: 1fr; }
  .admin-user-info { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .steps { overflow-x: auto; grid-template-columns: repeat(var(--step-count,5),minmax(105px,1fr)); }
  .onboarding-actions { grid-template-columns: 1fr 1fr; }
  .onboarding-actions .save-later, .onboarding-actions .save-state { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .info-row { grid-template-columns: 1fr; gap: 3px; }
  .wizard-summary { grid-template-columns: 1fr; }
  .mobile-only { display: inline-flex; }
  /* Sąskaita faktūra telefone: šalys viena po kitos, siauresni paraščių tarpai. */
  .invoice-sheet { padding: 24px 18px; }
  .invoice-head { flex-direction: column; }
  .invoice-parties { grid-template-columns: 1fr; gap: 16px; }
  .invoice-totals > div { gap: 16px; }
  .submission-summary { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); }
  .calc-field { width: 100%; }
  .calc-controls { align-items: stretch; }
  /* Pokalbio burbulas nebeuždengia apatinių puslapio mygtukų. */
  .support-chat-bubble { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  /* iOS Safari priartina puslapį, kai fokusuojamas laukas su mažesniu nei 16 px
     šriftu, ir po to jo nebeatitolina — dėl to kiekviena forma telefone
     „iššokdavo“ iš ekrano. */
  input, select, textarea { font-size: 16px; }
  /* Piršto taikinys negali būti 32 px. */
  .btn-sm { min-height: 36px; }
  .table-actions { gap: 8px; }
}
@media (max-width: 470px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 112px; }
  .onboarding { padding: 18px 12px 30px; }
  .onboarding-card { padding: 17px; }
  .onboarding-actions { display: flex; flex-wrap: wrap; }
  .onboarding-actions .save-later, .onboarding-actions .save-state { order: 3; width: 100%; justify-content: center; }
  .onboarding-actions > .btn { flex: 1; }
  .onboarding-actions .action-pair { flex: 1 1 100%; }
  .onboarding-actions .action-pair .btn { flex: 1; }
  .page-head .btn, .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .file-row { grid-template-columns: 35px minmax(0,1fr); }
  .file-row > .table-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .range-arrow { display: none; }
  .range-io .range-cell { flex: 1; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-months .cal-month:last-child { display: none; }
  .cpm-block { padding: 14px; }
  .cpm-value { font-size: 25px; }
  .cpm-scale { flex-wrap: wrap; row-gap: 4px; }
  .cpm-scale-good { order: 3; width: 100%; text-align: center; }
  .checkout-total { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* Siauriausiame ekrane kortelės ir kvitas kvėpuoja mažesnėmis paraštėmis. */
  .main { padding: 18px 12px 44px; }
  .panel, .detail-section, .checkout-page .detail-section { padding: 16px; }
  .offer-card { gap: 11px; padding: 15px; }
  .offer-banner-link { margin: -15px -15px 0; }
  .pay-option .pick-grid-compact { grid-template-columns: 1fr; }
  .pay-row { font-size: 12.5px; }
  /* Telefone modalas – apatinis lakštas: mygtukai lieka po nykščiu, o turinys
     gauna visą ekrano plotį vietoj 20 px paraščių iš abiejų pusių. */
  .modal-backdrop { padding: 28px 0 0; place-items: end stretch; }
  .modal, .modal-sm, .modal-lg, .modal-tight { width: 100%; max-height: 100%; border-radius: 16px 16px 0 0; }
  .modal-head { padding: 15px 16px; }
  .modal-body { padding: 16px; }
  .modal-actions { padding: 12px 16px; }
  .modal-actions .btn { flex: 1 1 auto; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .comment-actions { flex-wrap: wrap; }
  /* Pradžios žingsnio mygtukas nebespaudžia teksto į vieną raidę per eilutę. */
  .start-step { flex-wrap: wrap; }
  .start-action { width: 100%; margin-left: 48px; }
  .start-action .btn { width: 100%; }
  .invoice-totals > div { width: 100%; justify-content: space-between; }
  /* Kortelės antraštė: logotipas, pavadinimas, o užuomina – į naują eilutę. */
  .offer-card-edit .offer-head { flex-wrap: wrap; }
  .offer-logo-hint, .media-reset { margin-left: 0; }
  .media-drop-cta { padding: 8px 13px; font-size: 12.5px; }
  .media-drop-note { font-size: 10px; }
}
