/* ═══════════════════════════════════════════════════════════ tokens — "Aurora" theme */
:root {
  --bg: #0c0a14;
  --bg-soft: #110e1b;
  --panel: #15121f;
  --panel-2: #1b1728;
  --panel-3: #241f35;
  --line: rgba(196, 181, 253, .08);
  --line-2: rgba(196, 181, 253, .15);
  --text: #f2eefb;
  --muted: #a7a0bb;
  --dim: #6f6886;
  --accent: #7c5cff;
  --accent-hi: #a594ff;
  --accent-soft: rgba(124, 92, 255, .14);
  --pink: #22d3ee;
  --sky: #22d3ee;
  --green: #4ade80;
  --gold: #22d3ee;
  --red: #fb7185;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, .8);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'Fira Code', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 0% -10%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(34, 211, 238, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(124, 92, 255, .35); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2440; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic { font-size: 19px; line-height: 1; flex: none; display: inline-block; }
.ph-duotone.ic::before { opacity: .3; }

/* ═══════════════════════════════════════════════════════════ buttons */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .25s, opacity .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 14px 40px -10px rgba(124, 92, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(124, 92, 255, .1); border-color: rgba(124, 92, 255, .35); }
.btn-danger { background: rgba(251, 113, 133, .1); color: var(--red); border-color: rgba(251, 113, 133, .3); }
.btn-danger:hover { background: rgba(251, 113, 133, .2); }
.btn-pro { background: linear-gradient(135deg, #7c5cff, #22d3ee); color: #fff; box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .8); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 12px 34px -12px rgba(88, 101, 242, .9); }
.btn-discord:hover { background: #4752c4; }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { --h: 52px; padding: 0 28px; font-size: 15px; }
.btn-icon { width: var(--h); padding: 0; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════ badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 6px; flex: none;
  font: 700 11px/1 var(--font); text-transform: lowercase; letter-spacing: .02em;
}
.badge .ic { font-size: 13px; }
.badge-new { color: #e0f7ff; background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .35)); }
.badge-new::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #a5f3fc; box-shadow: 0 0 8px #22d3ee; }
.badge-pro { color: #fff; background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.badge-soon { color: var(--dim); background: rgba(255, 255, 255, .05); }
.badge-accent { color: var(--accent-hi); background: var(--accent-soft); }
.badge-red { color: var(--red); background: rgba(251, 113, 133, .12); }
.badge-green { color: var(--green); background: rgba(74, 222, 128, .12); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.pill b { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════ site banner (owner announcement) */
.site-banner { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 44px 9px 16px; font-size: 13.5px; font-weight: 600; text-align: center; background: linear-gradient(90deg, rgba(124, 92, 255, .3), rgba(34, 211, 238, .3)); border-bottom: 1px solid var(--line-2); }
.site-banner.success { background: linear-gradient(90deg, rgba(34, 197, 94, .25), rgba(34, 211, 238, .2)); }
.site-banner.warning { background: linear-gradient(90deg, rgba(34, 211, 238, .3), rgba(239, 68, 68, .2)); }
.site-banner button { position: absolute; right: 10px; border: 0; background: none; color: inherit; cursor: pointer; opacity: .7; }

/* ═══════════════════════════════════════════════════════════ nav */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; transition: padding .3s; }
.nav-inner {
  display: flex; align-items: center; gap: 24px; height: 62px; padding: 0 12px 0 18px; border-radius: 999px;
  background: rgba(21, 18, 31, .55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(150%);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled .nav-inner { background: rgba(21, 18, 31, .88); border-color: var(--line-2); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 700 18px var(--display); letter-spacing: -.02em; }
.logo { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--grad); box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .8); color: #fff; overflow: hidden; }
.logo .ic { font-size: 21px; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; gap: 2px; margin-inline-end: auto; }
.nav-links a { padding: 8px 14px; border-radius: 99px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(124, 92, 255, .1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); cursor: pointer; position: relative; }
.user-chip .avatar, .user-chip img { width: 32px; height: 32px; }
.user-chip > span { font-size: 13.5px; font-weight: 700; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-3); object-fit: cover; flex: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 6px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 60;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: .18s ease;
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 10px; border: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(124, 92, 255, .1); color: var(--text); }
.menu .owner-link { color: var(--gold); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ═══════════════════════════════════════════════════════════ landing */
.dots { position: absolute; inset: 0; pointer-events: none; z-index: -1; background-image: radial-gradient(rgba(196, 181, 253, .14) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; animation: float 14s ease-in-out infinite alternate; }
.orb.a { width: 420px; height: 420px; background: rgba(124, 92, 255, .28); top: -40px; left: 8%; }
.orb.b { width: 360px; height: 360px; background: rgba(34, 211, 238, .2); top: 60px; right: 6%; animation-delay: -6s; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.1); } }

.hero { position: relative; isolation: isolate; padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font: 700 clamp(40px, 6vw, 70px)/1.04 var(--display); letter-spacing: -.045em; margin: 24px 0 20px; }
.hero p.lead { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 26px; color: var(--dim); font-size: 13px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { color: var(--green); font-size: 16px; }

/* floating hero cards */
.hero-art { position: relative; height: 480px; }
.float-card { position: absolute; border-radius: 20px; background: rgba(27, 23, 40, .85); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(10px); padding: 18px; animation: bob 7s ease-in-out infinite; }
.float-card:nth-child(2) { animation-delay: -2s; } .float-card:nth-child(3) { animation-delay: -4s; } .float-card:nth-child(4) { animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.fc-main { inset: 30px 30px auto 20px; }
.fc-xp { width: 250px; right: 0; top: 300px; }
.fc-guard { width: 240px; left: -10px; top: 320px; }
.fc-toast { right: -6px; top: -10px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; font-weight: 600; }
.fc-toast .ic { color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 60px 0 0; }
.stat { padding: 22px; border-radius: var(--radius); background: rgba(21, 18, 31, .7); border: 1px solid var(--line); }
.stat b { display: block; font: 700 32px/1.1 var(--display); letter-spacing: -.03em; }
.stat span { color: var(--dim); font-size: 13px; font-weight: 600; }

/* mockup */
.mockup-wrap { position: relative; margin: 80px auto 0; max-width: 1080px; }
.mockup { border-radius: 26px; padding: 12px; border: 1px solid var(--line-2); background: rgba(17, 14, 27, .9); text-align: left; box-shadow: 0 60px 140px -40px rgba(124, 92, 255, .45); }
.mockup-body { display: grid; grid-template-columns: 250px 1fr; gap: 12px; min-height: 430px; }
.mockup-side { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); padding: 14px 10px; }
.mockup-main { padding: 18px 14px; display: grid; gap: 14px; align-content: start; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.mock-row h4 { margin: 0; font-size: 14px; }
.mock-row p { margin: 2px 0 0; font-size: 12.5px; color: var(--dim); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-stat { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.mock-stat span { font-size: 12px; color: var(--dim); font-weight: 600; }
.mock-stat b { display: block; font: 700 24px var(--display); margin-top: 2px; }
.mock-stat .spark { height: 30px; width: 100%; margin-top: 8px; }

/* marquee */
.marquee { overflow: hidden; padding: 40px 0; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip-lg { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip-lg .ic { color: var(--accent-hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

section.block { padding: 110px 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); border: 1px solid rgba(124, 92, 255, .25); font: 700 12px var(--font); letter-spacing: .04em; color: var(--accent-hi); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font: 700 clamp(30px, 4.4vw, 48px)/1.08 var(--display); letter-spacing: -.04em; margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; grid-column: span 2; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; isolation: isolate; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .14), transparent 60%); }
.tile:hover { border-color: rgba(124, 92, 255, .35); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.xwide { grid-column: span 4; }
.tile-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(124, 92, 255, .8); }
.tile-icon .ic { font-size: 24px; }
.tile h3 { font: 700 19px var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.tile p { color: var(--muted); margin: 0; font-size: 14.5px; }
.tile .visual { margin-top: 22px; }

.discord-msg { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: #100d18; border: 1px solid var(--line); font-size: 13.5px; }
.discord-msg + .discord-msg { margin-top: 8px; }
.discord-msg .av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 15px; }
.discord-msg .who { font-weight: 700; font-size: 13.5px; }
.discord-msg .who small { font-weight: 500; color: var(--dim); margin-left: 6px; font-size: 11px; }
.bot-tag { font: 700 9.5px/1 var(--font); background: #5865f2; color: #fff; padding: 3px 5px; border-radius: 4px; margin-left: 5px; vertical-align: 2px; }
.d-embed { margin-top: 6px; border-left: 3px solid var(--accent); background: #17131f; border-radius: 6px; padding: 10px 12px; color: var(--muted); }
.d-embed b { color: var(--text); }
.d-btn { display: inline-flex; margin-top: 8px; padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: #248046; color: #fff; }
.d-btn.blue { background: #5865f2; }
.d-btn.gray { background: #4e5058; }

.xp-bar { height: 10px; border-radius: 99px; background: #241f35; overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.in .xp-bar i, .float-card .xp-bar i { width: var(--w); }

.guard-list { display: grid; gap: 8px; }
.guard-list div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #100d18; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.guard-list div b { font: 600 11px var(--mono); color: var(--green); background: rgba(74, 222, 128, .1); padding: 3px 7px; border-radius: 6px; }

/* how it works */
.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, background .3s, transform .3s; }
.step.active { border-color: rgba(124, 92, 255, .4); background: linear-gradient(135deg, rgba(124, 92, 255, .14), transparent 70%), var(--panel); transform: translateX(6px); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-3); font: 700 13px var(--display); color: var(--accent-hi); }
.step.active::before { background: var(--grad); color: #fff; }
.step h4 { margin: 3px 0 4px; font: 700 16px var(--display); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.terminal { border-radius: 22px; background: #0a0811; border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 12px var(--mono); color: var(--dim); }
.term-bar .live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.term-bar .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.terminal pre { margin: 0; padding: 22px; font: 13.5px/1.8 var(--mono); color: #c4bdd6; min-height: 300px; white-space: pre-wrap; word-break: break-word; }
.terminal .c { color: var(--dim); } .terminal .k { color: var(--pink); } .terminal .s { color: var(--green); } .terminal .a { color: var(--accent-hi); } .terminal .o { color: var(--gold); }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--accent-hi); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* changelog */
.changelog { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.change { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.change time { font: 600 12.5px var(--mono); color: var(--dim); padding-top: 3px; }
.change h4 { margin: 0 0 6px; font: 700 17px var(--display); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.change p { margin: 0; color: var(--muted); font-size: 14.5px; white-space: pre-line; }

/* commands */
.cmd-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.search { position: relative; flex: 1; min-width: 240px; }
.search .ic { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { padding-inline-start: 44px !important; border-radius: 999px !important; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); padding: 7px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--grad); color: #fff; }
.cmd-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cmd { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.cmd:hover { border-color: var(--line-2); }
.cmd code { font: 600 13.5px var(--mono); color: var(--pink); white-space: nowrap; }
.cmd p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.cmd .usage { font: 12px var(--mono); color: var(--dim); margin-top: 4px; }
.cmd-tag { margin-inline-start: auto; font-size: 11px; font-weight: 700; color: var(--accent-hi); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.empty { padding: 40px; text-align: center; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 18px; grid-column: 1 / -1; }

/* pricing */
.billing { display: flex; justify-content: center; margin-bottom: 36px; }
.save { color: #bbf7d0; font-size: 11px; font-weight: 800; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; justify-content: center; }
.plan { position: relative; padding: 32px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.featured { border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; box-shadow: 0 40px 90px -40px rgba(124, 92, 255, .55); }
.plan h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 20px var(--display); }
.plan .price { font: 700 52px/1 var(--display); letter-spacing: -.04em; margin: 22px 0 4px; }
.plan .price small { font: 600 14px var(--font); color: var(--dim); letter-spacing: 0; }
.plan > p { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.plan li .ic { color: var(--green); font-size: 18px; }
.plan.featured li .ic { color: var(--pink); }

/* faq */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(124, 92, 255, .3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; color: var(--dim); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--pink); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; padding: 72px 32px; text-align: center; background: radial-gradient(ellipse at 20% 0%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(34, 211, 238, .25), transparent 60%), var(--panel); border: 1px solid var(--line-2); }
.cta-band h2 { font: 700 clamp(28px, 4.5vw, 46px)/1.1 var(--display); letter-spacing: -.04em; margin: 0 0 14px; }
.cta-band p { color: var(--muted); margin: 0 0 30px; }
.cta-band .hero-cta { justify-content: center; }

footer.site { padding: 46px 0; margin-top: 90px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.foot nav a:hover { color: var(--text); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════ login */
.login-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 30px 16px 60px; position: relative; isolation: isolate; }
.login-card { width: min(440px, 100%); padding: 34px; border-radius: 30px; text-align: center; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(160deg, rgba(124, 92, 255, .6), rgba(34, 211, 238, .15) 50%, transparent) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.login-card .logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px; }
.login-card .logo .ic { font-size: 34px; }
.login-card h1 { font: 700 26px var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.login-card > p { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; }
.login-card .btn { width: 100%; }
.scopes { text-align: left; margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; background: #100d18; border: 1px solid var(--line); display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.scopes div { display: flex; gap: 10px; align-items: flex-start; }
.scopes .ic { color: var(--green); margin-top: 2px; }
.scopes .no .ic { color: var(--red); }
.login-err { margin-bottom: 18px; padding: 10px 14px; border-radius: 12px; background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); color: var(--red); font-size: 13.5px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════ forms */
.input, .select, textarea.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 13px; background: #100d18; border: 1px solid var(--line-2); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover { border-color: rgba(124, 92, 255, .3); }
.input:focus, .select:focus { border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); }
.input::placeholder { color: var(--dim); }
.select { appearance: none; cursor: pointer; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.select option, .select optgroup { background: var(--panel-2); }
input[type=number].input { font-family: var(--mono); }

.switch { position: relative; width: 44px; height: 25px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #2a2440; transition: .25s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #7d7596; transition: .3s cubic-bezier(.3, .7, .3, 1.3); }
.switch input:checked + span { background: var(--grad); box-shadow: 0 0 18px -4px rgba(124, 92, 255, .8); }
.switch input:checked + span::after { left: 22px; background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.switch.lg { width: 52px; height: 29px; }
.switch.lg span::after { width: 23px; height: 23px; }
.switch.lg input:checked + span::after { left: 26px; }

.color-field { display: flex; gap: 8px; }
.color-field input[type=color] { width: 44px; height: 44px; padding: 5px; border-radius: 13px; border: 1px solid var(--line-2); background: #100d18; cursor: pointer; flex: none; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 7px; border-radius: 13px; background: #100d18; border: 1px solid var(--line-2); }
.chips:focus-within { border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(124, 92, 255, .18); }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 6px 0 10px; border-radius: 99px; background: var(--panel-3); font-size: 13px; font-weight: 600; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; padding: 0; }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--dim); cursor: pointer; padding: 0; flex: none; }
.chip button:hover { background: rgba(251, 113, 133, .2); color: var(--red); }
.chip button .ic { font-size: 13px; }
.chips input, .chips select { flex: 1; min-width: 140px; height: 28px; border: 0; background: transparent; outline: none; padding: 0 6px; color: var(--text); }
.chips select { appearance: none; cursor: pointer; color: var(--accent-hi); font-weight: 600; }
.chips select option { background: var(--panel-2); color: var(--text); }

/* ═══════════════════════════════════════════════════════════ servers page */
.profile { display: flex; align-items: center; gap: 20px; margin: 26px 0 30px; padding: 22px; border-radius: 26px; position: relative; overflow: hidden; isolation: isolate; background: var(--panel); border: 1px solid var(--line); }
.profile::before { content: ''; position: absolute; inset: 0 0 50% 0; z-index: -1; background: var(--pbg, var(--grad)); opacity: .35; }
.profile .avatar { width: 76px; height: 76px; border: 4px solid var(--panel); font-size: 26px !important; }
.profile h1 { margin: 0; font: 700 26px var(--display); letter-spacing: -.03em; }
.profile p { margin: 2px 0 0; color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile .grow { flex: 1; min-width: 0; }
.profile-stats { display: flex; gap: 10px; }
.profile-stats div { padding: 10px 16px; border-radius: 16px; background: rgba(12, 10, 20, .6); border: 1px solid var(--line); text-align: center; }
.profile-stats b { display: block; font: 700 20px var(--display); }
.profile-stats span { font-size: 12px; color: var(--dim); font-weight: 600; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 34px 0 16px; font: 700 18px var(--display); letter-spacing: -.02em; }
.section-title .count { font: 700 12px var(--font); color: var(--accent-hi); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }
.section-title small { font: 500 13px var(--font); color: var(--dim); margin-inline-start: auto; }
.servers-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.server { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.server:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .35); box-shadow: 0 24px 50px -28px rgba(124, 92, 255, .6); }
.server header { display: flex; gap: 14px; align-items: center; min-width: 0; }
.server header > div { min-width: 0; }
.guild-icon { width: 54px; height: 54px; border-radius: 17px; background: var(--panel-3); display: grid; place-items: center; font: 700 18px var(--display); color: var(--muted); object-fit: cover; overflow: hidden; flex: none; }
.server h3 { margin: 0 0 4px; font: 700 15.5px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server .meta { display: flex; gap: 5px; flex-wrap: wrap; }
.server .sub { font-size: 12.5px; color: var(--dim); display: flex; gap: 12px; }
.server .sub span { display: inline-flex; align-items: center; gap: 5px; }
.server .sub .on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.server .btn { width: 100%; margin-top: auto; }
.server.member { background: rgba(21, 18, 31, .55); }
.server.member .guild-icon { filter: saturate(.6); }
.skeleton { background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 22px; min-height: 170px; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════ dashboard */
.dash { display: grid; grid-template-columns: 296px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 12px 0 12px 12px; }
.sidebar-inner { height: 100%; display: flex; flex-direction: column; border-radius: 24px; background: rgba(21, 18, 31, .82); border: 1px solid var(--line); overflow: hidden; backdrop-filter: blur(14px); }
.side-top { padding: 18px 14px 12px; border-bottom: 1px solid var(--line); }
.side-top .brand { padding: 0 6px 16px; }
.guild-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 16px; cursor: pointer; background: #100d18; border: 1px solid var(--line-2); text-align: left; position: relative; }
.guild-switch:hover { border-color: rgba(124, 92, 255, .35); }
.gi { width: 36px; height: 36px; border-radius: 12px; flex: none; background: var(--panel-3); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; object-fit: cover; }
.gi img { width: 100%; height: 100%; object-fit: cover; }
.guild-switch b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-switch small { color: var(--dim); font-size: 12px; font-weight: 600; }
.guild-switch > div { min-width: 0; flex: 1; }
.guild-switch > .ic { color: var(--dim); }
.guild-menu { left: 0; right: 0; max-height: 320px; overflow-y: auto; }
.guild-menu .gi { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }

.side-nav { padding: 6px 10px 20px; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.side-group { margin-top: 12px; }
.side-group-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: 0; background: none; cursor: pointer; font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.side-group-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.side-group-head .ic { order: 2; font-size: 14px; transition: transform .25s; }
.side-group.closed .side-group-head .ic { transform: rotate(-90deg); }
.side-group.closed .side-items { display: none; }
.side-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 14px; margin: 2px 0; color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ib { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(124, 92, 255, .09); color: var(--accent-hi); transition: .2s; }
.ib .ic { font-size: 18px; }
.side-item:hover { background: rgba(124, 92, 255, .07); color: var(--text); }
.side-item:hover .ib { background: rgba(124, 92, 255, .16); }
.side-item.active { color: #fff; background: linear-gradient(90deg, rgba(124, 92, 255, .26), rgba(34, 211, 238, .06)); }
.side-item.active .ib { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(124, 92, 255, .8); }
.side-item .badge { margin-inline-start: auto; }
.side-item.locked { color: #4f4865; cursor: not-allowed; }
.side-item.locked .ib { background: rgba(255, 255, 255, .03); color: #4f4865; }
.side-item.locked .lock { margin-inline-start: auto; color: #4f4865; font-size: 15px; }
.side-item.locked .badge + .lock { margin-inline-start: 6px; }
.side-item.off { opacity: .55; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 28px; background: rgba(12, 10, 20, .7); backdrop-filter: blur(16px); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; font-weight: 600; min-width: 0; margin-inline-end: auto; }
.crumbs b { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .ic { font-size: 14px; }
.content { padding: 16px 28px 140px; width: 100%; max-width: 1100px; }

.mod-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 22px; border-radius: 24px; background: linear-gradient(120deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .05) 60%, transparent), var(--panel); border: 1px solid var(--line); }
.mod-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, .8); }
.mod-icon .ic { font-size: 28px; }
.mod-head h1 { margin: 0; font: 700 24px/1.2 var(--display); letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.mod-head .grow { flex: 1; min-width: 0; }
.mod-toggle { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 99px; background: rgba(12, 10, 20, .6); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 700; flex: none; cursor: pointer; }

.card { border-radius: 22px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.card-head h3 { margin: 0; font: 700 15.5px var(--display); display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.card-head h3 .ic { color: var(--pink); }
.card-body { padding: 18px 22px 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field .label { display: block; font-size: 13px; font-weight: 700; color: #cfc7e2; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.field.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 16px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); }
.field.toggle > div { min-width: 0; }
.field.toggle label { margin: 0; }
.field.toggle .hint { margin-top: 2px; }
.vars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vars button { font: 12px var(--mono); padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-hi); border: 0; cursor: pointer; }
.vars button:hover { background: rgba(124, 92, 255, .25); }

.list-rows { display: grid; gap: 10px; }
.list-row { display: grid; gap: 10px; align-items: end; padding: 12px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); }
.list-row .field > label { font-size: 12px; color: var(--dim); }
.list-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.limit { font: 12.5px var(--mono); color: var(--dim); }
.limit.full { color: var(--gold); }
.actions-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.savebar { position: fixed; left: calc(308px + 28px); right: 28px; bottom: 20px; z-index: 40; max-width: 1044px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(27, 23, 40, .94); backdrop-filter: blur(12px); border: 1px solid rgba(124, 92, 255, .3); box-shadow: var(--shadow); transform: translateY(150%); transition: transform .35s cubic-bezier(.2, .8, .2, 1.1); }
.savebar.show { transform: none; }
.savebar.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.savebar p { margin: 0; margin-inline-end: auto; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.savebar p .ic { color: var(--gold); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.kpi span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dim); }
.kpi span .ic { color: var(--accent-hi); font-size: 17px; }
.kpi b { display: block; white-space: nowrap; font: 700 28px/1.2 var(--display); margin-top: 6px; letter-spacing: -.03em; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mod-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #100d18; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.mod-card:hover { border-color: rgba(124, 92, 255, .35); transform: translateY(-2px); }
.mod-card header { display: flex; align-items: center; gap: 10px; }
.mod-card header .ib { width: 30px; height: 30px; }
.mod-card header b { font-size: 14.5px; margin-inline-end: auto; }
.mod-card p { margin: 0; font-size: 13px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; margin-bottom: 16px; border: 1px solid rgba(34, 211, 238, .3); background: linear-gradient(90deg, rgba(34, 211, 238, .1), transparent); flex-wrap: wrap; }
.banner > .ic { color: var(--gold); font-size: 24px; }
.banner div { flex: 1; min-width: 200px; }
.banner b { display: block; }
.banner span { color: var(--muted); font-size: 14px; }
.banner.info { border-color: rgba(124, 92, 255, .3); background: linear-gradient(90deg, rgba(124, 92, 255, .12), transparent); }
.banner.info > .ic { color: var(--accent-hi); }
.banner.danger { border-color: rgba(251, 113, 133, .3); background: linear-gradient(90deg, rgba(251, 113, 133, .1), transparent); }
.banner.danger > .ic { color: var(--red); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(124, 92, 255, .03); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .avatar, .who .gi { width: 30px; height: 30px; }
.rank-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 700 12px var(--mono); color: var(--dim); background: rgba(255, 255, 255, .04); }
.rank-n.top { color: #fff; background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.table-wrap { overflow-x: auto; }

.embed-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.discord-preview { position: sticky; top: 90px; border-radius: 22px; background: #313338; padding: 18px; color: #dbdee1; }
.discord-preview .who { font-weight: 600; color: #f2f3f5; }
.dp-embed { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-top: 6px; max-width: 520px; background: #2b2d31; border-left: 4px solid var(--c, #7c5cff); border-radius: 4px; padding: 10px 14px 14px 12px; }
.dp-embed h4 { margin: 4px 0 0; color: #f2f3f5; font-size: 15px; grid-column: 1; }
.dp-embed .desc { font-size: 14px; white-space: pre-wrap; grid-column: 1; line-height: 1.4; word-break: break-word; }
.dp-embed .thumb { grid-column: 2; grid-row: 1 / span 2; width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }
.dp-embed .img { grid-column: 1 / -1; border-radius: 4px; max-height: 260px; object-fit: cover; }
.dp-embed footer { grid-column: 1 / -1; font-size: 12px; color: #b5bac1; }

.premium-hero { position: relative; overflow: hidden; isolation: isolate; padding: 32px; border-radius: 26px; margin-bottom: 16px; border: 1px solid transparent; background: radial-gradient(ellipse at top right, rgba(34, 211, 238, .18), transparent 55%) padding-box, linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, rgba(34, 211, 238, .6), transparent 60%) border-box; }
.premium-hero h2 { font: 700 28px var(--display); margin: 12px 0 6px; letter-spacing: -.03em; }
.premium-hero p { color: var(--muted); margin: 0 0 22px; max-width: 540px; }
.redeem { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.redeem .input { flex: 1; min-width: 200px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--green); } .no { color: var(--dim); }

.locked-page { text-align: center; padding: 70px 20px; border-radius: 26px; border: 1px dashed var(--line-2); }
.locked-page .mod-icon { margin: 0 auto 18px; }
.locked-page h2 { font: 700 24px var(--display); margin: 0 0 8px; letter-spacing: -.02em; }
.locked-page p { color: var(--muted); margin: 0 auto 24px; max-width: 440px; }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tpl { padding: 20px; border-radius: 18px; background: #100d18; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tpl > .ic { font-size: 26px; color: var(--pink); }
.tpl b { font-size: 15px; }
.tpl p { margin: 0; color: var(--dim); font-size: 13.5px; flex: 1; }

/* owner panel */
.owner-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7c5cff, #22d3ee); }
.code-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #100d18; border: 1px solid var(--line); }
.code-row code { font: 600 14px var(--mono); letter-spacing: .03em; }
.code-row .grow { flex: 1; min-width: 0; }
.code-row small { display: block; color: var(--dim); font-size: 12px; }
.code-row.used code { color: var(--dim); text-decoration: line-through; }
.stack { display: grid; gap: 8px; }
.log { display: grid; gap: 2px; font-size: 13.5px; }
.log div { display: grid; grid-template-columns: 150px 170px 1fr; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.log div:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.log time { color: var(--dim); font: 12px var(--mono); }
.log b { color: var(--accent-hi); font: 600 12.5px var(--mono); }
.module-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.module-toggles label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #100d18; border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.module-toggles label .switch { margin-inline-start: auto; }
.module-toggles label.killed { border-color: rgba(251, 113, 133, .35); }
.health { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--green); }
.health::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.health.down { color: var(--red); }

/* toast + misc */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 10px; width: min(360px, calc(100% - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; animation: toastIn .35s cubic-bezier(.2, .8, .2, 1.2); }
.toast .ic { margin-top: 1px; }
.toast.ok .ic { color: var(--green); } .toast.err .ic { color: var(--red); } .toast.info .ic { color: var(--accent-hi); }
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

.loader { display: grid; place-items: center; min-height: 60vh; color: var(--dim); gap: 14px; font-weight: 600; }
.loader .ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--panel-3); border-top-color: var(--pink); border-right-color: var(--accent); animation: spin .8s linear infinite; }

.demo-flag { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .4); color: var(--gold); font-size: 12.5px; font-weight: 700; backdrop-filter: blur(10px); white-space: nowrap; }
.dash ~ .demo-flag { left: 26px; transform: none; bottom: 26px; }

.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .25s; }
.backdrop.show { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════════ responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.xwide { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .embed-split { grid-template-columns: 1fr; }
  .discord-preview { position: static; }
}
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 300px; z-index: 50; padding: 10px; transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .sidebar.open { transform: none; }
  .nav-toggle { display: inline-flex; }
  .savebar { left: 16px; right: 16px; }
  .topbar { padding: 0 16px; }
  .content { padding: 10px 16px 140px; }
  .log div { grid-template-columns: 1fr; gap: 2px; }
  .profile { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 84px; left: 16px; right: 16px; padding: 12px; border-radius: 22px; background: rgba(21, 18, 31, .97); border: 1px solid var(--line-2); }
  .nav-inner { gap: 10px; }
  .nav-inner .brand { margin-inline-end: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
  .cmd-list { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .change { grid-template-columns: 1fr; gap: 6px; }
  section.block { padding: 80px 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile.xwide { grid-column: auto; }
  .hide-sm { display: none !important; }
  .mod-head { flex-wrap: wrap; }
  .mod-toggle { width: 100%; justify-content: space-between; }
  .savebar p span { display: none; }
  .plan { padding: 24px; }
  .hero { padding-top: 36px; }
  .hero-art { height: 400px; }
  .fc-xp, .fc-guard { width: 200px; }
  .mock-grid { grid-template-columns: 1fr; }
  .profile-stats { width: 100%; }
  .profile-stats div { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════ v2 additions */
/* Made in the UAE strip */
.uae-strip { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); }
.uae-strip b { color: var(--text); }
.uae-flag { width: 22px; height: 11px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

/* tab navigation */
.tabs { padding: 4px; gap: 4px !important; border-radius: 999px; background: rgba(12, 10, 20, .5); border: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px !important; }
.tabs a .ic { font-size: 16px; }
.tabs a.active { color: #fff !important; background: var(--grad) !important; box-shadow: 0 6px 18px -8px rgba(124, 92, 255, .9); }
.tab-panel { animation: tabIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }

/* toolbar + server overview cards */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.toolbar .search { min-width: 200px; }
.toolbar .btn.on { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .45); color: var(--gold); }
.view-seg button { padding: 7px 10px; display: grid; place-items: center; }
.view-seg button .ic { font-size: 18px; }
.server .state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.server .state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.server .state.on { color: var(--green); }
.server .state.on::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.server .state.off { color: var(--red); }
.server .state.off::before { background: var(--red); }
.facts { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); font-size: 13.5px; }
.facts li { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.facts li .ic { font-size: 16px; color: var(--accent-hi); }
.facts b { font-weight: 700; color: var(--text); }
.facts b.ok { color: var(--green); } .facts b.warn { color: var(--red); } .facts b.gold { color: var(--gold); } .facts b.violet { color: var(--accent-hi); }
.facts .online { color: var(--green); font-size: 12px; }
.server footer { margin-top: auto; }
.servers.list { grid-template-columns: 1fr; }
.servers.list .server { flex-direction: row; align-items: center; padding: 12px 14px; gap: 16px; }
.servers.list .server header { flex: 1.2; }
.servers.list .facts { flex: 2; grid-auto-flow: column; padding: 8px 12px; background: transparent; border: 0; }
.servers.list .server footer { flex: none; width: 170px; margin: 0; }
.servers.list .guild-icon { width: 42px; height: 42px; border-radius: 13px; }
.card-head .count, .section-title .count { font: 700 12px var(--font); color: var(--accent-hi); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }

/* login + owner login */
.oauth-pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; color: var(--dim); }
.oauth-pair .logo { width: 58px; height: 58px; border-radius: 50%; margin: 0; }
.oauth-pair .logo .ic { font-size: 30px; }
.logo.discord { background: #5865f2; box-shadow: 0 8px 24px -8px rgba(88, 101, 242, .9); }
.logo.gold { background: linear-gradient(135deg, #7c5cff, #22d3ee); color: #fff; box-shadow: 0 8px 24px -8px rgba(34, 211, 238, .8); }
.owner-card { background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(160deg, rgba(34, 211, 238, .6), rgba(34, 211, 238, .12) 50%, transparent) border-box; }
.pw { display: flex; gap: 8px; }
.pw .input { flex: 1; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--dim); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.owner-tag .ic { font-size: 13px; }
body.owner .side-item.active { background: linear-gradient(90deg, rgba(34, 211, 238, .2), transparent); }
body.owner .side-item.active .ib { background: linear-gradient(135deg, #7c5cff, #22d3ee); color: #fff; }

/* ═══════════════════════════════════════════════════════════ Arabic / right-to-left */
[dir=rtl] body, [dir=rtl] .btn, [dir=rtl] .input, [dir=rtl] .select, [dir=rtl] .badge, [dir=rtl] .side-group-head, [dir=rtl] .eyebrow { font-family: 'IBM Plex Sans Arabic', var(--font); }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3, [dir=rtl] h4, [dir=rtl] .brand, [dir=rtl] .stat b, [dir=rtl] .kpi b, [dir=rtl] .plan .price { font-family: 'IBM Plex Sans Arabic', var(--display); letter-spacing: 0 !important; }
[dir=rtl] .side-group-head, [dir=rtl] .table th, [dir=rtl] .or { letter-spacing: 0; }
[dir=rtl] .badge { text-transform: none; }
[dir=rtl] .select { background-position: left 13px center; padding-right: 14px; padding-left: 38px; }
[dir=rtl] .menu { right: auto; left: 0; transform-origin: top left; }
[dir=rtl] .guild-menu { left: 0; right: 0; }
[dir=rtl] .sidebar { padding: 12px 12px 12px 0; }
[dir=rtl] .savebar { left: 28px; right: calc(308px + 28px); }
[dir=rtl] .dash ~ .demo-flag { left: auto; right: 26px; }
[dir=rtl] .toasts { right: auto; left: 18px; }
[dir=rtl] .site-banner { padding: 9px 16px 9px 44px; }
[dir=rtl] .site-banner button { right: auto; left: 10px; }
[dir=rtl] .step.active { transform: translateX(-6px); }
[dir=rtl] .side-item.active { background: linear-gradient(-90deg, rgba(124, 92, 255, .26), rgba(34, 211, 238, .06)); }
[dir=rtl] .side-group.closed .side-group-head .ic { transform: rotate(90deg); }
[dir=rtl] .d-embed, [dir=rtl] .dp-embed { border-left: 0; border-right: 3px solid var(--accent); }
[dir=rtl] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir=rtl] .discord-preview, [dir=rtl] .terminal { direction: ltr; text-align: left; }
@media (max-width: 900px) {
  [dir=rtl] .sidebar { left: auto; right: 0; padding: 10px; transform: translateX(105%); }
  [dir=rtl] .sidebar.open { transform: none; }
  [dir=rtl] .savebar { left: 16px; right: 16px; }
  .servers.list .server { flex-wrap: wrap; }
  .servers.list .facts { grid-auto-flow: row; flex-basis: 100%; }
  .servers.list .server footer { width: 100%; }
}
@media (max-width: 820px) {
  .tabs { background: none; border: 0; }
  .tabs.open { background: rgba(21, 18, 31, .97); border: 1px solid var(--line-2); }
}
.login-card .pw .btn { width: var(--h); flex: none; height: 44px; }
.kpi b span { display: inline; font-weight: 600; }
@media (max-width: 560px) { .user-chip > span, .user-chip > .ic { display: none; } .user-chip { padding: 3px; } [data-lang-toggle] span { display: none; } }
.site-banner button { font-size: 20px; line-height: 1; }

/* ═══════════════════════════════════════════════════════════ v3: two-colour theme, animated background, button hover */
:root { --c1: #7c5cff; --c2: #22d3ee; }

/* animated background on every page: two soft lights drifting + a slowly moving dot grid */
html { background: var(--bg); }
body { background: transparent !important; position: relative; }
body::before {
  content: ''; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(30% 30% at 25% 30%, rgba(124, 92, 255, .30), transparent 70%),
    radial-gradient(28% 28% at 75% 65%, rgba(34, 211, 238, .20), transparent 70%);
  filter: blur(30px);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 80%);
  animation: drift 40s linear infinite;
}
@keyframes aurora {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(6%, -4%) rotate(12deg) scale(1.08); }
  100% { transform: translate(-5%, 5%) rotate(-8deg) scale(1); }
}
@keyframes drift { to { background-position: 300px 300px; } }
.orb, .dots { display: none; } /* replaced by the global animated background */

/* buttons: lift + a light streak that sweeps across on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg); transition: left .65s ease;
}
.btn:hover:not(:disabled)::after { left: 130%; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--c1), var(--c2)); background-size: 160% 160%; background-position: 0% 50%; transition: transform .15s ease, box-shadow .25s, background-position .5s ease; }
.btn-primary:hover:not(:disabled) { background-position: 100% 50%; filter: none; box-shadow: 0 0 0 1px rgba(124, 92, 255, .5), 0 14px 34px -10px rgba(34, 211, 238, .6); }
.btn-ghost:hover:not(:disabled) { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 3px rgba(124, 92, 255, .12); }
.btn-pro { background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff; box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .7); }
.badge-pro { background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff; }
.badge-new { background: rgba(124, 92, 255, .2); color: #c9bfff; }
.badge-new::before { background: var(--c2); box-shadow: 0 0 8px var(--c2); }

/* same simple hover feel for cards */
.tile, .server, .mod-card, .plan, .kpi, .stat { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.server:hover, .mod-card:hover, .plan:hover, .kpi:hover, .stat:hover { border-color: rgba(34, 211, 238, .35); box-shadow: 0 18px 40px -26px rgba(124, 92, 255, .8); }
.side-item:hover .ib { background: rgba(34, 211, 238, .14); color: var(--c2); }

/* two-colour accents */
.terminal .k { color: var(--c2); } .terminal .o { color: #a594ff; }
.card-head h3 .ic, .tpl > .ic, .cmd code, .plan.featured li .ic, .chip-lg .ic { color: var(--c2); }
.plan li .ic { color: #a594ff; }
.owner-tag { background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff; }
.toolbar .btn.on { background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .45); color: var(--c2); }
.facts b.gold { color: var(--c2); }
.loader .ring { border-top-color: var(--c2); border-right-color: var(--c1); }

/* commands tab */
.cmd .perm { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--c2); background: rgba(34, 211, 238, .1); padding: 2px 8px; border-radius: 99px; }
.cmd .perm .ic { font-size: 12px; }
#cmdCats button small { opacity: .6; font-weight: 600; margin-inline-start: 3px; }
.cmd-list { max-height: none; }
/* Keep the gentle background drift + button shine even with "reduce motion" on (they are slow and subtle). */
@media (prefers-reduced-motion: reduce) {
  body::before { animation-duration: 40s !important; animation-iteration-count: infinite !important; }
  body::after { animation-duration: 70s !important; animation-iteration-count: infinite !important; }
  .btn::after { transition-duration: .65s !important; }
  .btn, .btn-primary { transition-duration: .2s, .25s, .5s !important; }
}

/* Hero cards: slow, gentle float (no shaking) — also kept when "reduce motion" is on. */
.float-card { animation: float-slow 10s ease-in-out infinite; will-change: transform; }
.float-card:nth-child(2) { animation-delay: -2.5s; } .float-card:nth-child(3) { animation-delay: -5s; } .float-card:nth-child(4) { animation-delay: -7.5s; }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .float-card { animation-duration: 10s !important; animation-iteration-count: infinite !important; }
}

/* legal pages (Terms / Privacy) */
.legal { max-width: 860px; padding: 40px 16px 60px; }
.legal article { padding: 40px; border-radius: 26px; background: rgba(21, 18, 31, .8); border: 1px solid var(--line); }
.legal h1 { font: 700 clamp(30px, 4vw, 42px)/1.15 var(--display); letter-spacing: -.03em; margin: 16px 0 4px; }
.legal h2 { font: 700 20px var(--display); margin: 34px 0 10px; }
.legal h3 { font: 700 16px var(--font); margin: 20px 0 8px; color: #d9d2ee; }
.legal p, .legal li { color: #c3bbd8; line-height: 1.75; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--c2); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font: 13px var(--mono); background: rgba(124, 92, 255, .14); padding: 1px 6px; border-radius: 6px; color: #d8d0ff; }
[dir=ltr] .legal .ar, [dir=rtl] .legal .en { display: none; }
[dir=rtl] .legal h1, [dir=rtl] .legal h2, [dir=rtl] .legal h3 { font-family: 'IBM Plex Sans Arabic', var(--display); letter-spacing: 0; }
@media (max-width: 560px) { .legal article { padding: 24px 18px; } }

/* ═══════════════════════════════════════════════════════════ server templates gallery */
.tpl-hero { text-align: center; padding: 50px 0 34px; }
.tpl-hero h1 { font: 700 clamp(34px, 5.5vw, 60px)/1.05 var(--display); letter-spacing: -.04em; margin: 18px 0 14px; }
.tpl-hero p { color: var(--muted); max-width: 680px; margin: 0 auto 22px; font-size: 17px; }
.tpl-hero-stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tpl-hero-stats > span { padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; font-weight: 600; }
.tpl-hero-stats b { color: var(--c2); font-family: var(--display); }
.tpl-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tpl-tools .search { flex: 1; min-width: 220px; }
.tpl-tools .seg button small { opacity: .65; margin-inline-start: 4px; }
.tpl-cats { margin-bottom: 22px; display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
.tpl-cats button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tpl-cats .ic { font-size: 16px; }
.stpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.stpl { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .25s, border-color .25s, box-shadow .25s; }
.stpl::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 110px; z-index: -1; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%); }
.stpl:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 50%, transparent); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--acc) 80%, transparent); }
.stpl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stpl-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 45%, #0c0a14)); box-shadow: 0 10px 24px -12px var(--acc); margin-inline-end: auto; }
.stpl-icon .ic { font-size: 24px; }
.stpl-cat { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.stpl-cat .ic { font-size: 12px; }
.stpl h3 { margin: 6px 0 0; font: 700 18px var(--display); letter-spacing: -.02em; }
.stpl p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.stpl-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); font-weight: 600; }
.stpl-stats span { display: inline-flex; align-items: center; gap: 4px; }
.stpl-stats .ic { font-size: 14px; color: var(--c2); }
.stpl-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.stpl-feats span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 8px; color: #c9bfff; background: rgba(124, 92, 255, .14); }
.stpl-by { font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.stpl-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 4px; }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 10, .65); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal-wrap.show { opacity: 1; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateY(10px) scale(.98); transition: transform .25s; }
.modal-wrap.show .modal { transform: none; }
.modal:has(.dprev) { width: min(980px, 100%); padding: 0; }
.modal h2 { font: 700 22px var(--display); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.modal h4 { margin: 20px 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; color: #d9d2ee; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.pick-guilds { display: grid; gap: 8px; margin-top: 14px; }
.pick-guild { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #100d18; cursor: pointer; text-align: start; font-weight: 700; }
.pick-guild span { flex: 1; }
.pick-guild:hover { border-color: rgba(34, 211, 238, .45); }

/* Discord-style preview */
.dprev { display: grid; grid-template-columns: 300px 1fr; min-height: 520px; }
.dprev-side { background: #1e1f22; border-radius: 26px 0 0 26px; padding: 0 0 14px; max-height: 76vh; overflow-y: auto; font-family: 'gg sans', var(--font); }
[dir=rtl] .dprev-side { border-radius: 0 26px 26px 0; }
.dprev-head { position: sticky; top: 0; padding: 18px 16px; font-weight: 800; color: #f2f3f5; background: #1e1f22; border-bottom: 1px solid #111214; }
.dprev-cat { display: flex; align-items: center; gap: 4px; padding: 16px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #949ba4; text-transform: uppercase; }
.dprev-cat .ic { font-size: 11px; }
.dprev-ch { display: flex; align-items: center; gap: 6px; margin: 1px 8px; padding: 6px 8px; border-radius: 6px; color: #949ba4; font-size: 14.5px; font-weight: 500; }
.dprev-ch:hover { background: #35373c; color: #dbdee1; }
.dprev-ch > .ic { font-size: 17px; color: #80848e; flex: none; }
.dprev-ch span, .dprev-cat span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dprev .lock { font-style: normal; color: #80848e; display: inline-grid; }
.dprev .lock .ic { font-size: 13px; }
.dprev .lock.pub { color: #4ade80; }
.dprev-main { padding: 30px; max-height: 76vh; overflow-y: auto; }
.dprev-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.dprev-role { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; background: #100d18; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.dprev-role i { width: 10px; height: 10px; border-radius: 50%; }
.dprev-role small { color: var(--dim); font-size: 11px; }
.dprev-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; color: var(--dim); font-size: 12px; }
.dprev-legend span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 760px) {
  .dprev { grid-template-columns: 1fr; }
  .dprev-side { border-radius: 26px 26px 0 0; max-height: 38vh; }
  .dprev-main { max-height: none; }
}

/* ═══════════════════════════════════════════════════════════ site builder editor */
.se-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin-bottom: 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); position: sticky; top: 78px; z-index: 20; }
.se-url { flex: 1; min-width: 240px; display: flex; align-items: center; height: 42px; padding: 0 12px; border-radius: 13px; background: #100d18; border: 1px solid var(--line-2); font: 14px var(--mono); }
.se-url input { flex: 1; min-width: 60px; border: 0; background: none; outline: none; color: var(--text); font: inherit; }
.se-url .good { color: var(--green); } .se-url .bad { color: var(--red); }
.se-bar .btn.disabled { opacity: .5; }
.se-bar .mod-toggle { padding: 6px 8px 6px 14px; }
#seSave.pulse { animation: savepulse 1.6s ease-in-out infinite; }
@keyframes savepulse { 50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, .25); } }
.se { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.se-right { position: sticky; top: 150px; }
.se-device { margin-bottom: 10px; }
.se-device button { padding: 6px 12px; }
.se-frame { height: calc(100vh - 220px); min-height: 520px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #000; margin-inline: auto; transition: width .3s; width: 100%; box-shadow: var(--shadow); }
.se-frame.mobile { width: 390px; max-width: 100%; }
.se-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.se-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.se-tpl { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 14px; background: #100d18; border: 1px solid var(--line); cursor: pointer; text-align: start; color: var(--text); transition: border-color .2s, transform .2s; }
.se-tpl:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, .4); }
.se-tpl.on { border-color: var(--c2); box-shadow: 0 0 0 2px rgba(34, 211, 238, .25); }
.se-tpl b { font-size: 12.5px; } .se-tpl small { font-size: 11px; color: var(--dim); }
.se-mini { position: relative; display: block; height: 64px; border-radius: 9px; background: var(--b); overflow: hidden; }
.se-mini i { position: absolute; border-radius: 3px; }
.se-mini i:nth-child(1) { left: 12%; top: 18%; width: 52%; height: 9px; background: var(--t); opacity: .9; }
.se-mini i:nth-child(2) { left: 12%; top: 40%; width: 36%; height: 6px; background: var(--t); opacity: .4; }
.se-mini i:nth-child(3) { left: 12%; top: 62%; width: 30%; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--a), var(--a2)); }
.se-mini::after { content: ''; position: absolute; right: -14px; top: -14px; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(var(--a), transparent 70%); opacity: .6; }
.se-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.se-theme { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #100d18; cursor: pointer; color: var(--muted); }
.se-theme span { width: 100%; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--a) 0 30%, var(--a2) 30% 50%, var(--b) 50%); border: 1px solid rgba(255, 255, 255, .1); }
.se-theme small { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.se-theme.on { border-color: var(--c2); color: var(--text); }
.se-secs { display: grid; gap: 8px; }
.se-sec { border-radius: 16px; background: #100d18; border: 1px solid var(--line); }
.se-sec.off { opacity: .6; }
.se-sec.open { border-color: rgba(124, 92, 255, .45); opacity: 1; }
.se-sec-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.se-sec-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; color: var(--text); cursor: pointer; text-align: start; padding: 0 4px; }
.se-sec-title b { font-size: 14px; } .se-sec-title small { font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.se-sec-head .btn-icon { --h: 28px; }
.se-sec-body { padding: 4px 12px 14px; display: grid; gap: 10px; }
.se-sec-body .field > label { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.se-list { display: grid; gap: 8px; }
.se-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.se-row .input { flex: 1 1 140px; height: 38px; font-size: 13.5px; }
.se-row .se-emoji { flex: 0 0 52px; text-align: center; font-size: 18px; padding: 0; }
.se-row .se-short { flex: 0 0 90px; }
.se-row .select { flex: 0 0 130px; height: 38px; }
@media (max-width: 1100px) { .se { grid-template-columns: 1fr; } .se-right { position: static; order: -1; } .se-frame { height: 520px; } .se-bar { position: static; } }
.modal-x { font-size: 22px; line-height: 1; }

.stpl-private { color: #c9bfff !important; background: rgba(124, 92, 255, .2) !important; }

/* ═══════════════════════════════════════════════════════════ Logo Studio */
.ls-top { margin-bottom: 16px; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ls-card { padding: 10px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s; }
.ls-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .4); }
.ls-card.on { border-color: var(--c2); box-shadow: 0 0 0 2px rgba(34, 211, 238, .3); }
.ls-card canvas { width: 100%; height: auto; display: block; }
.ls-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.ls-previews { display: grid; gap: 14px; position: sticky; top: 100px; }
.ls-logo-prev { display: grid; place-items: center; padding: 18px; border-radius: 22px; background: repeating-conic-gradient(#14111d 0 25%, #191524 0 50%) 0 0 / 24px 24px; border: 1px solid var(--line); }
.ls-logo-prev canvas { width: min(260px, 70%); height: auto; }
.ls-banner-prev { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-2); }
.ls-opts, .ls-syms, .ls-pals { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-opts button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #100d18; color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.ls-opts button.on { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border-color: transparent; }
.ls-syms button { padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: #100d18; cursor: pointer; }
.ls-syms button.on { border-color: var(--c2); }
.ls-syms canvas { display: block; width: 44px; height: 44px; }
.ls-pals button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.ls-pals button.on { border-color: #fff; }
#lsCtrls { display: grid; gap: 14px; }
.ls-lock > .ic { color: var(--c2); }
@media (max-width: 960px) { .ls-editor { grid-template-columns: 1fr; } .ls-previews { position: static; order: -1; } }

/* ── Logo Studio brief (v2) */
.lz-brief .card-body { display: grid; gap: 26px; }
.lz-q { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.lz-q h3 { margin: 4px 0 12px; font-size: 17px; }
.lz-n { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.lz-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lz-style { text-align: start; padding: 8px 8px 12px; border-radius: 18px; background: #100d18; border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: transform .25s, border-color .25s; }
.lz-style:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .35); }
.lz-style.on { border-color: var(--c2); box-shadow: 0 0 0 2px rgba(34, 211, 238, .25); }
.lz-style canvas { width: 100%; height: auto; display: block; border-radius: 12px; margin-bottom: 10px; }
.lz-style b { display: block; padding: 0 4px; font-size: 14.5px; }
.lz-style span { display: block; padding: 2px 4px 0; font-size: 12.5px; color: var(--muted); }
.lz-pals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lz-pals button { width: 40px; height: 40px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; transition: transform .2s; }
.lz-pals button:hover { transform: scale(1.08); }
.lz-pals button.on { border-color: #fff; }
.lz-custom { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.lz-custom input { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.lz-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.lz-fonts button { display: grid; gap: 2px; justify-items: center; min-width: 86px; padding: 10px 12px; border-radius: 14px; background: #100d18; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.lz-fonts button small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.lz-fonts button.on { border-color: var(--c2); background: rgba(34, 211, 238, .08); }
.lz-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.lz-head h2 { margin: 0; }
.lz-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lz-results.logos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lz-res { padding: 0; overflow: hidden; border-radius: 18px; background: #16131f; border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: start; transition: transform .25s, border-color .25s; }
.lz-res:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .35); }
.lz-res.on { border-color: var(--c2); box-shadow: 0 0 0 2px rgba(34, 211, 238, .3); }
.lz-res canvas.b { width: 100%; height: auto; display: block; }
.lz-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.lz-row canvas.l { width: 40px; height: 40px; border-radius: 50%; }
.lz-results.logos .lz-row { padding: 0; }
.lz-results.logos .lz-row canvas.l { width: 100%; height: auto; border-radius: 0; }
.lz-detail { margin-top: 18px; }
.lz-big { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.lz-big:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.lz-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.lz-logos canvas { width: 100%; height: auto; border-radius: 18px; }
.lz-logos canvas.rd { border-radius: 50%; }
.lz-logos small { grid-column: 1 / -1; color: var(--muted); text-align: center; }
.lz-banners { display: grid; gap: 10px; }
.lz-banners canvas { width: 100%; height: auto; border-radius: 14px; }
@media (max-width: 860px) { .lz-big { grid-template-columns: 1fr; } .lz-q { grid-template-columns: 1fr; } }

.lz-ask { margin-bottom: 16px; border-color: rgba(34, 211, 238, .25); }
.lz-ask h3 { margin: 0 0 12px; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.lz-ask-row { display: flex; gap: 10px; }
.lz-ask-row .input { flex: 1; height: 48px; }
.lz-ask-hint { display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 600px) { .lz-ask-row { flex-direction: column; } }
.lz-ask-need { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.lz-ask-need b { font-size: 14.5px; }
.lz-fmt { display: grid; gap: 10px; margin-bottom: 14px; }
.lz-fmts { display: flex; flex-wrap: wrap; gap: 8px; }
.lz-fmts button { display: grid; gap: 1px; min-width: 92px; padding: 8px 14px; border-radius: 14px; background: #100d18; border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: start; transition: border-color .2s; }
.lz-fmts button small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.lz-fmts button.on { border-color: var(--c2); background: rgba(34, 211, 238, .08); }


/* ── Shop pricing */
.plans.plans-shop { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: 1180px; margin: 0 auto; }
.plans-shop .plan { padding: 26px; }
.plans-shop .plan .price { font-size: 44px; }
.plan-pop { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
[dir="rtl"] .plan-pop { transform: translateX(50%); }
.plan-perks { grid-column: 1 / -1; padding: 22px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.plan-perks ul { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
.plan-perks li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.plan-perks li .ic { color: var(--green); }
.plan-perks small { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.thanks { max-width: 560px; margin: 60px auto; text-align: center; }
.thanks .key { font: 700 24px 'Fira Code', monospace; letter-spacing: 2px; padding: 18px; border-radius: 16px; background: var(--grad); color: #fff; margin: 18px 0; word-break: break-all; }
.thanks ol { text-align: start; color: var(--muted); line-height: 1.9; }

.table-wrap { overflow-x: auto; }
.table-wrap .input { height: 38px; min-width: 70px; }
.badge-on { background: rgba(34, 197, 94, .15); color: #4ade80; }
.badge-off { background: rgba(239, 68, 68, .15); color: #f87171; }

/* ── Emoji Studio */
.em-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.em-presets button { padding: 4px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s; }
.em-presets button:hover { transform: translateY(-3px); border-color: var(--c2); }
.em-presets canvas { width: 64px; height: 64px; display: block; }
.em-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.em-ctrls { display: grid; gap: 16px; }
.em-l { display: block; font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.em-pals { display: flex; flex-wrap: wrap; gap: 8px; }
.em-pals button { width: 36px; height: 36px; border-radius: 11px; border: 2px solid transparent; cursor: pointer; }
.em-pals button.on { border-color: #fff; }
.em-side { display: grid; gap: 14px; position: sticky; top: 100px; }
.em-stage { display: grid; place-items: center; padding: 20px; border-radius: 22px; background: repeating-conic-gradient(#14111d 0 25%, #191524 0 50%) 0 0 / 24px 24px; border: 1px solid var(--line); }
.em-stage canvas { width: 200px; height: 200px; }
.em-discord { padding: 16px; border-radius: 16px; background: #313338; color: #dbdee1; display: grid; gap: 10px; }
.em-msg { display: flex; gap: 12px; } .em-msg small { color: #949ba4; } .em-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #7c5cff, #22d3ee); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.em-in { width: 22px; height: 22px; vertical-align: middle; } .em-in2 { width: 48px; height: 48px; } .em-big { padding-inline-start: 52px; }
.em-react { margin-inline-start: 52px; display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 2px 8px; border-radius: 8px; background: rgba(88, 101, 242, .3); border: 1px solid #5865f2; font-size: 13px; } .em-react canvas { width: 16px; height: 16px; }
.em-hint { font-size: 12.5px; margin: 0; }
@media (max-width: 900px) { .em-grid { grid-template-columns: 1fr; } .em-side { position: static; order: -1; } }
/* ── Ace AI */
.ai { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.ai-log { min-height: 340px; max-height: 60vh; overflow-y: auto; padding: 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.ai-msg { display: flex; gap: 10px; } .ai-msg.me { justify-content: flex-end; }
.ai-av { width: 34px; height: 34px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.ai-b { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: #16131f; border: 1px solid var(--line); line-height: 1.6; font-size: 14.5px; }
.ai-msg.me .ai-b { background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .25)); border-color: transparent; }
.ai-b p { margin: 0 0 6px; } .ai-b p:last-child { margin: 0; } .ai-b ul { margin: 4px 0 8px; padding-inline-start: 20px; } .ai-b code { background: #0c0a14; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.ai-ideas { display: flex; flex-wrap: wrap; gap: 8px; } .ai-ideas button { padding: 7px 12px; border-radius: 99px; background: #100d18; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 13px; } .ai-ideas button:hover { border-color: var(--c2); color: var(--text); }
.ai-input { display: flex; gap: 8px; } .ai-input .input { flex: 1; height: 50px; }
.ai-dots { display: inline-flex; gap: 4px; } .ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c2); animation: aidot 1s infinite; } .ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aidot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.lang-select { height: 36px; padding: 0 10px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font: 600 13px var(--font); cursor: pointer; max-width: 140px; }
.lang-select:hover { border-color: rgba(124, 92, 255, .4); }
.lang-select option { background: #16131f; color: #eee; }

.em-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.em-icons button { aspect-ratio: 1; border-radius: 11px; background: #100d18; border: 1px solid var(--line); color: var(--text); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.em-icons button:hover { border-color: var(--c2); }
.em-icons button.on { border-color: var(--c2); background: rgba(34, 211, 238, .12); }
.em-presets { max-height: 172px; overflow-y: auto; }

/* ── Profile Kit */
.pk-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pk-themes button { text-align: start; padding: 6px 6px 10px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: transform .2s, border-color .2s; }
.pk-themes button:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .4); }
.pk-themes button.on { border-color: var(--c2); box-shadow: 0 0 0 2px rgba(34, 211, 238, .25); }
.pk-themes canvas { width: 100%; height: auto; display: block; border-radius: 11px; margin-bottom: 8px; }
.pk-themes b { display: block; padding: 0 4px; font-size: 14px; } .pk-themes span { display: block; padding: 0 4px; font-size: 12px; color: var(--muted); }
.pk-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pk-profile { position: relative; border-radius: 18px; overflow: hidden; background: #111214; border: 1px solid var(--line); padding-bottom: 18px; }
.pk-banner { width: 100%; height: auto; display: block; }
.pk-avatar { position: absolute; left: 22px; top: calc((100% - 70px) * .62); width: 110px; height: 110px; border-radius: 50%; border: 7px solid #111214; background: #111214; }
.pk-info { padding: 62px 22px 0; display: grid; } .pk-info b { font-size: 20px; } .pk-info span { color: #b5bac1; font-size: 13.5px; }
.pk-anim { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; }
.pk-ctrls { display: grid; gap: 14px; } .pk-dl { display: grid; gap: 8px; } .pk-hint { font-size: 12.5px; margin: 0; }
@media (max-width: 900px) { .pk-grid { grid-template-columns: 1fr; } .pk-avatar { width: 84px; height: 84px; top: 40%; } .pk-info { padding-top: 46px; } }

/* ═══════════════════════════════════════════════════════════ shared menu, Studio dropdown, footer */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 14px var(--font); cursor: pointer; transition: color .2s, background .2s; }
.nav-drop-btn .ic { font-size: 16px; }
.nav-drop-btn .nav-caret { font-size: 12px; transition: transform .25s; }
.nav-drop-btn:hover, .nav-drop.show .nav-drop-btn { color: var(--text); background: rgba(124, 92, 255, .1); }
.nav-drop.active .nav-drop-btn { color: #fff; background: var(--grad); box-shadow: 0 6px 18px -8px rgba(124, 92, 255, .9); }
.nav-drop.show .nav-caret { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 14px); inset-inline-start: 50%; translate: -50% 0; width: 340px; padding: 10px; border-radius: 22px; background: rgba(21, 18, 31, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 30px 60px -20px rgba(0, 0, 0, .6); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
[dir="rtl"] .nav-menu { translate: 50% 0; }
.nav-menu::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-drop.show .nav-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 821px) { .nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: none; } .nav-drop:hover .nav-caret { transform: rotate(180deg); } }
.nav-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.nav-menu-head b { font: 700 14px var(--display); }
.nav-menu-head span { color: var(--dim); font-size: 12.5px; }
.nav-menu a { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border-radius: 14px !important; color: var(--text) !important; background: none !important; box-shadow: none !important; }
.nav-menu a:hover, .nav-menu a.on { background: rgba(124, 92, 255, .12) !important; }
.nm-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(124, 92, 255, .25); color: var(--c2); }
.nm-ic .ic { font-size: 19px !important; }
.nm-txt { display: flex; flex-direction: column; min-width: 0; }
.nm-txt b { font-size: 14px; }
.nm-txt small { color: var(--dim); font-size: 12.5px; font-weight: 500; }
@media (max-width: 1180px) and (min-width: 821px) { .nav-links > a span, .nav-drop-btn span { display: none; } .nav-links > a, .nav-drop-btn { padding: 9px 12px !important; } }
@media (max-width: 820px) {
  .nav-links.open { max-height: calc(100vh - 110px); overflow-y: auto; gap: 2px !important; }
  .nav-links.open > a, .nav-drop-btn { width: 100%; padding: 11px 14px !important; }
  .nav-drop-btn .nav-caret { margin-inline-start: auto; }
  .nav-menu { position: static; translate: none !important; width: auto; padding: 4px 0 4px 8px; margin: 2px 0 6px; border: 0; border-inline-start: 2px solid var(--line-2); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav-drop.show .nav-menu, .nav-drop.active .nav-menu { display: block; }
  .nav-menu-head { display: none; }
}

footer.site { padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.fbrand p { color: var(--muted); max-width: 340px; margin: 14px 0 16px; line-height: 1.6; }
.fcol { display: flex; flex-direction: column; gap: 10px; }
.fcol h5 { margin: 4px 0 6px; font: 700 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.fcol a { color: var(--muted); font-weight: 600; width: fit-content; transition: color .2s; }
.fcol a:hover { color: var(--c2); }
.fcol a[hidden] { display: none; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom b { color: var(--muted); font-weight: 600; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }

/* home: Studio cards */
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.studio-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; min-height: 190px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .3s, border-color .3s; }
.studio-card::before { content: ''; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: var(--art); opacity: .18; filter: blur(40px); z-index: -1; transition: opacity .3s; }
.studio-card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, .4); }
.studio-card:hover::before { opacity: .35; }
.studio-card.big { grid-row: span 2; justify-content: flex-end; min-height: 396px; }
.studio-card.big h3 { font-size: 28px; }
.sc-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--art); color: #fff; margin-bottom: auto; box-shadow: 0 12px 28px -12px rgba(124, 92, 255, .9); }
.sc-ic .ic { font-size: 26px; }
.studio-card h3 { margin: 18px 0 0; font: 700 20px var(--display); letter-spacing: -.02em; }
.studio-card p { margin: 0; color: var(--muted); }
.sc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--c2); font-weight: 700; font-size: 14px; }
.sc-go .ic { transition: transform .25s; }
[dir="rtl"] .sc-go .ic { transform: scaleX(-1); }
.studio-card:hover .sc-go .ic { transform: translateX(4px); }
[dir="rtl"] .studio-card:hover .sc-go .ic { transform: scaleX(-1) translateX(4px); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr 1fr; } .studio-card.big { grid-column: 1 / -1; grid-row: auto; min-height: 220px; } }
@media (max-width: 560px) { .studio-grid { grid-template-columns: 1fr; } }

/* features: module directory */
.mod-cats { margin-bottom: 26px; flex-wrap: wrap; }
.mod-cats button small { opacity: .65; margin-inline-start: 4px; }
.dir-group { margin-bottom: 34px; }
.dir-group > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 18px var(--display); }
.dir-group > h3 .ic { color: var(--c2); }
.dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dir-card { display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
.dir-card:hover { border-color: rgba(124, 92, 255, .35); transform: translateY(-2px); }
.dir-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--c2); }
.dir-ic .ic { font-size: 21px; }
.dir-card h4 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dir-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (min-width: 821px) {
  .nav-menu { width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; inset-inline-start: auto; inset-inline-end: -10px; translate: none !important; }
  .nav-menu-head { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .nav-inner { padding: 0 8px 0 10px; gap: 6px; } .nav-actions { gap: 5px; } .lang-select { max-width: 92px; } .brand { font-size: 16px; } }

/* phone top bar: logo · language · menu */
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s, top .3s; }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 6px; } .burger i:nth-child(3) { top: 12px; }
.nav-toggle.x .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle.x .burger i:nth-child(2) { opacity: 0; }
.nav-toggle.x .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-toggle { width: 40px; height: 40px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
.nav-toggle.x { background: var(--grad); color: #fff; border-color: transparent; }
.nav-mob { display: none; }
@media (max-width: 820px) {
  .nav-mob { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-mob .btn { justify-content: center; width: 100%; padding: 11px 10px !important; color: inherit; }
  .nav-mob .btn-primary { color: #fff; }
}
@media (max-width: 560px) {
  #navUser > .btn { display: none; }
  .lang-select { width: 58px; padding: 0 8px; text-align: center; font-weight: 700; }
}

/* ═══════════════════════════════════════════════════════════ photo upload + editing (Logo Studio, Profile Kit) */
.pe-zone { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; border-radius: 20px; border: 2px dashed rgba(124, 92, 255, .4); background: linear-gradient(135deg, rgba(124, 92, 255, .08), rgba(34, 211, 238, .06)); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.pe-zone:hover, .pe-zone.over { border-color: var(--c2); background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .12)); transform: translateY(-1px); }
.pe-zone-ic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(124, 92, 255, .9); }
.pe-zone-ic .ic { font-size: 26px; }
.pe-zone-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pe-zone-txt b { font-size: 15.5px; } .pe-zone-txt small { color: var(--muted); font-size: 13px; }
.pe-zone.small { padding: 10px 14px; } .pe-zone.small .pe-zone-ic { width: 38px; height: 38px; border-radius: 12px; } .pe-zone.small .pe-zone-ic .ic { font-size: 19px; }
@media (max-width: 560px) { .pe-zone { flex-wrap: wrap; } .pe-zone > .btn { width: 100%; justify-content: center; } }
.pe-panel { display: grid; gap: 14px; }
.pe-row > b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-bottom: 8px; }
.pe-row > b .ic { color: var(--c2); }
.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: #100d18; color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.pe-chips button:hover { color: var(--text); border-color: rgba(124, 92, 255, .45); }
.pe-chips button.on { color: #fff; border-color: var(--c2); background: rgba(34, 211, 238, .12); }
.pe-chips button .ic { font-size: 15px; }
.pe-sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255, 255, 255, .25); }
.pe-ranges { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; }
.pe-range { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pe-range input { width: 100%; accent-color: var(--c2); }
.pe-toggles { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pe-toggles label { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
#pkPhoto { padding: 14px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); }
.pk-photo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pk-photo-head b { display: flex; align-items: center; gap: 7px; } .pk-photo-head .ic { color: var(--c2); }
.lz-img { padding: 14px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); }
.lz-img-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lz-img-head > div { flex: 1; min-width: 220px; display: grid; gap: 8px; } .lz-img-head b { font-size: 13.5px; }
#lzThumb { width: 72px; height: 72px; border-radius: 18px; cursor: pointer; border: 1px solid var(--line-2); }

/* roadmap */
.rm-tools { max-width: 520px; margin: 0 auto 22px; }
.rm-tools .search { display: block; }
.rm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rm-col { padding: 14px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; }
.rm-col h3 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 4px; font: 700 16px var(--display); }
.rm-col h3 small { margin-inline-start: auto; font: 700 12px var(--font); color: var(--accent-hi); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }
.rm-plan h3 .ic { color: #fbbf24; } .rm-bugs h3 .ic { color: #f87171; } .rm-done h3 .ic { color: var(--green); }
.rm-card { padding: 14px; border-radius: 16px; background: #100d18; border: 1px solid var(--line); display: grid; gap: 6px; }
.rm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rm-top code { font: 600 12px 'Fira Code', monospace; color: var(--c2); }
.rm-tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.rm-card h4 { margin: 0; font-size: 14.5px; } .rm-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; } .rm-card small { color: var(--dim); font-size: 12px; display: inline-flex; gap: 5px; align-items: center; }
@media (max-width: 900px) { .rm-cols { grid-template-columns: 1fr; } }
