/* ============================================================
   NEXORA DEVELOPMENT — dizaino sistema
   Dev-terminalo estetika: gilus indigo fonas, violetinis + teal
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;450;500;600&display=swap');

:root {
  --bg:        #0a0c13;
  --bg-2:      #0e111b;
  --surface:   #12151f;
  --surface-2: #161a26;
  --border:    #222739;
  --border-2:  #2c3350;
  --text:      #e7e9f3;
  --muted:     #8a91ab;
  --faint:     #5a6180;

  --violet:    #6d5ef5;
  --violet-2:  #8a7dff;
  --teal:      #34e1c4;
  --amber:     #f2b64c;
  --red:       #f2626e;
  --green:     #34e1c4;

  --glow: 0 0 0 1px rgba(109,94,245,.35), 0 12px 40px -12px rgba(109,94,245,.55);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(109,94,245,.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(52,225,196,.08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* faint grid overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none; z-index: 0;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; margin: 0; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.faint { color: var(--faint); }
code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 6px; font-size: .85em;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--violet-2);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--violet); opacity: .7;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: .18s ease; text-align: center;
}
.btn:hover { border-color: var(--violet); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
  border-color: transparent; color: #0a0c13; font-weight: 600;
  box-shadow: 0 8px 26px -10px rgba(109,94,245,.7);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 30px -8px rgba(109,94,245,.8); }
.btn-ghost { background: transparent; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-discord { background: #5865f2; border-color: transparent; color: #fff; font-weight: 600; }
.btn-discord:hover { filter: brightness(1.08); border-color: transparent; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: 18px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--violet-2), var(--teal));
  display: grid; place-items: center; color: #0a0c13; font-family: var(--font-mono); font-weight: 700;
  box-shadow: 0 6px 18px -6px rgba(109,94,245,.7);
}
.brand small { color: var(--faint); font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; }

.hero { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 40px 0 80px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; margin: 20px 0 22px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--violet-2), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 16.5px; max-width: 46ch; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note { margin-top: 26px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- Terminal card (signature) ---------- */
.terminal {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), var(--glow);
  overflow: hidden;
}
.terminal-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); background: rgba(0,0,0,.2);
}
.terminal-head .lights { display: flex; gap: 7px; }
.terminal-head .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-head .lights i:nth-child(1){ background:#ff5f57; }
.terminal-head .lights i:nth-child(2){ background:#febc2e; }
.terminal-head .lights i:nth-child(3){ background:#28c840; }
.terminal-head .title { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-left: 6px; }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; min-height: 250px; }
.tline { display: block; white-space: pre-wrap; }
.tline .p { color: var(--teal); }         /* prompt */
.tline .k { color: var(--violet-2); }      /* keyword */
.tline .ok { color: var(--teal); }
.tline .err { color: var(--red); }
.tline .c { color: var(--faint); }         /* comment */
.cursor { display:inline-block; width:9px; height:16px; background: var(--teal); vertical-align:-2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Verification overlay ---------- */
.verify-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,8,13,.86); backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.verify-overlay.show { opacity: 1; pointer-events: auto; }
.verify-box { width: min(520px, 92vw); text-align: center; }
.verify-ring {
  width: 104px; height: 104px; margin: 0 auto 26px; position: relative;
}
.verify-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.verify-ring .track { fill: none; stroke: var(--border-2); stroke-width: 6; }
.verify-ring .prog {
  fill: none; stroke: url(#vg); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 302; stroke-dashoffset: 302;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1);
}
.verify-ring.done .prog { stroke-dashoffset: 0; }
.verify-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 40px; color: var(--teal); opacity: 0; transform: scale(.5);
  transition: .4s cubic-bezier(.2,1.4,.4,1);
}
.verify-ring.done .verify-check { opacity: 1; transform: scale(1); }
.verify-box h2 { font-size: 26px; margin-bottom: 8px; }
.verify-box .steps { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: left; margin-top: 22px; }
.verify-box .steps div { opacity: 0; transform: translateX(-6px); transition: .3s; padding: 3px 0; }
.verify-box .steps div.in { opacity: 1; transform: none; }
.verify-box .steps .tick { color: var(--teal); }

/* ---------- States (errors on landing) ---------- */
.notice {
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 20px 22px; background: var(--surface); margin-top: 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.notice.warn { border-color: rgba(242,182,76,.4); background: linear-gradient(180deg, rgba(242,182,76,.06), transparent); }
.notice .ic { font-size: 22px; line-height: 1; }
.notice h3 { font-size: 16px; margin-bottom: 5px; }

/* ---------- Feature strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 70px; }
.strip .cell { background: var(--surface); padding: 22px; }
.strip .cell .n { font-family: var(--font-mono); color: var(--violet-2); font-size: 12px; letter-spacing: .1em; }
.strip .cell h4 { font-family: var(--font-display); margin: 8px 0 5px; font-size: 15.5px; }
.strip .cell p { color: var(--muted); font-size: 13px; margin: 0; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,12,19,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.app-nav { display: flex; align-items: center; gap: 6px; }
.app-nav a {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding: 7px 13px; border-radius: 8px; cursor: pointer;
}
.app-nav a:hover { color: var(--text); background: var(--surface-2); }
.app-nav a.active { color: var(--text); background: var(--surface-2); }

.userchip {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--border); border-radius: 40px; background: var(--surface);
}
.userchip img { width: 30px; height: 30px; border-radius: 50%; }
.userchip .meta { line-height: 1.15; }
.userchip .meta b { font-size: 13px; }
.userchip .meta .id { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 20px; text-transform: uppercase; font-weight: 600;
}
.badge.owner { background: linear-gradient(135deg, var(--violet), var(--teal)); color: #0a0c13; }
.badge.client { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }

.app-main { padding: 34px 0 90px; }
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.page-title h1 { font-size: 28px; }
.section-sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--border);
}
.panel-head h3 { font-size: 15px; display: flex; align-items: center; gap: 9px; }
.panel-head .count { font-family: var(--font-mono); font-size: 11px; color: var(--faint); background: var(--surface-2); padding: 2px 8px; border-radius: 20px; }
.panel-body { padding: 8px; }
.panel-pad { padding: 20px; }

/* ---------- Request rows ---------- */
.req {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px; border-radius: 10px; cursor: pointer; transition: .14s;
  border: 1px solid transparent;
}
.req:hover { background: var(--surface-2); border-color: var(--border); }
.req .id { font-family: var(--font-mono); font-size: 12px; color: var(--faint); min-width: 34px; }
.req .main { flex: 1; min-width: 0; }
.req .main b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req .main .sub { font-size: 12px; color: var(--muted); }
.req .amt { font-family: var(--font-mono); font-size: 13px; }

.status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.requested { color: var(--amber); background: rgba(242,182,76,.1); }
.status.accepted  { color: var(--teal);  background: rgba(52,225,196,.1); }
.status.rejected  { color: var(--red);   background: rgba(242,98,110,.1); }
.status.cancelled { color: var(--faint); background: rgba(90,97,128,.14); }
.status.pending   { color: var(--amber); background: rgba(242,182,76,.1); }
.status.paid      { color: var(--teal);  background: rgba(52,225,196,.1); }
.status.refunded  { color: var(--violet-2); background: rgba(109,94,245,.12); }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field span { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; margin-bottom: 7px; }
.input, textarea.input, select.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text); padding: 11px 14px;
  font-family: var(--font-body); font-size: 14px; transition: .15s;
}
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,94,245,.18); }
textarea.input { resize: vertical; min-height: 90px; font-family: var(--font-body); }
.input-group { position: relative; }
.input-group .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); color: var(--faint); font-size: 13px; }

.pay-hint {
  margin-top: 4px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(109,94,245,.08), transparent);
  border: 1px solid var(--border-2); font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.pay-hint b { color: var(--text); font-family: var(--font-mono); }

/* ---------- Discounts ---------- */
.discount {
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px;
  background: linear-gradient(110deg, rgba(52,225,196,.06), transparent);
  display: flex; align-items: center; gap: 14px;
}
.discount .pct { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--teal); min-width: 62px; }
.discount .txt b { font-size: 14px; }
.discount .txt p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--faint); }
.empty .ic { font-size: 30px; opacity: .6; margin-bottom: 10px; }
.empty p { margin: 0; font-size: 13.5px; }

/* ---------- Detail / thread ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 4px; }
.msg { padding: 10px 14px; border-radius: 12px; max-width: 82%; font-size: 13.5px; }
.msg .who { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); margin-bottom: 3px; }
.msg.them { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: linear-gradient(180deg, rgba(109,94,245,.9), var(--violet)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.staff { background: linear-gradient(180deg, rgba(52,225,196,.16), rgba(52,225,196,.06)); border: 1px solid rgba(52,225,196,.3); align-self: flex-start; }

.composer { display: flex; gap: 8px; margin-top: 12px; }
.composer .input { flex: 1; }

/* ---------- Admin table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 500; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.table tr:hover td { background: var(--surface-2); }
.table .mono { font-size: 12px; color: var(--muted); }
.copy { cursor: pointer; color: var(--violet-2); }
.copy:hover { text-decoration: underline; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(6,8,13,.7); backdrop-filter: blur(6px); z-index: 60; display: none; place-items: center; padding: 20px; }
.modal-bg.show { display: grid; }
.modal { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); max-height: 88vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 17px; }
.modal-head .x { cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.modal-body { padding: 22px; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { font-family: var(--font-mono); font-size: 13px; padding: 12px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: 0 14px 40px -14px rgba(0,0,0,.7); animation: toastIn .3s; }
.toast.ok { border-color: rgba(52,225,196,.4); }
.toast.err { border-color: rgba(242,98,110,.4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Tabs ---------- */
.tabs { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Pay page ---------- */
.pay-body { display: grid; place-items: center; min-height: 100vh; }
.pay-card { width: min(420px, 92vw); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--glow); }
.pay-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--amber); border: 1px solid rgba(242,182,76,.4); padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 18px; }
.pay-card h1 { font-size: 24px; margin-bottom: 4px; }
.pay-amount { font-family: var(--font-display); font-weight: 700; font-size: 48px; margin: 22px 0; }
.pay-amount span { font-size: 20px; color: var(--muted); }

/* ============================================================
   ATSILIEPIMAI — slenkanti juosta + zvaigzdutes
   ============================================================ */
.stars { display: inline-flex; gap: 2px; font-size: 14px; line-height: 1; color: var(--amber); letter-spacing: 1px; }
.stars .off { color: var(--border-2); }

/* Slenkanti juosta apacioje */
.marquee {
  position: relative;
  margin-top: 46px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-label {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint); margin: 0 24px 16px;
}
.marquee-label::before { content: '★'; color: var(--amber); letter-spacing: 0; }
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.review-card {
  flex: 0 0 auto; width: 300px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.review-card .rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-card .rc-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.review-card .rc-body { color: var(--muted); font-size: 13px; line-height: 1.55; }
.review-card .rc-body::before { content: '“'; color: var(--violet-2); font-weight: 700; margin-right: 2px; }

/* Zvaigzduciu pasirinkimas formoje */
.star-pick { display: inline-flex; gap: 6px; font-size: 26px; cursor: pointer; user-select: none; }
.star-pick span { color: var(--border-2); transition: .12s; }
.star-pick span.on { color: var(--amber); transform: scale(1.05); }
.star-pick span:hover { color: var(--amber); }

/* Atsiliepimu tinklelis (tab'e) */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.review-grid .review-card { width: auto; position: relative; }
.review-grid .rc-del { position: absolute; top: 10px; right: 12px; cursor: pointer; color: var(--faint); font-size: 16px; }
.review-grid .rc-del:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .grid-2 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .app-nav a { padding: 7px 10px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .userchip .meta { display: none; }
  .hero h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
