/* ==================================================================
   GROWZY BOTS — Premium SaaS Design System
   Dark · Red · White  |  SVG-only icons  |  Motion-rich
   ================================================================== */

:root {
  --bg-0: #07080c;
  --bg-1: #0b0d12;
  --bg-2: #10131c;
  --bg-3: #151926;
  --bg-4: #1b2030;
  --line: #232a3b;
  --line-2: #2d3550;
  --text-1: #f4f6fb;
  --text-2: #a7b0c2;
  --text-3: #6b7690;
  --red-0: #e11d48;
  --red-1: #f43f5e;
  --red-2: #fb7185;
  --red-soft: rgba(225, 29, 72, 0.12);
  --red-glow: rgba(225, 29, 72, 0.35);
  --ok-0: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.12);
  --warn-0: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --bad-0: #f43f5e;
  --info-0: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --grad-red: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(225,29,72,.16), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(244,63,94,.10), transparent 55%);
  --card-glass: linear-gradient(160deg, rgba(27,32,48,.72), rgba(16,19,28,.9));
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .65);
  --shadow-red: 0 14px 40px -10px var(--red-glow);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --sidebar-w: 264px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--red-2); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--red-1); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; background: var(--bg-3); border: 1px solid var(--line); padding: 2px 8px; border-radius: 8px; color: var(--red-2); }
::selection { background: var(--red-0); color: #fff; }
:focus-visible { outline: 2px solid var(--red-1); outline-offset: 2px; border-radius: 6px; }
[dir="rtl"] { text-align: right; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #262e44; border-radius: 8px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: #3a4463; }

/* ---------- Icon sizing ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.icon-xl { width: 34px; height: 34px; }

/* ==================================================================
   ANIMATION LIBRARY
   ================================================================== */
@keyframes fadeUp      { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn       { 0% { opacity: 0; transform: scale(.92); } 60% { transform: scale(1.015); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideDown   { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slideLeft   { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot    { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 55% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
@keyframes pulseRed    { 0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,.45); } 55% { box-shadow: 0 0 0 7px rgba(244,63,94,0); } }
@keyframes shimmer     { from { background-position: -450px 0; } to { background-position: 450px 0; } }
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes float       { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes floatSlow   { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-14px); } }
@keyframes orbDrift    { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(26px,-30px) scale(1.08); } 66% { transform: translate(-24px,18px) scale(.94); } }
@keyframes gridSweep   { from { background-position: 0 0; } to { background-position: 0 400px; } }
@keyframes glowPulse   { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes ticker      { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes progressGrow{ from { width: 0; } }
@keyframes countFlash  { 0% { color: var(--text-1); } 50% { color: var(--red-1); transform: scale(1.06); } 100% { color: var(--text-1); } }
@keyframes shake       { 10%,90% { transform: translateX(-1px);} 20%,80% {transform: translateX(2px);} 30%,50%,70% {transform: translateX(-3px);} 40%,60% {transform: translateX(3px);} }
@keyframes ringSpin    { to { stroke-dashoffset: 0; } }

.anim-fade-up   { animation: fadeUp .55s var(--ease) both; }
.anim-fade-in   { animation: fadeIn .5s var(--ease) both; }
.anim-pop       { animation: popIn .4s var(--ease) both; }
.anim-slide-left{ animation: slideLeft .5s var(--ease) both; }
.anim-delay-1 { animation-delay: .08s; } .anim-delay-2 { animation-delay: .16s; }
.anim-delay-3 { animation-delay: .24s; } .anim-delay-4 { animation-delay: .32s; }
.anim-delay-5 { animation-delay: .40s; } .anim-delay-6 { animation-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14px/1.2 var(--font); letter-spacing: .01em; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none; text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 46px -10px var(--red-glow); }
.btn-ghost { background: var(--bg-3); color: var(--text-1); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-4); border-color: var(--line-2); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red-2); border-color: rgba(225,29,72,.45); }
.btn-outline:hover { background: var(--red-soft); color: var(--red-1); border-color: var(--red-0); }
.btn-danger { background: linear-gradient(135deg, #be123c, #f43f5e); color: #fff; box-shadow: 0 12px 30px -10px rgba(244,63,94,.5); }
.btn-danger:hover { color: #fff; transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.btn-success:hover { color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-lg { padding: 15px 30px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .65; }
.btn.is-loading::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-icon { padding: 10px; border-radius: 11px; }

/* ==================================================================
   FORMS
   ================================================================== */
.form-grid { display: grid; gap: 18px; }
.field label { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-1);
  font: 500 14.5px/1.4 var(--font); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7690' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.2 9.2 12 15l5.8-5.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red-0); box-shadow: 0 0 0 4px rgba(225,29,72,.15); background: var(--bg-3); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input[readonly] { color: var(--text-2); background: var(--bg-1); }
.field-hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--bad-0); font-size: 13px; margin-top: 7px; animation: slideDown .25s var(--ease); font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-3); cursor: pointer; padding: 7px; border-radius: 8px; display: flex; transition: color .15s, background .15s; }
.input-action:hover { color: var(--text-1); background: var(--bg-4); }
.input-mono { font-family: var(--mono); letter-spacing: .04em; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--red-0); cursor: pointer; }

/* ==================================================================
   CARDS / PANELS
   ================================================================== */
.card {
  background: var(--card-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(14px);
  position: relative;
  transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .3s var(--ease);
}
.card-hover:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-accent { border-top: 2px solid transparent; background:
  linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
  linear-gradient(135deg, rgba(225,29,72,.7), rgba(251,113,133,.15) 40%, rgba(35,42,59,.6)) border-box; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.card-title { display: flex; align-items: center; gap: 11px; font-size: 16.5px; font-weight: 700; margin: 0; }
.card-title .icon { color: var(--red-2); }
.section-title { font-size: 22px; margin-bottom: 6px; }
.section-sub { color: var(--text-2); font-size: 14px; margin: 0 0 26px; }

/* ==================================================================
   BADGES / PILLS (SVG dot — never emoji)
   ================================================================== */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .015em; border: 1px solid transparent; white-space: nowrap; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-ok   { color: #34d399; background: var(--ok-soft); border-color: rgba(16,185,129,.3); }
.pill-ok .pill-dot { animation: pulseDot 2.1s infinite; }
.pill-warn { color: #fbbf24; background: var(--warn-soft); border-color: rgba(245,158,11,.3); }
.pill-warn .pill-dot { animation: pulseDot 1.6s infinite; }
.pill-bad  { color: var(--bad-0); background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.3); }
.pill-bad .pill-dot { animation: pulseRed 1.6s infinite; }
.pill-mute { color: var(--text-3); background: var(--bg-3); border-color: var(--line); }
.pill-info { color: #93c5fd; background: var(--info-soft); border-color: rgba(96,165,250,.3); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; }
.tag-red { color: var(--red-2); background: var(--red-soft); border-color: rgba(225,29,72,.35); }

/* ==================================================================
   APP LAYOUT (sidebar + topbar)
   ================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; position: fixed; inset-block: 0; left: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d1017 0%, #0a0c11 100%);
  border-right: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; text-decoration: none; }
.sidebar-brand:hover { color: #fff; }
.brand-logo {
  width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--grad-red);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-red);
  animation: floatSlow 7s ease-in-out infinite;
}
.brand-logo svg { width: 22px; height: 22px; }
.brand-name { font-weight: 800; font-size: 17px; color: #fff; letter-spacing: .01em; line-height: 1.1; }
.brand-name em { font-style: normal; color: var(--red-2); }
.brand-tag { font-size: 10.5px; color: var(--text-3); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 14px 20px; display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 7px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px;
  color: var(--text-2); font-weight: 600; font-size: 14px; position: relative;
  transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.nav-link .icon { width: 19px; height: 19px; color: var(--text-3); transition: color .16s var(--ease), transform .22s var(--ease); }
.nav-link:hover { background: var(--bg-3); color: #fff; }
.nav-link:hover .icon { color: var(--red-2); transform: translateY(-1px) scale(1.06); }
.nav-link.is-active { background: linear-gradient(90deg, rgba(225,29,72,.16), rgba(225,29,72,.05)); color: #fff; }
.nav-link.is-active .icon { color: var(--red-1); }
.nav-link.is-active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3.5px; height: 22px; border-radius: 0 4px 4px 0; background: var(--grad-red); box-shadow: 0 0 12px var(--red-glow);
}
.nav-badge { margin-left: auto; background: var(--grad-red); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2.5px 8px; }
.sidebar-footer { padding: 16px 18px; border-top: 1px solid var(--line); }
.plan-mini { background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 12px; }
.plan-mini-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.plan-mini-name { font-weight: 700; font-size: 13.5px; color: #fff; display: flex; align-items: center; gap: 7px; }
.plan-mini-name .icon { color: var(--red-2); width: 16px; height: 16px; }
.meter { height: 6px; background: var(--bg-0); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-red); box-shadow: 0 0 10px var(--red-glow); animation: progressGrow 1s var(--ease); transition: width .5s var(--ease); }
.meter span.is-warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.meter span.is-full { background: linear-gradient(90deg, #be123c, #f43f5e); }
.plan-mini-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 7px; font-weight: 600; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 30px;
  background: rgba(11,13,18,.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 17px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.topbar-title .icon { color: var(--red-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s var(--ease);
}
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: var(--bg-3); transform: translateY(-1px); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  background: var(--red-0); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--bg-1); animation: pulseRed 2.4s infinite;
}
.user-chip { display: flex; align-items: center; gap: 11px; padding: 6px 14px 6px 7px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .16s, background .16s; }
.user-chip:hover { border-color: var(--line-2); background: var(--bg-3); }
.avatar { width: 31px; height: 31px; border-radius: 50%; background: var(--grad-red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; border-radius: 20px; }
.user-chip-name { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.15; }
.user-chip-role { font-size: 11px; color: var(--text-3); font-weight: 600; }
.content { padding: 30px; max-width: 1280px; width: 100%; margin: 0 auto; animation: fadeUp .5s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; margin: 0; }
.page-head .sub { color: var(--text-2); font-size: 14px; margin: 5px 0 0; }
.mobile-menu-btn { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(4,5,8,.66); backdrop-filter: blur(3px); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .28s var(--ease); }
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ==================================================================
   STAT CARDS
   ================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px;
  background: var(--card-glass); border: 1px solid var(--line);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .3s var(--ease);
  animation: fadeUp .55s var(--ease) both;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.stat-card::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--red-soft), transparent 70%); transition: transform .4s var(--ease);
}
.stat-card:hover::after { transform: scale(1.4); }
.stat-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 15px; background: var(--red-soft); color: var(--red-2); border: 1px solid rgba(225,29,72,.25); }
.stat-icon.is-ok { background: var(--ok-soft); color: #34d399; border-color: rgba(16,185,129,.25); }
.stat-icon.is-warn { background: var(--warn-soft); color: #fbbf24; border-color: rgba(245,158,11,.25); }
.stat-icon.is-info { background: var(--info-soft); color: #93c5fd; border-color: rgba(96,165,250,.25); }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: 4px; }
.stat-trend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #34d399; margin-top: 10px; }
.stat-trend .icon { width: 14px; height: 14px; }

/* ==================================================================
   TABLES
   ================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th {
  text-align: left; padding: 14px 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid var(--line); background: var(--bg-1); white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid rgba(35,42,59,.55); vertical-align: middle; }
.table tbody tr { transition: background .14s var(--ease); }
.table tbody tr:hover { background: rgba(27,32,48,.5); }
.table tbody tr:last-child td { border-bottom: none; }
.cell-strong { color: #fff; font-weight: 600; }
.cell-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cell-actions { display: flex; gap: 8px; justify-content: flex-end; }
.row-actions { display: inline-flex; gap: 6px; }
.table-empty { padding: 54px 20px; text-align: center; color: var(--text-3); }

/* ==================================================================
   EMPTY / SKELETON / ALERTS / TOASTS
   ================================================================== */
.empty-state { text-align: center; padding: 62px 26px; }
.empty-icon {
  width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(225,29,72,.14), rgba(225,29,72,.04)); border: 1px solid rgba(225,29,72,.3);
  color: var(--red-2); animation: float 6s ease-in-out infinite;
}
.empty-icon .icon { width: 36px; height: 36px; }
.empty-state h3 { font-size: 18px; color: #fff; }
.empty-state p { color: var(--text-3); max-width: 380px; margin: 0 auto 22px; font-size: 14px; }

.skeleton { position: relative; overflow: hidden; background: var(--bg-3); border-radius: 10px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  background-size: 450px 100%; animation: shimmer 1.35s infinite linear;
}
.skeleton-line { height: 13px; margin: 10px 0; }
.skeleton-card { height: 150px; border-radius: var(--r-lg); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: 14px; margin-bottom: 20px; font-size: 14px; border: 1px solid; animation: fadeUp .4s var(--ease) both; }
.alert .icon { width: 19px; height: 19px; margin-top: 1px; flex: none; }
.alert-success { background: var(--ok-soft); border-color: rgba(16,185,129,.35); color: #6ee7b7; }
.alert-error   { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.4); color: #fda4af; }
.alert-error.shake { animation: fadeUp .4s var(--ease) both, shake .5s var(--ease) .1s; }
.alert-warning { background: var(--warn-soft); border-color: rgba(245,158,11,.35); color: #fcd34d; }
.alert-info    { background: var(--info-soft); border-color: rgba(96,165,250,.35); color: #93c5fd; }

.toast-stack { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
[dir="rtl"] .toast-stack { right: auto; left: 20px; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border-radius: 14px;
  background: rgba(21,25,38,.96); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  color: var(--text-1); font-size: 14px; backdrop-filter: blur(12px);
  animation: slideLeft .4s var(--ease) both;
}
.toast.is-leaving { animation: slideLeft .3s var(--ease) reverse both; }
.toast .icon { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.toast-success .icon { color: #34d399; } .toast-error .icon { color: var(--bad-0); }
.toast-info .icon { color: #93c5fd; } .toast-warning .icon { color: #fbbf24; }
.toast-close { margin-left: auto; background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 7px; display: flex; }
.toast-close:hover { color: #fff; background: var(--bg-4); }

/* ==================================================================
   MODALS / CONFIRM
   ================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 150; background: rgba(4,5,8,.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.modal-scrim.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.97); transition: transform .28s var(--ease); max-height: 90vh; overflow-y: auto;
}
.modal-scrim.is-open .modal { transform: none; }
.modal-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: var(--red-soft); color: var(--red-2); border: 1px solid rgba(225,29,72,.3); }
.modal-icon .icon { width: 28px; height: 28px; }
.modal h3 { font-size: 19px; margin-bottom: 8px; }
.modal p { color: var(--text-2); font-size: 14.5px; }
.modal-actions { display: flex; gap: 11px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }

/* ==================================================================
   PAGINATION
   ================================================================== */
.pagination { display: flex; gap: 7px; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 13.5px;
}
.page-btn .icon { width: 16px; height: 16px; }
.page-btn:hover { color: #fff; border-color: var(--line-2); background: var(--bg-3); }
.page-btn.is-active { background: var(--grad-red); color: #fff; border-color: transparent; box-shadow: var(--shadow-red); }
.page-btn.is-disabled { opacity: .4; pointer-events: none; }

/* ==================================================================
   LANDING PAGE
   ================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 26px;
  padding: 15px 4.5vw; background: rgba(7,8,12,.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(35,42,59,.6);
}
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: 12px; }
.site-nav a { color: var(--text-2); font-weight: 600; font-size: 14px; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; border-radius: 2px; background: var(--grad-red); transition: width .25s var(--ease); }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { width: 100%; }
.site-header .cta { margin-left: auto; display: flex; gap: 11px; align-items: center; }
.hero {
  position: relative; overflow: hidden; padding: 92px 4.5vw 100px;
  background: var(--grad-hero);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; animation: orbDrift 16s ease-in-out infinite; }
.hero-orb-1 { width: 420px; height: 420px; background: rgba(225,29,72,.34); top: -140px; right: -80px; }
.hero-orb-2 { width: 340px; height: 340px; background: rgba(244,63,94,.16); bottom: -120px; left: -60px; animation-delay: -6s; }
.hero-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  animation: gridSweep 60s linear infinite;
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: var(--red-soft); border: 1px solid rgba(225,29,72,.4); color: var(--red-2);
  font-size: 13px; font-weight: 700; margin-bottom: 24px; animation: fadeUp .5s var(--ease) both;
}
.hero-badge .icon { width: 15px; height: 15px; animation: glowPulse 2.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; margin-bottom: 20px; animation: fadeUp .55s var(--ease) .06s both; }
.hero h1 .grad { background: linear-gradient(120deg, #fb7185, #e11d48 55%, #f43f5e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--text-2); max-width: 540px; margin-bottom: 34px; animation: fadeUp .55s var(--ease) .12s both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .55s var(--ease) .18s both; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; animation: fadeUp .55s var(--ease) .26s both; }
.hero-stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.hero-stat span { color: var(--text-3); font-size: 13px; font-weight: 600; }

.hero-visual { position: relative; animation: fadeUp .7s var(--ease) .2s both; }
.hero-console {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  background: linear-gradient(165deg, rgba(27,32,48,.9), rgba(13,16,24,.95));
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 80px -30px var(--red-glow);
  animation: float 9s ease-in-out infinite;
}
.hero-console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(11,13,18,.6); }
.hero-console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2d3550; }
.hero-console-bar i:first-child { background: var(--red-0); }
.hero-console-bar span { margin-left: 9px; font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.hero-console-body { padding: 20px 22px 26px; font-family: var(--mono); font-size: 12.8px; line-height: 2.05; }
.console-line { display: flex; gap: 11px; opacity: 0; animation: fadeUp .45s var(--ease) both; }
.console-line .c-prompt { color: var(--red-2); }
.console-line .c-ok { color: #34d399; }
.console-line .c-dim { color: var(--text-3); }
.console-line .c-white { color: var(--text-1); }
.console-card { margin-top: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(7,8,12,.6); padding: 13px 16px; display: flex; align-items: center; gap: 12px; }
.console-pulse { width: 9px; height: 9px; border-radius: 50%; background: #34d399; animation: pulseDot 2s infinite; flex: none; }

.marquee-section { border-block: 1px solid var(--line); background: var(--bg-0); overflow: hidden; padding: 17px 0; }
.marquee { display: flex; gap: 54px; width: max-content; animation: ticker 30s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 11px; color: var(--text-3); font-weight: 700; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.marquee-item .icon { color: var(--red-2); width: 17px; height: 17px; }

.section { padding: 84px 4.5vw; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--red-2); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.section-head .kicker::before, .section-head .kicker::after { content: ""; width: 26px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--red-0)); }
.section-head .kicker::after { background: linear-gradient(90deg, var(--red-0), transparent); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head p { color: var(--text-2); font-size: 15.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.feature-card { position: relative; padding: 30px; border-radius: var(--r-lg); background: var(--card-glass); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease); }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(225,29,72,.45); box-shadow: var(--shadow-lg); }
.feature-card::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(225,29,72,.14), transparent 65%); opacity: 0; transition: opacity .35s var(--ease); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--red-soft); border: 1px solid rgba(225,29,72,.35); color: var(--red-2); display: grid; place-items: center; margin-bottom: 20px; transition: transform .3s var(--ease); }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--text-2); font-size: 14px; margin: 0; }

.steps { max-width: 900px; margin: 0 auto; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; position: relative; padding-bottom: 38px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--red-0), rgba(225,29,72,.08)); border-radius: 2px; }
.step-num {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--bg-3); border: 1.5px solid var(--line-2); color: var(--red-2); font-weight: 800; font-size: 18px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.step:hover .step-num { transform: scale(1.1) rotate(-6deg); border-color: var(--red-0); background: var(--red-soft); box-shadow: var(--shadow-red); }
.step h3 { font-size: 16.5px; margin-bottom: 6px; padding-top: 4px; }
.step p { color: var(--text-2); font-size: 14px; margin: 0; }

.cta-band { position: relative; overflow: hidden; margin: 0 4.5vw 84px; border-radius: var(--r-xl); padding: 64px 40px; text-align: center; background: linear-gradient(140deg, #1a0a12, #14060c 55%, #0b0d12); border: 1px solid rgba(225,29,72,.4); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(225,29,72,.28), transparent 70%); animation: glowPulse 5s ease-in-out infinite; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 520px; margin: 0 auto 30px; }

.site-footer { border-top: 1px solid var(--line); padding: 44px 4.5vw; background: var(--bg-0); }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.site-footer .brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; }
.site-footer .brand .brand-logo { width: 34px; height: 34px; border-radius: 11px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.footer-links a:hover { color: var(--red-2); }
.footer-note { width: 100%; color: var(--text-3); font-size: 12.5px; border-top: 1px solid rgba(35,42,59,.5); padding-top: 22px; margin-top: 8px; }

/* ==================================================================
   AUTH PAGES
   ================================================================== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--grad-hero); border-right: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .hero-orb { opacity: .4; }
.auth-quote { position: relative; max-width: 430px; }
.auth-quote h2 { font-size: 30px; letter-spacing: -.02em; }
.auth-quote p { color: var(--text-2); font-size: 15.5px; }
.auth-side-list { display: grid; gap: 15px; margin-top: 34px; }
.auth-side-item { display: flex; gap: 13px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.auth-side-item .icon { color: var(--red-2); width: 19px; height: 19px; margin-top: 2px; flex: none; }
.auth-panel { display: grid; place-items: center; padding: 44px 26px; }
.auth-card { width: 100%; max-width: 430px; animation: fadeUp .5s var(--ease) both; }
.auth-card .card { padding: 34px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-2); }
.lang-picker { position: relative; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; min-width: 190px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 7px;
  box-shadow: var(--shadow-lg); animation: slideDown .22s var(--ease) both;
}
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; background: none; border: none; color: var(--text-2); font: 600 13.5px var(--font); border-radius: 9px; cursor: pointer; text-align: left; }
.lang-menu button:hover { background: var(--bg-3); color: #fff; }
.lang-menu button.is-active { color: var(--red-2); background: var(--red-soft); }

/* ==================================================================
   MARKETPLACE
   ================================================================== */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tpl-card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card-glass); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.tpl-card:hover { transform: translateY(-6px); border-color: rgba(225,29,72,.5); box-shadow: var(--shadow-lg); }
.tpl-thumb {
  position: relative; aspect-ratio: 16 / 9.4; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(140px 90px at 78% 18%, rgba(225,29,72,.36), transparent 70%),
    radial-gradient(180px 120px at 15% 90%, rgba(244,63,94,.2), transparent 70%),
    linear-gradient(160deg, #171b29, #0d1017);
  border-bottom: 1px solid var(--line);
}
.tpl-thumb::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
  background-size: 26px 26px;
}
.tpl-thumb .icon { width: 54px; height: 54px; color: var(--red-2); filter: drop-shadow(0 8px 22px rgba(225,29,72,.45)); transition: transform .35s var(--ease); position: relative; }
.tpl-card:hover .tpl-thumb .icon { transform: scale(1.14) translateY(-3px); }
.tpl-thumb img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-thumb .price-chip {
  position: absolute; top: 13px; right: 13px; padding: 6px 13px; border-radius: 999px;
  background: rgba(7,8,12,.78); border: 1px solid rgba(225,29,72,.55); color: #fff; font-weight: 800; font-size: 13.5px;
  backdrop-filter: blur(8px);
}
.tpl-thumb .cat-chip { position: absolute; top: 13px; left: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(225,29,72,.2); border: 1px solid rgba(225,29,72,.5); color: #fda4af; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(8px); letter-spacing: .03em; }
.tpl-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tpl-body h3 { font-size: 16.5px; margin-bottom: 7px; }
.tpl-body .tpl-desc { color: var(--text-2); font-size: 13.5px; flex: 1; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-meta { display: flex; align-items: center; gap: 15px; font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-bottom: 17px; }
.tpl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tpl-meta .icon { width: 14px; height: 14px; }
.tpl-actions { display: flex; gap: 10px; }
.tpl-actions .btn { flex: 1; }
.cat-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.cat-chip-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font: 600 13px var(--font); cursor: pointer;
  transition: all .18s var(--ease);
}
.cat-chip-btn .icon { width: 15px; height: 15px; color: var(--text-3); transition: color .18s; }
.cat-chip-btn:hover { color: #fff; border-color: var(--line-2); transform: translateY(-1px); }
.cat-chip-btn:hover .icon { color: var(--red-2); }
.cat-chip-btn.is-active { background: var(--grad-red); color: #fff; border-color: transparent; box-shadow: var(--shadow-red); }
.cat-chip-btn.is-active .icon { color: #fff; }

/* ==================================================================
   TEMPLATE DETAIL
   ================================================================== */
.tpl-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.tpl-hero-thumb { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16/10; display: grid; place-items: center;
  background: radial-gradient(200px 130px at 70% 25%, rgba(225,29,72,.4), transparent 70%), linear-gradient(160deg, #171b29, #0c0e15);
  box-shadow: var(--shadow-lg);
}
.tpl-hero-thumb .icon { width: 96px; height: 96px; color: var(--red-2); filter: drop-shadow(0 14px 40px rgba(225,29,72,.5)); }
.tpl-buy-card { position: sticky; top: 86px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 20px; }
.price-value { font-size: 37px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg, #fff, #fda4af); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-note { color: var(--text-3); font-size: 13px; font-weight: 600; }
.lic-note { display: flex; gap: 11px; align-items: flex-start; background: var(--bg-3); border: 1px solid var(--line); padding: 13px 15px; border-radius: 13px; font-size: 13px; color: var(--text-2); margin-top: 18px; }
.lic-note .icon { width: 17px; height: 17px; color: var(--red-2); flex: none; margin-top: 1px; }
.check-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.check-list .icon { width: 17px; height: 17px; color: #34d399; flex: none; margin-top: 2px; }

/* ==================================================================
   CHECKOUT / PAYMENT
   ================================================================== */
.pay-shell { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.pay-summary { position: sticky; top: 86px; }
.pay-summary-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(35,42,59,.8); font-size: 14px; color: var(--text-2); }
.pay-summary-row:last-child { border-bottom: none; }
.pay-summary-row b { color: #fff; text-align: right; }
.pay-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1.5px solid var(--line-2); }
.pay-total .amount { font-size: 31px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.qr-card { text-align: center; }
.qr-frame {
  position: relative; display: inline-grid; place-items: center; padding: 17px; margin: 6px auto 18px;
  background: #fff; border-radius: 22px; box-shadow: 0 0 0 1px rgba(225,29,72,.5), 0 18px 50px -16px rgba(225,29,72,.45);
  animation: popIn .5s var(--ease) both;
}
.qr-frame img, .qr-frame svg, .qr-frame object { width: 244px; height: 244px; image-rendering: pixelated; }
.qr-scanline { position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--red-1), transparent); opacity: .8; animation: scanY 2.6s ease-in-out infinite; }
@keyframes scanY { 0%, 100% { top: 14px; } 50% { top: calc(100% - 17px); } }
.pay-expire { display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border-radius: 999px; background: var(--warn-soft); border: 1px solid rgba(245,158,11,.4); color: #fcd34d; font-weight: 700; font-size: 13.5px; }
.pay-expire.is-urgent { background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.5); color: #fda4af; animation: countFlash 1s ease-in-out infinite; }
.pay-expire .icon { width: 15px; height: 15px; }
.upi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 13px; padding: 12px 15px; margin-top: 13px; }
.upi-row .k { font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.upi-row .v { font-family: var(--mono); font-weight: 600; font-size: 14px; color: #fff; word-break: break-all; }
.pay-steps { text-align: left; color: var(--text-2); font-size: 13.5px; }
.pay-steps li { margin-bottom: 9px; }
.pay-steps li::marker { color: var(--red-2); font-weight: 700; }

/* ==================================================================
   BOT CARDS
   ================================================================== */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.bot-card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card-glass); padding: 22px; transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .3s var(--ease); animation: fadeUp .5s var(--ease) both; overflow: hidden; }
.bot-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.bot-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.bot-avatar { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--grad-red); box-shadow: var(--shadow-red); }
.bot-avatar .icon { width: 24px; height: 24px; }
.bot-avatar.is-off { background: linear-gradient(135deg, #3f4657, #262c3d); box-shadow: none; }
.bot-card h3 { font-size: 16px; margin: 0 0 3px; }
.bot-username { font-size: 12.5px; color: var(--text-3); font-weight: 600; font-family: var(--mono); }
.bot-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(35,42,59,.7); font-size: 13px; color: var(--text-2); }
.bot-card-row .k { display: inline-flex; align-items: center; gap: 7px; }
.bot-card-row .k .icon { width: 15px; height: 15px; color: var(--text-3); }
.bot-card-row .v { font-weight: 600; color: var(--text-1); font-size: 12.5px; }

/* ==================================================================
   LOGS / TERMINAL
   ================================================================== */
.terminal { background: #060709; border: 1px solid var(--line); border-radius: var(--r-md); font-family: var(--mono); font-size: 12.6px; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); font-family: var(--font); font-weight: 600; }
.terminal-body { padding: 15px 17px; max-height: 420px; overflow-y: auto; display: grid; gap: 5px; }
.log-line { display: flex; gap: 11px; padding: 6px 9px; border-radius: 8px; animation: fadeIn .3s var(--ease) both; }
.log-line:hover { background: rgba(27,32,48,.6); }
.log-time { color: var(--text-3); flex: none; }
.log-lvl { flex: none; font-weight: 700; width: 66px; }
.log-lvl.info { color: #93c5fd; } .log-lvl.warning { color: #fbbf24; }
.log-lvl.error { color: var(--bad-0); } .log-lvl.webhook { color: var(--red-2); }
.log-lvl.debug { color: var(--text-3); }
.log-msg { color: var(--text-2); word-break: break-word; }

/* ==================================================================
   LICENSE CARDS
   ================================================================== */
.lic-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--line); background: var(--card-glass); border-radius: var(--r-lg); padding: 19px 22px; transition: border-color .2s, transform .2s var(--ease); animation: fadeUp .45s var(--ease) both; }
.lic-card:hover { border-color: var(--line-2); transform: translateX(3px); }
.lic-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--red-soft); border: 1px solid rgba(225,29,72,.3); color: var(--red-2); display: grid; place-items: center; }
.lic-key { font-family: var(--mono); font-size: 13.5px; color: var(--red-2); letter-spacing: .05em; }
.copy-btn { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 5px; border-radius: 7px; display: inline-flex; vertical-align: middle; transition: color .15s, background .15s; }
.copy-btn:hover { color: var(--red-2); background: var(--bg-3); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.copied { color: #34d399; }

/* ==================================================================
   CHART (revenue bars, pure CSS)
   ================================================================== */
.chart { display: flex; align-items: flex-end; gap: 9px; height: 170px; padding-top: 12px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--red-1), rgba(225,29,72,.25)); min-height: 4px; position: relative; animation: barGrow .8s var(--ease) both; transform-origin: bottom; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-bar:hover { filter: brightness(1.25); box-shadow: 0 0 18px var(--red-glow); }
.chart-day { font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.chart-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--bg-0); border: 1px solid var(--line-2); color: #fff; font-size: 11px; padding: 4px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; font-family: var(--font); }
.chart-bar:hover .chart-tip { opacity: 1; }

/* ==================================================================
   MISC WIDGETS
   ================================================================== */
.kv-list { display: grid; gap: 0; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed rgba(35,42,59,.7); font-size: 14px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--text-3); font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.kv-row .k .icon { width: 16px; height: 16px; color: var(--red-2); }
.kv-row .v { color: var(--text-1); font-weight: 600; text-align: right; word-break: break-word; }
.search-bar { position: relative; min-width: 240px; }
.search-bar .input { padding-left: 42px; }
.search-bar .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.filter-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.filter-row .spacer { flex: 1; }
.notif-item { display: flex; gap: 14px; padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); margin-bottom: 11px; transition: border-color .18s, transform .18s var(--ease); animation: fadeUp .4s var(--ease) both; }
.notif-item:hover { border-color: var(--line-2); transform: translateX(3px); }
.notif-item.is-unread { border-left: 3px solid var(--red-0); background: linear-gradient(90deg, rgba(225,29,72,.06), var(--bg-2) 30%); }
.notif-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--red-2); }
.notif-icon .icon { width: 19px; height: 19px; }
.notif-body h4 { margin: 0 0 3px; font-size: 14.5px; }
.notif-body p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.notif-time { margin-left: auto; flex: none; font-size: 12px; color: var(--text-3); font-weight: 600; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.split-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack { display: grid; gap: 22px; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.countdown-flash { animation: countFlash 1s ease-in-out infinite; }

/* ==================================================================
   RESPONSIVE (mobile-first tweaks)
   ================================================================== */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  :root { --sidebar-w: 250px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .tpl-hero { grid-template-columns: 1fr; }
  .pay-shell { grid-template-columns: 1fr; }
  .pay-summary { position: static; order: -1; }
  .split-2, .split-3-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .mobile-menu-btn { display: grid; }
  .content { padding: 20px 16px 34px; }
  .topbar { padding: 12px 16px; }
  .site-nav { display: none; }
  .user-chip-name, .user-chip-role { display: none; }
  .user-chip { padding: 5px; }
  .page-head h1 { font-size: 21px; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 17px; }
  .stat-value { font-size: 22px; }
  .feature-grid, .tpl-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 5vw 70px; }
  .hero-stats { gap: 24px; }
  .card { padding: 20px; border-radius: var(--r-md); }
  .modal { padding: 24px; }
  .tpl-actions { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .table th, .table td { padding: 12px 12px; }
  .qr-frame img, .qr-frame svg { width: 210px; height: 210px; }
  .toast-stack { left: 14px; right: 14px; max-width: none; }
  .step { grid-template-columns: 44px 1fr; gap: 15px; }
  .step-num { width: 44px; height: 44px; border-radius: 14px; font-size: 15px; }
  .step:not(:last-child)::before { left: 21px; top: 46px; }
  .lic-card { grid-template-columns: 44px 1fr; }
  .lic-icon { width: 44px; height: 44px; }
  .lic-card .lic-side { display: none; }
}

/* Responsive table → stacked cards on phones */
@media (max-width: 640px) {
  .table-wrap { border: none; background: none; }
  .table { min-width: 0; display: block; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 12px; }
  .table tr { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 4px; }
  .table td { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: none; padding: 9px 14px; text-align: right; }
  .table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); text-align: left; }
  .cell-actions { justify-content: flex-end; }
}
