/* ═════════ Upgrade layer: aurora background, glass surfaces, gradient edges, richer motion ═════════
   Loaded after app.css. Colours follow the accent tokens (--primary / --primary-rgb), so the dashboard's
   Theme picker still recolours everything. Remove the <link> in index.html to roll back. */
:root {
  --u-accent-2: #22d3ee;
  --u-accent-3: #a78bfa;
  --u-glass: rgba(255, 255, 255, .035);
  --u-glass-2: rgba(255, 255, 255, .055);
  --u-edge: rgba(255, 255, 255, .08);
  --u-edge-hi: rgba(255, 255, 255, .16);
  --u-ease: cubic-bezier(.22, 1, .36, 1);
  --u-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -10px rgba(0, 0, 0, .55);
  --u-shadow-hi: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 50px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--primary-rgb), .25);
}

::selection { background: rgba(var(--primary-rgb), .38); color: #fff; }
:focus-visible { outline: 2px solid rgba(var(--primary-rgb), .8); outline-offset: 2px; }
body { font-feature-settings: 'cv11', 'ss01', 'ss03'; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }

/* ── Public site: aurora backdrop + faint grid, fixed behind everything ── */
body:has(.site-nav) { background: #0b0c10; }
body:has(.site-nav)::before,
body:has(.site-nav)::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body:has(.site-nav)::before {
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(var(--primary-rgb), .22), transparent 60%),
    radial-gradient(50vw 45vh at -5% 15%, rgba(167, 139, 250, .13), transparent 60%),
    radial-gradient(60vw 50vh at 50% 115%, rgba(34, 211, 238, .10), transparent 60%);
}
body:has(.site-nav)::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
body:has(.site-nav) #app { position: relative; isolation: isolate; }

/* ── Nav: frosted glass with a soft gradient hairline ── */
.site-nav {
  background: rgba(11, 12, 16, .62); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1) 20%, rgba(var(--primary-rgb), .35) 50%, rgba(255, 255, 255, .1) 80%, transparent) 1;
}
.site-nav .brand img { filter: drop-shadow(0 4px 14px rgba(var(--primary-rgb), .55)); transition: transform .4s var(--u-ease); }
.site-nav .brand:hover img { transform: rotate(-8deg) scale(1.06); }
.mm-btn { transition: color .2s var(--u-ease), background .2s var(--u-ease); }
.mm-panel, .mm-mobile { background: rgba(16, 17, 23, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: var(--u-edge); }
.mm-item { transition: background .2s var(--u-ease), transform .2s var(--u-ease); }
.mm-item:hover { background: rgba(var(--primary-rgb), .08); transform: translateX(2px); }
.mm-ic { background: linear-gradient(145deg, rgba(var(--primary-rgb), .26), rgba(var(--primary-rgb), .08)); box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .25); }

/* ── Buttons: shine sweep on primary, glass ghost ── */
.btn-primary { position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px -8px rgba(var(--primary-rgb), .8) !important; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%);
  transition: transform .7s var(--u-ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 30px -10px rgba(var(--primary-rgb), .95) !important; }
.site-nav ~ * .btn-ghost, .site-nav ~ .btn-ghost { background: var(--u-glass); border-color: var(--u-edge); backdrop-filter: blur(8px); }
.site-nav ~ * .btn-ghost:hover { background: var(--u-glass-2); border-color: var(--u-edge-hi); transform: translateY(-1px); }
.btn-lg { border-radius: 12px; }

/* ── Hero ── */
.hero { padding-top: 110px; padding-bottom: 120px; }
.hero::before { background: radial-gradient(circle, rgba(var(--primary-rgb), .32), transparent 62%); filter: blur(10px); animation: u-breathe 9s ease-in-out infinite; }
.hero h1 { font-size: clamp(42px, 6vw, 74px); letter-spacing: -.045em; line-height: 1.02;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .72)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .grad { background: linear-gradient(100deg, var(--primary-light) 0%, var(--primary) 35%, var(--u-accent-2) 70%, var(--primary-light) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: u-shimmer 7s linear infinite; }
.hero p { font-size: 19px; line-height: 1.6; color: #a3a7b6; }
.hero-pill { backdrop-filter: blur(8px); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .05), 0 6px 20px -8px rgba(var(--primary-rgb), .6); }
.hero-pill .dot { animation: u-ping 2.2s var(--u-ease) infinite; }
.hero-trust li { padding: 5px 10px; border-radius: 999px; background: var(--u-glass); border: 1px solid var(--u-edge); font-size: 13px; }
.orbit { border-color: rgba(255, 255, 255, .1); }
.orbit.o3 { border-color: rgba(var(--primary-rgb), .45); box-shadow: 0 0 60px rgba(var(--primary-rgb), .18) inset, 0 0 40px rgba(var(--primary-rgb), .12); }
.orbit .planet { background: linear-gradient(160deg, rgba(40, 42, 54, .9), rgba(22, 23, 30, .9)); border: 1px solid var(--u-edge-hi);
  backdrop-filter: blur(10px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hero-core { animation: u-float 6s ease-in-out infinite; box-shadow: 0 0 0 10px rgba(var(--primary-rgb), .06), 0 0 0 22px rgba(var(--primary-rgb), .03), 0 0 100px rgba(var(--primary-rgb), .7); }

/* ── Section headings ── */
.section { padding-top: 90px; padding-bottom: 90px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; line-height: 1.1;
  background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: #a3a7b6; font-size: 17.5px; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .12em;
  color: var(--primary-light); background: rgba(var(--primary-rgb), .1); border: 1px solid rgba(var(--primary-rgb), .22); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ── Shared glass card with a gradient edge (highlights, steps, stats, categories) ── */
.hl-card-outer, .how-steps li, .stat-tile, .cat-card, .pt-card {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)) !important;
  border: 1px solid var(--u-edge) !important; box-shadow: var(--u-shadow) !important; backdrop-filter: blur(6px);
  transition: transform .45s var(--u-ease), box-shadow .45s var(--u-ease), border-color .45s var(--u-ease) !important;
}
.hl-card-outer::before, .how-steps li::before, .stat-tile::before, .cat-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(var(--primary-rgb), .55), transparent 35%, transparent 65%, rgba(34, 211, 238, .4));
  -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 .45s var(--u-ease);
}
.hl-card-outer:hover, .how-steps li:hover, .stat-tile:hover, .cat-card:hover, .pt-card:hover { transform: translateY(-5px) !important; box-shadow: var(--u-shadow-hi) !important; border-color: transparent !important; }
.hl-card-outer:hover::before, .how-steps li:hover::before, .stat-tile:hover::before, .cat-card:hover::before { opacity: 1; }

/* Highlights */
.hl-grid { gap: 22px; }
.hl-card-outer { border-radius: 20px; }
.hl-mock { height: 186px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), rgba(0, 0, 0, .25);
  border-bottom: 1px solid var(--u-edge); }
.hl-mock > * { transition: transform .6s var(--u-ease); }
.hl-card-outer:hover .hl-mock > * { transform: translateY(-4px) scale(1.03); }
.hl-ic { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 6px 16px -6px var(--c); }
.hl-body { padding: 20px 22px 24px; }
.hl-title h3 { font-size: 17.5px; letter-spacing: -.01em; }

/* How it works: numbered steps joined by a gradient line */
.how-steps { gap: 22px; position: relative; }
.how-steps li { border-radius: 20px; padding: 30px 26px; overflow: hidden; }
.how-steps li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--u-accent-2), transparent); opacity: .7; }
.step-n { font-size: 64px; top: 10px; right: 18px; letter-spacing: -.05em;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), .35), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-ic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, var(--primary-hi), var(--primary) 60%, #1d6fd6) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 10px 26px -8px rgba(var(--primary-rgb), .9); }
.how-steps h3 { font-size: 18px; margin-top: 18px; }

/* Stats */
.stat-strip { gap: 18px; }
.stat-tile { border-radius: 20px !important; padding: 30px 18px !important; overflow: hidden; }
.stat-tile::after { content: ''; position: absolute; left: 50%; top: -60px; width: 160px; height: 120px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--primary-rgb), .35), transparent); filter: blur(10px); }
.stat-strip .n { font-size: 44px; letter-spacing: -.04em; position: relative;
  background: linear-gradient(180deg, #fff 20%, var(--primary-light)) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.stat-tile p { color: #a3a7b6; font-weight: 500; letter-spacing: .02em; position: relative; }

/* Category cards */
.cat-cards { gap: 18px; }
.cat-card { border-radius: 18px !important; }
.cat-card .mm-ic { width: 44px; height: 44px; border-radius: 13px; transition: transform .45s var(--u-ease); }
.cat-card:hover .mm-ic { transform: scale(1.08) rotate(-4deg); }
.cat-count { font-weight: 700; }

/* Pricing teaser */
.pt-card { border-radius: 20px; }
.pt-card.best { border-color: rgba(245, 176, 65, .45) !important; background: radial-gradient(90% 80% at 50% 0%, rgba(245, 176, 65, .16), transparent 70%), rgba(255, 255, 255, .03) !important; }

/* ── Closing call to action: vivid brand gradient, glow and shine ── */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 72px 32px;
  background: linear-gradient(125deg, #1e3a8a 0%, var(--primary) 45%, #06b6d4 100%) !important;
  box-shadow: 0 30px 80px -30px rgba(var(--primary-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 80% at 15% 0%, rgba(255, 255, 255, .28), transparent 60%),
    radial-gradient(40% 70% at 100% 100%, rgba(167, 139, 250, .45), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 32px 32px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .2); }
.cta-band p { color: rgba(255, 255, 255, .88); opacity: 1; font-size: 17px; }
.cta-band .btn:not(.btn-ghost-light) { background: #fff !important; color: #0b1b3a !important; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5) !important; }
.cta-band .btn:not(.btn-ghost-light):hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6) !important; }
.cta-band .btn-ghost-light { backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08) !important; }

/* ── Footer ── */
.site-footer { position: relative; border-top: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), .45), rgba(34, 211, 238, .35), transparent); }
.sf-col a { transition: color .2s var(--u-ease), transform .2s var(--u-ease); display: inline-block; }
.sf-col a:hover { color: #fff; transform: translateX(3px); }
.sf-bottom { border-top-color: var(--u-edge); }

/* ── Promo marquee: a touch more depth ── */
.marquee { box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 6px 24px -6px rgba(var(--primary-rgb), .6); }

/* ── Scroll reveal: soft blur-in ── */
.reveal { filter: blur(6px); transition: opacity .8s var(--u-ease), transform .8s var(--u-ease), filter .8s var(--u-ease); }
.reveal.in { filter: none; }

/* ── Dashboard: light-touch polish that sits on the existing charcoal theme ── */
.plugin-card, .guild-card, .op-card { transition: transform .35s var(--u-ease), box-shadow .35s var(--u-ease), border-color .35s var(--u-ease) !important; }
.plugin-card:hover, .guild-card:hover { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--primary-rgb), .3) !important; }
.banner { background:
  radial-gradient(120% 140% at 100% -30%, rgba(var(--primary-rgb), .22), transparent 55%),
  radial-gradient(80% 120% at 0% 130%, rgba(34, 211, 238, .08), transparent 60%),
  linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 40%), var(--panel) !important; }
.input:focus, .textarea:focus, select.input:focus, .select:focus { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18) !important; border-color: rgba(var(--primary-rgb), .6) !important; }

/* ── Keyframes ── */
@keyframes u-shimmer { to { background-position: 200% center; } }
@keyframes u-float { 50% { transform: translateY(-10px); } }
@keyframes u-breathe { 50% { opacity: .7; transform: scale(1.06); } }
@keyframes u-ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

@media (max-width: 860px) {
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .cta-band { padding: 52px 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero h1 .grad, .hero-core, .hero-pill .dot { animation: none !important; }
  .reveal { filter: none !important; }
  .hl-card-outer:hover, .how-steps li:hover, .stat-tile:hover, .cat-card:hover, .pt-card:hover, .btn-primary:hover { transform: none !important; }
  .btn-primary::after { display: none; }
}

/* ── Dashboard sidebar: name on top, short hint underneath, icon tiles, clearer group headers ── */
.nav a.nav-top, .nav a.nav-plugin { min-height: 48px; padding: 7px 10px; gap: 11px; align-items: center; border-radius: 10px; }
.nav a .label { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; overflow: hidden; white-space: normal; }
.nav .nav-name { font-size: 14px; font-weight: 600; line-height: 1.25; color: #e4e6ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .nav-hint { font-size: 11.5px; font-weight: 500; line-height: 1.3; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s var(--u-ease); }
.nav a:hover .nav-name, .nav a.active .nav-name { color: #fff; }
.nav a:hover .nav-hint { color: var(--muted); }
.nav a.active .nav-hint { color: var(--primary-light); opacity: .85; }
.nav a.nav-top > svg { width: 32px !important; height: 32px !important; padding: 7.5px; flex: none; border-radius: 9px; box-sizing: border-box;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--u-edge); }
.nav-plugin .nicon { width: 32px !important; height: 32px !important; flex: none; display: grid; place-items: center; border-radius: 9px !important;
  background: rgba(255, 255, 255, .045) !important; box-shadow: inset 0 0 0 1px var(--u-edge); }
.nav-plugin .nicon svg { width: 17px; height: 17px; }
.nav a.active > svg, .nav a.active .nicon { background: rgba(var(--primary-rgb), .18) !important; box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .35); }
.nav-plugin .status { position: absolute; left: 34px; top: 9px; width: 8px !important; height: 8px !important; margin: 0; z-index: 1;
  border: 2px solid var(--bg-2); box-sizing: content-box; }
.nav-section { margin-top: 18px; }
.nav-section + .nav-section { padding-top: 14px; border-top: 1px solid var(--u-edge); }
.nav-label { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.nav-label:hover { color: var(--text); }

/* ── Embed previews: custom emoji, timestamps and subtext look like they do in Discord ── */
.md-emoji { display: inline-block; width: 1.375em; height: 1.375em; vertical-align: -.3em; object-fit: contain; margin: 0 .05em; }
.e-title .md-emoji, .e-field b .md-emoji { width: 1.2em; height: 1.2em; }
.d-btn .md-emoji { width: 18px; height: 18px; vertical-align: middle; }
.md-time { padding: 0 2px; border-radius: 3px; background: rgba(255, 255, 255, .07); }
.md-sub { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }

/* Live Litecoin price placeholder in previews */
.md-live { padding: 0 3px; border-radius: 4px; font-weight: 600; color: #a5c8ff; background: rgba(52, 93, 255, .14); }

/* ── Site nav: gold Premium button to the left of the Discord button ── */
.site-nav > .btn-crown { margin-right: -16px; }
.btn-crown { gap: 8px; color: #f7c94b; font-weight: 700; border: 1px solid rgba(247, 201, 75, .28);
  background: linear-gradient(180deg, #4a3a1c, #362a15) !important; box-shadow: inset 0 1px 0 rgba(255, 228, 150, .12) !important; }
.btn-crown:hover { color: #ffd966; border-color: rgba(247, 201, 75, .55); transform: translateY(-1px);
  background: linear-gradient(180deg, #57441f, #413218) !important; box-shadow: inset 0 1px 0 rgba(255, 228, 150, .18), 0 8px 22px -10px rgba(245, 176, 65, .75) !important; }
.btn-crown .icon { width: 19px; height: 19px; fill: #f5b82e; stroke: #f5b82e; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) { .site-nav > .btn-crown { margin-right: -4px; padding: 0 11px; } }

/* ── Landing: MEE6-style feature showcase — alternating rows with Discord-style pictures ── */
.showcase .section-head { margin-bottom: 72px; }
.sc-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto 110px; }
.sc-row:last-child { margin-bottom: 0; }
.sc-row.flip .sc-art { order: 2; }
.sc-art { position: relative; isolation: isolate; }
.sc-art::before { content: ''; position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 32%, transparent), transparent); filter: blur(30px); opacity: .75; }

/* Discord-style window */
.sc-window { border-radius: 16px; overflow: hidden; background: #313338; border: 1px solid rgba(255, 255, 255, .08); text-align: left;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .7s var(--u-ease), box-shadow .7s var(--u-ease); }
.sc-row.flip .sc-window { transform: perspective(1400px) rotateY(5deg) rotateX(2deg); }
.sc-row:hover .sc-window { transform: perspective(1400px) translateY(-6px); box-shadow: 0 40px 80px -25px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.sc-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; background: #2b2d31; border-bottom: 1px solid rgba(0, 0, 0, .35); }
.sc-dots { display: flex; gap: 6px; }
.sc-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.sc-dots i:nth-child(2) { background: #febc2e; }
.sc-dots i:nth-child(3) { background: #28c840; }
.sc-chan { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: #f2f3f5; }
.sc-hash { color: #80848e; font-size: 20px; font-weight: 500; line-height: 1; }
.sc-body { padding: 18px 18px 22px; display: grid; gap: 16px; }

/* Messages */
.sc-msg { display: flex; gap: 14px; }
.sc-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 800; font-size: 17px; }
.sc-av img { width: 100%; height: 100%; }
.sc-msg-main { flex: 1; min-width: 0; display: grid; gap: 7px; justify-items: start; }
.sc-who { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.sc-who b { color: #f2f3f5; font-weight: 600; }
.sc-bot { padding: 1px 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.sc-time { color: #949ba4; font-size: 12px; }
.sc-msg p { margin: 0; color: #dbdee1; font-size: 15px; line-height: 1.45; }
.sc-mention { padding: 0 3px; border-radius: 4px; background: rgba(88, 101, 242, .3); color: #c9cdfb; font-weight: 500; }
.sc-role { color: #fbbf24; font-weight: 600; }
.sc-banner { width: 100%; max-width: 460px; border-radius: 10px; }
.sc-embed { width: 100%; max-width: 460px; display: grid; gap: 6px; padding: 12px 16px; border-radius: 4px; border-left: 4px solid; background: #2b2d31; box-sizing: border-box; }
.sc-embed b { color: #f2f3f5; font-size: 15px; }
.sc-embed p { font-size: 14px !important; }
.sc-muted { color: #b5bac1 !important; }
.sc-fields { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 22px; justify-content: start; }
.sc-fields small { display: block; color: #f2f3f5; font-weight: 700; font-size: 12px; }
.sc-fields span { color: #dbdee1; font-size: 14px; }
.sc-removed { text-decoration: line-through; opacity: .45; }
.sc-automod { display: inline-flex; align-items: center; gap: 6px; color: #f87171; font-size: 12.5px; font-weight: 600; }
.sc-automod .icon { width: 14px; height: 14px; }
.sc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.sc-btn.on { background: #5865f2; }
.sc-btn.green { background: #248046; }

/* Welcome: more themes under the card */
.sc-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-left: 54px; }
.sc-themes img { width: 100%; border-radius: 8px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); transition: transform .4s var(--u-ease); }
.sc-row:hover .sc-themes img:nth-child(1) { transform: translateY(-4px) rotate(-2deg); }
.sc-row:hover .sc-themes img:nth-child(3) { transform: translateY(-4px) rotate(2deg); }

/* Levels: rank card */
.sc-rank { width: 100%; max-width: 460px; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; box-sizing: border-box;
  background: linear-gradient(135deg, #1e1f3b, #3b1d4f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sc-rank-av { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff;
  background: #f472b6; box-shadow: 0 0 0 3px #fbbf24; }
.sc-rank-main { flex: 1; display: grid; gap: 6px; }
.sc-rank-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: #b5bac1; font-size: 12px; letter-spacing: .04em; }
.sc-rank-top b { color: #fff; font-size: 15px; }
.sc-xp { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sc-xp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f472b6); }
.sc-rank small { color: #b5bac1; font-size: 12px; }

/* Social: stream preview */
.sc-stream { position: relative; height: 150px; margin-top: 4px; border-radius: 8px;
  background: radial-gradient(80% 90% at 30% 20%, rgba(83, 252, 24, .35), transparent 60%), linear-gradient(135deg, #0f172a, #14532d); }
.sc-live { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 4px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }

/* Member Backup: counter */
.sc-stat { display: flex; align-items: baseline; gap: 8px; margin-left: 54px; padding: 14px 16px; border-radius: 10px; color: #b5bac1;
  background: rgba(34, 197, 94, .1); box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .25); }
.sc-stat b { color: #fff; font-size: 26px; }
.sc-stat em { margin-left: auto; color: #4ade80; font-style: normal; font-weight: 600; font-size: 13px; }

/* Bot Personalizer: profile card */
.sc-profile { position: relative; max-width: 360px; border-radius: 12px; overflow: hidden; background: #232428; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .8); }
.sc-profile-banner { height: 80px; background: linear-gradient(135deg, #38bdf8, #a78bfa 55%, #f472b6); }
.sc-profile-av { position: absolute; left: 16px; top: 38px; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, #38bdf8, #a78bfa); box-shadow: 0 0 0 6px #232428; }
.sc-profile-body { display: grid; gap: 4px; padding: 44px 16px 16px; }
.sc-profile-name { display: flex; align-items: center; gap: 6px; }
.sc-profile-name b { color: #f2f3f5; font-size: 19px; }
.sc-profile-body > small { color: #b5bac1; font-size: 12.5px; }
.sc-profile-about { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #111214; }
.sc-profile-about small { color: #b5bac1; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.sc-profile-about p { margin: 4px 0 0; color: #dbdee1; font-size: 13.5px; line-height: 1.45; }

/* Copy beside the picture */
.sc-copy { text-align: left; }
.sc-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; color: var(--c); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.sc-copy h3 { margin: 0 0 14px; color: #fff; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.12; }
.sc-copy > p { color: #a3a7b6; font-size: 17px; line-height: 1.65; }
.sc-points { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.sc-points li { display: flex; align-items: center; gap: 10px; color: #dfe1e8; font-weight: 500; }
.sc-points .icon { width: 14px; height: 14px; padding: 4px; flex: none; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-sizing: content-box; }
.sc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 700; }
.sc-link .icon { width: 16px; height: 16px; transition: transform .25s var(--u-ease); }
.sc-link:hover .icon { transform: translateX(3px); }

@media (max-width: 900px) {
  .sc-row, .sc-row.flip { grid-template-columns: 1fr; gap: 34px; margin-bottom: 80px; }
  .sc-row.flip .sc-art { order: 0; }
  .sc-window, .sc-row.flip .sc-window, .sc-row:hover .sc-window { transform: none; }
}
@media (max-width: 480px) {
  .sc-body { padding: 14px 12px 16px; }
  .sc-av { width: 34px; height: 34px; font-size: 15px; }
  .sc-themes, .sc-stat { padding-left: 0; margin-left: 0; }
  .sc-fields { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-window, .sc-row:hover .sc-window, .sc-row:hover .sc-themes img { transform: none !important; }
}

/* Login button: full "Login with Discord" on desktop, short "Login" on phones (never just a bare icon) */
.btn-login .label-short { display: none; }
@media (max-width: 860px) { .site-nav > .btn-login .label-short { display: inline; } }
