@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Heebo:wght@400;500;700;800;900&family=Rubik:wght@400;700&family=Assistant:wght@400;700&family=Sora:wght@600;800&family=Secular+One&family=Suez+One&family=Varela+Round&family=Bebas+Neue&display=swap');
:root{
  --bg:#060F1C; --rail:#081526; --panel:#0A182B; --panel2:#0F2039; --panel3:#142A48; --border:#1A3354;
  --accent:#38BDF8; --secondary:#2563EB; --cyan:#25F4EE; --pink:#FF3B47; --gold:#f5b942; --green:#22c55e;
  --text:#E6F4FF; --muted:#7D98B8; --sidebar-w:300px; --glow:rgba(56,189,248,.35);
}
body{ font-family:'Inter','Heebo',sans-serif; font-size:14px; background:var(--bg); color:var(--text); }
h1,h2,h3,.section-title{ font-family:'Inter','Heebo',sans-serif; font-weight:800; }
button,input,select{ font-family:'Inter','Heebo',sans-serif; }
::-webkit-scrollbar{ width:8px; height:8px; } ::-webkit-scrollbar-thumb{ background:#1B3150; border-radius:8px; }

/* buttons + inputs */
button,.btn{ border-radius:9px; padding:9px 16px; font-size:13.5px; font-weight:600; }
.btn-primary{ background:linear-gradient(135deg,var(--secondary),var(--accent)); box-shadow:0 6px 18px var(--glow); }
.btn-danger{ background:#0F2238; color:#ff9db4; border:1px solid #173556; }
.btn-ghost{ background:var(--panel2); border:1px solid var(--border); color:var(--text); }
input[type=text],input[type=password],input[type=email],textarea,select,.field select,.field input[type=text]{ background:var(--panel2); border:1px solid var(--border); border-radius:9px; padding:9px 12px; font-size:13.5px; color:var(--text); }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--glow); }

/* top bar */
header{ position:sticky; top:0; z-index:15; padding:10px 22px; padding-inline-start:calc(var(--sidebar-w) + 22px); background:rgba(6,15,28,.9); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.hd-left{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.hd-search{ display:flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:0 12px; width:240px; color:var(--muted); }
.hd-search input{ background:none; border:none; box-shadow:none; padding:9px 0; width:100%; }
.crumb{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13.5px; }
.crumb b{ color:var(--text); } .crumb .sep{ opacity:.5; }
.crumb .count{ background:rgba(56,189,248,.2); color:#9ED4FF; border-radius:999px; padding:1px 8px; font-size:11.5px; font-weight:700; }
.crumb .count:empty{ display:none; }
.connect-bar input{ width:200px; }
.status-pill{ background:var(--panel); border:1px solid var(--border); }
.size-switch{ display:flex; gap:2px; background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:3px; }
.size-switch button{ background:transparent; color:var(--muted); padding:5px 10px; border-radius:7px; font-size:12px; }
.size-switch button.active{ background:var(--accent); color:#fff; }

/* two-level sidebar: icon rail + nav panel */
.sidebar{ left:auto; right:0; width:var(--sidebar-w); display:flex; flex-direction:row; padding:0; gap:0; overflow:hidden; background:var(--panel); border:none; border-left:1px solid var(--border); }
.rail{ width:60px; flex:0 0 60px; background:var(--rail); border-inline-end:1px solid var(--border); display:flex; flex-direction:column; align-items:center; gap:8px; padding:12px 0; }
.rail-logo{ width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,var(--cyan),var(--accent) 60%,var(--secondary)); color:#060F1C; font-weight:900; font-size:18px; display:flex; align-items:center; justify-content:center; text-decoration:none; margin-bottom:10px; }
.rail-btn{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; color:var(--muted); cursor:pointer; }
.rail-btn svg{ width:20px; height:20px; }
.rail-btn:hover{ background:var(--panel2); color:var(--text); }
.rail-btn.active{ background:var(--accent); color:#fff; box-shadow:0 6px 16px var(--glow); }
.navpanel{ flex:1; display:flex; flex-direction:column; min-width:0; padding:16px 12px; }
.np-head{ display:flex; align-items:center; justify-content:space-between; padding:2px 6px 14px; font-size:11.5px; font-weight:700; letter-spacing:.12em; color:var(--muted); }
.np-head button{ background:var(--panel2); border:1px solid var(--border); color:var(--muted); padding:5px; border-radius:8px; }
.np-list{ flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.np-item{ padding:10px 12px; border-radius:10px; color:#C4DAEE; font-weight:600; cursor:pointer; border:1px solid transparent; }
.np-item:hover{ background:var(--panel2); color:#fff; }
.np-item.active{ background:rgba(56,189,248,.16); border-color:rgba(56,189,248,.45); color:#fff; }
.np-subs{ display:none; margin:2px 0 6px; padding-inline-start:14px; border-inline-start:1px solid var(--border); margin-inline-start:16px; }
body[data-tab=gallery] .np-subs{ display:block; }
.np-sub{ padding:7px 12px; color:var(--muted); font-size:13px; font-weight:500; border-radius:8px; cursor:pointer; }
.np-sub:hover,.np-sub.active{ color:#fff; background:var(--panel2); }
.np-foot{ display:flex; flex-direction:column; gap:10px; padding-top:12px; }
.np-vip{ text-align:center; padding:11px; border-radius:10px; border:1px solid rgba(245,185,66,.5); background:rgba(245,185,66,.08); color:var(--gold); font-weight:700; text-decoration:none; }
.np-help{ display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:10px; border:1px solid var(--border); background:var(--panel2); text-decoration:none; color:var(--text); }
.np-help small{ color:var(--muted); font-size:11.5px; }
body.collapsed{ --sidebar-w:60px; } body.collapsed .navpanel{ display:none; }

/* content */
main{ padding:24px 26px 70px; padding-inline-start:calc(var(--sidebar-w) + 26px); max-width:1900px; }
.section-title{ font-size:24px; margin-bottom:4px; } .section-desc{ color:var(--muted); margin-bottom:22px; }
.card{ background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:20px 22px; box-shadow:none; }
.card h2{ color:#A9C4E0; } .card h2 .h2-ico{ background:rgba(56,189,248,.15); color:var(--accent); }
.link-row{ background:var(--panel2); border-radius:12px; }
.pill-opt.active,.switch input:checked + .slider-tg{ background:linear-gradient(135deg,var(--secondary),var(--accent)); box-shadow:0 4px 14px var(--glow); }

/* gallery (reference layout) */
.gal-toolbar{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:22px; }
.gal-toolbar input{ display:none; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ display:flex; align-items:center; gap:8px; background:var(--panel); color:#A9C4E0; border:1px solid var(--border); border-radius:999px; padding:7px 14px; font-size:13px; font-weight:600; }
.chip i{ font-style:normal; background:var(--panel3); border-radius:999px; padding:0 7px; font-size:11px; }
.chip.active{ background:var(--accent); color:#fff; border-color:transparent; box-shadow:0 6px 16px var(--glow); }
.chip.active i{ background:rgba(255,255,255,.25); }
.gal-sec{ display:flex; align-items:center; gap:10px; margin:26px 0 12px; font-size:12px; font-weight:700; letter-spacing:.14em; color:var(--muted); }
.gal-sec i{ font-style:normal; background:var(--panel2); border-radius:999px; padding:1px 9px; font-size:11px; }
.gal-row{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.gal-card{ position:relative; background:var(--panel); border:1px solid var(--border); border-radius:14px; padding:14px; transition:.15s; }
.gal-card:hover{ border-color:rgba(56,189,248,.55); }
.gc-head{ display:flex; align-items:center; gap:10px; }
.gc-head b{ font-size:15px; font-weight:700; flex:1; }
.gc-ico{ color:var(--muted); display:flex; } .gc-ico svg{ width:18px; height:18px; }
.gc-status{ font-size:10.5px; font-weight:700; letter-spacing:.06em; color:var(--muted); background:var(--panel3); border:1px solid var(--border); border-radius:6px; padding:3px 8px; }
.gc-status:before{ content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#4F6A8A; margin-inline-end:6px; }
.gc-status.on{ color:#6ee7a0; } .gc-status.on:before{ background:var(--green); box-shadow:0 0 6px var(--green); }
.gc-free{ display:inline-block; margin:8px 0 10px; font-size:10.5px; font-weight:700; color:#A9C4E0; border:1px solid var(--border); border-radius:6px; padding:2px 8px; background:var(--panel2); }
.gal-prev{ position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:repeating-conic-gradient(#14141f 0% 25%,#0d0d16 0% 50%) 50%/20px 20px; }
.gal-prev iframe{ width:100%; height:100%; border:0; pointer-events:none; }
.gc-desc{ color:var(--muted); font-size:12.5px; line-height:1.55; margin:12px 2px; min-height:38px; }
.gal-actions{ display:flex; gap:8px; }
.gal-actions button{ padding:8px 12px; font-size:12.5px; justify-content:center; }
.b-test{ background:rgba(34,197,94,.1); color:#4ade80; border:1px solid rgba(34,197,94,.25); }
.b-copy{ flex:1; background:rgba(56,189,248,.16); color:#BAE6FD; border:1px solid rgba(56,189,248,.35); }
.b-gear{ background:var(--panel2); color:var(--muted); border:1px solid var(--border); padding:8px 10px; }
.b-gear:hover{ color:#fff; border-color:var(--accent); }
.gal-empty{ text-align:center; color:var(--muted); padding:60px 0; }

/* per-widget design editor */
.gal-edit{ display:none; margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.gal-edit.open{ display:block; } .gal-edit .field{ margin-bottom:12px; }
.gal-edit input[type=color]{ width:100%; height:38px; padding:2px; border-radius:9px; border:1px solid var(--border); background:var(--panel2); cursor:pointer; }
.gal-edit input[type=range]{ width:100%; accent-color:var(--accent); }

@media (max-width:980px){
  .sidebar{ top:auto; bottom:0; left:0; right:0; width:auto; height:64px; border-left:none; border-top:1px solid var(--border); }
  .navpanel,.rail-logo{ display:none; } .rail{ flex-direction:row; width:100%; flex:1; justify-content:space-around; padding:0; border:none; }
  main,header{ padding-inline-start:14px; padding-inline-end:14px; } main{ padding-bottom:90px; } .hd-search{ width:100%; }
}

/* ===== Setup page (SnokeTik-style shell: left sidebar) ===== */
.sidebar{ left:0; right:auto; border-left:none; border-right:1px solid var(--border); flex-direction:row; }
.rail-sp{ flex:1; }
.rail-btn{ text-decoration:none; }
body[data-tab=setup] .np-start{ display:block; }
.np-sub.active{ color:#BAE6FD; }
header{ text-align:left; } .hd-left,.connect-bar{ direction:ltr; }
body{ background:#040C17; } body[data-tab=setup]{ background:radial-gradient(900px 500px at 85% 100%,rgba(109,67,232,.16),transparent 60%),#040C17; }
.sk-wrap{ max-width:1080px; margin:0 auto; padding:6px 0 40px; }
.sk-page-title h1{ font-size:26px; margin:6px 0 4px; font-weight:800; } .sk-page-title p{ color:var(--muted); margin:0 0 22px; }
.sk-card{ background:#0A182B; border:1px solid var(--border); border-radius:16px; padding:22px; margin-bottom:22px; scroll-margin-top:80px; }
.sk-h1{ font-size:26px; margin:0 0 10px; font-weight:800; } .sk-h2{ font-size:20px; margin:0 0 4px; font-weight:800; color:var(--text); }
.sk-p{ color:#D3E6F7; line-height:1.75; margin:6px 0; max-width:820px; } .sk-sub{ color:var(--muted); margin:0 0 14px; font-size:13px; }
.sk-conn{ border:1px solid var(--border); border-radius:14px; padding:22px; display:flex; align-items:center; justify-content:space-between; gap:16px; background:#081526; }
.sk-conn.on{ border-color:#12b58a; box-shadow:0 0 0 1px rgba(18,181,138,.35), 0 0 24px rgba(18,181,138,.12); }
.sk-connl h3{ margin:8px 0 6px; font-size:22px; font-weight:800; } .sk-connl p{ color:var(--muted); margin:0 0 14px; font-size:13px; }
.sk-liveb{ display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:800; letter-spacing:.08em; color:#D3E6F7; } .sk-liveb i{ width:8px; height:8px; border-radius:50%; background:#12b58a; box-shadow:0 0 8px #12b58a; } .sk-liveb.off i{ background:#4F6A8A; box-shadow:none; }
.sk-liveb.sm{ color:#ff5a6e; font-size:10.5px; } .sk-liveb.sm i{ background:#FF4D4D; box-shadow:0 0 6px #FF4D4D; }
.sk-user{ display:inline-flex; align-items:center; gap:10px; background:#0C1B30; border:1px solid var(--border); border-radius:10px; padding:10px 14px; } .sk-user b{ display:block; } .sk-user small{ color:var(--muted); }
.sk-av{ width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#25F4EE,#2563EB 60%,#FF3B47); display:inline-flex; align-items:center; justify-content:center; font-weight:800; color:#060F1C; flex:0 0 auto; }
.sk-av{ overflow:hidden; } .sk-av img{ width:100%; height:100%; object-fit:cover; display:block; }
.sk-form{ display:flex; gap:10px; direction:ltr; } .sk-form input{ width:280px; }
.sk-btn{ display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,#2563EB,#38BDF8); color:#fff; border:none; border-radius:10px; padding:11px 20px; font-weight:700; text-decoration:none; cursor:pointer; box-shadow:0 8px 20px rgba(56,189,248,.3); } .sk-btn.dark{ background:#0C1B30; border:1px solid var(--border); box-shadow:none; padding:18px 30px; }
.sk-row{ display:flex; align-items:center; gap:14px; border:1px solid var(--border); border-radius:12px; padding:14px 18px; margin-bottom:10px; background:#081526; } .sk-row>div{ flex:1; } .sk-row b{ display:block; font-size:15px; } .sk-row small{ color:var(--muted); }
.sk-tg{ position:relative; width:46px; height:26px; flex:0 0 46px; } .sk-tg input{ display:none; } .sk-tg i{ position:absolute; inset:0; border-radius:99px; background:#1B3150; cursor:pointer; transition:.2s; } .sk-tg i:after{ content:''; position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.2s; } .sk-tg input:checked+i{ background:#3B82F6; } .sk-tg input:checked+i:after{ right:23px; }
.sk-gear{ background:#0C1B30; border:1px solid var(--border); color:var(--muted); width:38px; height:38px; padding:0; justify-content:center; border-radius:9px; } .sk-gear:hover{ color:#fff; border-color:var(--accent); }
.sk-tiles{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px; } .sk-tile{ display:flex; align-items:center; gap:12px; border:1px solid var(--border); border-radius:12px; padding:14px 16px; background:#081526; cursor:pointer; text-decoration:none; color:var(--text); } .sk-tile:hover{ border-color:rgba(56,189,248,.6); } .sk-tile span:nth-child(2){ flex:1; } .sk-tile b{ display:block; } .sk-tile small{ color:var(--muted); } .sk-tile em{ font-style:normal; color:var(--muted); font-size:20px; }
.sk-ti{ width:42px; height:42px; border-radius:11px; background:rgba(56,189,248,.18); color:#7DD3FC; display:flex; align-items:center; justify-content:center; } .sk-ti svg{ width:20px; height:20px; }
.sk-embed{ background:#fff; border-radius:12px; padding:8px; margin-bottom:14px; min-height:300px; display:flex; justify-content:center; overflow:hidden; } .sk-embed blockquote{ margin:0 auto; }
.sk-video{ display:grid; grid-template-columns:1.7fr 1fr; gap:16px; margin-top:12px; border:1px solid var(--border); border-radius:14px; padding:16px; background:#081526; }
.sk-vplayer{ min-height:300px; border-radius:12px; background:linear-gradient(135deg,#0E2038,#08121F); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#D3E6F7; } .sk-play{ width:58px; height:58px; border-radius:50%; background:#3B82F6; display:flex; align-items:center; justify-content:center; margin-bottom:10px; } .sk-play svg{ width:22px; height:22px; fill:#fff; }
.sk-vlist h4{ margin:0 0 10px; font-size:12px; letter-spacing:.14em; color:var(--muted); } .sk-vi{ display:flex; justify-content:space-between; align-items:center; border:1px solid var(--border); border-radius:10px; padding:10px 14px; margin-bottom:8px; background:#0A182B; font-size:13.5px; } .sk-vi span{ display:flex; align-items:center; gap:10px; } .sk-vi svg{ width:13px; height:13px; } .sk-vi em{ font-style:normal; color:#6f6f88; font-size:11px; }
.sk-live{ display:flex; gap:14px; flex-wrap:wrap; } .sk-ch{ display:grid; grid-template-columns:auto 1fr auto; gap:6px 12px; align-items:center; border:1px solid var(--border); border-radius:12px; padding:12px 16px; min-width:250px; background:#081526; text-decoration:none; color:var(--text); } .sk-ch:hover{ border-color:rgba(56,189,248,.6); } .sk-ch small{ grid-column:3; justify-self:end; color:var(--muted); display:flex; gap:5px; align-items:center; } .sk-ch small svg{ width:14px; height:14px; } .sk-empty{ color:var(--muted); padding:14px 4px; }
.sk-q{ border:1px solid var(--border); border-radius:12px; margin-bottom:10px; background:#081526; } .sk-q summary{ padding:16px 18px; font-weight:700; cursor:pointer; list-style:none; display:flex; justify-content:space-between; } .sk-q summary:after{ content:'▾'; color:var(--muted); } .sk-q[open] summary:after{ content:'▴'; } .sk-q p{ margin:0; padding:0 18px 16px; color:#C4DAEE; line-height:1.7; }
.sk-two{ display:grid; grid-template-columns:1fr 1fr; gap:22px; } .sk-link{ color:#7DD3FC; text-decoration:none; } .sk-file{ margin:8px 0; }
@media (max-width:980px){ .sk-tiles,.sk-video,.sk-two{ grid-template-columns:1fr; } .sk-conn{ flex-direction:column; align-items:flex-start; } .sk-form input{ width:100%; } }
/* nav alignment like the reference (left aligned) */
.navpanel{ direction:ltr; } .np-item,.np-sub,.np-vip,.np-help,.np-head span{ unicode-bidi:plaintext; text-align:left; }
.np-item{ display:block; background:transparent; border-radius:10px; padding:10px 12px; font-size:14px; }
.np-item.active{ background:rgba(56,189,248,.16); }
.np-sub{ font-size:12.5px; padding:6px 10px; line-height:1.35; }
.sidebar .np-item.tab-btn{ display:block; flex-direction:row; align-items:flex-start; justify-content:flex-start; text-align:left; gap:0; padding:10px 12px; font-size:14px; font-weight:600; color:#C4DAEE; border-radius:10px; }
.sidebar .np-item.tab-btn.active{ color:#fff; background:rgba(56,189,248,.16); border-color:rgba(56,189,248,.45); box-shadow:none; }
.sidebar .np-item.tab-btn:hover{ background:var(--panel2); }

/* ---------- Widget edit modal (gallery) ---------- */
.b-edit{ background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; border:none; display:inline-flex; align-items:center; gap:6px; font-weight:700; }
.b-edit svg{ width:14px; height:14px; }
.wm{ position:fixed; inset:0; z-index:1000; display:none; }
.wm.open{ display:block; }
.wm-back{ position:absolute; inset:0; background:rgba(3,8,18,.72); backdrop-filter:blur(3px); }
.wm-panel{ position:absolute; top:4vh; bottom:4vh; left:50%; transform:translateX(-50%); width:min(1040px,94vw); background:var(--panel); border:1px solid var(--border); border-radius:16px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.6); direction:rtl; }
.wm-head{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--border); }
.wm-head b{ flex:1; font-size:16px; } .wm-x{ background:var(--panel2); border:1px solid var(--border); color:var(--muted); width:34px; height:34px; border-radius:9px; font-size:18px; cursor:pointer; }
.wm-body{ flex:1; display:grid; grid-template-columns:1.25fr 1fr; min-height:0; }
.wm-form{ overflow-y:auto; padding:14px 18px 22px; border-inline-end:1px solid var(--border); }
.wm-side{ padding:16px; display:flex; flex-direction:column; gap:12px; overflow-y:auto; }
.wm-tabs{ display:flex; gap:8px; margin-bottom:10px; position:sticky; top:-14px; background:var(--panel); padding:14px 0 8px; z-index:2; }
.wm-tabs button{ flex:1; padding:9px; border-radius:10px; background:var(--panel2); border:1px solid var(--border); color:var(--muted); font-weight:700; cursor:pointer; }
.wm-tabs button.on{ background:var(--accent); color:#fff; border-color:transparent; }
.wm-h{ margin:18px 0 8px; font-size:12px; letter-spacing:.1em; font-weight:800; color:var(--accent); }
.wm-f{ margin-bottom:12px; } .wm-f>label{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; font-weight:500; }
.wm-f input[type=number], .wm-f input[type=text], .wm-f textarea, .wm-f select{ width:100%; box-sizing:border-box; background:var(--panel2); border:1px solid var(--border); color:var(--text); padding:9px 12px; border-radius:9px; font-family:inherit; font-size:13.5px; }
.wm-f textarea{ min-height:64px; resize:vertical; }
.wm-num{ display:flex; align-items:center; gap:8px; } .wm-num u{ text-decoration:none; color:var(--muted); font-size:12px; white-space:nowrap; }
.wm-tg{ display:flex; align-items:center; gap:12px; padding:4px 0; } .wm-tg>span{ flex:1; font-size:13.5px; }
.wm-hint{ display:block; margin-top:5px; font-size:11.5px; color:var(--muted); line-height:1.5; white-space:pre-line; }
.wm-note{ background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.3); border-radius:10px; padding:10px 12px; font-size:12.5px; color:#C5E6FF; margin-bottom:8px; }
.wm-f input[type=color]{ width:100%; height:38px; padding:2px; border-radius:9px; border:1px solid var(--border); background:var(--panel2); cursor:pointer; }
.wm-f input[type=range]{ width:100%; accent-color:var(--accent); }
.wm-acts{ display:flex; flex-wrap:wrap; gap:8px; } .wm-acts button{ flex:1 1 auto; justify-content:center; padding:8px 10px; font-size:12.5px; }
.wm-side .gal-prev{ aspect-ratio:16/10; } .wm-side h4{ margin:0; font-size:12px; letter-spacing:.1em; color:var(--muted); }
.wm-foot{ display:flex; gap:10px; padding:12px 18px; border-top:1px solid var(--border); }
.wm-foot .btn-primary{ margin-inline-start:auto; }
.wm-saved{ font-size:12px; color:#4ade80; align-self:center; opacity:0; transition:.3s; } .wm-saved.on{ opacity:1; }
@media (max-width:860px){ .wm-body{ grid-template-columns:1fr; } .wm-side{ order:-1; } }

.rail-logo{ background:none !important; padding:0; overflow:hidden; }
.rail-logo img{ width:100%; height:100%; object-fit:contain; display:block; }

/* ===== תפריט צד: 9 קטגוריות, כל אייקון פותח תפריט משלו ===== */
.np-subs{ display:block !important; }
.sidebar .np-item{ display:flex !important; align-items:center; justify-content:space-between; gap:8px; }
.np-item .np-chev{ display:inline-flex; color:var(--muted); font-style:normal; }
.np-item .np-chev svg{ width:14px; height:14px; }
.np-item.active .np-chev{ color:#BAE6FD; }
.rail-btn[data-navcat]{ cursor:pointer; }
.np-list{ scrollbar-width:thin; }
.soon-card{ text-align:center; padding:48px 24px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.soon-card b{ font-size:18px; }
.soon-card p{ margin:0; color:var(--muted); font-size:14px; }
.soon-ico{ width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:rgba(56,189,248,.12); color:var(--accent); }
.soon-ico svg{ width:26px; height:26px; }

/* ===== Top Gifters editor (preview left · controls right) — uses the site's own navy palette ===== */
.ge-panel{ position:absolute; top:3vh; bottom:3vh; left:50%; transform:translateX(-50%); width:min(1190px,95vw); background:var(--panel); border:1px solid var(--border); border-radius:22px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 90px rgba(0,0,0,.6); direction:ltr; font-family:'Outfit','Rubik',sans-serif; }
.ge-head{ display:flex; align-items:flex-start; justify-content:space-between; padding:20px 28px 14px; border-bottom:1px solid var(--border); background:var(--rail); }
.ge-head b{ display:block; font-size:16px; font-weight:800; color:var(--text); } .ge-head small{ display:block; margin-top:4px; font-size:11px; color:var(--muted); opacity:.8; }
.ge-x{ background:none; border:none; color:var(--muted); font-size:22px; cursor:pointer; line-height:1; }
.ge-body{ flex:1; display:grid; grid-template-columns:1fr 390px; min-height:0; }
.ge-left{ padding:22px 26px 16px; display:flex; flex-direction:column; min-width:0; }
.ge-lhead{ display:flex; justify-content:space-between; align-items:center; font-size:11px; letter-spacing:.14em; font-weight:800; color:var(--muted); margin-bottom:14px; }
.ge-size{ font-family:ui-monospace,Consolas,monospace; letter-spacing:0; font-size:11px; }
.ge-stage{ flex:1; min-height:0; border-radius:22px; border:1px solid var(--border); overflow:hidden; background:radial-gradient(circle at 20% 25%, rgba(124,58,237,.16), transparent 45%), radial-gradient(circle at 80% 80%, rgba(25,230,184,.08), transparent 45%), var(--bg); }
.ge-stage iframe{ width:100%; height:100%; border:0; pointer-events:none; }
.ge-cap{ margin:14px 0 0; font-size:12px; color:var(--muted); } .ge-cap b{ color:var(--text); }
.ge-right{ border-inline-start:1px solid var(--border); overflow-y:auto; padding:18px 22px 24px; background:var(--panel); direction:rtl; }
.ge-sec{ margin-bottom:16px; }
.ge-lab{ font-size:10.5px; letter-spacing:.12em; font-weight:800; color:var(--muted); opacity:.85; margin-bottom:9px; text-transform:uppercase; }
.ge-swatches{ display:flex; flex-wrap:wrap; gap:9px; }
.ge-sw{ width:24px; height:24px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; position:relative; display:inline-block; }
.ge-sw.on{ border-color:#fff; box-shadow:0 0 0 2px var(--panel), 0 0 10px var(--glow); }
.ge-sw-custom{ border-radius:7px; overflow:hidden; } .ge-sw-custom input{ position:absolute; inset:-6px; width:44px; height:44px; opacity:0; cursor:pointer; }
.ge-fonts{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ge-font{ background:transparent; border:1px solid var(--border); color:var(--muted); border-radius:8px; padding:9px 10px; text-align:left; cursor:pointer; font-size:13px; direction:ltr; }
.ge-font:hover{ color:var(--text); } .ge-font.on{ border-color:var(--accent); color:#fff; background:rgba(56,189,248,.12); }
.ge-chips{ display:flex; flex-wrap:wrap; gap:7px; }
.ge-chip{ background:transparent; border:1px solid var(--border); color:var(--muted); border-radius:7px; padding:6px 12px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
.ge-themes{ display:grid; grid-template-columns:repeat(4,1fr); gap:7px; } .ge-themes .ge-chip{ padding:6px 4px; text-align:center; direction:ltr; }
.ge-chip:hover{ color:var(--text); } .ge-chip.on{ border-color:var(--accent); color:#fff; background:rgba(56,189,248,.14); }
.ge-range{ display:flex; align-items:center; gap:12px; direction:ltr; } .ge-range input{ flex:1; accent-color:var(--accent); } .ge-range b{ min-width:44px; text-align:right; font-size:12px; color:var(--text); }
.ge-tg{ display:flex; align-items:center; gap:12px; padding:5px 0; font-size:13px; color:var(--text); cursor:pointer; }
.ge-tg .switch{ width:40px; height:22px; } .ge-tg .slider-tg:before{ width:16px; height:16px; top:2px; right:3px; }
.ge-tg .switch input:checked + .slider-tg:before{ transform:translateX(-18px); }
.ge-row1{ margin-bottom:6px; } .ge-inl2{ display:flex; align-items:center; justify-content:space-between; gap:12px; } .ge-inl2 .ge-inline{ display:flex; align-items:center; gap:8px; } .ge-inl2 .ge-lab{ margin:0; }
.ge-color{ width:30px; height:24px; padding:0; border:1px solid var(--border); border-radius:6px; background:none; cursor:pointer; }
.ge-in{ width:100%; box-sizing:border-box; background:var(--panel2); border:1px solid var(--border); color:var(--text); border-radius:9px; padding:10px 13px; font-size:13px; font-family:inherit; }
.ge-in:focus{ outline:none; border-color:var(--accent); }
select.ge-in{ appearance:auto; }
.ge-obs{ background:var(--panel2); border:1px solid var(--border); border-radius:10px; padding:12px 14px; }
.ge-obs code{ display:block; font-size:11px; color:var(--accent); word-break:break-all; margin-bottom:8px; } .ge-obs small{ font-size:11px; color:var(--muted); line-height:1.5; }
.ge-reset{ margin-top:6px; } .ge-reset button{ background:none; border:none; color:#f87171; font-size:12px; cursor:pointer; padding:4px 0; }
.ge-foot{ display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:14px 26px; border-top:1px solid var(--border); background:var(--rail); }
.ge-btn{ display:inline-flex; align-items:center; gap:7px; background:var(--panel2); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:10px 16px; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; }
.ge-btn:hover{ border-color:var(--accent); } .ge-btn svg{ width:15px; height:15px; }
.ge-save{ background:rgba(25,230,184,.12); border-color:rgba(25,230,184,.3); color:#6ee7c8; opacity:.55; }
.ge-save.dirty{ opacity:1; background:var(--accent); border-color:transparent; color:#06101E; box-shadow:0 6px 18px var(--glow); }
.ge-saved{ margin-inline-end:auto; }
@media (max-width:860px){ .ge-body{ grid-template-columns:1fr; grid-template-rows:260px 1fr; } }

.ge-head > div, .ge-cap{ direction:rtl; text-align:left; }

/* ===== category icons (gallery chips / side menu / section headers) ===== */
.cat-ico{ display:inline-flex; align-items:center; color:inherit; opacity:.9; }
.cat-ico svg{ width:14px; height:14px; }
.chip{ gap:7px; }
.chip.active .cat-ico{ opacity:1; }
.np-sub{ display:flex; align-items:center; gap:8px; }
.gal-sec{ align-items:center; }
.gal-sec .cat-ico svg{ width:15px; height:15px; }

/* ===== Song Requests editor — dark purple palette (scoped to .ge-song; other editors untouched) ===== */
.ge-panel.ge-song{ --bg:#090b12; --rail:#171723; --panel:#0c0d16; --panel2:#0f0f1b; --border:#272732; --accent:#8B5CF6; --secondary:#8B5CF6; --glow:rgba(139,92,246,.35); --muted:#7b7c93; --text:#eceef7; }
.ge-song .ge-foot{ background:#0d0e14; border-top-color:#1a1b21; }
.ge-song .ge-font.on{ background:#1e1836; } .ge-song .ge-chip.on{ background:#18132e; }
.ge-song .ge-save.dirty{ background:#59DD6D; color:#06101E; box-shadow:0 6px 18px rgba(89,221,109,.3); }
.ge-song .ge-lab-b{ font-size:12px; font-weight:800; color:var(--text); margin-bottom:9px; }
.ge-song .ge-bd-row{ display:flex; align-items:center; gap:12px; } .ge-song .ge-bd-row .ge-row1{ margin:0; }
.ge-song .ge-bd-color{ width:26px; height:20px; border:0; border-radius:5px; }
.ge-song .ge-right, .ge-song .ge-head > div, .ge-song .ge-cap{ direction:ltr; text-align:left; }
.ge-song .ge-tg .slider-tg:before{ right:auto; left:3px; } .ge-song .ge-tg .switch input:checked + .slider-tg:before{ transform:translateX(18px); }

/* ===== Like Goal / מטרת לייקים: gallery card ===== */
.gal-card.lgc{ grid-column:span 2; direction:ltr; text-align:left; padding:16px 18px 14px; font-family:'Outfit','Rubik',sans-serif; --lgc:#A100FF; }
.lgc-head{ display:flex; align-items:center; gap:9px; }
.lgc-ico{ display:inline-flex; color:var(--muted); } .lgc-ico svg{ width:16px; height:16px; }
.lgc-head b{ flex:1; min-width:0; font-size:14.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; unicode-bidi:plaintext; text-align:left; }
.lgc-stats{ display:grid; grid-template-columns:1fr 1fr; gap:10px 24px; margin:12px 0 12px; }
.lgc-stats small{ display:block; font-size:9.5px; letter-spacing:.11em; text-transform:uppercase; font-weight:800; color:#41566f; margin-bottom:3px; }
.lgc-stats code{ font-family:ui-monospace,'Cascadia Mono',Consolas,monospace; font-size:13px; font-weight:700; color:var(--text); white-space:nowrap; }
.lgc-stats code.lgc-acc{ color:var(--lgc); }
.lgc .gal-prev.lgc-prev{ aspect-ratio:auto; height:150px; }
.lgc-style{ display:flex; align-items:center; justify-content:center; gap:20px; margin:14px 0 12px; }
.lgc-style > div{ text-align:center; min-width:110px; }
.lgc-style b{ display:block; font-size:12.5px; font-weight:700; }
.lgc-style small{ display:block; font-size:9.5px; letter-spacing:.11em; text-transform:uppercase; font-weight:700; color:#41566f; }
.lgc-style button{ width:30px; height:30px; padding:0; justify-content:center; border-radius:7px; background:var(--panel2); border:1px solid var(--border); color:var(--muted); font-size:14px; cursor:pointer; }
.lgc-style button:hover{ color:#fff; border-color:var(--lgc); }
.lgc-acts{ display:flex; flex-wrap:wrap; gap:8px; }
.lgc-acts button{ display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:7px; background:var(--panel2); border:1px solid var(--border); color:var(--text); font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
.lgc-acts button:hover{ border-color:var(--lgc); }
.lgc-acts svg{ width:13px; height:13px; }
.lgc-url{ margin-top:11px; padding:6px 10px; border-radius:6px; background:var(--panel2); font-family:ui-monospace,Consolas,monospace; font-size:10.5px; color:#3a4c63; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1180px){ .gal-card.lgc{ grid-column:auto; } }

/* ===== Like Goal: "Customize" editor ===== */
.lge{ --bg:#0d0d13; --panel:#13131a; --panel2:#191921; --border:#262630; --text:#ececf3; --muted:#8a8a9c; --dim:#4f4f62; --accent:#8B5CF6; --mint:#4ADE9F;
  position:absolute; top:5vh; bottom:5vh; left:50%; transform:translateX(-50%); width:min(1000px,95vw); background:var(--panel); border:1px solid var(--border); border-radius:14px;
  display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 90px rgba(0,0,0,.65); direction:ltr; text-align:left; color:var(--text); font-family:'Outfit','Rubik',sans-serif; }
.lge-head{ display:flex; align-items:flex-start; justify-content:space-between; padding:18px 20px 14px; border-bottom:1px solid var(--border); }
.lge-head b{ display:block; font-size:15px; font-weight:800; }
.lge-head small{ display:block; margin-top:3px; font-size:10.5px; color:var(--dim); }
.lge-x{ background:none; border:0; color:var(--muted); font-size:20px; line-height:1; cursor:pointer; padding:2px 4px; } .lge-x:hover{ color:#fff; }
.lge-body{ flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 380px; }
.lge-form{ overflow-y:auto; padding:20px 16px 20px 20px; display:flex; flex-direction:column; gap:18px; scrollbar-width:thin; scrollbar-color:#3a3a4a transparent; }
.lge-sec{ background:#16161e; border:1px solid var(--border); border-radius:10px; padding:14px 14px 10px; }
.lge-sec[hidden]{ display:none; }
.lge-sec h5{ margin:0 0 8px; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:800; color:var(--dim); }
.lge-row{ display:flex; align-items:center; gap:12px; min-height:36px; padding:2px 0; }
.lge-row > label:first-child{ font-size:12.5px; font-weight:600; color:var(--text); white-space:nowrap; }
.lge-row em{ font-style:normal; font-weight:500; font-size:11px; color:var(--dim); margin-left:8px; }
.lge-row small{ flex:1; min-width:0; font-size:10px; color:var(--dim); text-align:center; line-height:1.35; }
.lge-sp{ flex:1; }
.lge-in, .lge-sel{ box-sizing:border-box; width:180px; background:#101017; border:1px solid var(--border); border-radius:7px; color:var(--text); padding:7px 10px; font-size:12.5px; font-family:inherit; }
.lge-in{ text-align:left; }
.lge-sel{ width:auto; min-width:140px; max-width:240px; cursor:pointer; }
.lge-in:focus, .lge-sel:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(139,92,246,.18); }
.lge-rng{ width:140px; accent-color:var(--accent); cursor:pointer; }
.lge-col{ position:relative; width:30px; height:20px; border-radius:4px; border:2px solid #2c2c38; cursor:pointer; overflow:hidden; flex:none; }
.lge-col input{ position:absolute; inset:-8px; width:50px; height:40px; opacity:0; cursor:pointer; }
.lge-sw{ position:relative; width:36px; height:20px; flex:none; cursor:pointer; }
.lge-sw input{ position:absolute; opacity:0; width:0; height:0; }
.lge-sw i{ position:absolute; inset:0; border-radius:99px; background:#2a2a36; transition:.2s; }
.lge-sw i:before{ content:''; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:#fff; transition:.2s; box-shadow:0 1px 3px rgba(0,0,0,.4); }
.lge-sw input:checked + i{ background:var(--mint); }
.lge-sw input:checked + i:before{ transform:translateX(16px); }
.lge-sw input:focus-visible + i{ box-shadow:0 0 0 3px rgba(74,222,159,.3); }
.lge-side{ border-left:1px solid var(--border); padding:20px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.lge-side h4{ margin:0; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; font-weight:800; color:var(--dim); }
.lge-stage{ height:min(440px,52vh); border-radius:10px; border:1px solid var(--border); overflow:hidden; background:repeating-conic-gradient(#1c1c25 0% 25%,#15151c 0% 50%) 50%/22px 22px; }
.lge-stage iframe{ width:100%; height:100%; border:0; pointer-events:none; display:block; }
.lge-cap{ display:flex; align-items:center; gap:6px; margin:0; font-size:10.5px; color:var(--dim); }
.lge-cap svg{ width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.8; }
.lge-foot{ display:flex; align-items:center; justify-content:flex-end; gap:14px; padding:14px 20px; border-top:1px solid var(--border); }
.lge-cancel{ background:none; border:0; color:var(--text); font-size:13px; font-weight:700; padding:10px 12px; cursor:pointer; font-family:inherit; } .lge-cancel:hover{ color:#fff; }
.lge-save{ display:inline-flex; align-items:center; gap:7px; background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 18px; font-size:13px; font-weight:800; cursor:pointer; font-family:inherit; box-shadow:0 6px 18px rgba(139,92,246,.35); }
.lge-save:hover{ filter:brightness(1.1); }
.lge-save svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
@media (max-width:860px){ .lge-body{ grid-template-columns:1fr; overflow-y:auto; } .lge-form{ overflow:visible; } .lge-side{ order:-1; border-left:0; border-bottom:1px solid var(--border); } .lge-in{ width:140px; } }

/* ===== Combined Alerts / התראות משולבות: editor (shares the .ge-song LTR palette) ===== */
.ge-combined .ge-head b{ display:flex; align-items:center; gap:7px; }
.ge-combined .ge-dot{ display:none; width:7px; height:7px; border-radius:50%; background:#ef4444; box-shadow:0 0 6px rgba(239,68,68,.7); }
.ge-combined.dirty .ge-dot{ display:inline-block; }
.ge-combined.dirty{ border-color:rgba(239,68,68,.35); }
.ge-combined .ge-right{ padding:16px 18px 22px; }
.ge-combined .ge-sec{ margin-bottom:14px; }
.ge-combined .ge-lab{ font-size:9.5px; margin-bottom:7px; }
.ge-combined .ge-desc{ margin:-2px 0 0; font-size:11.5px; color:var(--muted); line-height:1.5; }
.ge-combined .ge-chip{ padding:5px 10px; font-size:11px; border-radius:5px; }
.ge-combined .ge-chip.on{ border-color:var(--accent); color:#d9ccff; background:rgba(139,92,246,.14); }
.ge-combined .ge-row1{ margin-bottom:2px; }
.ge-combined .ge-tg{ font-size:12px; padding:3px 0; }
.ge-combined .ge-rv{ display:block; font-size:11.5px; color:var(--text); margin-bottom:2px; }
.ge-combined .ge-range input{ accent-color:var(--accent); }
.ge-combined .ge-lab-b{ font-size:12px; margin-bottom:6px; }
.ge-combined .ge-in{ padding:9px 12px; font-size:12.5px; background:#151620; }
.ge-combined .ge-note{ margin:6px 0 0; font-size:10.5px; color:var(--muted); opacity:.75; line-height:1.5; }
.ge-combined [hidden]{ display:none !important; }
.ge-combined .ge-foot{ justify-content:flex-end; }
.ge-combined .ge-unsaved{ margin-inline-end:auto; font-size:11.5px; color:var(--muted); visibility:hidden; }
.ge-combined.dirty .ge-unsaved{ visibility:visible; }
.ge-combined .ge-save{ opacity:.45; background:rgba(34,197,94,.06); border-color:rgba(74,222,128,.3); color:#4ade80; }
.ge-combined .ge-save.dirty{ opacity:1; background:rgba(34,197,94,.1); border-color:rgba(74,222,128,.6); color:#4ade80; box-shadow:none; }

/* ===== Sidebar — redesign after the reference (dark rail + nav panel), in the site's blue/cyan colors ===== */
:root{ --sidebar-w:272px; --sb-rail:#040b17; --sb-panel:#06101f; --sb-line:#12223a; --sb-acc:#38BDF8; --sb-acc2:#7DD3FC; --sb-tint:rgba(56,189,248,.12); --sb-tint2:rgba(56,189,248,.38); }
.sidebar{ background:var(--sb-panel); border-right:1px solid var(--sb-line); }
.rail{ width:54px; flex:0 0 54px; background:var(--sb-rail); border-inline-end:1px solid var(--sb-line); gap:6px; padding:10px 0 12px; }
body.collapsed{ --sidebar-w:54px; }
.rail-logo{ width:38px; height:38px; border-radius:11px; margin-bottom:12px; border:1px solid rgba(56,189,248,.35); box-shadow:0 0 14px rgba(56,189,248,.22); background:#071426 !important; padding:3px; }
.rail-btn{ width:38px; height:38px; border-radius:10px; color:#5f7290; transition:background .15s,color .15s; }
.rail-btn svg{ width:19px; height:19px; stroke-width:1.7; }
.rail-btn:hover{ background:#0b1a2e; color:#cfe3f5; }
.rail-btn.active{ background:linear-gradient(135deg,var(--secondary),var(--sb-acc)); color:#fff; box-shadow:0 4px 14px rgba(56,189,248,.28); }
.rail-sep{ width:30px; height:1px; background:var(--sb-line); margin:4px 0; }
.navpanel{ padding:14px 10px 12px; background:var(--sb-panel); }
.np-head{ padding:2px 6px 12px; font-size:10.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#5f7290; }
.np-head button{ width:22px; height:22px; padding:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--sb-line); border-radius:6px; color:#5f7290; cursor:pointer; }
.np-head button:hover{ color:#fff; border-color:var(--sb-tint2); }
.np-head button svg{ width:12px; height:12px; }
.np-list{ gap:1px; }
.sidebar .np-item, .sidebar .np-item.tab-btn{ padding:8px 10px; border-radius:8px; font-size:13px; font-weight:600; color:#d3e0ee; border:1px solid transparent; }
.sidebar .np-item:hover, .sidebar .np-item.tab-btn:hover{ background:#0b1a2e; color:#fff; }
.sidebar .np-item.active, .sidebar .np-item.tab-btn.active{ background:var(--sb-tint); border-color:var(--sb-tint2); color:var(--sb-acc2); box-shadow:none; }
.np-item .np-chev{ color:#5f7290; } .np-item.active .np-chev{ color:var(--sb-acc2); }
.np-subs{ margin:3px 0 6px; margin-inline-start:12px; padding-inline-start:0; border-inline-start:1px solid var(--sb-line); }
.np-sub{ position:relative; padding:7px 10px; margin-inline-start:-1px; border-radius:0 6px 6px 0; font-size:12.5px; font-weight:500; color:#55677f; border-inline-start:2px solid transparent; }
.np-sub .cat-ico{ display:none; }
.np-sub:hover{ color:#cfe3f5; background:transparent; }
.np-sub.active{ color:#fff; font-weight:700; background:var(--sb-tint); border-inline-start-color:var(--sb-acc); }
.np-foot{ gap:8px; padding-top:10px; border-top:1px solid var(--sb-line); margin-top:8px; }
.np-vip{ display:flex; align-items:center; gap:8px; justify-content:flex-start; padding:10px 12px; border-radius:9px; border:1px solid rgba(245,185,66,.45); background:rgba(245,185,66,.07); color:#f5c451; font-size:13px; font-weight:800; }
.np-vip:hover{ background:rgba(245,185,66,.13); }
.np-vip svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; flex:none; }
.np-help{ padding:9px 12px; border-radius:9px; border:1px solid var(--sb-line); background:#081426; gap:3px; }
.np-help small{ font-size:10.5px; color:#5f7290; font-weight:600; }
.np-help b{ display:flex; align-items:center; gap:7px; color:var(--sb-acc2); font-size:13px; font-weight:800; }
.np-help b svg{ width:16px; height:16px; flex:none; }
.np-help:hover{ border-color:var(--sb-tint2); }
@media (max-width:980px){ .rail{ width:100%; flex:1; padding:0; border:none; } .rail-sep{ display:none; } .sidebar{ border-right:none; border-top:1px solid var(--sb-line); } }
/* Hebrew: the nav panel reads right-to-left (mirror of the reference), so the sub-list line and the active marker sit next to the text */
.navpanel{ direction:rtl; }
.np-item,.np-sub,.np-vip,.np-help,.np-head span{ text-align:right; }
.np-sub{ border-radius:6px 0 0 6px; }
.np-list{ scrollbar-width:thin; scrollbar-color:#1a2c47 transparent; }
.np-list::-webkit-scrollbar{ width:6px; } .np-list::-webkit-scrollbar-thumb{ background:#1a2c47; border-radius:6px; } .np-list::-webkit-scrollbar-track{ background:transparent; }

/* ===== Sidebar rail — hover / click animations (after the reference video), blue instead of purple ===== */
:root{ --sb-acc:#3B82F6; --sb-acc2:#93C5FD; --sb-tint:rgba(59,130,246,.15); --sb-tint2:rgba(59,130,246,.45); }
.rail-logo{ border-color:rgba(59,130,246,.45); box-shadow:0 0 14px rgba(59,130,246,.25); }
.rail-btn{ position:relative; border:1px solid transparent; transition:background-color .28s ease, color .2s ease, border-color .28s ease, box-shadow .28s ease; }
.rail-btn svg{ transition:transform .25s cubic-bezier(.3,1.6,.5,1), stroke-width .2s; transform-origin:50% 50%; overflow:visible; }
.rail-btn svg *{ transform-box:fill-box; transform-origin:center; }
/* hover: dark blue tile, white icon, a little bigger */
.rail-btn:hover{ background:#0d1b31; color:#fff; border-color:#1a2f50; }
.rail-btn:hover svg{ transform:scale(1.14); stroke-width:2; }
/* selected: solid blue tile; the previous one fades back to dark (transition above) */
.rail-btn.active, .rail-btn.active:hover{ background:var(--sb-acc); color:#fff; border-color:rgba(147,197,253,.4); box-shadow:0 4px 16px rgba(59,130,246,.35); }
.rail-btn.active{ animation:railPop .38s cubic-bezier(.3,1.5,.5,1); }
@keyframes railPop{ 0%{ transform:scale(.86); } 60%{ transform:scale(1.06); } 100%{ transform:scale(1); } }
/* small bar on the outer edge next to the selected icon */
.rail-btn::before{ content:''; position:absolute; left:-9px; top:50%; width:3px; height:0; border-radius:0 3px 3px 0; background:var(--sb-acc); transform:translateY(-50%); transition:height .3s cubic-bezier(.3,1.4,.5,1); box-shadow:0 0 8px rgba(59,130,246,.6); }
.rail-btn.active::before{ height:20px; }
.rail-btn:active svg{ transform:scale(.9); }

/* per-icon hover animation */
.rail-btn[data-navcat=setup]:hover svg{ animation:rbHop .55s ease; }                       /* home: hop */
.rail-btn[data-navcat=overlays]:hover svg{ animation:rbTurn .55s cubic-bezier(.3,1.4,.5,1); } /* grid: quarter turn */
.rail-btn[data-navcat=actions]:hover svg{ animation:rbZap .5s ease; }                       /* bolt: zap shake + flicker */
.rail-btn[data-navcat=sounds] .rw1, .rail-btn[data-navcat=sounds] .rw2{ transition:opacity .2s; }
.rail-btn[data-navcat=sounds]:hover .rw1{ animation:rbWave 1.1s ease-in-out infinite; }      /* speaker: waves one after another */
.rail-btn[data-navcat=sounds]:hover .rw2{ animation:rbWave 1.1s ease-in-out .18s infinite; }
.rail-btn[data-navcat=chat] circle{ fill:currentColor; stroke:none; }
.rail-btn[data-navcat=chat]:hover .rd1{ animation:rbDot .9s ease-in-out infinite; }         /* chat: typing dots */
.rail-btn[data-navcat=chat]:hover .rd2{ animation:rbDot .9s ease-in-out .15s infinite; }
.rail-btn[data-navcat=chat]:hover .rd3{ animation:rbDot .9s ease-in-out .3s infinite; }
.rail-btn[data-navcat=users]:hover .ru1{ animation:rbHopG .55s ease; }                        /* users: front, then back person hop */
.rail-btn[data-navcat=users]:hover .ru2{ animation:rbHopG .55s ease .12s; }
@keyframes rbHopG{ 0%,100%{ transform:translateY(0); } 40%{ transform:translateY(-2.5px); } 70%{ transform:translateY(.5px); } }
.rail-btn[data-navcat=songs]:hover svg{ animation:rbSwing .7s ease; transform-origin:40% 80%; } /* music: swing */
.rail-btn[data-navcat=games]:hover svg{ animation:rbWiggle .55s ease; }                     /* gamepad: wiggle */
.rail-btn[data-navcat=tools]:hover svg{ animation:rbWrench .6s ease; }                       /* tools: wrench turn */
.rail-btn[data-navcat=settings]:hover svg{ animation:rbSpin 1.2s cubic-bezier(.4,0,.2,1); }  /* gear: spin */
.rail-btn[data-rail=help]:hover svg{ animation:rbHop .55s ease; }
@keyframes rbHop{ 0%,100%{ transform:scale(1.14) translateY(0); } 40%{ transform:scale(1.14) translateY(-3px); } 70%{ transform:scale(1.14) translateY(.5px); } }
@keyframes rbTurn{ from{ transform:scale(1.14) rotate(0); } to{ transform:scale(1.14) rotate(90deg); } }
@keyframes rbZap{ 0%,100%{ transform:scale(1.14) rotate(0); opacity:1; } 20%{ transform:scale(1.2) rotate(-12deg); } 40%{ transform:scale(1.14) rotate(10deg); opacity:.55; } 60%{ transform:scale(1.18) rotate(-6deg); opacity:1; } 80%{ transform:scale(1.14) rotate(3deg); } }
@keyframes rbWave{ 0%,100%{ opacity:.25; transform:translateX(-1px); } 45%{ opacity:1; transform:translateX(.5px); } }
@keyframes rbDot{ 0%,60%,100%{ transform:translateY(0); opacity:.55; } 30%{ transform:translateY(-2px); opacity:1; } }
@keyframes rbSwing{ 0%,100%{ transform:scale(1.14) rotate(0); } 25%{ transform:scale(1.14) rotate(-14deg); } 55%{ transform:scale(1.14) rotate(10deg); } 80%{ transform:scale(1.14) rotate(-4deg); } }
@keyframes rbWiggle{ 0%,100%{ transform:scale(1.14) rotate(0); } 25%{ transform:scale(1.14) rotate(-9deg); } 50%{ transform:scale(1.14) rotate(8deg); } 75%{ transform:scale(1.14) rotate(-4deg); } }
@keyframes rbWrench{ 0%,100%{ transform:scale(1.14) rotate(0); } 45%{ transform:scale(1.14) rotate(-28deg); } 75%{ transform:scale(1.14) rotate(6deg); } }
@keyframes rbSpin{ from{ transform:scale(1.14) rotate(0); } to{ transform:scale(1.14) rotate(180deg); } }

/* label next to the hovered icon */
.rail-tip{ position:fixed; z-index:2000; pointer-events:none; white-space:nowrap; padding:6px 10px; border-radius:7px; background:#0a1527; border:1px solid #1d3354; color:#eaf3ff; font-size:12px; font-weight:700; box-shadow:0 8px 22px rgba(0,0,0,.45); opacity:0; transform:translate(-6px,-50%); transition:opacity .16s ease, transform .2s cubic-bezier(.3,1.4,.5,1); }
.rail-tip.on{ opacity:1; transform:translate(0,-50%); }

@media (prefers-reduced-motion: reduce){ .rail-btn svg, .rail-btn svg *, .rail-btn.active{ animation:none !important; } }

/* ===== Sidebar color: #0C0E14 (from the user's sample); anything selected stays in blue shades ===== */
:root{ --sb-rail:#0C0E14; --sb-panel:#0C0E14; --sb-line:#1B1F2A; }
.sidebar, .rail, .navpanel{ background:#0C0E14; }
.rail-logo{ background:#0C0E14 !important; }
.np-help{ background:#10131B; }

/* ===== Widget editors: accent purple -> cyan/blue (toggles, sliders, selected chips / fonts / swatches) ===== */
.ge-panel.ge-song{ --accent:#38BDF8; --secondary:#2563EB; --glow:rgba(56,189,248,.35); }
.ge-song .ge-font.on{ background:#0f2238; } .ge-song .ge-chip.on{ background:#0f2238; }
.ge-combined .ge-chip.on{ border-color:var(--accent); color:#BAE6FD; background:rgba(56,189,248,.14); }
.ge-panel .ge-range input, .ge-combined .ge-range input{ accent-color:#38BDF8; }
.lge{ --accent:#38BDF8; --mint:#38BDF8; }
.lge-sw input:checked + i{ background:linear-gradient(135deg,#2563EB,#38BDF8); }
.lge-sw input:focus-visible + i{ box-shadow:0 0 0 3px rgba(56,189,248,.3); }
.lge-in:focus, .lge-sel:focus{ box-shadow:0 0 0 3px rgba(56,189,248,.18); }
.lge-rng{ accent-color:#38BDF8; }
.lge-save{ background:linear-gradient(135deg,#2563EB,#38BDF8); box-shadow:0 6px 18px rgba(56,189,248,.35); }

/* ===== Stats editors (Follower Count / Timer / Recent Activity Feed / Event Ticker) ===== */
.ge-kind .ge-para{ margin:2px 0 12px; font-size:12.5px; line-height:1.5; color:var(--text); font-weight:500; }
.ge-kind .ge-tight{ margin-bottom:8px; }
.ge-kind .ge-colrow{ display:flex; align-items:center; gap:12px; margin:4px 0 14px; }
.ge-kind .ge-colrow .ge-lab-b{ margin:0; }
.ge-kind .ge-mt{ margin-top:8px; }
.ge-kind .ge-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; }
.ge-kind .ge-mini{ display:flex; flex-direction:column; gap:4px; font-size:11px; color:var(--muted); font-weight:600; }
.ge-kind .ge-mini .ge-in{ padding:7px 10px; }
.ge-kind .ge-acts{ display:flex; flex-wrap:wrap; gap:6px; }
.ge-kind .ge-act{ padding:7px 11px; font-size:12px; }
.ge-kind .ge-act-d{ color:#fca5a5; border-color:rgba(248,113,113,.35); }
.ge-kind .ge-sel{ cursor:pointer; appearance:auto; }
.ge-kind [data-lb-frame][hidden]{ display:none; }

/* ===== Gallery card buttons: small (Test · Copy URL · gear), colors after the reference; Copy URL in cyan/blue ===== */
.gal-actions{ direction:ltr; gap:6px; align-items:center; }
.gal-actions button{ height:28px; padding:0 10px; font-size:12px; font-weight:700; border-radius:7px; display:inline-flex; align-items:center; justify-content:center; gap:5px; box-shadow:none; }
.gal-actions button svg{ width:13px; height:13px; }
.gal-actions .b-test{ flex:none; background:rgba(34,197,94,.08); color:#4ade80; border:1px solid rgba(74,222,128,.35); }
.gal-actions .b-test:hover{ background:rgba(34,197,94,.16); }
.gal-actions .b-copy{ flex:1; background:rgba(56,189,248,.1); color:#7DD3FC; border:1px solid rgba(56,189,248,.35); }
.gal-actions .b-copy:hover{ background:rgba(56,189,248,.18); }
.gal-actions .b-edit{ flex:none; width:28px; padding:0; background:transparent; color:#8b93a6; border:1px solid #262a36; }
.gal-actions .b-edit:hover{ color:#fff; border-color:#3a4152; background:rgba(255,255,255,.04); }
/* Gift Firework: style cards (Classic / Gift Burst) */
.ge-kind .ge-fwcs{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ge-kind .ge-fwc{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:left; padding:10px 12px; border-radius:10px; background:#12141c; border:1px solid var(--border); color:var(--muted); cursor:pointer; font-family:inherit; }
.ge-kind .ge-fwc i{ font-style:normal; font-size:16px; }
.ge-kind .ge-fwc b{ font-size:13px; color:var(--text); }
.ge-kind .ge-fwc small{ font-size:10.5px; line-height:1.35; }
.ge-kind .ge-fwc.on{ border-color:var(--accent); background:rgba(56,189,248,.1); }
.ge-kind .ge-fwc.on b{ color:#BAE6FD; }
.ge-kind .ge-fwc.on::after{ content:'✓'; position:absolute; top:8px; right:10px; color:#BAE6FD; font-size:12px; }
.ge-kind [data-fw][hidden]{ display:none; }

/* Overlay Gallery sub-list is English: left-to-right, line and active marker on the left */
.np-subs.np-ltr{ direction:ltr; }
.np-subs.np-ltr .np-sub{ text-align:left; border-radius:0 6px 6px 0; }
/* Overlays menu items are English: start on the left (text left, arrow on the right) */
.sidebar .np-item.np-ltr{ direction:ltr; text-align:left; }
/* Overlays menu + Overlay Gallery sub-categories: Outfit (as in the reference) */
.sidebar .np-item.np-ltr{ font-family:'Outfit',sans-serif; font-weight:600; }
.np-subs.np-ltr .np-sub{ font-family:'Outfit',sans-serif; font-weight:500; }
.np-subs.np-ltr .np-sub.active{ font-weight:600; }

/* Overlays pages: header like the reference (title + small description, left aligned, line under it) */
.ov-head{ direction:ltr; text-align:left; padding:6px 0 18px; margin:0 0 22px; border-bottom:1px solid var(--sb-line, #1B1F2A); }
.ov-head h1{ margin:0 0 6px; font-family:'Outfit',sans-serif; font-size:22px; font-weight:800; color:#fff; letter-spacing:-.01em; unicode-bidi:plaintext; }
.ov-head p{ margin:0; max-width:1100px; font-family:'Outfit',sans-serif; font-size:13px; font-weight:500; line-height:1.6; color:#9aa3b5; unicode-bidi:plaintext; }
/* widget card descriptions: English, in Outfit (same font as the category names) */
.gal-card .gc-desc{ font-family:'Outfit',sans-serif; font-weight:500; unicode-bidi:plaintext; }

/* Overlay gallery reads left-to-right (category buttons, section titles, cards and their contents) */
.tab-panel[data-panel="gallery"] .gal-toolbar,
#galGrid{ direction:ltr; }
#galGrid .gal-card{ text-align:left; }

/* Official TikTok channel card (Setup page) — English, left-to-right, site blue/white */
.sk-chan{ direction:ltr; text-align:left; }
.sk-chan .sk-h2, .sk-chan .sk-sub{ font-family:'Outfit',sans-serif; }
.sk-chan-row{ display:flex; align-items:center; gap:16px; padding:18px 20px; margin-top:14px; border-radius:14px; background:rgba(8,18,34,.55); border:1px solid var(--border); }
.sk-chan-av{ flex:none; width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#132a4d,#0d1e38); border:1px solid rgba(56,189,248,.3); color:#fff; font-family:'Outfit',sans-serif; font-size:20px; font-weight:800; }
.sk-chan-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.sk-chan-txt b{ font-family:'Outfit',sans-serif; font-size:15px; font-weight:800; color:#fff; }
.sk-chan-txt small{ font-family:'Outfit',sans-serif; font-size:12.5px; color:var(--muted); }
.sk-chan-btn{ flex:none; display:inline-flex; align-items:center; gap:6px; padding:10px 18px; border-radius:10px; background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; font-family:'Outfit',sans-serif; font-size:13px; font-weight:800; text-decoration:none; box-shadow:0 6px 18px var(--glow); }
.sk-chan-btn:hover{ filter:brightness(1.08); }
.sk-chan-btn2{ margin-top:22px; }
@media (max-width:640px){ .sk-chan-row{ flex-wrap:wrap; } .sk-chan-row .sk-chan-btn{ width:100%; justify-content:center; } }
.sk-chan-av{ position:relative; overflow:hidden; }
.sk-chan-av img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* search box at the top of the sidebar (above the menu title), as in the reference */
.np-search{ direction:ltr; display:flex; align-items:center; gap:8px; margin:0 0 14px; padding:0 12px; height:36px; border-radius:10px; background:#10131B; border:1px solid var(--sb-line, #1B1F2A); color:#5f7290; }
.np-search svg{ width:15px; height:15px; flex:none; }
.np-search input{ flex:1; min-width:0; background:none !important; border:none !important; box-shadow:none !important; padding:0 !important; color:var(--text); font-family:'Outfit',sans-serif; font-size:13px; outline:none; }
.np-search input::placeholder{ color:#5f7290; }
.np-search:focus-within{ border-color:rgba(56,189,248,.5); }
/* menu title (SETUP / OVERLAYS ...) on the left, collapse button on the right — as in the reference */
.np-head{ direction:ltr; }

/* ---------- Live Center ---------- */
.lc{ direction:ltr; text-align:left; font-family:'Outfit',sans-serif; margin-bottom:22px; }
.lc .lc-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.lc-hist-btn{ flex:none; display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:10px; background:var(--panel2); border:1px solid var(--border); color:#fff; font:600 13px 'Outfit',sans-serif; cursor:pointer; transition:border-color .2s, background .2s; }
.lc-hist-btn:hover{ border-color:var(--accent); background:rgba(56,189,248,.1); }
.lc-hist-btn .icn{ width:16px; height:16px; color:var(--accent); }
.lc-main{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; align-items:start; }
.lc-left{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.lc-sess{ display:flex; align-items:center; gap:16px; padding:18px 20px; border-radius:16px; background:var(--panel); border:1px solid var(--border); }
.lc-av{ position:relative; overflow:hidden; flex:none; width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#132a4d,#0d1e38); border:2px solid rgba(56,189,248,.45); color:#fff; font-size:20px; font-weight:800; }
.lc-av img, .lc-mini img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.lc-sess-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.lc-sess-txt > b{ font-size:17px; color:#fff; }
.lc-sess-txt small{ color:#9aa3b5; font-size:12.5px; }
.lc-sess-row{ display:flex; align-items:center; gap:10px; }
.lc-dur{ font:700 13px 'Outfit',sans-serif; color:#cfd6e4; font-variant-numeric:tabular-nums; }
.lc-pill{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; background:rgba(154,163,181,.12); color:#9aa3b5; border:1px solid rgba(154,163,181,.25); }
.lc-pill.on{ background:rgba(56,189,248,.14); color:var(--accent); border-color:rgba(56,189,248,.4); }
.lc-pill.on::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent); animation:lcBlink 1.4s ease-in-out infinite; }
.lc-pill.end{ background:rgba(255,59,71,.12); color:#ff7a83; border-color:rgba(255,59,71,.35); }
@keyframes lcBlink{ 50%{ opacity:.3; } }
.lc-est{ flex:none; text-align:right; display:flex; flex-direction:column; gap:3px; }
.lc-est b{ font-size:20px; color:#fff; }
.lc-est small{ color:var(--accent); font-size:12px; font-weight:600; }
.lc-stats{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.lc-stat{ --c:var(--accent); position:relative; overflow:hidden; padding:14px 14px 12px; border-radius:14px; background:var(--panel); border:1px solid var(--border); border-top:3px solid var(--c); display:flex; flex-direction:column; gap:4px; min-width:0; }
.lc-stat::after{ content:''; position:absolute; inset:0 0 auto 0; height:40px; background:linear-gradient(180deg,color-mix(in srgb,var(--c) 14%,transparent),transparent); pointer-events:none; }
.lc-stat-top{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.lc-stat-top span{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#9aa3b5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lc-stat-top i{ display:flex; width:26px; height:26px; flex:none; border-radius:8px; align-items:center; justify-content:center; background:color-mix(in srgb,var(--c) 16%,transparent); color:var(--c); }
.lc-stat-top .icn{ width:15px; height:15px; }
.lc-stat > b{ font-size:24px; font-weight:800; color:#fff; line-height:1.1; }
.lc-stat > small{ min-height:15px; font-size:11.5px; color:#9aa3b5; }
.lc-viewers{ --c:var(--cyan); } .lc-likes{ --c:var(--pink); } .lc-comments{ --c:var(--accent); }
.lc-gifts{ --c:var(--gold); } .lc-shares{ --c:var(--green); } .lc-followers{ --c:var(--secondary); }
.lc-box{ border-radius:16px; background:var(--panel); border:1px solid var(--border); padding:6px 18px 18px; }
.lc-tabs{ display:flex; gap:22px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.lc-tabs button, .lc-ftabs button, .lc-chips button{ font-family:'Outfit',sans-serif; cursor:pointer; }
.lc-tabs button{ background:none; border:none; padding:12px 2px; margin-bottom:-1px; color:#9aa3b5; font-size:14px; font-weight:600; border-bottom:2px solid transparent; transition:color .2s, border-color .2s; }
.lc-tabs button:hover{ color:#fff; }
.lc-tabs button.on{ color:#fff; border-bottom-color:var(--accent); }
.lc-ov{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.lc-ov-card{ padding:14px; border-radius:12px; background:var(--panel2); border:1px solid var(--border); min-width:0; }
.lc-ov-card h3{ margin:0 0 10px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#9aa3b5; }
.lc-kv{ display:flex; flex-direction:column; gap:8px; }
.lc-kv div{ display:flex; justify-content:space-between; gap:10px; font-size:13px; }
.lc-kv span{ color:#9aa3b5; } .lc-kv b{ color:#fff; font-weight:600; text-align:right; }
.lc-top{ display:flex; flex-direction:column; gap:8px; }
.lc-row{ display:flex; align-items:center; gap:9px; font-size:13px; min-width:0; }
.lc-row em{ font-style:normal; width:14px; color:var(--accent); font-weight:700; }
.lc-row .lc-nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; }
.lc-row b{ color:var(--accent); }
.lc-mini{ position:relative; overflow:hidden; flex:none; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--panel3); color:#fff; font-size:12px; font-weight:700; }
.lc-mini.sq{ border-radius:8px; background:transparent; }
.lc-mini.sq img{ object-fit:contain; }
.lc-empty{ margin:0; padding:18px 0; text-align:center; color:#6f7a8f; font-size:13px; }
.lc-gal-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.lc-chips{ display:flex; gap:8px; }
.lc-chips button{ padding:6px 14px; border-radius:999px; background:var(--panel2); border:1px solid var(--border); color:#9aa3b5; font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:all .2s; }
.lc-chips button:hover{ color:#fff; }
.lc-chips button.on{ background:rgba(56,189,248,.14); border-color:rgba(56,189,248,.45); color:var(--accent); }
.lc-sort{ display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#9aa3b5; }
.lc-sort select{ padding:6px 10px; font:600 12.5px 'Outfit',sans-serif; text-transform:none; letter-spacing:0; }
.lc-gifts{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.lc-gift{ position:relative; padding:14px 12px 10px; border-radius:12px; background:var(--panel2); border:1px solid var(--border); display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; transition:border-color .2s, transform .2s; }
.lc-gift:hover{ border-color:rgba(56,189,248,.5); transform:translateY(-2px); }
.lc-gbadge{ position:absolute; top:8px; right:8px; padding:2px 7px; border-radius:6px; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; background:rgba(56,189,248,.16); color:var(--accent); }
.lc-gimg{ width:56px; height:56px; margin:8px 0 4px; display:flex; align-items:center; justify-content:center; font-size:36px; }
.lc-gimg img{ width:100%; height:100%; object-fit:contain; }
.lc-gname{ color:#fff; font-size:13.5px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lc-gcost{ color:var(--gold); font-size:12px; font-weight:600; }
.lc-gfoot{ width:100%; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:4px; font-size:11px; color:#9aa3b5; }
.lc-gfoot span:first-child{ color:#fff; font-weight:700; }
.lc-chat{ position:sticky; top:76px; display:flex; flex-direction:column; height:calc(100vh - 110px); min-height:460px; border-radius:16px; background:var(--panel); border:1px solid var(--border); overflow:hidden; }
.lc-chat-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); }
.lc-chat-head > b{ font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#fff; }
.lc-ftabs{ display:flex; gap:6px; padding:10px 12px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.lc-ftabs button{ padding:5px 10px; border-radius:8px; background:none; border:1px solid transparent; color:#9aa3b5; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; transition:all .2s; }
.lc-ftabs button:hover{ color:#fff; }
.lc-ftabs button.on{ background:rgba(56,189,248,.14); border-color:rgba(56,189,248,.4); color:var(--accent); }
.lc-feed{ flex:1; overflow-y:auto; padding:6px 12px 12px; }
.lc-msg{ display:flex; gap:10px; padding:9px 4px; border-bottom:1px solid rgba(26,51,84,.5); }
.lc-msg-b{ flex:1; min-width:0; }
.lc-msg-h{ display:flex; align-items:center; gap:7px; }
.lc-msg-h b{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:13px; }
.lc-msg-h i{ font-style:normal; padding:1px 6px; border-radius:5px; font-size:9.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.lc-msg-h time{ margin-left:auto; flex:none; color:#6f7a8f; font-size:11px; }
.lc-msg p{ margin:2px 0 0; color:#cfd6e4; font-size:13px; line-height:1.45; word-break:break-word; unicode-bidi:plaintext; text-align:start; }
.lc-msg.t-gift i{ background:rgba(245,185,66,.15); color:var(--gold); }
.lc-msg.t-follow i{ background:rgba(37,99,235,.2); color:#7fa8ff; }
.lc-msg.t-share i{ background:rgba(34,197,94,.15); color:var(--green); }
.lc-modal{ position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); }
.lc-modal[hidden]{ display:none; }
.lc-modal-box{ width:min(720px,100%); max-height:80vh; display:flex; flex-direction:column; border-radius:16px; background:var(--panel); border:1px solid var(--border); overflow:hidden; }
.lc-modal-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--border); }
.lc-modal-head b{ color:#fff; font-size:16px; }
.lc-modal-head button{ background:none; border:none; color:#9aa3b5; font-size:16px; cursor:pointer; }
.lc-modal-head button:hover{ color:#fff; }
.lc-hist-list{ overflow-y:auto; padding:12px 18px 18px; display:flex; flex-direction:column; gap:10px; }
.lc-hrow{ padding:12px 14px; border-radius:12px; background:var(--panel2); border:1px solid var(--border); }
.lc-hrow-h{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.lc-hrow-h b{ color:#fff; font-size:14px; }
.lc-hrow-h > span:last-child{ margin-left:auto; color:#cfd6e4; font-size:13px; font-variant-numeric:tabular-nums; }
.lc-hrow-s{ display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:#9aa3b5; }
.lc-hrow-s b{ color:var(--accent); }
@media (max-width:1400px){ .lc-stats{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1100px){ .lc-main{ grid-template-columns:1fr; } .lc-chat{ position:static; height:520px; } .lc-ov{ grid-template-columns:1fr; } }
@media (max-width:600px){ .lc-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); } .lc-sess{ flex-wrap:wrap; } .lc .lc-head{ flex-direction:column; } }
.lc-stat-top span{ white-space:normal; overflow:visible; letter-spacing:.05em; line-height:1.25; }

/* Live Center: Overview like the reference (4 leaderboards + new subscribers) */
.lc-box{ padding:14px 18px 20px; }
.lc-tabs{ display:inline-flex; gap:4px; padding:4px; margin-bottom:18px; border:1px solid var(--border); border-radius:12px; background:var(--bg); }
.lc-tabs button{ display:inline-flex; align-items:center; gap:7px; padding:8px 16px; margin:0; border:none; border-radius:9px; font-size:13px; font-weight:700; color:#9aa3b5; transition:background .2s, color .2s, box-shadow .2s; }
.lc-tabs button .icn{ width:15px; height:15px; }
.lc-tabs button.on{ color:#fff; background:linear-gradient(135deg,var(--secondary),var(--accent)); box-shadow:0 4px 16px rgba(56,189,248,.3); }
.lc-ov{ grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.lc-ov-col{ min-width:0; }
.lc-ov-col h3, .lc-subs h3{ margin:0 0 10px; padding-bottom:8px; border-bottom:1px solid var(--border); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#9aa3b5; }
.lc-ov .lc-top{ gap:8px; }
.lc-ov .lc-row{ gap:10px; padding:8px 12px; min-height:42px; border-radius:10px; background:var(--panel2); border:1px solid transparent; transition:border-color .2s; }
.lc-ov .lc-row:hover{ border-color:rgba(56,189,248,.35); }
.lc-ov .lc-row em{ width:12px; flex:none; color:#6f7a8f; font-size:12px; font-weight:600; }
.lc-ov .lc-row .lc-nm{ font-size:13.5px; font-weight:700; text-align:left; }
.lc-ov .lc-mini{ width:30px; height:30px; }
.lc-val{ flex:none; display:inline-flex; align-items:center; gap:5px; color:#cfd6e4; font-size:14px; font-weight:800; }
.lc-val .icn{ width:13px; height:13px; color:#6f7a8f; }
.lc-subs{ margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.lc-subs h3{ border-bottom:none; padding-bottom:0; color:var(--accent); }
.lc-subs-empty{ margin:12px 0 0; font-size:12.5px; color:#6f7a8f; }
.lc-subs-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px; }
.lc-sub{ display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; background:var(--panel2); min-width:0; }
.lc-sub .lc-nm{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:13px; font-weight:700; }
.lc-sub time{ flex:none; color:#6f7a8f; font-size:11px; }
@media (max-width:1400px){ .lc-ov{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px){ .lc-ov{ grid-template-columns:1fr; } }

/* English site: every panel reads left-to-right */
.ge-right{ direction:ltr; }
.ge-head > div, .ge-cap{ direction:ltr; text-align:left; }
.navpanel{ direction:ltr; }
.np-item,.np-sub,.np-vip,.np-help,.np-head span{ text-align:left; }

/* ---------- Top bar (like the reference: logo · search · breadcrumb ··· Desktop App · gift · bell · avatar) ---------- */
:root{ --tb-h:58px; }
header.tb{ position:fixed; top:0; left:0; right:0; z-index:30; height:var(--tb-h); display:flex; align-items:center; gap:14px; flex-wrap:nowrap;
  padding:0 16px 0 10px; background:#0C0E14; border-bottom:1px solid var(--sb-line, #1B1F2A); backdrop-filter:none; direction:ltr; font-family:'Outfit',sans-serif; }
.tb-logo{ flex:none; width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; padding:3px; background:#071426; border:1px solid rgba(56,189,248,.35); box-shadow:0 0 14px rgba(56,189,248,.22); }
.tb-logo img{ width:100%; height:100%; object-fit:contain; display:block; }
.tb-search{ flex:none; width:206px; height:34px; display:flex; align-items:center; gap:8px; padding:0 12px; border-radius:10px; background:#10131B; border:1px solid var(--sb-line, #1B1F2A); color:#5f7290; }
.tb-search .icn{ width:15px; height:15px; flex:none; }
.tb-search input{ flex:1; min-width:0; background:none !important; border:none !important; box-shadow:none !important; padding:0 !important; color:var(--text); font-family:'Outfit',sans-serif; font-size:13px; outline:none; }
.tb-search input::placeholder{ color:#5f7290; }
.tb-search:focus-within{ border-color:rgba(56,189,248,.5); }
header.tb .crumb{ flex:1; min-width:0; margin-left:8px; gap:7px; font-size:13px; font-weight:600; color:#7c879b; white-space:nowrap; }
header.tb .crumb .tb-home{ width:15px; height:15px; color:#7c879b; }
header.tb .crumb b{ color:#fff; font-weight:700; }
.tb-right{ flex:none; display:flex; align-items:center; gap:10px; }
.tb-desk{ display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 13px; border-radius:999px; background:#10131B; border:1px solid #2a2f3b; color:#fff; font:700 13px 'Outfit',sans-serif; cursor:pointer; transition:border-color .2s, background .2s; }
.tb-desk .icn{ width:15px; height:15px; }
.tb-desk:hover{ border-color:rgba(56,189,248,.55); background:rgba(56,189,248,.08); }
.tb-ico{ position:relative; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:none; border:none; color:#7c879b; cursor:pointer; transition:color .2s, background .2s; }
.tb-ico .icn{ width:19px; height:19px; }
.tb-ico:hover{ color:#fff; background:#141823; }
.tb-bell{ color:#ef4444; }
.tb-badge{ position:absolute; top:2px; right:1px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:#ef4444; color:#fff; font:800 9.5px/17px 'Outfit',sans-serif; text-align:center; box-shadow:0 0 0 2px #0C0E14, 0 0 10px rgba(239,68,68,.6); }
.tb-badge[hidden]{ display:none; }
.tb-dd{ position:relative; }
.tb-av{ display:flex; align-items:center; gap:4px; padding:3px 6px 3px 3px; border-radius:999px; background:none; border:1px solid transparent; color:#7c879b; cursor:pointer; transition:border-color .2s; }
.tb-av:hover{ border-color:#2a2f3b; }
.tb-av .icn{ width:13px; height:13px; }
.tb-av-img{ position:relative; overflow:hidden; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#132a4d,#0d1e38); border:1px solid rgba(56,189,248,.35); color:#fff; font-size:13px; font-weight:800; }
.tb-av-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tb-menu{ position:absolute; top:calc(100% + 8px); right:0; z-index:40; min-width:220px; padding:6px; border-radius:12px; background:#10131B; border:1px solid #232836; box-shadow:0 18px 40px rgba(0,0,0,.5); }
.tb-menu[hidden]{ display:none; }
.tb-acc-h{ display:flex; flex-direction:column; gap:2px; padding:8px 10px 10px; margin-bottom:4px; border-bottom:1px solid #1d2230; }
.tb-acc-h b{ color:#fff; font-size:14px; } .tb-acc-h small{ color:#7c879b; font-size:12px; }
.tb-acc a, .tb-acc button{ display:block; width:100%; padding:8px 10px; border-radius:8px; background:none; border:none; color:#d3e0ee; font:600 13px 'Outfit',sans-serif; text-align:left; text-decoration:none; cursor:pointer; }
.tb-acc a:hover, .tb-acc button:hover{ background:rgba(56,189,248,.12); color:#fff; }
.tb-notes{ width:320px; padding:0; }
.tb-menu-h{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #1d2230; }
.tb-menu-h b{ color:#fff; font-size:14px; }
.tb-menu-h button{ background:none; border:none; color:var(--accent); font:600 12px 'Outfit',sans-serif; cursor:pointer; }
.tb-notes-list{ max-height:360px; overflow-y:auto; padding:6px; }
.tb-note{ display:flex; align-items:flex-start; gap:10px; padding:9px 8px; border-radius:8px; }
.tb-note:hover{ background:#141823; }
.tb-note i{ flex:none; width:8px; height:8px; margin-top:5px; border-radius:50%; background:var(--accent); }
.tb-note.l-error i{ background:#ef4444; } .tb-note.l-success i{ background:#22c55e; } .tb-note.l-gift i{ background:#f5b942; }
.tb-note p{ flex:1; margin:0; color:#d3e0ee; font-size:12.5px; line-height:1.45; }
.tb-note time{ flex:none; color:#5f7290; font-size:11px; }
.tb-empty{ margin:0; padding:22px 10px; text-align:center; color:#5f7290; font-size:12.5px; }
.tb-toast{ position:fixed; top:70px; right:16px; z-index:60; padding:11px 16px; border-radius:10px; background:#10131B; border:1px solid rgba(56,189,248,.45); color:#fff; font:600 13px 'Outfit',sans-serif; box-shadow:0 12px 30px rgba(0,0,0,.45); opacity:0; transform:translateY(-6px); pointer-events:none; transition:opacity .2s, transform .2s; }
.tb-toast.on{ opacity:1; transform:none; }
/* the sidebar and the page start under the top bar */
.sidebar{ top:var(--tb-h) !important; height:auto !important; }
main{ padding-top:calc(var(--tb-h) + 24px) !important; }
.rail{ padding-top:14px; }
@media (max-width:980px){
  .tb-search{ display:none; } .tb-desk{ display:none; }
  .sidebar{ top:auto !important; }
}
@media (max-width:600px){ header.tb .crumb{ display:none; } .tb-right{ margin-left:auto; } }
header.tb .connect-bar[hidden]{ display:none !important; }

/* ---------- Owner tools: notifications compose + Admin Panel ---------- */
.tb-compose{ padding:10px 12px; border-bottom:1px solid #1d2230; }
.tb-compose[hidden]{ display:none; }
.tb-compose textarea{ width:100%; resize:vertical; min-height:54px; padding:8px 10px; border-radius:8px; background:#0C0E14; border:1px solid #232836; color:#fff; font:500 12.5px 'Outfit',sans-serif; box-sizing:border-box; }
.tb-compose textarea:focus{ outline:none; border-color:rgba(56,189,248,.55); box-shadow:none; }
.tb-compose-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
.tb-compose-err{ color:#ff7a83; font-size:11.5px; }
.tb-post{ padding:6px 14px; border-radius:8px; border:none; background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; font:700 12.5px 'Outfit',sans-serif; cursor:pointer; }
.tb-post:disabled{ opacity:.6; cursor:default; }
.tb-ann{ background:rgba(56,189,248,.06); }
.tb-ann-ico{ flex:none; width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:rgba(56,189,248,.15); color:var(--accent); }
.tb-ann-ico .icn{ width:14px; height:14px; }
.tb-ann-b{ flex:1; min-width:0; }
.tb-ann-b small{ display:block; color:var(--accent); font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.tb-ann-b p{ margin:1px 0 0; color:#fff; font-size:12.5px; line-height:1.45; white-space:pre-wrap; word-break:break-word; unicode-bidi:plaintext; }
.tb-ann-del{ flex:none; background:none; border:none; color:#5f7290; cursor:pointer; font-size:11px; padding:2px 4px; border-radius:6px; }
.tb-ann-del:hover{ color:#ff7a83; background:rgba(239,68,68,.12); }
.ap-modal{ position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.65); backdrop-filter:blur(4px); font-family:'Outfit',sans-serif; }
.ap-modal[hidden]{ display:none; }
.ap-box{ width:min(860px,100%); max-height:86vh; display:flex; flex-direction:column; border-radius:16px; background:#10131B; border:1px solid #232836; box-shadow:0 24px 60px rgba(0,0,0,.55); overflow:hidden; }
.ap-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid #1d2230; }
.ap-head b{ display:block; color:#fff; font-size:18px; } .ap-head small{ color:#7c879b; font-size:12.5px; }
.ap-x{ background:none; border:none; color:#7c879b; font-size:16px; cursor:pointer; } .ap-x:hover{ color:#fff; }
.ap-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 20px; border-bottom:1px solid #1d2230; }
.ap-search{ flex:1; min-width:180px; height:34px; display:flex; align-items:center; gap:8px; padding:0 12px; border-radius:10px; background:#0C0E14; border:1px solid #232836; color:#5f7290; }
.ap-search .icn{ width:15px; height:15px; }
.ap-search input{ flex:1; min-width:0; background:none !important; border:none !important; box-shadow:none !important; padding:0 !important; color:#fff; font:500 13px 'Outfit',sans-serif; outline:none; }
.ap-search:focus-within{ border-color:rgba(56,189,248,.5); }
.ap-filter{ display:flex; gap:4px; padding:3px; border-radius:10px; background:#0C0E14; border:1px solid #232836; }
.ap-filter button{ padding:5px 12px; border:none; border-radius:7px; background:none; color:#7c879b; font:700 12px 'Outfit',sans-serif; cursor:pointer; }
.ap-filter button.on{ background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; }
.ap-count{ color:#7c879b; font-size:12px; }
.ap-list{ overflow-y:auto; padding:8px 12px 14px; }
.ap-row{ display:flex; align-items:center; gap:12px; padding:10px 8px; border-radius:10px; }
.ap-row:hover{ background:#141823; }
.ap-av{ position:relative; overflow:hidden; flex:none; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#132a4d,#0d1e38); border:1px solid rgba(56,189,248,.3); color:#fff; font-weight:800; }
.ap-av img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ap-who{ flex:1; min-width:0; }
.ap-who b{ display:block; color:#fff; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-who small{ display:block; color:#7c879b; font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-tag{ font-style:normal; margin-left:4px; padding:1px 6px; border-radius:5px; font-size:9.5px; font-weight:800; letter-spacing:.05em; background:rgba(56,189,248,.16); color:var(--accent); vertical-align:2px; }
.ap-tag.own{ background:rgba(245,185,66,.16); color:var(--gold); }
.ap-btn{ flex:none; min-width:96px; padding:7px 12px; border-radius:8px; border:1px solid transparent; font:700 12px 'Outfit',sans-serif; cursor:pointer; text-align:center; }
.ap-btn.on{ background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; }
.ap-btn.off{ background:#0C0E14; border-color:#2a2f3b; color:#d3e0ee; } .ap-btn.off:hover{ border-color:rgba(56,189,248,.5); }
.ap-btn.del{ min-width:72px; background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.35); color:#ff7a83; } .ap-btn.del:hover{ background:rgba(239,68,68,.22); }
.ap-btn.ghost{ min-width:72px; visibility:hidden; }
.ap-btn:disabled{ opacity:.6; cursor:default; }
@media (max-width:600px){ .ap-row{ flex-wrap:wrap; } .ap-who{ flex-basis:calc(100% - 50px); } }

/* bell: red glow around the bell and the number circle while there are new notifications */
.tb-bell.has-new .icn{ color:#ff3b47; filter:drop-shadow(0 0 4px rgba(255,59,71,.95)) drop-shadow(0 0 10px rgba(255,59,71,.6)); }
.tb-bell.has-new{ background:radial-gradient(circle at 50% 50%, rgba(255,59,71,.18), transparent 70%); }
.tb-bell.has-new .tb-badge{ min-width:18px; height:18px; line-height:18px; border-radius:999px; background:#ff3b47;
  box-shadow:0 0 0 2px #0C0E14, 0 0 8px 2px rgba(255,59,71,.9), 0 0 18px 4px rgba(255,59,71,.55); animation:tbBadgeGlow 1.8s ease-in-out infinite; }
@keyframes tbBadgeGlow{
  0%,100%{ box-shadow:0 0 0 2px #0C0E14, 0 0 8px 2px rgba(255,59,71,.9), 0 0 18px 4px rgba(255,59,71,.55); }
  50%{ box-shadow:0 0 0 2px #0C0E14, 0 0 12px 3px rgba(255,59,71,1), 0 0 26px 7px rgba(255,59,71,.7); }
}
.tb-bell.has-new .tb-badge{ top:-3px; right:-5px; }

/* bell rings (swings) while the mouse is on it */
.tb-bell .icn{ transform-origin:50% 8%; }
.tb-bell:hover .icn{ animation:tbBellRing .9s ease-in-out infinite; }
@keyframes tbBellRing{
  0%{ transform:rotate(0); }
  10%{ transform:rotate(18deg); }
  20%{ transform:rotate(-16deg); }
  30%{ transform:rotate(13deg); }
  40%{ transform:rotate(-10deg); }
  50%{ transform:rotate(6deg); }
  60%{ transform:rotate(-3deg); }
  70%,100%{ transform:rotate(0); }
}
@media (prefers-reduced-motion:reduce){ .tb-bell:hover .icn{ animation:none; } }

/* ---------- Updates menu (bell) — like the reference ---------- */
.tb-notes{ width:330px; padding:0; border-radius:14px; background:#13151D; border-color:#262a36; }
.tb-notes .tb-menu-h{ padding:14px 16px 10px; border-bottom:none; }
.tb-notes .tb-menu-h b{ font-size:15px; }
.tb-h-right{ display:flex; align-items:center; gap:8px; }
.tb-unread{ background:none; border:none; padding:0; cursor:pointer; color:#ff4d57; font:600 11.5px ui-monospace,'Cascadia Mono',Consolas,monospace; letter-spacing:.02em; }
.tb-unread:hover{ text-decoration:underline; }
.tb-unread.none{ color:#5f6b80; cursor:default; text-decoration:none; }
.tb-new{ padding:3px 9px; border-radius:7px; border:1px solid rgba(56,189,248,.45); background:rgba(56,189,248,.1); color:var(--accent); font:700 11.5px 'Outfit',sans-serif; cursor:pointer; }
.tb-new[hidden]{ display:none; }
.tb-utabs{ display:flex; gap:4px; margin:0 12px 10px; padding:4px; border-radius:10px; border:1px solid #262a36; background:#0F1117; }
.tb-utabs button{ flex:1; padding:7px 0; border-radius:7px; border:1px solid transparent; background:none; color:#8a93a6; font:700 12.5px 'Outfit',sans-serif; cursor:pointer; transition:color .2s, background .2s; }
.tb-utabs button:hover{ color:#fff; }
.tb-utabs button.on{ color:#fff; background:rgba(56,189,248,.16); border-color:rgba(56,189,248,.45); }
.tb-notes .tb-notes-list{ max-height:400px; padding:0 8px 10px 12px; display:flex; flex-direction:column; gap:10px; scrollbar-width:thin; scrollbar-color:rgba(56,189,248,.45) transparent; }
.tb-notes .tb-notes-list::-webkit-scrollbar{ width:5px; }
.tb-notes .tb-notes-list::-webkit-scrollbar-thumb{ background:rgba(56,189,248,.45); border-radius:9px; }
.tb-upd{ position:relative; padding:11px 12px 12px; border-radius:11px; background:#1A1D27; border:1px solid #272b38; cursor:pointer; transition:border-color .2s, background .2s; }
.tb-upd:hover{ border-color:rgba(56,189,248,.45); background:#1c2030; }
.tb-upd-top{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.tb-tag{ padding:2px 8px; border-radius:6px; font:800 10px 'Outfit',sans-serif; letter-spacing:.08em; }
.tb-tag.t-update{ background:rgba(34,211,238,.14); color:#22d3ee; border:1px solid rgba(34,211,238,.3); }
.tb-tag.t-feature{ background:rgba(37,99,235,.22); color:#7fb2ff; border:1px solid rgba(96,165,250,.35); }
.tb-upd-top time{ margin-left:auto; color:#4f5a6e; font:500 11px ui-monospace,'Cascadia Mono',Consolas,monospace; }
.tb-dot{ flex:none; width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px rgba(56,189,248,.8); }
.tb-upd .tb-ann-del{ display:none; }
.tb-upd:hover .tb-ann-del{ display:block; }
.tb-upd-title{ display:block; color:#fff; font:800 14px/1.35 'Outfit',sans-serif; unicode-bidi:plaintext; text-align:start; word-break:break-word; }
.tb-upd-body{ margin:5px 0 0; color:#7d8799; font:500 12.5px/1.5 'Outfit',sans-serif; unicode-bidi:plaintext; text-align:start; white-space:pre-wrap; word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tb-upd.open .tb-upd-body{ -webkit-line-clamp:unset; display:block; }
.tb-upd:not(.new){ opacity:.85; }
.tb-notes .tb-compose{ margin:0 12px 10px; padding:10px; border:1px solid #262a36; border-radius:10px; background:#0F1117; display:flex; flex-direction:column; gap:8px; }
.tb-notes .tb-compose[hidden]{ display:none; }
.tb-compose input{ width:100%; box-sizing:border-box; padding:7px 10px; border-radius:8px; background:#0C0E14; border:1px solid #232836; color:#fff; font:700 13px 'Outfit',sans-serif; }
.tb-compose input:focus{ outline:none; border-color:rgba(56,189,248,.55); box-shadow:none; }
.tb-compose-type{ display:flex; gap:4px; }
.tb-compose-type button{ padding:4px 10px; border-radius:6px; border:1px solid #262a36; background:none; color:#8a93a6; font:700 11px 'Outfit',sans-serif; cursor:pointer; }
.tb-compose-type button.on{ color:var(--accent); border-color:rgba(56,189,248,.45); background:rgba(56,189,248,.1); }
.tb-notes .tb-compose-row{ margin-top:0; }
.tb-compose-err{ flex:1; }
.tb-cancel{ padding:6px 12px; border-radius:8px; border:1px solid #2a2f3b; background:none; color:#c3cad6; font:700 12.5px 'Outfit',sans-serif; cursor:pointer; }
.tb-notes .tb-menu-h .tb-unread{ color:#ff4d57; font:600 11.5px ui-monospace,'Cascadia Mono',Consolas,monospace; }
.tb-notes .tb-menu-h .tb-unread.none{ color:#5f6b80; }
.tb-notes .tb-menu-h .tb-new{ color:var(--accent); font:700 11.5px 'Outfit',sans-serif; }
.tb-utabs button{ text-align:center; justify-content:center; display:flex; align-items:center; }

/* ---------- Account menu (like the reference) ---------- */
.tb-acc{ width:260px; min-width:0; padding:0; border-radius:14px; background:#13151D; border-color:#262a36; overflow:hidden; }
.acc-top{ display:flex; align-items:center; gap:12px; padding:14px 16px; }
.acc-av{ position:relative; overflow:hidden; flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#132a4d,#0d1e38); border:1px solid rgba(56,189,248,.35); color:#fff; font:800 15px 'Outfit',sans-serif; }
.acc-av img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.acc-top b{ display:block; color:#fff; font:800 15px 'Outfit',sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:170px; }
.acc-top small{ display:block; color:#6f7a8f; font:500 12px 'Outfit',sans-serif; }
.acc-sec{ border-top:1px solid #20242f; padding:8px 8px; }
.acc-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:6px 8px; }
.acc-lbl{ display:flex; align-items:center; gap:8px; color:#6f7a8f; font:600 13px 'Outfit',sans-serif; }
.acc-lbl .icn{ width:15px; height:15px; }
.acc-plan{ padding:2px 8px; border-radius:6px; font:800 10.5px 'Outfit',sans-serif; letter-spacing:.06em; border:1px solid #3a4050; color:#c3cad6; background:#1A1D27; }
.acc-plan.p-pro{ color:var(--accent); border-color:rgba(56,189,248,.45); background:rgba(56,189,248,.1); }
.acc-plan.p-own{ color:var(--gold); border-color:rgba(245,185,66,.45); background:rgba(245,185,66,.1); }
.acc-lang-btn{ display:flex; align-items:center; gap:7px; padding:3px 4px; border:none; background:none; color:#fff; font:800 12.5px 'Outfit',sans-serif; cursor:pointer; border-radius:6px; }
.acc-lang-btn:hover{ background:#1A1D27; }
.acc-lang-btn .icn{ width:12px; height:12px; color:#6f7a8f; }
.flag{ width:22px; height:15px; border-radius:2px; flex:none; box-shadow:0 0 0 1px rgba(255,255,255,.12); }
.acc-lang-list{ margin:2px 4px 4px; padding:4px; border-radius:10px; background:#0F1117; border:1px solid #262a36; }
.acc-lang-list[hidden]{ display:none; }
.acc-lang-opt{ display:flex; align-items:center; gap:10px; width:100%; padding:7px 8px; border:none; border-radius:7px; background:none; color:#d3e0ee; font:700 13px 'Outfit','Heebo',sans-serif; cursor:pointer; text-align:left; }
.acc-lang-opt:hover{ background:#1A1D27; }
.acc-lang-opt span{ flex:1; }
.acc-lang-opt em{ font-style:normal; color:#5f6b80; font-size:11px; font-weight:700; }
.acc-lang-opt.on span{ color:var(--accent); }
.tb-acc .acc-links a, .tb-acc .acc-links button{ display:flex; align-items:center; gap:10px; width:100%; padding:8px 8px; border-radius:8px; background:none; border:none; color:#d3e0ee; font:600 13.5px 'Outfit',sans-serif; text-align:left; text-decoration:none; cursor:pointer; }
.tb-acc .acc-links a:hover, .tb-acc .acc-links button:hover{ background:rgba(56,189,248,.1); color:#fff; }
.tb-acc .acc-links .icn{ width:16px; height:16px; color:#8a93a6; flex:none; }
.tb-acc .acc-links .acc-out{ color:#ff5a5f; } .tb-acc .acc-links .acc-out .icn{ color:#ff5a5f; }
.tb-acc .acc-links .acc-out:hover{ background:rgba(255,90,95,.1); color:#ff7a7e; }
.acc-foot{ display:flex; align-items:center; gap:7px; padding:10px 16px 12px; border-top:1px solid #20242f; font:600 11.5px 'Outfit',sans-serif; }
.acc-foot a{ color:#6f7a8f; text-decoration:none; } .acc-foot a:hover{ color:var(--accent); }
.acc-foot i{ font-style:normal; color:#3d4454; }
.acc-foot span{ margin-left:auto; color:#4f5a6e; }

/* breadcrumb with only the page name (Support Tickets) */
header.tb .crumb.solo #crumbCat, header.tb .crumb.solo .sep{ display:none; }

/* ---------- Support Tickets page ---------- */
.tk{ display:grid; grid-template-columns:340px minmax(0,1fr); gap:16px; align-items:stretch; font-family:'Outfit',sans-serif; }
.tk-left{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.tk-card{ border-radius:14px; background:#13151D; border:1px solid #262a36; }
.tk-new{ padding:16px; display:flex; flex-direction:column; }
.tk-new h3{ margin:0 0 10px; color:#fff; font-size:15px; font-weight:800; }
.tk-new label{ margin:8px 0 6px; color:#c3cad6; font-size:12.5px; font-weight:700; }
.tk-new select, .tk-new input, .tk-new textarea{ width:100%; box-sizing:border-box; padding:10px 12px; border-radius:9px; background:#0F1117; border:1px solid #2a2f3b; color:#fff; font:600 13px 'Outfit',sans-serif; }
.tk-new textarea{ resize:vertical; min-height:84px; font-weight:500; }
.tk-new select:focus, .tk-new input:focus, .tk-new textarea:focus{ outline:none; border-color:rgba(56,189,248,.55); box-shadow:0 0 0 3px rgba(56,189,248,.12); }
.tk-err{ min-height:16px; margin-top:6px; color:#ff7a83; font-size:12px; }
.tk-btn{ align-self:flex-start; margin-top:4px; padding:9px 16px; border:none; border-radius:9px; background:linear-gradient(135deg,var(--secondary),var(--accent)); color:#fff; font:800 13px 'Outfit',sans-serif; cursor:pointer; box-shadow:0 6px 18px rgba(56,189,248,.25); }
.tk-btn:disabled{ opacity:.45; cursor:default; box-shadow:none; }
.tk-listcard{ flex:1; min-height:240px; display:flex; flex-direction:column; overflow:hidden; }
.tk-tabs{ display:flex; gap:4px; margin:8px; padding:4px; border-radius:10px; background:#0F1117; border:1px solid #262a36; }
.tk-tabs button{ flex:1; display:flex; align-items:center; justify-content:center; gap:7px; padding:7px 0; border-radius:7px; border:1px solid transparent; background:none; color:#8a93a6; font:700 13px 'Outfit',sans-serif; cursor:pointer; }
.tk-tabs button i{ font-style:normal; min-width:18px; padding:0 5px; border-radius:999px; background:#262a36; color:#c3cad6; font-size:10.5px; line-height:17px; }
.tk-tabs button.on{ color:#fff; background:rgba(56,189,248,.14); border-color:rgba(56,189,248,.4); }
.tk-tabs button.on i{ background:rgba(56,189,248,.3); color:#fff; }
.tk-list{ flex:1; overflow-y:auto; max-height:420px; padding:0 8px 8px; display:flex; flex-direction:column; gap:6px; }
.tk-empty-list{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:40px 10px; color:#5f6b80; text-align:center; }
.tk-empty-list .icn{ width:26px; height:26px; }
.tk-empty-list p{ margin:0; font-size:13px; }
.tk-item{ display:block; width:100%; padding:10px 12px; border-radius:10px; background:#1A1D27; border:1px solid #272b38; text-align:left; cursor:pointer; color:inherit; font-family:inherit; transition:border-color .2s; }
.tk-item:hover{ border-color:rgba(56,189,248,.4); }
.tk-item.on{ border-color:rgba(56,189,248,.65); background:#1b2234; }
.tk-item-top{ display:flex; align-items:center; gap:8px; }
.tk-item-top b{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; font-size:13.5px; }
.tk-item-top time{ flex:none; color:#5f6b80; font-size:11px; }
.tk-item-meta{ display:flex; align-items:center; gap:6px; margin-top:4px; }
.tk-cat{ padding:1px 7px; border-radius:5px; background:rgba(56,189,248,.12); color:var(--accent); font-size:10.5px; font-weight:800; }
.tk-who{ color:#c3cad6; font-size:11.5px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tk-dot{ margin-left:auto; width:8px; height:8px; border-radius:50%; background:#ff3b47; box-shadow:0 0 8px rgba(255,59,71,.8); }
.tk-item p{ margin:5px 0 0; color:#7d8799; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; unicode-bidi:plaintext; text-align:start; }
.tk-chat{ min-height:580px; display:flex; flex-direction:column; border-radius:14px; background:#13151D; border:1px solid #262a36; overflow:hidden; }
.tk-chat.empty{ border-style:dashed; align-items:center; justify-content:center; }
.tk-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; padding:24px; max-width:300px; }
.tk-empty-ico{ width:64px; height:64px; margin-bottom:16px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.3); color:var(--accent); }
.tk-empty-ico .icn{ width:28px; height:28px; }
.tk-empty b{ color:#fff; font-size:15px; }
.tk-empty p{ margin:8px 0 0; color:#8a93a6; font-size:13px; line-height:1.5; }
.tk-chat-head{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid #20242f; }
.tk-chat-head > div{ flex:1; min-width:0; }
.tk-chat-head b{ display:block; color:#fff; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; unicode-bidi:plaintext; text-align:start; }
.tk-chat-head small{ color:#6f7a8f; font-size:12px; }
.tk-status{ padding:3px 10px; border-radius:999px; font-size:11px; font-weight:800; }
.tk-status.s-open{ background:rgba(34,197,94,.14); color:#4ade80; border:1px solid rgba(34,197,94,.35); }
.tk-status.s-closed{ background:rgba(154,163,181,.12); color:#9aa3b5; border:1px solid rgba(154,163,181,.3); }
.tk-btn2{ padding:7px 12px; border-radius:8px; background:#0F1117; border:1px solid #2a2f3b; color:#d3e0ee; font:700 12.5px 'Outfit',sans-serif; cursor:pointer; }
.tk-btn2:hover{ border-color:rgba(56,189,248,.5); }
.tk-msgs{ flex:1; overflow-y:auto; max-height:560px; padding:16px 18px; display:flex; flex-direction:column; gap:14px; }
.tk-msg{ display:flex; align-items:flex-end; gap:10px; max-width:78%; }
.tk-msg.me{ align-self:flex-end; flex-direction:row-reverse; }
.tk-av{ position:relative; overflow:hidden; flex:none; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#132a4d,#0d1e38); border:1px solid rgba(56,189,248,.3); color:#fff; font-size:13px; font-weight:800; }
.tk-av img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tk-av.staff{ background:#071426; } .tk-av.staff img{ object-fit:contain; padding:3px; box-sizing:border-box; }
.tk-bubble{ padding:9px 13px; border-radius:12px; background:#1A1D27; border:1px solid #272b38; min-width:0; }
.tk-msg.me .tk-bubble{ background:rgba(37,99,235,.22); border-color:rgba(56,189,248,.35); }
.tk-msg.staff:not(.me) .tk-bubble{ border-color:rgba(56,189,248,.35); }
.tk-msg-h{ display:flex; align-items:center; gap:7px; margin-bottom:3px; }
.tk-msg-h b{ color:#fff; font-size:12.5px; }
.tk-msg-h em{ font-style:normal; padding:0 5px; border-radius:4px; background:rgba(56,189,248,.18); color:var(--accent); font-size:9.5px; font-weight:800; letter-spacing:.05em; }
.tk-msg-h time{ color:#5f6b80; font-size:10.5px; }
.tk-bubble p{ margin:0; color:#e1e6ee; font-size:13.5px; line-height:1.5; white-space:pre-wrap; word-break:break-word; unicode-bidi:plaintext; text-align:start; }
.tk-reply{ display:flex; align-items:flex-end; gap:10px; padding:12px 16px; border-top:1px solid #20242f; }
.tk-reply textarea{ flex:1; resize:none; padding:10px 12px; border-radius:10px; background:#0F1117; border:1px solid #2a2f3b; color:#fff; font:500 13.5px 'Outfit',sans-serif; }
.tk-reply textarea:focus{ outline:none; border-color:rgba(56,189,248,.55); box-shadow:none; }
.tk-reply .tk-btn{ align-self:stretch; margin:0; }
.tk-closed-note{ margin:0; color:#8a93a6; font-size:13px; }
@media (max-width:1000px){ .tk{ grid-template-columns:1fr; } .tk-chat{ min-height:460px; } }

/* Hebrew mode: each Hebrew text reads right-to-left (punctuation in the right place) */
/* the content, menus and windows read right-to-left (the top bar and the side rail keep their place) */
html.lang-he .tab-panel, html.lang-he .tb-menu, html.lang-he .navpanel, html.lang-he .ge-right, html.lang-he .ge-panel, html.lang-he .wm-panel,
html.lang-he .ap-box, html.lang-he .lc-modal-box, html.lang-he .lg-box, html.lang-he .pm-box,
html.lang-he .lc, html.lang-he .ov-head, html.lang-he .gal-toolbar, html.lang-he #galGrid, html.lang-he .tk, html.lang-he .sk-page{ direction:rtl; text-align:right; }
html.lang-he header.tb .crumb{ direction:rtl; }
html.lang-he .tb-acc a, html.lang-he .tb-acc button, html.lang-he .acc-lang-opt, html.lang-he .tk-item{ text-align:right; }
html.lang-he .acc-foot span{ margin-left:0; margin-right:auto; }
html.lang-he input, html.lang-he textarea{ unicode-bidi:plaintext; }
html.lang-he .sidebar .np-item, html.lang-he .sidebar .np-item.np-ltr, html.lang-he .np-sub, html.lang-he .np-subs.np-ltr{ direction:rtl; text-align:right; }
html.lang-he .np-head{ direction:rtl; }
.tb-acc .acc-lang-opt{ display:flex; align-items:center; gap:10px; width:100%; padding:7px 8px; border-radius:7px; color:#d3e0ee; font:700 13px 'Outfit','Heebo',sans-serif; }
.tb-acc .acc-lang-btn{ display:flex; align-items:center; gap:7px; width:auto; padding:3px 4px; color:#fff; font:800 12.5px 'Outfit',sans-serif; }
.tb-acc .acc-lang-opt:hover, .tb-acc .acc-lang-btn:hover{ background:#1A1D27; color:#fff; }
.tb-acc .acc-lang-opt.on span{ color:var(--accent); }
.acc-foot a{ white-space:nowrap; }
.tb-acc{ width:276px; } .acc-foot{ gap:6px; padding:10px 14px 12px; font-size:11px; }
.tb-acc{ width:292px; } .acc-foot span{ flex:none; }
