/* Glass gradient redesign: black base, crimson aurora, frosted panels.
   Loaded last from base.html; `html body` prefix beats page-level inline rules. */
:root{
  --bg:#050407; --bg-soft:#0b0709; --panel:#120a0e; --panel-2:#1a0d13;
  --red:#e11d48; --red-bright:#ff3b66; --red-dark:#7a0f27;
  --line:rgba(255,255,255,.10); --line-red:rgba(255,59,102,.30);
  --glass-bg:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.02) 46%,rgba(225,29,72,.07));
  --glass-border:rgba(255,255,255,.12);
  --glass-shadow:0 18px 50px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.12);
  --radius:22px;
  --font-display:'Sora','Manrope',ui-sans-serif,system-ui,sans-serif;
}
html body{
  background:
    radial-gradient(60% 50% at 82% 4%,rgba(225,29,72,.30),transparent 62%),
    radial-gradient(50% 45% at 6% 36%,rgba(136,19,55,.28),transparent 64%),
    radial-gradient(55% 40% at 70% 96%,rgba(190,18,60,.20),transparent 64%),
    linear-gradient(180deg,#050407,#09050a 55%,#030204);
  background-attachment:fixed;
}
html body::before{opacity:.5}
html body .scanlines{display:none}
html body :is(h1,h2,h3,.brand-copy strong,.section-heading h2,.hero-title){font-family:var(--font-display);letter-spacing:-.02em}

/* frosted surfaces */
html body :is(.panel,.showcase-card,.timeline-panel,.command-tools,.command-card,.status-panel,.privacy-card,.privacy-note,.dashboard-session-panel,.dashboard-directory,.guild-card,.dashboard-empty,.config-section,.module-toggle-card,.dashboard-command-row,.log-modal,.moderation-rule-card,.command-settings-current,.verify-settings-card,.studio-card,.studio-panel,.studio-shell,.studio-rail,.kurumi-kofi-modal){
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius);
  box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  backdrop-filter:blur(22px) saturate(160%);
}
html body :is(.command-card,.guild-card,.showcase-card):hover{border-color:var(--line-red);box-shadow:var(--glass-shadow),0 0 40px rgba(225,29,72,.18)}

/* header: floating glass bar */
html body .site-chrome-sticky{padding:10px clamp(10px,2vw,28px) 0}
html body .site-header{
  border:1px solid var(--glass-border);border-radius:999px;
  background:linear-gradient(120deg,rgba(255,255,255,.09),rgba(255,255,255,.025) 60%,rgba(225,29,72,.10));
  box-shadow:var(--glass-shadow);padding:10px 14px 10px 20px;
}
html body .site-header::after{display:none}
html body .site-header nav a:not(.nav-cta){border-radius:999px}
html body .site-header nav a:not(.nav-cta):hover{background:rgba(255,255,255,.07)}
html body .chrono-news-bar{border-radius:999px;margin-top:8px}

/* controls */
html body :is(.button,.nav-cta,.filter,.kurumi-kofi-launch){border-radius:999px}
html body :is(.button.primary,.nav-cta){
  background:linear-gradient(135deg,#ff3b66,#be123c 55%,#7a0f27);
  border-color:rgba(255,255,255,.22);
  box-shadow:0 10px 34px rgba(225,29,72,.38),inset 0 1px 0 rgba(255,255,255,.3);
}
html body .button.secondary{background:rgba(255,255,255,.05);border-color:var(--glass-border)}
html body :is(input,textarea,select,.search-wrap){
  background:rgba(255,255,255,.045);border:1px solid var(--glass-border);border-radius:14px;color:var(--text);
}
html body :is(input,textarea,select):focus-visible,html body .search-wrap:focus-within{outline:2px solid var(--red-bright);outline-offset:2px;border-color:var(--line-red)}

/* footer */
html body footer{border-top:1px solid var(--glass-border);background:linear-gradient(180deg,transparent,rgba(225,29,72,.07))}

@media (max-width:1000px){html body .site-header{border-radius:22px}}
@media (prefers-reduced-motion:reduce){html body *{scroll-behavior:auto}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html body :is(.panel,.showcase-card,.command-card,.guild-card,.site-header){background:rgba(24,12,18,.94)}
}

/* full-bleed bands and nested inputs stay flat so panels don't double up */
html body .command-tools{background:none;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html body .search-wrap :is(input,textarea){background:none;border:0;border-radius:0;box-shadow:none}

/* click-to-flip command cards: back face is a pre-rendered Discord-style preview image */
html body .command-card[data-flip]{cursor:pointer;perspective:none}
html body .command-card .cc-inner{display:grid;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.7,.2,1);height:100%}
html body .command-card.is-flipped .cc-inner{transform:rotateY(180deg)}
.cc-face{grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;gap:10px;position:relative;z-index:1}
.cc-back{transform:rotateY(180deg);margin:-21px;justify-content:center;background:#1e1f22}
.cc-back img{width:100%;height:100%;object-fit:cover;display:block}
html body .command-card[data-flip]:focus-visible{outline:2px solid var(--red-bright);outline-offset:3px}
@media (prefers-reduced-motion:reduce){html body .command-card .cc-inner{transition:none}}
