/* =====================================================================
   3B theme: dark only, electric indigo accent, technical type.
   Loaded after style.css on every page. style.css has the layout and
   the components; this file decides how everything looks.
   There is no light mode: the same dark tokens apply whatever
   data-theme an old visit stored.
   ===================================================================== */

:root,
:root[data-theme='dark'],
:root[data-theme='light'] {
  /* Deep navy blue */
  --bg: #050a18;
  --bg-2: #081126;
  --surface: #0b1733;
  --surface-2: #10204a;
  --surface-glass: rgba(11, 23, 51, 0.7);
  --border: #182a52;
  --border-strong: #22396b;
  --text: #eceef7;
  --muted: #8a8fa9;
  --accent: #6f8dff; /* text, borders, active states */
  --accent-2: #9db2ff;
  --accent-strong: #3d63f5; /* filled buttons, with white text */
  --accent-soft: rgba(79, 112, 255, 0.14);
  --cyan: #3ee6ff;
  --glow: rgba(79, 112, 255, 0.4);
  --success: #3ddc97;
  --success-soft: rgba(61, 220, 151, 0.12);
  --danger: #ff5c6c;
  --danger-soft: rgba(255, 92, 108, 0.12);
  --warning: #ffb547;
  --warning-soft: rgba(255, 181, 71, 0.12);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --grid-line: rgba(255, 255, 255, 0.045);
  --radius: 14px;
  --font: 'Geist', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --display: 'Plus Jakarta Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

html {
  background: var(--bg);
}
/* Transparent, so the fixed .backdrop (grid, grain, glow) shows behind every page */
body {
  background: transparent;
  font-family: var(--font);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}
h1,
h2,
h3,
.brand-name,
.page-head h1,
.card h2 {
  font-family: var(--display);
  letter-spacing: -0.025em;
}
[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3 {
  letter-spacing: 0;
}
.mono,
code,
pre {
  font-family: var(--mono);
}
::selection {
  background: var(--accent-strong);
  color: #fff;
}

/* ---------- Background: grid lines, grain and one soft light at the top ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(61, 99, 245, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 10%, rgba(62, 230, 255, 0.08), transparent 70%);
}
.backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 85%);
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons: solid, crisp, a soft glow on hover (no bouncing) ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary,
.btn-cta {
  background: var(--accent-strong) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)) !important;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(61, 99, 245, 0.55), 0 8px 24px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: none;
}
.btn-primary:hover,
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(111, 141, 255, 0.9), 0 12px 32px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:active,
.btn-cta:active {
  transform: translateY(0);
}
.btn-cta {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}
.btn-danger {
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn:focus-visible,
.input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */
.nav {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
}
.brand-logo.sm {
  border-radius: 9px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}
.lang-switch {
  border-color: var(--border);
  background: var(--surface);
}
.lang-switch button.active {
  background: var(--accent-strong);
}
.icon-btn {
  background: var(--surface);
  border-color: var(--border);
}

/* ---------- Hero ---------- */
.hero2 {
  padding: 84px 0 56px;
  gap: 56px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 13.5px;
  transition: border-color 0.2s, color 0.2s;
}
.hero-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.hero-chip svg {
  width: 14px;
  height: 14px;
}
[dir='rtl'] .hero-chip svg {
  transform: scaleX(-1);
}
.hero-chip-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6.2vw, 74px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.rotator {
  background: linear-gradient(95deg, #a9c0ff 10%, var(--cyan) 90%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  padding-bottom: 0.08em;
}
.hero-copy > p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
}
.trust {
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.trust li::before {
  color: var(--accent);
}

/* The Discord window and the terminal on top of it */
.hero-visual {
  position: relative;
  padding-bottom: 110px;
}
/* The terminal covers the bottom of the chat, so the messages sit above it */
.hero-visual .demo-feed {
  padding-bottom: 76px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 10% 5% 20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(61, 99, 245, 0.35), transparent);
  filter: blur(30px);
}
.demo-window,
[dir='rtl'] .demo-window {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  transform: none;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #15161d;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.demo:hover .demo-window {
  transform: none;
}
.demo-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  background: #0d0e13;
  border-inline-end: 1px solid #1f2029;
}
.demo-rail span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22232d;
  background-size: cover;
  background-position: center;
}
.demo-rail .rail-home {
  border-radius: 12px;
  background: var(--accent-strong);
  margin-bottom: 4px;
}
.demo-rail .rail-server.active {
  border-radius: 12px;
  box-shadow: 0 0 0 2px #0d0e13, 0 0 0 4px var(--accent);
}
.demo-rail .rail-add {
  display: grid;
  place-items: center;
  color: var(--success);
  font-size: 20px;
  line-height: 1;
}
.demo-main {
  min-width: 0;
}
.demo-bar {
  justify-content: space-between;
  background: #15161d;
  border-bottom: 1px solid #1f2029;
  padding: 12px 16px;
}
.demo-channel {
  color: #e5e7f0;
  font-family: var(--display);
}
.demo-channel b {
  color: #6d6f7e;
  margin-inline-end: 4px;
}
.demo-members {
  display: flex;
}
.demo-members i {
  width: 18px;
  height: 18px;
  margin-inline-start: -6px;
  border: 2px solid #15161d;
  border-radius: 50%;
  background: #3b3d4d;
}
.demo-members i:nth-child(2) { background: #3656d8; }
.demo-members i:nth-child(3) { background: #2a8f86; }
.demo-feed {
  height: 360px;
}
.d-tag {
  background: var(--accent-strong);
}
.d-embed {
  background: #1d1e27;
  border-inline-start-color: var(--accent);
}
.d-card {
  background: linear-gradient(120deg, #2f4fd6, #15161d);
}
.d-btn.blurple {
  background: #5865f2;
}

.terminal {
  position: absolute;
  bottom: 0;
  inset-inline-start: -28px;
  width: min(430px, 88%);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(10, 11, 17, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(79, 112, 255, 0.08);
  color: #d7d9e6;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #1f2130;
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar .dots i {
  width: 9px;
  height: 9px;
  background: #3a3c4d !important;
}
.terminal-title {
  color: #6f7390;
  font-family: var(--mono);
  font-size: 12px;
}
.terminal-body {
  height: 132px;
  margin: 0;
  padding: 12px 16px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  direction: ltr;
  text-align: left;
}
.terminal-body .t-prompt {
  color: var(--cyan);
}
.terminal-body .t-cmd {
  color: #fff;
}
.terminal-body .t-arg {
  color: #a9c0ff;
}
.terminal-body .t-ok {
  color: var(--success);
}
.terminal-body .t-dim {
  color: #7d8199;
}
.terminal-body .t-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-inline-start: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% { opacity: 0; }
}

/* ---------- Metrics, like a status page ---------- */
.stats-row.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.stats-row.metrics > div {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 6px;
  padding: 20px 24px;
  text-align: start;
  border: 0;
}
.stats-row.metrics > div + div {
  border-inline-start: 1px solid var(--border);
}
.metric-label {
  order: -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stats-row.metrics b {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.metric-status {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}
.metric-status.down .status-dot {
  background: var(--warning);
  box-shadow: 0 0 12px var(--warning);
}

/* ---------- Feature strip ---------- */
.marquee {
  border-block: 1px solid var(--border);
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track span {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Section headings ---------- */
section {
  position: relative;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2) !important;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}
.kicker::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-head p {
  font-size: 17px;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}
.tile {
  --tone: #8b7dff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--bg-2);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.tile[data-tone='red'] { --tone: #ff5c6c; }
.tile[data-tone='amber'] { --tone: #ffb547; }
.tile[data-tone='cyan'] { --tone: #3ee6ff; }
.tile[data-tone='violet'] { --tone: #9db2ff; }
.tile[data-tone='pink'] { --tone: #ff6ad5; }
.tile[data-tone='blue'] { --tone: #5b8cff; }
.tile[data-tone='green'] { --tone: #3ddc97; }
/* 1px glowing border that fades in on hover */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--tone), transparent 45%, transparent 70%, color-mix(in srgb, var(--tone) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.tile::after {
  content: '';
  position: absolute;
  inset: auto -20% -60% auto;
  z-index: -2;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 22%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.tile:hover {
  border-color: transparent;
  transform: translateY(-2px);
}
.tile:hover::before,
.tile:hover::after {
  opacity: 1;
}
.tile-xl {
  grid-column: span 2;
  grid-row: span 2;
}
.tile-wide {
  grid-column: span 2;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  color: var(--tone);
}
.tile-icon svg {
  width: 20px;
  height: 20px;
}
.tile h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.tile-xl h3 {
  font-size: 24px;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.tile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.tile-stats div {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.tile-stats b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.tile-stats span {
  color: var(--muted);
  font-size: 12.5px;
}
.tile-log {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 14px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 12.5px;
  color: #c5c8da;
}
.tile-log li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tile-log li span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile.in .tile-log li {
  animation: log-in 0.5s ease backwards;
}
.tile.in .tile-log li:nth-child(2) { animation-delay: 0.25s; }
.tile.in .tile-log li:nth-child(3) { animation-delay: 0.5s; }
.tile.in .tile-log li:nth-child(4) { animation-delay: 0.75s; }
@keyframes log-in {
  from { opacity: 0; transform: translateX(-8px); }
}
.log-tag {
  flex: none;
  width: 44px;
  padding: 2px 0;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.06em;
}
.log-tag.red { background: rgba(255, 92, 108, 0.15); color: #ff8a96; }
.log-tag.amber { background: rgba(255, 181, 71, 0.15); color: #ffc873; }
.log-tag.blue { background: rgba(91, 140, 255, 0.15); color: #8fb0ff; }
.log-tag.green { background: rgba(61, 220, 151, 0.15); color: #6ee7b7; }
.tile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.tile-chips span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12.5px;
}
.tile-chips.mono span {
  font-family: var(--mono);
  direction: ltr;
}
.tile-chips b {
  color: var(--success);
  font-weight: 500;
}
.tile-code {
  display: block;
  margin-top: auto;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--success);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  direction: ltr;
}
.gem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 14px 4px 6px;
}
.gem-row i {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, #5a5d6e, #34364a);
}
.gem-row i.on {
  background: linear-gradient(135deg, #ffa3f5, #d946c9);
}
.gem-row i.now {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 18px rgba(255, 106, 213, 0.7);
}
.gem-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.gem-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff73fa, #a855f7);
}

/* ---------- All-in-one ---------- */
.aio-before,
.aio-after {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-2);
}
.aio-after {
  position: relative;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: radial-gradient(ellipse at top, rgba(61, 99, 245, 0.18), transparent 65%), var(--bg-2) !important;
}
.aio-before li {
  font-family: var(--mono);
  font-size: 13px;
}
.aio-arrow {
  color: var(--accent);
}
.aio-logo {
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 12px 30px -10px var(--glow);
}

/* ---------- Steps ---------- */
.band {
  background: transparent;
  border-block: 1px solid var(--border);
}
.steps3::before {
  display: none;
}
.step {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-2);
  text-align: start;
}
.step-num {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none !important;
  box-shadow: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.step h3 {
  font-size: 19px;
}

/* ---------- Plans (the shop) ---------- */
.plan {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-glass) !important;
  backdrop-filter: blur(12px);
  box-shadow: none;
  transition: transform 0.25s, border-color 0.25s;
}
.plan::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, var(--accent), transparent 40%, transparent 65%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.plan:hover {
  transform: translateY(-3px);
}
.plan:hover::before,
.plan.popular::before {
  opacity: 1;
}
.plan.popular {
  border-color: transparent;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(61, 99, 245, 0.2), transparent 70%), var(--surface-glass) !important;
  box-shadow: 0 30px 60px -30px var(--glow);
  transform: none;
}
.plan.popular:hover {
  transform: translateY(-3px);
}
.plan-tag {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--accent-strong) !important;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan h3 {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.plan-price {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.per-month {
  font-family: var(--mono);
  font-size: 12.5px;
}
.plan li::before {
  color: var(--accent) !important;
}

/* ---------- FAQ ---------- */
.faq details {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
}
.faq summary {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Final call to action ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-strong) !important;
  border-radius: 24px;
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(61, 99, 245, 0.35), transparent 60%), radial-gradient(ellipse 50% 100% at 100% 100%, rgba(62, 230, 255, 0.12), transparent 60%), var(--bg-2) !important;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.cta-band .btn-light {
  background: var(--accent-strong) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(61, 99, 245, 0.55), 0 10px 30px -10px var(--glow);
}
.cta-band .btn-light:hover {
  transform: translateY(-1px);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.sticky-cta {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.offer-bar {
  background: linear-gradient(90deg, rgba(61, 99, 245, 0.2), rgba(62, 230, 255, 0.08)) !important;
  border-bottom: 1px solid var(--border-strong);
}
.site-announcement {
  font-family: var(--font);
}

/* =====================================================================
   Dashboard and buy page
   ===================================================================== */
.card {
  border-color: var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
}
.card h2 {
  font-size: 17px;
  font-weight: 700;
}
.sidebar {
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border-inline-end-color: var(--border);
}
.nav-group {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}
.nav-item {
  border-radius: 9px;
  color: var(--muted);
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.nav-item.active {
  position: relative;
  background: var(--accent-soft) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.nav-item.active svg {
  color: var(--accent);
}
.page-head h1 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
}
.input {
  border-color: var(--border);
  background: var(--bg-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.list-row {
  background: var(--bg-2);
  border-color: var(--border);
}
.list-row .input {
  background: var(--surface);
}
.tstat {
  border-radius: 16px;
}
.tstat b,
.mini-stat b {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.switch input:checked {
  background: var(--accent-strong);
}
.chip.active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.pill {
  font-family: var(--mono);
  font-size: 11.5px;
}
.login-card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
}
.toast {
  border: 1px solid var(--border-strong);
  font-family: var(--font);
}

/* Elements hidden with the "hidden" attribute stay hidden, whatever display their class sets */
[hidden] {
  display: none !important;
}

/* Dark only: no theme switch */
[data-theme-toggle] {
  display: none !important;
}

/* Emoji picker: hidden (filtered) emojis and sections really disappear */
.ep-pop [hidden] {
  display: none !important;
}
.ep-item {
  content-visibility: auto;
  contain-intrinsic-size: 36px 36px;
}
.ep-item.loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Admin → Website settings: how a shared link looks in Discord */
.link-preview {
  display: grid;
  gap: 6px;
  max-width: 460px;
  margin-bottom: 14px;
  padding: 12px 16px 16px;
  border-inline-start: 4px solid #3d63f5;
  border-radius: 6px;
  background: #2b2d31;
  color: #dbdee1;
  font-family: 'gg sans', var(--font);
  direction: ltr;
  text-align: left;
}
.link-preview small {
  color: #dbdee1;
  font-size: 12px;
}
.link-preview b {
  color: #00a8fc;
  font-size: 16px;
}
.link-preview p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.link-preview img {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}

/* Geist Mono has no Arabic letters: Arabic labels use the normal font (numbers and code stay mono) */
[dir='rtl'] .trust,
[dir='rtl'] .metric-label,
[dir='rtl'] .metric-status,
[dir='rtl'] .stats-row.metrics b,
[dir='rtl'] .kicker,
[dir='rtl'] .hero-chip-tag,
[dir='rtl'] .pill,
[dir='rtl'] .nav-group,
[dir='rtl'] .crumbs,
[dir='rtl'] .table th,
[dir='rtl'] .per-month,
[dir='rtl'] .plan-tag,
[dir='rtl'] .step-num,
[dir='rtl'] .aio-before li,
[dir='rtl'] .tile-log,
[dir='rtl'] .tile-stats b {
  font-family: var(--font);
  letter-spacing: 0 !important;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1020px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-xl {
    grid-row: span 1;
  }
  .stats-row.metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-row.metrics > div:nth-child(3) {
    border-inline-start: 0;
  }
  .stats-row.metrics > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .metric-status {
    grid-column: 1 / -1;
    border-inline-start: 0 !important;
  }
}
@media (max-width: 900px) {
  .hero-visual {
    padding-bottom: 90px;
  }
  .terminal {
    inset-inline-start: 12px;
  }
}
@media (max-width: 640px) {
  .hero2 {
    padding-top: 48px;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-xl,
  .tile-wide {
    grid-column: auto;
  }
  .demo-window {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-rail {
    display: none;
  }
  .demo-feed {
    height: 300px;
  }
  .terminal {
    inset-inline-start: 8px;
    width: calc(100% - 16px);
  }
  .stats-row.metrics > div {
    padding: 16px;
  }
  .stats-row.metrics b {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .plan,
  .btn {
    transition: none;
  }
  .tile.in .tile-log li,
  .terminal-body .t-caret {
    animation: none;
  }
}

/* ---- Economy panel, boosters, my account ---- */
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-inline-start: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--warning);
  color: #1a1204;
  font-size: 11px;
  font-weight: 700;
}
.clickable {
  cursor: pointer;
}
tr.clickable:hover td,
.list-row.clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}
.member-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.member-head h2 {
  margin: 0;
}
.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shop-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 18px;
}
.shop-row.reward {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(90deg, rgba(61, 99, 245, 0.1), transparent 60%), var(--bg-2);
}
.code-manager {
  display: grid;
  gap: 8px;
  margin: 6px 0 12px;
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
}
.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.code-row .mono {
  flex: 1;
}
.code-row.used {
  opacity: 0.5;
}
.reward-row {
  flex-wrap: wrap;
}
.reward-row > .row.end {
  margin: 0;
}
.deliver-form {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
}
td.up {
  color: var(--success);
}
td.down {
  color: var(--danger);
}
.spinner.sm {
  width: 20px;
  height: 20px;
  margin: 10px auto;
}
.boosters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.booster {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
}
.booster .row {
  margin: 0;
  flex-wrap: wrap;
}
.booster .grow small {
  color: var(--muted);
}
.gem-ladder {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}
.gem-ladder .lstep {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.gem-ladder small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.gem-ladder .lstep.on small {
  color: #ff9cf2;
}
.gem {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: linear-gradient(135deg, #5a5d6e, #34364a);
}
.gem.on {
  background: linear-gradient(135deg, #ffa3f5, #d946c9);
}
.gem-ladder .lstep.now .gem {
  box-shadow: 0 0 12px rgba(255, 106, 213, 0.8);
}
.boost-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}
.boost-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff73fa, #b44cf0);
}
.booster-next {
  color: var(--muted);
  font-size: 13px;
}
.booster-card {
  margin-bottom: 14px;
}
.booster-card img,
.badge-card-img {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 12px auto 0;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.account-server {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.account-server .row {
  margin: 0;
  flex-wrap: nowrap;
}
.account-server h2 {
  margin: 0;
}
@media (max-width: 640px) {
  .boosters {
    grid-template-columns: 1fr;
  }
  .gem-ladder small {
    display: none;
  }
}

/* ---- Commands: who can use each command ---- */
.cmd-item {
  cursor: default;
  align-items: center;
}
.cmd-check {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.cmd-check input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.ca-btn {
  flex: none;
  padding: 4px 9px;
  font-size: 12px;
}
.ca-btn.active {
  border-color: var(--accent);
  color: var(--accent-2);
}
.cmd-item.editing {
  background: var(--surface-2);
}
.ca-badge {
  justify-self: start;
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 11.5px;
}
.hide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px;
  margin: 6px 0 10px;
}
.hide-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  cursor: pointer;
  font-size: 13px;
}
.hide-item input {
  accent-color: var(--accent);
}
.hide-item small {
  color: var(--muted);
}
.hide-item:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--accent-soft);
}
.ca-badge.staff {
  background: var(--warning-soft);
  color: var(--warning);
}
.ca-editor {
  display: grid;
  gap: 4px;
  margin: 2px 0 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 10px;
  background: var(--bg-2);
}
.ca-editor .label {
  margin: 6px 0 0;
}
.ca-editor .hint {
  margin: 0 0 4px;
}

/* Azkar: preview of the image under each zikr */
.azkar-image-preview {
  margin: 4px 0 14px;
}
.azkar-image-preview img {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
}
