:root {
  --bg: #0b1220;
  --bg-alt: #0f1729;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf7;
  --text-muted: #8b9bb8;
  --discord: #5865F2;
  --discord-dark: #4752C4;
  --discord-bg: #313338;
  --discord-sidebar: #2b2d31;
  --discord-embed: #2b2d31;
  --violet: #7c6cff;
  --cyan: #3dd6f5;
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Manrope', system-ui, sans-serif;
  --header-h: 72px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: rgba(88, 101, 242, 0.15);
}
.bg-glow--2 {
  width: 500px; height: 500px;
  bottom: 10%; left: -150px;
  background: rgba(124, 108, 255, 0.12);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.1rem;
}
.logo__icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.35);
}
.logo__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo__icon svg { width: 18px; height: 18px; }

.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a { color: var(--text-muted); font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn__icon { width: 20px; height: 20px; }
.btn__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--discord), var(--discord-dark));
  color: white;
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(88, 101, 242, 0.5);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-hover); }

.btn--glow {
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.4), 0 4px 24px rgba(88, 101, 242, 0.3);
}

main { position: relative; z-index: 1; padding-top: var(--header-h); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--discord);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--discord) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero__lead code {
  background: rgba(88, 101, 242, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--discord);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
}
.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.logo__icon--discord { background: var(--discord); }

.discord-window {
  display: flex;
  width: min(520px, 95vw);
  min-height: 380px;
  background: var(--discord-sidebar);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.discord-window__sidebar {
  width: 140px;
  background: #1e1f22;
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.discord-window__guild-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.4);
}
.discord-window__guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discord-window__channel {
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #949ba4;
}
.discord-window__channel--active {
  background: rgba(88, 101, 242, 0.2);
  color: #fff;
}

.discord-window__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--discord-bg);
}

.discord-window__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
  font-size: 0.9rem;
  color: #f2f3f5;
}

.discord-window__pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(35, 165, 90, 0.2);
  color: #23a55a;
}

.discord-feed {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dmsg {
  display: flex;
  gap: 0.75rem;
  animation: msgIn 0.4s ease backwards;
}
.dmsg:nth-child(1) { animation-delay: 0.15s; }
.dmsg:nth-child(2) { animation-delay: 0.45s; }
.dmsg:nth-child(3) { animation-delay: 0.75s; }

.dmsg__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.dmsg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dmsg__avatar--user {
  background: #5865f2;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.dmsg__avatar--bot {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.45);
}

.dmsg__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.dmsg__name { font-weight: 600; font-size: 0.875rem; color: #f2f3f5; }
.dmsg__tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--discord);
  color: #fff;
  text-transform: uppercase;
}
.dmsg__time { font-size: 0.7rem; color: #949ba4; }
.dmsg__body p { font-size: 0.875rem; color: #dbdee1; line-height: 1.45; }
.dmsg__body code {
  background: #1e1f22;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: #e3e5e8;
}
.dmsg__slash { color: #949ba4 !important; font-style: italic; }

.dmsg__embed {
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--discord-embed);
  border-left: 3px solid var(--discord);
  border-radius: 0 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #b5bac1;
}
.dmsg__embed strong { color: #f2f3f5; font-size: 0.85rem; }

.dmsg__embed--rich {
  gap: 0.5rem;
  max-width: 100%;
}
.dmsg__embed-title {
  color: #f2f3f5;
  font-weight: 700;
  font-size: 0.875rem;
}
.dmsg__embed-desc {
  color: #dbdee1;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}
.dmsg__embed-desc strong { color: #f2f3f5; }
.dmsg__embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  margin-top: 0.25rem;
}
.dmsg__embed-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.dmsg__embed-field-name {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.75rem;
}
.dmsg__embed-field-value {
  color: #b5bac1;
  font-size: 0.72rem;
  line-height: 1.35;
}
.dmsg__embed-field-value code {
  background: #1e1f22;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.95em;
  color: #e3e5e8;
}
.dmsg__embed-footer {
  color: #949ba4;
  font-size: 0.68rem;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta__support {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--discord);
  font-weight: 600;
  font-size: 0.925rem;
}
.cta__support:hover { text-decoration: underline; }
.cta__support[hidden] { display: none; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.section--alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--discord);
  margin-bottom: 0.75rem;
}
.section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section__head p { color: var(--text-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  border-color: rgba(88, 101, 242, 0.3);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card__icon--blue { background: rgba(88, 101, 242, 0.15); }
.card__icon--violet { background: rgba(124, 108, 255, 0.15); }
.card__icon--cyan { background: rgba(61, 214, 245, 0.15); }
.card__icon--green { background: rgba(52, 211, 153, 0.15); }
.card__icon--orange { background: rgba(251, 146, 60, 0.15); }
.card__icon--pink { background: rgba(244, 114, 182, 0.15); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p { color: var(--text-muted); font-size: 0.925rem; }
.card p code {
  background: rgba(88, 101, 242, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--discord);
}

.section__head code {
  background: rgba(88, 101, 242, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--discord);
}

/* ── Slash command demo (Discord UI) ── */
.slash-demo {
  max-width: 780px;
  margin: 0 auto;
}

.slash-demo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.slash-filter {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.slash-filter:hover {
  background: rgba(88, 101, 242, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}
.slash-filter--active {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(124, 108, 255, 0.15));
  border-color: rgba(88, 101, 242, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

.slash-demo__window {
  display: flex;
  min-height: 460px;
  background: #313338;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(88, 101, 242, 0.06);
}

.slash-demo__sidebar {
  width: 168px;
  flex-shrink: 0;
  background: #1e1f22;
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.slash-demo__guild img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.4);
}

.slash-demo__channels {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.slash-demo__channel {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slash-demo__channel--active {
  background: rgba(88, 101, 242, 0.18);
  color: #fff;
}

.slash-demo__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #313338 0%, #2b2d31 100%);
}

.slash-demo__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(49, 51, 56, 0.95);
  backdrop-filter: blur(8px);
}

.slash-demo__topbar-left {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.slash-demo__hash {
  color: #949ba4;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}
.slash-demo__channel-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f2f3f5;
}

.slash-demo__topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.slash-demo__toolbar-icon {
  font-size: 0.85rem;
  opacity: 0.45;
  filter: grayscale(1);
  user-select: none;
}

.slash-demo__chat {
  flex: 1;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(88, 101, 242, 0.06), transparent 70%);
}

.slash-demo__welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  padding: 1.5rem 1rem;
  max-width: 340px;
}

.slash-demo__welcome-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.35), transparent 70%);
  filter: blur(24px);
  top: 0;
  pointer-events: none;
  animation: welcomePulse 3s ease-in-out infinite;
}

@keyframes welcomePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.slash-demo__welcome-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 3px rgba(88, 101, 242, 0.45),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.slash-demo__welcome-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f2f3f5;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.slash-demo__welcome-text {
  font-size: 0.875rem;
  color: #949ba4;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.slash-demo__suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.slash-suggest {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.1);
  color: #c8cdf5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.slash-suggest:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.25);
}

.slash-demo__exchange {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: msgIn 0.3s ease;
}

.slash-used {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
}
.slash-used__avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5865f2;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}
.slash-used__text {
  font-size: 0.8rem;
  color: #949ba4;
  margin: 0;
  line-height: 1.4;
}
.slash-used__name {
  color: #dbdee1;
  font-weight: 600;
}
.slash-used__cmd {
  color: #f2f3f5;
  background: rgba(88, 101, 242, 0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 500;
}

.slash-used__bot { margin-top: 0.15rem; }
.slash-used__bot .dmsg__body p {
  font-size: 0.875rem;
  color: #dbdee1;
  margin: 0;
  line-height: 1.45;
}
.slash-used__bot .dmsg__body p strong { color: #f2f3f5; }

.slash-used__typing {
  display: flex;
  gap: 4px;
  padding: 0.25rem 0;
}
.slash-used__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #949ba4;
  animation: typingBounce 1.2s ease infinite;
}
.slash-used__typing span:nth-child(2) { animation-delay: 0.15s; }
.slash-used__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.dmsg__ephemeral {
  font-size: 0.72rem;
  color: #949ba4;
  margin: 0.35rem 0 0;
  font-style: italic;
}
.dmsg__file {
  font-size: 0.8rem;
  color: #00a8fc;
  margin: 0.35rem 0 0;
}

.demo-rank__card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: linear-gradient(135deg, #1a1f3a, #2d1f4e);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 280px;
}
.demo-rank__level {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.demo-rank__info { flex: 1; min-width: 0; }
.demo-rank__nick {
  display: block;
  font-weight: 700;
  color: #f2f3f5;
  font-size: 0.9rem;
}
.demo-rank__role {
  display: block;
  font-size: 0.72rem;
  color: #f97316;
  margin: 0.1rem 0 0.35rem;
}
.demo-rank__bar {
  height: 6px;
  background: #1e1f22;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.demo-rank__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5865f2, #7c6cff);
  border-radius: 999px;
}
.demo-rank__xp {
  font-size: 0.68rem;
  color: #949ba4;
}

.demo-top { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.25rem; }
.demo-top__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #b5bac1;
}
.demo-top__row span:first-child { width: 1.25rem; text-align: center; flex-shrink: 0; }
.demo-top__row strong { color: #f2f3f5; margin-left: auto; font-weight: 600; }
.demo-top__row--1 { color: #ffd700; }
.demo-top__row--2 { color: #c0c0c0; }
.demo-top__row--3 { color: #cd7f32; }

.demo-stats__preview {
  background: linear-gradient(135deg, #0f1729, #1e293b);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 260px;
}
.demo-stats__head {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f2f3f5;
  margin-bottom: 0.5rem;
}
.demo-stats__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
}
.demo-stats__grid span { color: #949ba4; }
.demo-stats__grid strong { color: #dbdee1; text-align: right; }

.demo-rp-list {
  line-height: 1.6 !important;
}
.demo-rp-list code {
  background: #1e1f22;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
  margin-right: 0.15rem;
}

.slash-demo__footer {
  padding: 0 1rem 1rem;
  background: transparent;
}

.slash-demo__composer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #383a40;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.slash-demo__composer:focus-within {
  border-color: rgba(88, 101, 242, 0.35);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.12);
}

.slash-demo__composer-plus {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #404249;
  color: #b5bac1;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  cursor: default;
  opacity: 0.65;
}

.slash-picker-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.slash-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #dbdee1;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.slash-pick-btn:hover {
  background: rgba(255,255,255,0.04);
  color: #f2f3f5;
}
.slash-pick-btn--open {
  background: rgba(88, 101, 242, 0.12);
  color: #fff;
}

.slash-pick-btn__slash {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--discord), var(--violet));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.35);
}

.slash-pick-btn__label {
  flex: 1;
  min-width: 0;
}

.slash-pick-btn__hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #949ba4;
  flex-shrink: 0;
}
.slash-pick-btn:hover .slash-pick-btn__hint,
.slash-pick-btn--open .slash-pick-btn__hint {
  color: #b5bac1;
}

.slash-picker {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 10;
}
.slash-picker[hidden] { display: none; }

.slash-picker .slash-autocomplete {
  position: static;
  max-height: 340px;
}

.slash-autocomplete {
  background: #111214;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slash-autocomplete__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949ba4;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.slash-autocomplete__header img {
  border-radius: 50%;
  object-fit: cover;
}

.slash-autocomplete__list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 0.25rem 0;
}
.slash-autocomplete__list:empty::after {
  content: 'Нет команд';
  display: block;
  padding: 1rem 0.75rem;
  color: #949ba4;
  font-size: 0.85rem;
  text-align: center;
}

.slash-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}
.slash-option:hover,
.slash-option--active {
  background: rgba(88, 101, 242, 0.18);
  border-left-color: var(--discord);
}
.slash-option__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.slash-option__name img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.slash-option__desc {
  grid-column: 2;
  font-size: 0.75rem;
  color: #949ba4;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--discord), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}
.step h3 { font-weight: 700; margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: 0.925rem; }
.step code {
  background: rgba(88, 101, 242, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--discord);
}

.faq {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--discord);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 1.5rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.cta {
  padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(42,171,238,0.12), rgba(124,108,255,0.12));
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-lg);
}
.cta__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.35), 0 8px 32px rgba(0,0,0,0.3);
}
.cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta__inner p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* Site footer (RudeHolm-style grid) */
.site-footer {
  margin-top: 48px;
  padding: 40px clamp(1rem, 4vw, 2.5rem) 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}
.footer-brand:hover .brand-grib { text-shadow: 0 0 20px rgba(88, 101, 242, 0.45); }
.footer-logo-i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
}
.footer-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.footer-brand-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 2px;
}
.brand-grib { color: var(--text); }
.footer-copy {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-mail a,
.footer-req {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.footer-mail a:hover { color: var(--discord); }
.footer-hours {
  font-size: 0.78rem;
  margin-top: 4px;
  opacity: 0.85;
  color: var(--text-muted);
}
.footer-req {
  margin-top: 8px;
  line-height: 1.5;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.footer-legal p {
  margin-bottom: 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--text-muted);
}
.footer-legal p a {
  color: var(--text-muted);
  text-decoration: underline;
}
.footer-legal p a:hover { color: var(--discord); }
.footer-legal > a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.footer-legal a.under {
  text-decoration: underline;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-legal > a:hover { color: var(--discord); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
}
.footer-nav a:hover { color: var(--discord); opacity: 1; }
.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-soc {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
  color: inherit;
  text-decoration: none;
}
.footer-soc:hover {
  transform: translateY(-2px);
  border-color: var(--discord);
  background: rgba(88, 101, 242, 0.12);
}
.footer-soc svg { width: 22px; height: 22px; fill: currentColor; }
.footer-soc.tg { color: #2aabee; }
.footer-soc.ds { color: #7289da; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-social { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-footer { padding: 32px 18px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.legal__doc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}
.legal__updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.legal__doc h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.legal__doc h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}
.legal__doc p,
.legal__doc li {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal__doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.legal__doc a { color: var(--discord); }
.legal__doc code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
}
.legal__back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .discord-window { animation: none; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .slash-demo__sidebar { display: none; }
  .slash-demo__topbar-right .slash-demo__toolbar-icon { display: none; }
  .slash-pick-btn__hint { display: none; }
}

@media (max-width: 480px) {
  .hero__stats { gap: 1.5rem; }
  .stat__value { font-size: 1.25rem; }
  .dmsg__embed-fields { grid-template-columns: 1fr; }
  .slash-demo__welcome-avatar { width: 64px; height: 64px; }
  .slash-demo__filters { gap: 0.35rem; }
  .slash-filter { font-size: 0.75rem; padding: 0.4rem 0.7rem; }
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.network-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.network-card__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.network-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.network-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.network-card__meta { font-size: 0.75rem; color: var(--muted); }
.network-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}
.network-list li { margin-bottom: 0.35rem; }
.network-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.guild-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guild-leaderboard__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.guild-leaderboard__item:last-child { border-bottom: none; }
.guild-leaderboard__rank {
  width: 1.75rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.guild-leaderboard__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.guild-leaderboard__icon--ph {
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.guild-leaderboard__body { flex: 1; min-width: 0; }
.guild-leaderboard__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guild-leaderboard__meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.guild-leaderboard__empty {
  color: var(--muted);
  padding: 1rem 0;
}
.network-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 0.5rem;
}
.network-stat { text-align: center; }
.network-stat__val {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.network-stat__lbl {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Studio triggers ── */
.studio-login__card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.studio-login__card h3 { margin: 0 0 0.75rem; }
.studio-pricing {
  text-align: left;
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.studio-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.studio-user {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.studio-balance { color: #22c55e; }
.studio-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.studio-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
}
.studio-textarea { min-height: 5rem; resize: vertical; }
.studio-hint {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}
.studio-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .studio-form__grid { grid-template-columns: 1fr; }
}
.studio-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.studio-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.studio-status--ok { color: #22c55e; }
.studio-status--err { color: #ef4444; }
.studio-list-title {
  margin: 2rem 0 1rem;
  font-size: 1rem;
}
.studio-list { display: flex; flex-direction: column; gap: 0.75rem; }
.studio-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.studio-trigger {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.studio-trigger--off { opacity: 0.55; }
.studio-trigger__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.studio-trigger__phrase {
  font-size: 1rem;
  background: rgba(88, 101, 242, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.studio-trigger__match,
.studio-trigger__on,
.studio-trigger__off {
  font-size: 0.75rem;
  color: var(--muted);
}
.studio-trigger__on { color: #22c55e; }
.studio-trigger__off { color: #f59e0b; }
.studio-trigger__text {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.studio-trigger__img {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.studio-trigger__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.studio-trigger__del { color: #ef4444 !important; }

/* ── Card shop ── */
.card-shop {
  max-width: 1100px;
  margin: 0 auto;
}
.card-shop-login__card {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.card-shop-login__card h3 { margin: 0 0 0.5rem; }
.card-shop-panel { margin-bottom: 1rem; }
.card-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.card-shop-user {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.card-shop-balance { color: #22c55e; }
.card-shop-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.card-shop-tab {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.card-shop-tab:hover { border-color: var(--accent); }
.card-shop-tab--active {
  background: rgba(88, 101, 242, 0.18);
  border-color: #5865f2;
  color: #c7d2fe;
}
.card-shop-top-bar {
  margin-bottom: 1rem;
  max-width: 420px;
}
.card-shop-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.card-shop-status--ok { color: #22c55e; }
.card-shop-status--err { color: #ef4444; }
.card-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card-theme {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-theme--equipped {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}
.card-theme__preview {
  position: relative;
  background: #0b1220;
  line-height: 0;
  min-height: 120px;
}
.card-theme__preview img {
  width: 100%;
  height: auto;
  display: block;
}
.card-theme__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.65);
  color: #fff;
}
.card-theme__badge--owned { color: #86efac; }
.card-theme--luxe {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15);
}
.card-theme__badge--luxe {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  color: #1a1020;
}
.card-theme__badge--equipped ~ .card-theme__badge--luxe,
.card-theme__badge--owned ~ .card-theme__badge--luxe {
  top: 2.1rem;
}
.card-theme--custom-slot .card-theme__preview {
  border: 1px dashed rgba(251, 191, 36, 0.35);
}
.card-custom-editor {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.6);
}
.card-custom-editor__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.card-custom-editor__head p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.card-custom-editor__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  .card-custom-editor__layout { grid-template-columns: 1fr; }
}
.card-custom-editor__preview-wrap {
  background: #0b1220;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
}
.card-custom-editor__preview-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.card-custom-editor__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-custom-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.card-theme__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.card-theme__title {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.card-theme__price {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card-theme__price strong { color: #22c55e; }
.card-theme__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.35rem;
}
.card-theme__hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.card-shop-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.card__icon--green { background: linear-gradient(135deg, #22c55e, #16a34a); }
