/* ===== Тема „графит“ като личния CRM на Кристиян (kristiyan.soldbyk.org), 28.11.2026 =====
   По искане на Кристиян: „не искам да е зелен, направи го като моя“. Само изглед: цветове, сенки, бутони, карти, шапка.
   Зарежда се последна (след style.css и mobile.css). Връщане към зеленото: махни реда с tema-grafit.css от index.html. */
:root {
  --bg: #09090b;
  --bg2: #0d0d10;
  --panel: #131316;
  --panel2: #1a1a1e;
  --panel3: #222227;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.13);
  --text: #f5f2ec;
  --muted: #8f8b85;
  --muted2: #6b6863;
  --orange: #E08020;
  --orange2: #F6A84E;
  --amber: linear-gradient(135deg, #FFB65E 0%, #F29433 52%, #E08020 100%);
  --good: #3ed68c;
  --bad: #ff6b5e;
  --blue: #6aa8ff;
  --r: 16px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -12px rgba(0,0,0,.7);
  --glow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -8px rgba(224,128,32,.7);
  --ease: cubic-bezier(.2,.7,.2,1);
}
html { scrollbar-color: var(--panel3) transparent; scrollbar-width: thin; }
html, body {
  background: radial-gradient(1200px 600px at 70% -200px, rgba(224,128,32,.08), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.003em;
}
h1, h2, h3, .stat .v, .price { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, Arial, sans-serif; }
::selection { background: rgba(224,128,32,.38); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(224,128,32,.55); background-clip: padding-box; }
a { color: var(--orange2); }
:focus-visible { outline-color: var(--orange); }

/* шапка: ниска и стъклена, остава горе; SoldbyK най-отгоре по средата, до него името в „хапче“ */
.brandbar {
  position: sticky; top: 0; z-index: 40;
  flex-direction: row; justify-content: center; align-items: center; gap: 14px;
  height: 64px; padding: 0 20px;
  background: rgba(9,9,11,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brandbar img { height: 42px; mix-blend-mode: lighten; }
.brandbar .client { margin: 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255,255,255,.03); }
.brandbar .client b { color: var(--text); font-weight: 600; }
.brandbar .client:empty { display: none; }

/* меню отляво */
.side {
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 40%), var(--bg2);
  border-right: 1px solid var(--line); box-shadow: none;
  scrollbar-width: thin; scrollbar-color: var(--panel3) transparent;
}
@media (min-width: 801px) {
  .shell { min-height: calc(100vh - 64px); }
  .side { width: 252px; padding: 18px 12px 14px; top: 64px; height: calc(100vh - 64px); }
}
.side a.nav { padding: 8px 12px; border-radius: 10px; margin-bottom: 1px; font-size: 14px; font-weight: 500; color: #b4afa8; transition: background .15s, color .15s; }
.side a.nav:hover { transform: none; background: rgba(255,255,255,.045); color: var(--text); }
.side a.nav.on { background: linear-gradient(90deg, rgba(224,128,32,.18), rgba(224,128,32,.04)); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 var(--orange); }
.side .sep { margin: 10px 8px; background: var(--line); }
.side .who { color: var(--muted); font-size: 12.5px; }
.navgroup { color: var(--muted2); font-weight: 700; letter-spacing: .16em; border-top-color: var(--line); }

/* съдържание */
.main { animation: pagein .28s var(--ease); }
@media (min-width: 801px) { .main { padding: 28px 36px 80px; max-width: 1440px; } }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 22px; color: #fff; }
h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 1; margin: 30px 0 12px; display: flex; align-items: center; gap: 12px; }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.modal h2, .card h2, .center h2 { text-transform: none; letter-spacing: -.01em; font-size: 19px; color: var(--text); }
.modal h2::after, .card h2::after, .center h2::after, .land h2::after, .finbox h3::after { display: none; }
.help { color: var(--muted); }

/* карти и числа: тъмен графит, къса светеща оранжева лента горе вляво */
.card, .tablewrap, .col, .modal, .opencard, .portal {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 60%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.card { padding: 18px 20px; }
.grid { gap: 14px; }
.stat { position: relative; overflow: hidden; padding: 18px 20px 16px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.stat::before { content: ""; position: absolute; left: 20px; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--amber); box-shadow: 0 0 10px rgba(224,128,32,.7); opacity: .95; }
.stat .v { font-size: 32px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; line-height: 1.15; }
.stat .l { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.stat.good .v { color: var(--good); }
.stat.orange .v { color: var(--orange2); }
.stat.bad .v { color: var(--bad); }
.stat:hover { transform: translateY(-2px); border-color: rgba(224,128,32,.35); box-shadow: var(--shadow), 0 0 0 1px rgba(224,128,32,.12); }

/* бутони: лъскаво оранжево с тъмен текст */
.btn { background: var(--amber); color: #1a0f04; border: 0; border-radius: 11px; font-weight: 650; letter-spacing: -.005em; box-shadow: var(--glow); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { background: var(--amber); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 26px -8px rgba(224,128,32,.8); }
.btn:active { transform: none; }
.btn.ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--line2); box-shadow: none; filter: none; }
.btn.ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(224,128,32,.5); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255,107,94,.5); box-shadow: none; filter: none; }
.btn.danger:hover { background: rgba(255,107,94,.1); box-shadow: none; }
.btn:disabled { opacity: .5; filter: none; transform: none; }

/* полета */
input, select, textarea { background-color: var(--bg2); border: 1px solid var(--line2); border-radius: 11px; color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.2); }
input:focus, select:focus, textarea:focus { outline: 0; background-color: var(--bg2); border-color: rgba(224,128,32,.7); box-shadow: 0 0 0 4px rgba(224,128,32,.14); }
input[type=checkbox], input[type=radio] { accent-color: var(--orange); }
select option { background: var(--panel); color: var(--text); }
label { color: var(--muted); font-weight: 500; }

/* сегменти и табове */
.seg { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.seg button { color: var(--muted); font-weight: 600; border-radius: 9px; }
.seg button:hover { color: #fff; background: rgba(255,255,255,.05); }
.seg button.on { background: var(--amber); color: #1a0f04; box-shadow: 0 4px 14px -6px rgba(224,128,32,.8); }
.tabs button { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.tabs button.on { border-color: rgba(224,128,32,.6); color: #fff; background: rgba(224,128,32,.1); }

/* таблици */
th { color: var(--muted2); border-bottom: 1px solid var(--line); letter-spacing: .1em; font-size: 11px; }
td { border-bottom-color: var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tr.click:hover td { background: rgba(224,128,32,.06); }
.badge { background: rgba(255,255,255,.04); border-color: var(--line2); }
.tag { background: rgba(255,255,255,.05); color: var(--muted); }
code { background: var(--panel2); border-color: var(--line); }
pre.payload, .codebox { background: var(--bg2); }
.wtable td:first-child, .wtable th:first-child { background: var(--panel); }
.wsum td { background: rgba(224,128,32,.12); }

/* колони (канбан) */
.col[data-group="open"] { background: linear-gradient(180deg, rgba(224,128,32,.08), rgba(224,128,32,.02)), var(--panel); border-color: rgba(224,128,32,.30); }
.col.over { outline-color: var(--orange); background: rgba(224,128,32,.12); }
.lcard { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--panel2); border: 1px solid var(--line); border-radius: 12px; }
.lcard:hover { border-color: rgba(224,128,32,.55); box-shadow: 0 10px 22px rgba(0,0,0,.5); }

/* портали, съобщения, прозорци */
.portal { padding: 22px 24px; border-radius: 18px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.portal:hover { border-color: rgba(224,128,32,.45); transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px rgba(224,128,32,.2), 0 20px 40px -20px rgba(224,128,32,.35); }
.banner { border-radius: 14px; background: linear-gradient(90deg, rgba(224,128,32,.13), rgba(224,128,32,.04)); border: 1px solid rgba(224,128,32,.3); color: #f3e6d6; }
.banner.ok { background: linear-gradient(90deg, rgba(62,214,140,.12), rgba(62,214,140,.03)); border-color: rgba(62,214,140,.35); color: #dff5ea; }
.banner.bad { background: linear-gradient(90deg, rgba(255,107,94,.13), rgba(255,107,94,.03)); border-color: rgba(255,107,94,.38); }
.toast { background: rgba(19,19,22,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(224,128,32,.5); border-radius: 12px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); }
.toast.err { border-color: var(--bad); }
.modalbg { background: rgba(5,5,7,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { box-shadow: 0 40px 100px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04); animation: pop .18s var(--ease); }
.timeline { border-left-color: var(--line2); }
.bar { background: var(--panel3); }
.bar > i { background: var(--amber); border-radius: 6px; }
.finfun .fb { background: var(--panel3); }
.plan.hot { border-color: rgba(224,128,32,.6); box-shadow: var(--shadow), 0 0 0 1px rgba(224,128,32,.4) inset, 0 20px 50px -20px rgba(224,128,32,.35); }
.stepno { border-color: var(--line2); background: var(--bg2); }

/* абонамент и Mobica експорт: оранжево вместо златно */
.mbtags { background: var(--bg2); }
.mbtag:hover { background: rgba(224,128,32,.12); }
.subcard { border-color: rgba(224,128,32,.45); }
.subplan { background: var(--panel2); border-color: rgba(224,128,32,.55); }
.subplan .btn { background: var(--amber); color: #1a0f04; }
.subplan .btn:hover { background: var(--amber); }
.subbanner { background: rgba(224,128,32,.12); border-color: rgba(224,128,32,.55); color: var(--orange2); }
.subbanner:hover { background: rgba(224,128,32,.2); color: var(--orange2); }

/* чат: оранжево вместо златно, графитни прозорци */
.chat-fab { background: var(--amber); color: #1a0f04; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -8px rgba(224,128,32,.75); }
.chat-pane { background: var(--panel); border-color: var(--line2); box-shadow: 0 24px 60px -10px rgba(0,0,0,.8); }
.chat-pop { background: var(--panel2); }
.cconv.on { background: rgba(224,128,32,.16); border-color: rgba(224,128,32,.5); }
.cmsg.tagged { outline-color: var(--orange); }

/* телефон (до 760 px): своята долна лента и менюто остават, сменени са само цветовете */
@media (max-width: 760px) {
  .brandbar { height: 58px; padding: 0 12px; flex-direction: column; justify-content: center; gap: 1px; }
  .brandbar img { height: 30px; }
  .brandbar .client { padding: 0; border: 0; background: none; font-size: 9.5px; letter-spacing: .2em; }
  .shell > .side { background: var(--bg2) !important; }
  .side a.nav { background: rgba(255,255,255,.035); color: var(--text); }
  .side a.nav.on { background: linear-gradient(90deg, rgba(224,128,32,.2), rgba(224,128,32,.05)) !important; box-shadow: inset 3px 0 0 var(--orange) !important; }
  #phonebar { background: rgba(13,13,16,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); }
  #phonebar a, #phonebar button { position: relative; }
  #phonebar .on, body.menu-open #phonebar #menubtn { background: rgba(224,128,32,.12); color: var(--orange2); }
  #phonebar .on::before { content: ""; position: absolute; top: -4px; left: 32%; right: 32%; height: 2px; border-radius: 0 0 2px 2px; background: var(--amber); box-shadow: 0 0 10px rgba(224,128,32,.7); }
  table.cards tr { background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 60%), var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
  h1 { font-size: 25px !important; }
  .stat { padding: 14px 14px 12px; }
  .stat::before { left: 14px; }
  .stat .v { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
