﻿:root {
  --bg-primary: #080305;
  --bg-secondary: #10050a;
  --bg-card: #18090f;
  --bg-card-hover: #240d16;
  --border-color: rgba(255, 0, 51, 0.22);
  --border-glow: rgba(255, 0, 51, 0.55);
  --text-primary: #fdf2f4;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-red: #ff0033;
  --accent-crimson: #ff1a40;
  --accent-scarlet: #ff4d6d;
  --accent-red-hover: #d9002c;
  --accent-gold: #f59e0b;
  --accent-success: #10b981;
  --accent-danger: #ff0033;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Radiant Crimson & Ruby Red Ambient Glow */
.ambient-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 950px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.25) 0%, rgba(220, 38, 38, 0.14) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Navbar */
body > #dashboard { display: none; }
.dashboard-page body > #dashboard { display: block; }
.dashboard-page body > :is(#hero, .stats-bar, #features, #pricing, #commands) { display: none; }
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(16, 5, 10, 0.88);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 14px rgba(255, 0, 51, 0.65));
}

.brand-icon:hover {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 24px rgba(255, 0, 51, 0.9));
}

.brand-icon img, .brand-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #ff1a40;
  text-shadow: 0 0 14px rgba(255, 0, 51, 0.75);
}

.nav-cta {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #ff0033, #b91c1c) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(255, 0, 51, 0.5) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff264d, #dc2626) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 0, 51, 0.75) !important;
}

.btn-secondary {
  background: rgba(255, 0, 51, 0.08) !important;
  color: #ff4d6d !important;
  border-color: rgba(255, 0, 51, 0.35) !important;
}

.btn-secondary:hover {
  background: rgba(255, 0, 51, 0.18) !important;
  border-color: #ff1a40 !important;
  color: #ff6b81 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 0, 51, 0.25) !important;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6.5rem 1.5rem 4.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.badge-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.4);
  border-radius: 9999px;
  color: #ff4d6d;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  box-shadow: 0 0 25px rgba(255, 0, 51, 0.25);
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, #ff4d6d, #ff0033);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 0, 51, 0.5);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.75rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  max-width: 1150px;
  margin: 2rem auto 5.5rem;
  padding: 0 1.5rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-crimson);
  box-shadow: 0 10px 25px rgba(255, 0, 51, 0.25);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff1a40 !important;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 20px rgba(255, 0, 51, 0.5) !important;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Section Common */
.section {
  max-width: 1200px;
  margin: 0 auto 6.5rem;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  color: var(--accent-crimson);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Feature Grid */
/* ═══ Feature Grid v2 — Fancy Interactive Cards ═══ */
.feature-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.feature-card-v2 {
  background: linear-gradient(165deg, rgba(24,9,15,0.95) 0%, rgba(16,5,10,0.98) 100%);
  border: 1px solid rgba(255,0,51,0.18);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), box-shadow 0.4s ease, border-color 0.3s ease;
  /* Keep feature content visible if the reveal script is delayed or fails. */
  opacity: 1;
  transform: translateY(0);
  cursor: default;
}
.feature-card-v2.fc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated gradient border on hover */
.fc-border-gradient {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(from var(--border-angle, 0deg), transparent 30%, var(--accent, #ff0033) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.feature-card-v2:hover .fc-border-gradient {
  opacity: 1;
  animation: fcBorderSpin 3s linear infinite;
}
@keyframes fcBorderSpin {
  to { --border-angle: 360deg; }
}
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Glow layer */
.fc-glow {
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at center, var(--accent, rgba(255,0,51,0.12)) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.feature-card-v2:hover .fc-glow {
  opacity: 0.35;
}

/* Shimmer sweep */
.fc-shimmer {
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.feature-card-v2:hover .fc-shimmer {
  animation: fcShimmerSweep 1.2s ease-out forwards;
}
@keyframes fcShimmerSweep {
  to { left: 200%; }
}

/* Card hover lift */
.feature-card-v2:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px var(--accent, rgba(255,0,51,0.15));
  border-color: var(--accent, rgba(255,0,51,0.4));
}

/* Header layout */
.fc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}
.fc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-bg, rgba(255,0,51,0.15));
  border: 1px solid color-mix(in srgb, var(--accent, #ff0033) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card-v2:hover .fc-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 20px var(--accent, rgba(255,0,51,0.3));
}
.fc-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fc-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fc-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tag-color, #ff0033);
  background: color-mix(in srgb, var(--tag-color, #ff0033) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, #ff0033) 25%, transparent);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  width: fit-content;
}

.fc-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
  z-index: 3;
  margin-bottom: 0.75rem;
}

/* Feature bullet list */
.fc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.19,1,0.22,1), opacity 0.4s ease, margin 0.4s ease;
  position: relative;
  z-index: 3;
}
.feature-card-v2.fc-expanded .fc-features {
  max-height: 300px;
  opacity: 1;
  margin: 0.5rem 0 1rem 0;
}
.fc-features li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
}
.fc-bullet {
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Expand toggle */
.fc-expand-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 3;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.fc-expand-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.fc-expand-icon {
  transition: transform 0.3s ease;
}
.feature-card-v2.fc-expanded .fc-expand-icon {
  transform: rotate(180deg);
}
.feature-card-v2.fc-expanded .fc-expand-text::after {
  content: '';
}

/* Per-card accent via data attribute for hover effects */
.feature-card-v2[data-accent="red"]    { --accent: #ff0033; }
.feature-card-v2[data-accent="amber"]  { --accent: #f59e0b; }
.feature-card-v2[data-accent="purple"] { --accent: #a855f7; }
.feature-card-v2[data-accent="blue"]   { --accent: #3b82f6; }
.feature-card-v2[data-accent="cyan"]   { --accent: #06b6d4; }
.feature-card-v2[data-accent="gold"]   { --accent: #eab308; }
.feature-card-v2[data-accent="emerald"]{ --accent: #10b981; }
.feature-card-v2[data-accent="rose"]   { --accent: #f43f5e; }
.feature-card-v2[data-accent="indigo"] { --accent: #6366f1; }
.feature-card-v2[data-accent="teal"]   { --accent: #14b8a6; }

/* Responsive */
@media (max-width: 768px) {
  .feature-grid-v2 { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-card-v2 { padding: 1.5rem 1.25rem 1.25rem; }
  .fc-title { font-size: 1.15rem; }
}

/* Premium plans */
.premium-pricing { scroll-margin-top: 7rem; }
.pricing-intro { margin-bottom: 2rem; }
.pricing-intro h2 { color: #fff; font-size: clamp(2.4rem,5vw,4rem); line-height: 1.1; letter-spacing: -.055em; }
.pricing-intro h2 span, .tier-price span { color: #ff4d6d; }
.pricing-intro p, .tier-purpose, .tier-activation p { color: #c8bdc2; }
.pricing-intro p { margin-top: .65rem; }
.pricing-security-updates { margin:-.4rem 0 1.4rem; padding:1rem 1.2rem; border:1px solid #28564f; border-left:3px solid #45d8c4; border-radius:12px; background:linear-gradient(110deg,#102420,#171119 78%); }
.pricing-security-updates strong { color:#72e3d3; }
.pricing-security-updates p { margin:.35rem 0 0; color:#d0d5d3; line-height:1.6; }
.tier-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; align-items: start; }
.tier-card { border: 1px solid #62303c; border-top: 3px solid #a34357; border-radius: 18px; padding: clamp(1.1rem,2vw,1.8rem); background: linear-gradient(145deg,#26141a,#130c10 60%); box-shadow: 0 4px 0 #220e14; transition: transform .2s, border-color .2s; }
.tier-card:nth-child(2) { border-top-color: #e13352; }
.tier-card:nth-child(3) { border-top-color: #ff5975; background: linear-gradient(145deg,#37141e,#160e13 65%); }
.tier-heading,.tier-activation { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tier-heading h3 { font-size: 1.45rem; letter-spacing: -.04em; }
.tier-level { display: inline-flex; gap: 4px; transform: skewX(-18deg); }
.tier-level i { width: 8px; height: 19px; background: linear-gradient(#ff8195,#de173e); }
.tier-price { font-size: clamp(2.4rem,4vw,3.35rem); font-weight: 800; letter-spacing: -.065em; margin-top: 1.5rem; line-height: 1.15; }
.tier-price span { font-weight: 500; font-size: .62em; vertical-align: .26em; margin-right: .1em; }
.tier-price small { font-size: .86rem; font-weight: 500; letter-spacing: 0; color: #c8bdc2; }
.tier-purpose { margin-top: .5rem; min-height: 3.2em; }
.tier-highlights { padding: 1rem 0 1rem 1.15rem; border-top: 1px solid #4d2934; margin-top: 1rem; min-height: 8.4rem; }
.tier-highlights li { padding: .2rem 0; font-size: .93rem; }
.tier-highlights li::marker { color: #ff5574; }
.premium-pricing summary { cursor: pointer; font-weight: 700; padding: .8rem 0; color: #ff9eaf; }
.premium-pricing summary:focus-visible, .tier-activation a:focus-visible { outline: 2px solid #ff9eaf; outline-offset: 4px; }
.tier-commands { border-top: 1px solid #4d2934; }
.tier-commands dt { margin-top: .6rem; }
.tier-commands dd { font-size: .88rem; color: #c8bdc2; }
.tier-comparison,.tier-activation { border: 1px solid #57303c; background: #180e14; border-radius: 14px; margin-top: 1rem; padding: .45rem 1.25rem; }
.tier-comparison { background: linear-gradient(145deg,#350c17 0,#190e14 28%,#160c12 100%); }
.tier-comparison summary { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 0; }
.tier-comparison summary strong { color: #fff; font-size: 1.13rem; }
.tier-comparison summary small { display: block; font-weight: 400; color: #c8bdc2; margin-top: .25rem; }
.matrix-badge { flex: none; border: 1px solid #b22e4d; color: #ff859c; padding: .22rem .7rem; border-radius: 2rem; font-size: .7rem; text-transform: uppercase; }
.matrix-badge::after { content: " ▾"; }
.tier-comparison[open] .matrix-badge::after { content: " ▴"; }
.matrix-scroll { overflow-x: auto; }
.matrix-scroll:focus-visible { outline: 2px solid #ff9eaf; outline-offset: -2px; }
.tier-comparison table { width: 100%; min-width: 770px; border-collapse: collapse; margin: .3rem 0 1rem; font-size: .86rem; }
.tier-comparison th,.tier-comparison td { padding: .62rem .5rem; text-align: center; border-bottom: 1px solid #36202a; }
.tier-comparison th:first-child { text-align: left; }
.tier-comparison thead { background: #220e16; color: #b8a9b0; }
.tier-comparison thead small { display: block; }
.tier-comparison thead th:nth-child(3),.tier-comparison .matrix-on,.matrix-quotas td:nth-child(n+3) { color: #54ddb0; font-weight: 650; }
.tier-comparison thead th:nth-child(4) { color: #ff647f; }
.tier-comparison tr > :nth-child(5) { background: #42271742; color: #ffc15d; font-weight: 700; }
.tier-comparison th[scope="rowgroup"] { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; background: #420f1f; color: #ff8099; }
.matrix-quotas th[scope="rowgroup"] { background: #14221e; color: #54ddb0; }
.tier-comparison th[scope="row"] { font-weight: 400; }
.tier-comparison th[scope="row"] a,.tier-comparison th[scope="row"] a:visited { color: inherit; text-decoration: none; font-weight: inherit; }
.tier-comparison th[scope="row"] a:hover,.tier-comparison th[scope="row"] a:focus-visible { color: #ff9eaf; text-decoration: underline; }
.comparison-feature-link,.comparison-feature-link:visited { color: inherit; text-decoration: none; }
.comparison-feature-link:hover,.comparison-feature-link:focus-visible { color: #ff9eaf; text-decoration: underline; }
.matrix-note,.matrix-off { color: #ae9fa9; }
.matrix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media(max-width:600px) { .tier-comparison summary { flex-wrap: wrap; gap: .4rem; } }
.tier-activation { padding-block: 1.15rem; flex-wrap: wrap; }
.tier-activation strong { color: #fff; font-size: 1.15rem; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .tier-card:hover { transform: translateY(-3px); border-color: #da4665; }
}
@media (max-width: 800px) {
  .tier-grid { grid-template-columns: 1fr; }
  .tier-purpose,.tier-highlights { min-height: 0; }
  .premium-pricing { scroll-margin-top: 10rem; }
}

/* Interactive Dashboard Pane */
.dashboard-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6);
}

.dashboard-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(24, 9, 15, 0.92);
  padding: 0 1.5rem;
}

.dash-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 1.35rem 1.85rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.dash-tab-btn:hover {
  color: #ff4d6d;
}

.dash-tab-btn.active {
  color: #ff1a40 !important;
  border-bottom: 3px solid #ff0033 !important;
  text-shadow: 0 0 16px rgba(255, 0, 51, 0.75) !important;
}

.dashboard-content {
  padding: 2.75rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.module-control-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.module-control-card:hover {
  border-color: rgba(255, 77, 109, 0.35);
}

.module-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #fff;
}

.module-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #240c14;
  border: 1px solid rgba(255, 0, 51, 0.3);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fdf2f4;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

input:checked + .slider {
  background: linear-gradient(135deg, #ff0033, #dc2626) !important;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.85) !important;
  border-color: #ff4d6d !important;
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.8);
}

/* Commands Search Bar */
.search-container {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.search-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.95rem 1.35rem;
  color: #fff;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.25);
}

.command-table {
  width: 100%;
  border-collapse: collapse;
}

.command-table th {
  text-align: left;
  padding: 1.15rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.command-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cmd-badge {
  background: rgba(255, 0, 51, 0.15);
  color: var(--accent-crimson);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-crimson);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.6rem; }
  .navbar { padding: 1rem; }
  .nav-links { display: none; }
}

/* Category Filter Pills */
.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.category-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover {
  border-color: var(--accent-crimson);
  color: #fff;
}

.category-pill.active {
  background: var(--accent-red);
  border-color: var(--accent-crimson);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.4);
}

/* Modal Overlay & Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #0d1527;
  border: 1px solid rgba(255, 77, 109, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 51, 0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.form-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: #080d1a;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-crimson);
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.2);
}

/* Regex Match Highlighter */
mark.regex-match {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  border-bottom: 2px solid #ef4444;
}

/* ========================================================
   FUTURISTIC CYBER COMMAND PALETTE (CTRL+K)
   ======================================================== */
.palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-dialog {
  background: #070d1d;
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: 18px;
  width: 90%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 0, 51, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.palette-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.palette-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
}

.palette-search-box input::placeholder {
  color: var(--text-muted);
}

.palette-shortcut-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: monospace;
}

.palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.6rem;
}

.palette-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.75rem 0.2rem;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.palette-item:hover, .palette-item.selected {
  background: rgba(255, 0, 51, 0.12);
  border-color: rgba(255, 0, 51, 0.3);
  color: #fff;
  transform: translateX(4px);
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.palette-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 1rem;
}

.palette-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================================
   CYBER FLOATING TOAST NOTIFICATION SYSTEM
   ======================================================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.25rem;
  background: rgba(18, 5, 10, 0.96);
  backdrop-filter: blur(18px);
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 51, 0.35);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 0, 51, 0.2);
  min-width: 280px;
  max-width: 420px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s ease 3.6s forwards;
}

.toast-item.toast-success {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.2);
}

.toast-item.toast-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.25);
}

.toast-item.toast-warning {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.2);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); pointer-events: none; }
}

/* ========================================================
   AUDIO SFX CONTROLS & PULSE INDICATORS
   ======================================================== */
.sfx-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sfx-toggle-btn:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
  transform: scale(1.05);
}

.status-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.status-beacon.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-beacon.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
}

.status-beacon.offline {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-beacon.offline::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

/* Interactive Card Hover Shimmer */
.module-control-card {
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.module-control-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 51, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 51, 0.25);
}

.module-control-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  transform: skewX(-25deg);
  transition: 0.6s;
  pointer-events: none;
}

.module-control-card:hover::after {
  left: 150%;
}




/* Branded landing panel and public policy pages */
.brand-hero { max-width: 1200px; padding: clamp(1rem, 3vw, 2.6rem) 1.5rem 1rem; }
.brand-stage { perspective: 1100px; padding: 6px 0 15px; }
.brand-plate {
  aspect-ratio: 3 / 1;
  border-radius: 18px;
  border: 1px solid #792136;
  background: url("brand/banner.png") center / contain no-repeat, url("logo.svg") center / auto 60% no-repeat, radial-gradient(ellipse at center, #370612, #0c0508 75%);
  box-shadow: 0 5px 0 #300b14, 0 7px 0 #14090c, 0 20px 45px #0009;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out;
}
.brand-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; text-align: left; padding: 1.7rem 0 0; }
.brand-intro h1 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.06em; margin: 0 0 .35rem; }
.brand-intro p { font-size: 1rem; margin: 0; max-width: 54ch; }
.brand-intro .hero-actions { flex-wrap: wrap; gap: .65rem; }
.brand-intro .btn { white-space: nowrap; }
.policy { display: none; }
.policy:target { display: block; position: relative; margin: 2rem auto; max-width: 76ch; padding: clamp(1.3rem,4vw,3rem); border: 1px solid #5a2231; border-radius: 16px; background: #160d12; scroll-margin-top: 7rem; }
body:has(.policy:target) > :is(header,section,main):not(.policy:target) { display: none; }
.policy h1 { font-size: clamp(2rem,5vw,3rem); line-height: 1.1; margin: 1rem 0; }
.policy h2 { margin: 1.6rem 0 .25rem; font-size: 1.15rem; }
.policy p { color: #d7cdd2; }
.policy a, .policy-links a { color: #ff8298; text-underline-offset: .22em; }
.policy-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.policy-links button { background: transparent; border: 0; padding: 0; color: #ff8298; font: inherit; cursor: pointer; }
.policy-links button:hover, .policy-links button:focus-visible { text-decoration: underline; text-underline-offset: .22em; }
footer img[data-brand-logo] { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 850px) {
  .brand-intro { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .brand-intro .hero-actions { justify-content: flex-start; }
  .brand-plate { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-plate { transform: none; transition: none; }
}
@media (max-width: 670px) {
  .navbar { flex-wrap: wrap; gap: .5rem; }
  .navbar > div:not(.nav-cta) { order: 3; width: 100%; }
  .navbar .nav-cta { margin-left: auto; }
  .brand-hero { padding-inline: 1rem; }
  .brand-intro .hero-actions { width: 100%; }
  .policy:target { margin-inline: .75rem; scroll-margin-top: 10rem; }
}

/* Standalone pricing and server management controls */
.premium-addons { margin: 3rem 0 1.5rem; }
.premium-addons h3 { font-size:clamp(1.75rem,3vw,2.65rem); letter-spacing:-.045em; }
.addon-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1rem; }
.addon-card { display:flex; flex-direction:column; gap:.7rem; padding:clamp(1.1rem,2vw,1.75rem); border:1px solid #663040; border-radius:18px; background:radial-gradient(ellipse at top right,#471224,transparent 65%),#170e13; box-shadow:0 4px 0 #270d16; }
.addon-card-service { border-color:#8c4b64; background:radial-gradient(ellipse at 88% 0%,#833c5a75,transparent 52%),linear-gradient(145deg,#24121c,#170d13 70%); }
.service-kicker { align-self:flex-start; padding:.26rem .55rem; border:1px solid #8c4b64; border-radius:999px; color:#ffc1d2; font-size:.66rem; font-weight:800; letter-spacing:.09em; }
.addon-card-service .addon-price { font-size:clamp(1.45rem,2.7vw,2rem); letter-spacing:-.035em; }
.addon-card:focus-within,.addon-card:hover { border-color:#c84464; }
.addon-card h4 { color:#fff; font-size:1.3rem; letter-spacing:-.035em; }
.addon-price { font-size:2.35rem; font-weight:800; letter-spacing:-.065em; }
.addon-card label,#addon-dialog label { color:#eebdca; font-size:.82rem; font-weight:700; }
.addon-description { color:#d3c2c9; flex:1; font-size:.93rem; margin:.4rem 0 .8rem; }
#dashboard .dashboard-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; padding:1rem; background:#170c12; }
#dashboard .dash-tab-btn { display:grid; place-items:center; min-height:3rem; padding:.6rem; border:1px solid #43212e; border-radius:9px; background:#21131b; font-size:.88rem; line-height:1.25; text-wrap:balance; }
#dashboard .dash-tab-btn.active { background:linear-gradient(125deg,#512032,#351320); color:#ffd7e2!important; border:1px solid #c64767!important; text-shadow:none!important; }
#dashboard .dash-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
#tab-modules .module-control-card { flex-direction:column; align-items:stretch; gap:1.15rem; padding:1.15rem; background:linear-gradient(140deg,#27151d,#170d13); }
.module-control-card .module-info { flex:1; }
.module-info > div:first-child { gap:.55rem; flex-wrap:wrap; }
#tab-modules .module-info + div { flex-direction:row!important; align-items:center!important; justify-content:space-between; border-top:1px solid #432532; padding-top:.8rem; }
#tab-modules .module-info + span { align-self:flex-start; }
.customize-control { color:#ffd5df; background:linear-gradient(#48202e,#321720); border:1px solid #91415b; border-radius:8px; padding:.55rem .8rem; font:inherit; font-size:.85rem; font-weight:700; cursor:pointer; }
.customize-control:hover { background:#5b2336; }
#dashboard select:not(.security-select),#module-config-modal select,.addon-card select { appearance:none; color-scheme:dark; max-width:100%; padding:.65rem 2.3rem .65rem .8rem!important; border:1px solid #874159!important; border-radius:9px!important; color:#fff!important; background-color:#25151e!important; background-image:linear-gradient(45deg,transparent 50%,#ff94b0 50%),linear-gradient(135deg,#ff94b0 50%,transparent 50%)!important; background-position:calc(100% - 16px) center,calc(100% - 11px) center!important; background-size:5px 5px!important; background-repeat:no-repeat!important; font:inherit; cursor:pointer; }
#dashboard select option,#module-config-modal select option,.addon-card option { background:#26131c; color:#fff; }
#dashboard .guild-selection-bar > div { min-width:0; max-width:100%; flex-wrap:wrap; }
#guild-select { min-width:0; width:min(100%,24rem); }
#dashboard :is(button,select):focus-visible,#module-config-modal :focus-visible,.premium-addons :focus-visible,.switch:has(input:focus-visible) { outline:2px solid #ff9cb8; outline-offset:3px; }
#module-config-modal,#addon-dialog { padding:0; margin:auto; width:min(94vw,640px); max-height:90vh; color:#fff; background:#1b1017; border:1px solid #8f3c56; border-radius:18px; box-shadow:0 24px 80px #000a; }
#module-config-modal::backdrop,#addon-dialog::backdrop { background:#10070cd9; backdrop-filter:blur(6px); }
#module-config-modal .modal-content { max-height:85vh; border:0; background:linear-gradient(130deg,#301420,#1a1017 45%); }
#addon-dialog { max-width:28rem; padding:1.5rem; }
#addon-dialog h3 { font-size:1.45rem; }
.tier-buy { width:100%; margin:.85rem 0; }
#bot-owner-license-panel {
  --owner-line: #54313f;
  --owner-muted: #c9b3bd;
  background: radial-gradient(ellipse at top right, #552036 0, transparent 52%), #1c1018;
  color: #fff4f7;
  border: 1px solid #784257;
  border-radius: 18px;
  box-shadow: 0 12px 32px #0e050b45;
  margin-bottom: 1.25rem;
  overflow: hidden;
  color-scheme: dark;
}
#bot-owner-license-panel[hidden], #bot-owner-license-panel [hidden] { display: none !important; }
.owner-heading, .owner-tabs, #bot-owner-license-panel [role="tabpanel"] { padding-inline: clamp(.9rem, 3vw, 2rem); }
.owner-heading { padding-block: 1.35rem .85rem; }
.owner-label { display: block; color: #ff9bb4; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.owner-heading h3 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; line-height: 1.2; margin: .25rem 0; }
.owner-tabs { display: flex; gap: .35rem; border-bottom: 1px solid var(--owner-line); }
.owner-tabs button { flex: 0 1 auto; padding: .75rem .9rem; border: 0; border-bottom: 3px solid transparent; color: var(--owner-muted); background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.owner-tabs button:hover, .owner-shortcuts button:hover { color: white; background: #482334; }
.owner-tabs [aria-selected="true"] { color: #fff; border-color: #ff7899; background: #482334; border-radius: 7px 7px 0 0; }
#bot-owner-license-panel [role="tabpanel"] { padding-block: 1.4rem; background: #1b1119e8; }
#bot-owner-license-panel h4 { font-size: 1.15rem; margin: 0 0 .35rem; }
#bot-owner-license-panel p { overflow-wrap: anywhere; color: var(--owner-muted); font-size: .9rem; }
.owner-bar, .owner-shortcuts, .owner-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.owner-bar { justify-content: space-between; }
.owner-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 12rem),1fr)); gap: .75rem; margin: .95rem 0; }
#bot-owner-license-panel label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: #f2dbe3; min-width: 0; }
#bot-owner-license-panel input, #bot-owner-license-panel select { box-sizing: border-box; min-width: 0; width: 100%; padding: .67rem .75rem; border: 1px solid #745365; border-radius: 8px; background-color: #271a23; color: #fff; font: inherit; }
#bot-owner-license-panel :focus-visible { outline: 2px solid #ff9bb4; outline-offset: 2px; }
#bot-owner-license-panel button:disabled { opacity: .55; cursor: default; }
.owner-shortcuts { color: var(--owner-muted); font-size: .83rem; }
.owner-shortcuts button { border-radius: 6px; border: 1px solid var(--owner-line); padding: .32rem .7rem; color: #ffe6ee; background: #301b27; font: inherit; cursor: pointer; }
#bot-owner-license-panel .owner-preview { border-left: 3px solid #f87599; background: #39222f; border-radius: 0 7px 7px 0; padding: .7rem .85rem; margin: .9rem 0; color: #ffedf2; }
.owner-directory { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--owner-line); }
.owner-directory > label { margin-block: .75rem; max-width: 26rem; }
.owner-status:not(:empty), .owner-count { margin-top: .75rem; }
.owner-records { max-height: 26rem; overflow: auto; display: grid; gap: .45rem; margin-top: .65rem; }
.owner-records details, .owner-records article { background: #291b25; border: 1px solid var(--owner-line); padding: .7rem .85rem; border-radius: 9px; overflow-wrap: anywhere; }
.owner-records summary { cursor: pointer; }
.owner-records small { display: inline-block; background: #472837; color: #ffd3de; padding: .16rem .52rem; border-radius: 5px; font-weight: 650; margin-inline-start: .45rem; }
.owner-records details[open] summary { margin-bottom: .55rem; }
.owner-records article { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.owner-records article > div { flex: 1 1 12rem; }
.owner-server-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: .45rem; }
.owner-server-row > .btn { align-self: start; padding: .55rem .75rem; font-size: .82rem; }
@media (max-width: 480px) {
  .owner-server-row { grid-template-columns: minmax(0,1fr); }
  .owner-server-row > button { justify-self: end; }
}
.owner-portrait { width: 2.1rem; height: 2.1rem; position: relative; display: inline-grid; place-items: center; vertical-align: middle; flex: none; border-radius: 50%; overflow: hidden; color: #ffcad9; background: #502c40; font-size: .75rem; font-weight: 700; }
.owner-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.owner-portrait.server-icon { border-radius: .65rem; margin-right: .55rem; }
.owner-person { display: flex; align-items: center; gap: .55rem; margin: .5rem 0; font-size: .86rem; overflow-wrap: anywhere; }
.owner-person .owner-portrait { width: 1.7rem; height: 1.7rem; }
.owner-records h5 { font-size: .9rem; margin-top: .9rem; }
.owner-receipt { margin: .5rem 0 .35rem; padding: .7rem; border-left: 2px solid #b76581; background: #34212d; border-radius: 0 .4rem .4rem 0; }
.owner-records .owner-prefix-detail { flex: 1 0 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 540px) {
  .owner-tabs { padding-inline: .35rem; gap: 0; }
  .owner-tabs button { flex: 1; padding: .75rem .25rem; font-size: .83rem; }
  .owner-fields { grid-template-columns: 1fr; }
  .owner-actions .btn { flex: 1 1 9rem; }
}
#addon-dialog [hidden] { display:none; }
#checkout-guild { display:block; width:100%; margin:.4rem 0; padding:.65rem; color:#fff; background:#21141d; border:1px solid #693348; border-radius:8px; }
.checkout-receipt { max-width:35rem; margin:12vh auto; padding:2rem; }
.checkout-receipt p { margin:1rem 0; overflow-wrap:anywhere; }
#addon-dialog p { margin:.65rem 0 1rem; color:#d2c2ca; }
#addon-dialog textarea { display:block; width:100%; margin:.35rem 0 1rem; padding:.7rem; color:#fff; background:#110a0e; border:1px solid #693348; border-radius:8px; font:inherit; }
.dialog-close { float:right; border:0; background:transparent; color:#ffc8d8; font-size:1.5rem; cursor:pointer; padding:0 .5rem; }
#addon-dialog { width:min(94vw,31rem); max-width:31rem; padding:0; background:#181116; border-color:#764454; }
.checkout-head { padding:1.35rem 1.6rem 1.1rem; background:radial-gradient(ellipse at 92% 0%,#85304b,transparent 64%),#381924; border-bottom:1px solid #653344; }
#checkout-mode { color:#ffbdce; font:600 .74rem/1.5 var(--font-family); }
#addon-dialog h3 { font-size:clamp(1.55rem,5vw,2rem); letter-spacing:-.045em; }
.checkout-body { padding:1.35rem 1.6rem 1.5rem; }
#checkout-summary { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.2rem .8rem; padding:1rem; border:1px solid #5a3746; background:#271a22; border-radius:12px; margin-bottom:1rem; }
.checkout-currency { margin:0 0 1rem; padding:.9rem 1rem; border:1px solid #633448; border-radius:.8rem; background:linear-gradient(110deg,#2b1621,#1e1219); }
.checkout-currency label { display:grid; gap:.45rem; color:#f1dce4; font-size:.86rem; font-weight:700; }
#checkout-currency { width:100%; min-height:2.8rem; padding:.65rem .8rem; border:1px solid #754254; border-radius:.65rem; background:#24131c; color:#fff5f8; font:inherit; }
#checkout-currency option { background:#24131c; color:#fff5f8; }
#checkout-currency-note { margin:.55rem 0 0; color:#cbb4bf; font-size:.78rem; line-height:1.5; }
.refund-notice { margin:1rem 0; padding:.9rem 1rem; border:1px solid #764454; border-left:3px solid #ff4d6d; border-radius:10px; background:linear-gradient(115deg,#351b28,#21151d); color:#f7dfe7; font-size:.86rem; line-height:1.55; }
.refund-notice p { margin:.35rem 0!important; }
.refund-notice a { color:#ffb3c6; text-underline-offset:.2em; }
#checkout-product { font-size:1.12rem; }
#checkout-term { grid-row:2; font-size:.82rem; color:#cdbcc4; }
#checkout-total { grid-column:2; grid-row:1 / 3; font-size:1.65rem; font-variant-numeric:tabular-nums; }
#checkout-details { display:grid; grid-template-columns:auto 1fr; gap:.65rem 1rem; padding:.85rem 0 1.15rem; border-top:1px dashed #604653; font-size:.88rem; }
#checkout-details dt { color:#baa7b3; } #checkout-details dd { margin:0; overflow-wrap:anywhere; text-align:right; }
#checkout-history button { display:block; width:100%; text-align:left; padding:.85rem; margin-top:.5rem; background:#2b1c25; color:inherit; border:1px solid #684252; border-radius:.6rem; cursor:pointer; }
#checkout-pay,#checkout-login { width:100%; justify-content:center; }
#addon-dialog[data-view="receipt"] .checkout-head { background:radial-gradient(ellipse at 90% 0%,#316654,transparent 66%),#192c27; }
#addon-dialog[data-view="receipt"] #checkout-mode { color:#9ce7c7; }
#addon-dialog :is(button,select,a):focus-visible { outline:2px solid #ffb3ca; outline-offset:3px; }
@media(max-width:950px) { #dashboard .dash-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .addon-grid { grid-template-columns:1fr; } #dashboard .dashboard-nav { grid-template-columns:repeat(2,minmax(0,1fr)); } #dashboard .dashboard-content { padding:1rem; } }
@media(max-width:560px) { #dashboard .dash-grid { grid-template-columns:1fr; } }
.audit-tools { display:flex; flex-wrap:wrap; align-items:end; gap:1rem; margin-bottom:1rem; }
.audit-tools label { display:grid; gap:.35rem; font-size:.84rem; color:#e9c3cf; }
.audit-tools input,.action-preview,.rule-draft { background:#1c1017; color:#fff; border:1px solid #713247; border-radius:9px; padding:.65rem .85rem; }
.audit-tools output { color:#e5b9c8; padding:.55rem; }
.audit-button { border:1px solid #844059; border-radius:7px; background:#301520; color:#ffd0df; cursor:pointer; padding:.4rem .65rem; margin:.15rem; }
#roles-hierarchy-body summary { cursor:pointer; font-weight:700; }
#roles-hierarchy-body details p { font-size:.82rem; margin-top:.4rem; color:#e0bdca; }
.audit-flag { display:inline-block; font-size:.74rem; padding:.2rem .45rem; border-radius:6px; color:#ffb0bb; background:#491a26; margin:.1rem; }
.action-preview { display:grid; gap:.3rem; margin:.7rem 0; border-left:3px solid #e8476e; }
.action-preview,#regex-results,.rule-draft { white-space:pre-wrap; overflow-wrap:anywhere; }
#regex-results small,.rule-draft small { display:block; color:#ddbdc7; }
#regex-results mark { background:#613043; color:#fff; }
@media(max-width:740px) { #tab-sandbox > div:first-child { grid-template-columns:minmax(0,1fr)!important; } .audit-tools label { max-width:100%; } #tab-actions .dash-grid { grid-template-columns:minmax(0,1fr); } }
#tab-customize { --bp-line:#56313e; --bp-soft:#ceb4be; --bp-hot:#ff7392; --bp-panel:#20131b; overflow-wrap:anywhere; }
#tab-customize [hidden] { display:none !important; }
.bp-heading { padding-left:16px; border-left:3px solid var(--bp-hot); margin-bottom:20px; }
#profile-title { margin:0 0 .35rem; font-size:clamp(1.5rem,3vw,2.15rem); letter-spacing:-.045em; }
#profile-server,.bp-section>p,#profile-nick-help,.bp-label small,.bp-media-info p,#bp-preview-caption,.bp-preview header label { color:var(--bp-soft); font-size:.86rem; }
#profile-status:not(:empty),#bp-crop-status:not(:empty) { margin:10px 0; color:#ffb9c9; }
.bp-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:clamp(12px,2vw,24px); align-items:start; }
.bp-panel,#profile-crop { background:linear-gradient(145deg,#2d1923,var(--bp-panel) 65%); border:1px solid var(--bp-line); border-radius:18px; color:#fff2f5; }
#profile-fields { min-width:0; margin:0; padding:0; }
.bp-visually-hidden { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
#tab-customize button { font:inherit; font-weight:650; font-size:.84rem; color:#f9e7ec; background:#38242e; border:1px solid var(--bp-line); border-radius:9px; padding:.6rem .85rem; cursor:pointer; }
#tab-customize button:hover:enabled { border-color:var(--bp-hot); }
#tab-customize button:disabled { opacity:.5; cursor:default; }
#tab-customize :is(button,input,textarea):focus-visible { outline:2px solid #ff94ac; outline-offset:3px; }
.bp-switch { display:flex; flex-wrap:wrap; gap:5px; padding:14px 18px; border-bottom:1px solid var(--bp-line); }
#tab-customize .bp-switch button { background:transparent; border-color:transparent; color:var(--bp-soft); }
#tab-customize .bp-switch button[aria-pressed=true] { color:white; background:#502435; border-color:#884056; }
.bp-section,.bp-footer,.bp-preview { padding:clamp(14px,2vw,23px); }
#tab-customize h3 { font-size:1.05rem; margin:0; }
.bp-section h3 { letter-spacing:-.015em; }
.bp-section>p { margin:.4rem 0 1rem; }
.bp-label,.bp-preview header,.bp-tools,.bp-footer,.bp-name { display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; }
.bp-label,.bp-preview header,.bp-footer { justify-content:space-between; }
.bp-label { margin:18px 0 6px; }
.bp-label label,.bp-media-info h4 { font-size:.92rem; font-weight:700; }
#profile-nick,#profile-bio { width:100%; min-width:0; box-sizing:border-box; font:inherit; color:#fff; background:#160f15; border:1px solid #64404e; border-radius:9px; padding:.7rem .85rem; }
#profile-bio { resize:vertical; min-height:92px; }
#profile-nick-help { display:block; margin-top:6px; }
.bp-footer { border-top:1px solid var(--bp-line); background:#190f16; border-radius:0 0 18px 18px; }
#profile-dirty { font-size:.82rem; color:var(--bp-soft); }
#profile-dirty[data-dirty=true] { color:#ffacc0; }
.bp-tools { gap:6px; }
#tab-customize .bp-primary { background:#bd2449; border-color:#db4869; color:#fff; }
.bp-upload { border:1px dashed #754656; background:#1a1017; border-radius:12px; padding:12px; display:grid; grid-template-columns:52px 1fr; align-items:center; gap:10px; margin-top:12px; }
.bp-upload.drag { background:#4a2032; border-color:#ff99b0; }
.bp-upload .bp-tools { grid-column:1/-1; }
.bp-media-thumb { background:linear-gradient(135deg,#763247,#271a25); height:48px; border-radius:7px; overflow:hidden; }
.bp-media-thumb.avatar { width:48px; border-radius:50%; }
.bp-media-thumb img,.bp-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.bp-media-info { min-width:0; }.bp-media-info h4,.bp-media-info p { margin:0; }
.bp-preview { min-width:0; }
.bp-preview header label { display:flex; align-items:center; gap:5px; }
#profile-compare,.bp-slider input { accent-color:#f25b80; }
.bp-preview-switch { border:0; padding:14px 0; }
.bp-card,.bp-chat { border-radius:12px; border:1px solid #5a3949; background:#201922; overflow:hidden; }
.bp-cover { aspect-ratio:3/1; background:linear-gradient(117deg,#732541,#522139 48%,#322238); }
.bp-card-body { padding:0 16px 18px; }
.bp-avatar { object-fit:cover; width:64px; height:64px; border-radius:50%; background:#251b24; }
.bp-card-body>.bp-avatar { position:relative; display:block; margin-top:-32px; margin-bottom:6px; border:4px solid #201922; }
.bp-name { gap:6px; }.bp-name h4 { margin:0; font-size:1.1rem; }
.bp-name span { color:#fff; font-size:.65rem; font-weight:700; background:#5546a9; padding:1px 4px; border-radius:4px; }
#preview-bio { margin:.45rem 0 0; white-space:pre-wrap; font-size:.9rem; }
#preview-bio:empty { margin:0; }
.bp-chat { padding:16px; display:grid; grid-template-columns:40px minmax(0,1fr); gap:10px; align-items:start; }
.bp-chat .bp-avatar { width:40px; height:40px; }.bp-chat p { margin:.3rem 0; }
#bp-preview-caption { margin:12px 0 0; }
#profile-crop { width:min(430px,calc(100vw - 24px)); max-height:90vh; margin:auto; padding:0; }
#profile-crop::backdrop { background:rgba(10,5,9,.8); }
.bp-crop-inner { padding:18px; }.bp-crop-inner .bp-tools { justify-content:flex-end; margin-top:16px; }
#bp-canvas { width:100%; max-height:35vh; object-fit:contain; display:block; margin:12px auto; background:#18121a; }
.bp-slider { display:grid; grid-template-columns:1fr 1fr 4ch; gap:6px; align-items:center; font-size:.85rem; margin-top:9px; }
.bp-slider input { width:100%; }.bp-slider output { text-align:right; }
@media(max-width:760px) { .bp-layout { grid-template-columns:minmax(0,1fr); } #profile-nick,#profile-bio { font-size:16px; } #tab-customize button { min-height:40px; } }
@media (max-width:720px) {
  #dashboard .dashboard-nav button[onclick="switchTab('actions')"] { grid-column:1 / -1; }
}

.security-tools { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:1rem; margin-block:1rem; }
.security-tools > p, .security-tool:first-of-type { grid-column:1/-1; }
.security-tools > p:empty { display:none; }
.security-tool { padding:1.1rem; border:1px solid var(--border-color); background:var(--bg-card); border-radius:12px; min-width:0; overflow-wrap:anywhere; }
.security-tool p { margin:.45rem 0; color:var(--text-secondary); }
.security-tool label { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; margin:.65rem 0; }
.security-tool select, .security-tool input:not([type=checkbox]) { color:inherit; background:var(--bg-card); border:1px solid var(--border-color); padding:.45rem; border-radius:6px; max-width:100%; }
.security-tool option { background:#18131a; color:#fff; }
.security-tool button { margin:.35rem .5rem .35rem 0; }
.security-tool button:disabled { opacity:.55; cursor:default; }
.security-tool#native-automod-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.7rem);
  border-color: #6d3147;
  background: radial-gradient(ellipse at 94% 0%, #51203180, transparent 45%), linear-gradient(145deg, #1b0b13, #160a10 72%);
  box-shadow: inset 0 1px #ffffff08, 0 1rem 2.5rem #06020435;
}
#native-automod-panel > h3 { margin: 0 0 .35rem; font-size: clamp(1.2rem, 2vw, 1.55rem); color: #fff4f7; }
#native-automod-panel > p:not([role=status]) { max-width: 70rem; line-height: 1.6; }
#native-automod-panel > #native-automod-open { min-height: 2.65rem; padding-inline: 1.1rem; }
#native-automod-status:not(:empty) { margin: .75rem 0; padding: .7rem .85rem; border: 1px solid #6a3447; border-left: 3px solid #ff789b; border-radius: .7rem; background: #28121d; color: #ffe4ec; }
.native-automod-editor { margin-top: 1.1rem; padding: clamp(.8rem, 2vw, 1.25rem); border: 1px solid #633044; border-radius: 1rem; background: linear-gradient(140deg, #23121b, #190e15); box-shadow: inset 0 1px #ffffff08; }
.native-automod-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin-bottom: .9rem; }
.native-automod-select-label, .native-automod-field-label { display: grid !important; gap: .45rem !important; margin: 0 !important; color: #f2dce4; font-size: .88rem; font-weight: 650; }
.native-automod-rule-select, .native-automod-number { box-sizing: border-box; width: 100%; min-width: 0; min-height: 2.8rem; padding: .65rem .8rem !important; border: 1px solid #754254 !important; border-radius: .7rem !important; background: #24131c !important; color: #fff5f8 !important; font: inherit; }
.native-automod-rule-select:focus-visible, .native-automod-number:focus-visible, .native-automod-keywords:focus-visible, .native-automod-keyword-add:focus-visible { outline: 2px solid #ff91ad; outline-offset: 2px; }
.native-automod-rule-select option { background: #24131c; color: #fff5f8; }
.native-automod-rule-body { min-width: 0; }
.native-automod-form { display: grid; gap: .9rem; padding: clamp(.8rem, 2vw, 1.2rem); border: 1px solid #492636; border-radius: .85rem; background: #160d13; }
.native-automod-rule-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.native-automod-rule-heading > div { display: grid; gap: .22rem; }
.native-automod-rule-heading strong { color: #fff3f7; font-size: 1rem; }
.native-automod-rule-heading small, .native-automod-keyword-section > small, .native-automod-toggle small, .native-automod-form-footer small, .native-automod-preset-option small { color: #c5aab5; font-size: .8rem; line-height: 1.5; }
.native-automod-pill { flex: none; padding: .28rem .6rem; border: 1px solid #684453; border-radius: 999px; background: #291923; color: #d5b8c4; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.native-automod-pill.is-active { border-color: #248b69; background: #103225; color: #92f0c9; }
.native-automod-toggle { display: flex !important; align-items: center; gap: .75rem !important; margin: 0 !important; padding: .8rem .9rem; border: 1px solid #4c2a39; border-radius: .75rem; background: #21131b; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.native-automod-toggle.is-active { border-color: #a74866; background: linear-gradient(105deg, #381824, #24131c); }
.native-automod-toggle input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: #f33460; cursor: pointer; }
.native-automod-toggle > span { display: grid; gap: .1rem; }
.native-automod-toggle strong { color: #fff1f5; font-size: .9rem; }
.native-automod-keyword-section { display: grid; gap: .5rem; min-width: 0; }
.native-automod-keywords { display: block; box-sizing: border-box; width: 100%; min-height: 8.5rem; resize: vertical; padding: .8rem .9rem; border: 1px solid #684052; border-radius: .75rem; background: #100a0e; color: #fff1f6; font: 500 .9rem/1.55 ui-monospace, Consolas, monospace; }
.native-automod-keywords::placeholder { color: #8e7180; opacity: 1; }
.native-automod-keyword-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #c5aab5; font-size: .78rem; }
.native-automod-keyword-meta .is-invalid, .native-automod-validation { color: #ff8ba5; }
.native-automod-text-button { margin: 0 !important; padding: .3rem .6rem; border: 1px solid #573142; border-radius: .5rem; background: #25141d; color: #ffc3d2; font: inherit; font-size: .78rem; cursor: pointer; }
.native-automod-keyword-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-height: 1.3rem; }
.native-automod-chip { margin: 0 !important; max-width: 100%; padding: .26rem .55rem; overflow-wrap: anywhere; border: 1px solid #7c3d55; border-radius: 999px; background: #381a28; color: #ffd8e2; font: inherit; font-size: .76rem; cursor: pointer; }
.native-automod-keyword-chips > small { color: #c5aab5; }
.native-automod-preset-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .55rem; min-width: 0; margin: 0; padding: .8rem; border: 1px solid #4e2b3a; border-radius: .75rem; }
.native-automod-preset-box legend { padding-inline: .4rem; color: #f0ccd8; font-size: .84rem; font-weight: 700; }
.native-automod-preset-option { display: flex !important; align-items: center; gap: .65rem !important; min-width: 0; margin: 0 !important; padding: .7rem; border: 1px solid #4d2b3a; border-radius: .65rem; background: #21131b; cursor: pointer; }
.native-automod-preset-option input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: #f33460; }
.native-automod-preset-option span { display: grid; gap: .15rem; }
.native-automod-preset-option strong { color: #fff1f5; font-size: .85rem; }
.native-automod-info-card { display: flex; align-items: center; gap: .8rem; padding: .9rem; border: 1px solid #593044; border-radius: .7rem; background: linear-gradient(105deg, #2c1621, #1d1118); color: #ead2dc; line-height: 1.5; }
.native-automod-info-card > span:first-child { color: #ff86a5; font-size: 1.35rem; }
.native-automod-form-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: .85rem; border-top: 1px solid #422634; }
.native-automod-form-footer .native-automod-save { width: auto !important; min-width: 9rem; min-height: 2.8rem; margin: 0 !important; padding: .7rem 1.2rem; }
@media (max-width: 540px) {
  .native-automod-rule-heading, .native-automod-form-footer { align-items: stretch; flex-direction: column; }
  .native-automod-form-footer .native-automod-save { width: 100% !important; }
  .native-automod-preset-box { grid-template-columns: 1fr; }
}
.security-preview:not(:empty) { margin:.8rem 0; padding:.85rem; background:#22131b; border:1px solid #643244; border-radius:.75rem; }
.security-preview h4 { margin:0 0 .35rem; }
.security-preview p { white-space:pre-line; }
.security-preview small { color:#d1afbb; }
.security-preview ul { margin:.4rem 0; padding-inline-start:1.25rem; font-size:.9rem; }
.security-preview details { margin:.5rem 0; }
.security-preview summary { cursor:pointer; color:#ffc1d3; font-weight:600; }
.security-case-fields { display:grid; gap:.25rem; min-width:0; }
.security-tool .security-case-field { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; gap:.4rem; min-width:0; margin:.8rem 0; }
.security-tool .security-case-field > span:first-child { color:#e7bfcc; font-size:.85rem; font-weight:600; }
.security-tool .security-case-field > select,
.security-tool .security-case-field > textarea,
.security-tool .security-case-field > input:not([type=checkbox]) { display:block; width:100%; min-width:0; max-width:none; box-sizing:border-box; padding:.7rem .8rem; border:1px solid var(--border-color); border-radius:.65rem; background:var(--bg-card); color:inherit; font:inherit; }
.security-tool .security-case-field > select { min-height:2.8rem; text-overflow:ellipsis; }
.security-tool .security-case-field > textarea { min-height:6rem; line-height:1.5; resize:vertical; }
.security-tool .security-case-field > :is(select,textarea,input):focus-visible { outline:2px solid #ff91ad; outline-offset:2px; }
.incident-row { padding:.65rem 0; border-bottom:1px solid var(--border-color); }

.security-tool .security-select-field {
  display: grid;
  gap: .35rem;
  margin-block: .85rem;
  color: #e7bfcc;
  font-size: .85rem;
  font-weight: 600;
}
.security-select-wrap { display: grid; position: relative; min-width: 0; }
.security-select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  width: .48rem;
  height: .48rem;
  border: solid #ffacc3;
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.security-tool select.security-select {
  appearance: none;
  color-scheme: dark;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .62rem 2.65rem .62rem .85rem;
  border: 1px solid #824559;
  border-radius: .65rem;
  background: linear-gradient(112deg, #39212b, #25151e);
  box-shadow: inset 0 1px 0 #ffffff0d;
  color: #fff3f7;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
}
.security-tool select.security-select:hover { border-color: #d67a95; }
@supports (appearance: base-select) {
  .security-tool select.security-select,
  .security-tool select.security-select::picker(select) { appearance: base-select; }
  .security-tool .security-select::picker-icon { display: none; }
  .security-select-wrap:has(select:open)::after { transform: translateY(-25%) rotate(225deg); }
  .security-tool .security-select::picker(select) {
    margin-block: .25rem;
    padding: .28rem;
    background: #27131e;
    border: 1px solid #89495d;
    border-radius: .65rem;
    box-shadow: 0 .6rem 1.6rem #0d050a80;
  }
  #dashboard .security-select option { padding: .58rem .65rem; border-radius: .4rem; background: transparent; }
  #dashboard .security-select option:checked { background: #492031; color: #ffd0de; }
  #dashboard .security-select option:is(:hover,:focus-visible) { background: #61283d; }
}
.security-tool .security-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-height: 2.75rem;
  margin-block: .4rem;
  padding: .55rem .75rem;
  border: 1px solid #54303f;
  border-radius: .65rem;
  background: #21121b;
  cursor: pointer;
}
.security-check-row span { line-height: 1.4; overflow-wrap: anywhere; }
.security-check-row:has(input:checked) { background: linear-gradient(105deg, #391724, #29141e); border-color: #a84966; }
.security-check-row:hover { border-color: #c36c88; }
.security-check-row:has(input:focus-visible) { outline: 2px solid #ff9cb8; outline-offset: 2px; }
.security-check-row:has(input:disabled) { opacity: .6; cursor: default; }
.security-check-row input[type=checkbox] {
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid #ae8293;
  border-radius: .34rem;
  background: #180d14;
  cursor: inherit;
}
.security-check-row input:checked { border-color: #ff8bab; background: #bd254f; }
.security-check-row input:checked::after {
  content: '';
  width: .33rem;
  height: .63rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
@media (forced-colors: active) {
  .security-check-row input[type=checkbox], .security-tool select.security-select { appearance: auto; }
  .security-check-row input:checked::after, .security-select-wrap::after { display: none; }
}

/* Guild Command Center Animations */
@keyframes guildAccentPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.guild-command-center:hover {
  border-color: rgba(255, 0, 51, 0.4) !important;
  box-shadow: 0 0 40px rgba(255, 0, 51, 0.08), inset 0 0 60px rgba(255, 0, 51, 0.03);
}
.guild-command-center {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Enhanced dashboard tab buttons */
.dash-tab-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.dash-tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,51,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.dash-tab-btn:hover::before { opacity: 1; }
.dash-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 51, 0.15);
}
.dash-tab-btn.active {
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.2), inset 0 0 10px rgba(255, 0, 51, 0.05);
}
/* Module card hover enhancements */
.module-control-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.module-control-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 51, 0.08) !important;
  border-color: rgba(255, 0, 51, 0.3) !important;
}
/* Guild select dropdown enhancement */
#guild-select option {
  background: #0f0a19;
  color: #fff;
  padding: 8px;
}
/* Smooth section transitions */
.dashboard-content {
  animation: dashFadeIn 0.3s ease-out;
}
@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Status beacon pulse animation */
.status-beacon.active {
  animation: beaconPulse 2s ease-in-out infinite;
}
@keyframes beaconPulse {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50% { box-shadow: 0 0 10px currentColor, 0 0 20px currentColor; }
}


/* ==========================================================================
   CUSTOM CYBER GUILD SWITCHER (RED EDITION THEME)
   ========================================================================== */
.custom-guild-switcher-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-guild-switcher-container:hover {
  border-color: rgba(255, 0, 51, 0.35);
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.1);
}

.cgs-trigger-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cgs-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(12, 6, 20, 0.95);
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 250px;
  max-width: 340px;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cgs-trigger-btn:hover,
.cgs-trigger-btn.open {
  border-color: #ff0033;
  box-shadow: 0 0 18px rgba(255, 0, 51, 0.35);
  background: rgba(22, 8, 30, 0.98);
  transform: translateY(-1px);
}

.cgs-trigger-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  overflow: hidden;
  flex: 1;
}

.cgs-trigger-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #ff0033;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a0f26;
  box-shadow: 0 0 8px rgba(255, 0, 51, 0.3);
}

.cgs-trigger-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #ff0033;
  background: linear-gradient(135deg, #2b0b18, #ff0033);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 0, 51, 0.3);
}

.cgs-trigger-text {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cgs-trigger-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.cgs-trigger-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  margin-top: 2px;
}

.cgs-trigger-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.62rem;
  line-height: 1.2;
}

.cgs-badge-bot-owner {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.cgs-badge-server-owner {
  background: rgba(255, 0, 51, 0.18);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 51, 0.4);
}

.cgs-badge-extra-owner {
  background: rgba(0, 240, 255, 0.18);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.cgs-badge-admin {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cgs-trigger-members {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.68rem;
}

.cgs-trigger-arrow {
  font-size: 0.95rem;
  color: #ff4d6d;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.cgs-trigger-btn.open .cgs-trigger-arrow {
  transform: rotate(180deg);
  color: #ff0033;
}

/* --- Popover Dropdown --- */
.cgs-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 440px;
  max-width: 95vw;
  background: rgba(14, 7, 24, 0.98);
  border: 1px solid rgba(255, 0, 51, 0.4);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 0, 51, 0.25);
  z-index: 2100;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  animation: cgsSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cgs-popover.open {
  display: flex;
}

@keyframes cgsSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cgs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 0, 51, 0.06);
}

.cgs-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ff4d6d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cgs-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.5s infinite;
}

.cgs-header-count {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cgs-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.75rem 1rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.cgs-search-box:focus-within {
  border-color: #ff0033;
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.25);
  background: rgba(0, 0, 0, 0.75);
}

.cgs-search-icon {
  font-size: 0.85rem;
  color: #94a3b8;
}

.cgs-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.cgs-search-box input::placeholder {
  color: #64748b;
}

.cgs-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0 4px;
  border-radius: 4px;
}

.cgs-search-clear:hover {
  color: #ff0033;
}

.cgs-filter-chips {
  display: flex;
  gap: 6px;
  padding: 0 1rem 0.6rem;
  overflow-x: auto;
}

.cgs-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cgs-chip:hover {
  border-color: rgba(255, 0, 51, 0.3);
  color: #fff;
  background: rgba(255, 0, 51, 0.08);
}

.cgs-chip.active {
  background: rgba(255, 0, 51, 0.22);
  border-color: #ff0033;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.2);
}

.cgs-guild-list {
  max-height: 310px;
  overflow-y: auto;
  padding: 0.35rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cgs-guild-list::-webkit-scrollbar {
  width: 6px;
}

.cgs-guild-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.cgs-guild-list::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 51, 0.3);
  border-radius: 4px;
}

.cgs-guild-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 51, 0.6);
}

.cgs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cgs-item:hover {
  background: rgba(255, 0, 51, 0.12);
  border-color: rgba(255, 0, 51, 0.4);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.cgs-item.active {
  background: linear-gradient(90deg, rgba(255, 0, 51, 0.24), rgba(255, 0, 51, 0.08));
  border-color: #ff0033;
  box-shadow: 0 0 16px rgba(255, 0, 51, 0.2);
}

.cgs-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  flex: 1;
}

.cgs-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 0, 51, 0.4);
  object-fit: cover;
  flex-shrink: 0;
  background: #180922;
}

.cgs-item-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 0, 51, 0.4);
  background: linear-gradient(135deg, #1c081e, #ff0033);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.cgs-item-details {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cgs-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.cgs-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  margin-top: 2px;
}

.cgs-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cgs-item-active-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff0033;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 10px #ff0033;
}

.cgs-feature-dot {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.cgs-feature-shield {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cgs-feature-premium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cgs-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem 1rem;
  font-size: 0.82rem;
  font-style: italic;
}
.cgs-error { color: #ffd0da; font-style: normal; }
.cgs-retry-button {
  display: block;
  margin: 0 auto .9rem;
  padding: .5rem 1rem;
  border: 1px solid rgba(255, 77, 109, .5);
  border-radius: 8px;
  background: rgba(255, 0, 51, .14);
  color: #ff9bb4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cgs-retry-button:hover { background: rgba(255, 0, 51, .26); color: #fff; }
.guild-data-status { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; color: #ffb4c5; font-size: .78rem; }
.guild-data-status[hidden] { display: none !important; }

.cgs-footer {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.45);
  text-align: center;
}

.cgs-add-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff4d6d;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cgs-add-link:hover {
  color: #ff0033;
  text-decoration: underline;
  transform: translateY(-1px);
}


/* Guild dropdown overflow & z-index override */
.guild-command-center {
  overflow: visible !important;
  position: relative !important;
  z-index: 120 !important;
}

.custom-guild-switcher-container {
  position: relative !important;
  z-index: 150 !important;
}

.cgs-popover {
  z-index: 9999 !important;
}

.cgs-guild-list {
  min-height: 80px;
}
#recovery-explorer{margin:1rem 0}
#recovery-explorer .recovery-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.55rem;margin:.7rem 0}
#recovery-explorer button[aria-pressed=true]{border-color:#ff426b;color:#fff}
#recovery-explorer .recovery-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: .5rem;
  max-height: 21rem;
  overflow: auto;
  padding: .25rem .4rem .25rem .25rem;
  scrollbar-gutter: stable;
  scrollbar-color: #c06487 #281522;
}
@supports selector(::-webkit-scrollbar) {
  #recovery-explorer .recovery-items { scrollbar-color: auto; }
  #recovery-explorer .recovery-items::-webkit-scrollbar { width: 14px; }
  #recovery-explorer .recovery-items::-webkit-scrollbar-track { border-radius: 99px; background: #281522; }
  #recovery-explorer .recovery-items::-webkit-scrollbar-thumb {
    min-height: 36px;
    border: 3px solid #281522;
    border-radius: 99px;
    background: linear-gradient(#ed8da9, #b6416b);
  }
  #recovery-explorer .recovery-items::-webkit-scrollbar-thumb:hover { background: #ff9dbc; }
}
#recovery-explorer .recovery-item {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  min-height: 3.6rem;
  margin: 0;
  padding: .65rem .8rem;
  border: 1px solid #513041;
  border-radius: .75rem;
  background: linear-gradient(115deg, #291c27, #21151e);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
#recovery-explorer .recovery-item strong,
#recovery-explorer .recovery-item small { display: block; overflow-wrap: anywhere; }
#recovery-explorer .recovery-item strong { color: #f8e9ef; font-size: .95rem; font-weight: 600; line-height: 1.35; }
#recovery-explorer .recovery-item small { margin-top: .2rem; color: #cab2c0; font-size: .78rem; line-height: 1.25; }
#recovery-explorer .recovery-item input[type=checkbox] {
  appearance: none;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  border: 1.5px solid #b093a3;
  border-radius: .4rem;
  background: #1a1119;
  cursor: pointer;
}
#recovery-explorer .recovery-item input:checked {
  border-color: #fe86a8;
  background: linear-gradient(145deg, #ce3065, #a61b49);
}
#recovery-explorer .recovery-item input:checked::after {
  content: '';
  width: .32rem;
  height: .62rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
#recovery-explorer .recovery-item:has(input:checked) {
  border-color: #d85a85;
  background: linear-gradient(110deg, #482033, #301a29);
  box-shadow: inset 3px 0 #f3709b;
}
@media (hover: hover) {
  #recovery-explorer .recovery-item:hover { border-color: #da839e; }
}
#recovery-explorer .recovery-item:has(input:focus-visible),
#recovery-explorer .recovery-items:focus-visible { outline: 2px solid #ffbfd2; outline-offset: 1px; }
#recovery-explorer .recovery-private-fallback { display:flex; align-items:flex-start; gap:.55rem; margin:.75rem 0; padding:.7rem; border-left:3px solid #f59e0b; border-radius:7px; background:#3a291a66; color:#ffe3b0; font-size:.86rem; line-height:1.45; cursor:pointer; }
#recovery-explorer .recovery-private-fallback input { flex:none; margin-top:.2rem; accent-color:#f59e0b; }
@media (prefers-reduced-motion: reduce) {
  #recovery-explorer .recovery-item { transition: none; }
}
@media (forced-colors: active) {
  #recovery-explorer .recovery-item input[type=checkbox] { appearance: auto; }
  #recovery-explorer .recovery-item input:checked::after { content: none; }
  #recovery-explorer .recovery-item:has(input:checked) { border-color: Highlight; }
}
#recovery-explorer pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:22rem;overflow:auto}
#recovery-explorer button[hidden]{display:none}
/* Server Insurance */
#tab-insurance{--vault-line:#55303f;--vault-ink:#f9eaf0;--vault-muted:#c3aab6;min-width:0;color:var(--vault-ink)}
#tab-insurance [hidden]{display:none!important}
.vault-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(20px,3.2vw,46px);border-radius:20px;border:1px solid #723247;background:radial-gradient(ellipse at 85% 75%,#882246 0,transparent 43%),linear-gradient(115deg,#29121e,#391322 65%,#190e1c)}
.vault-title{position:relative;z-index:1;max-width:65%}.vault-title h2{font-size:clamp(2rem,4.3vw,3.8rem);line-height:1.04;letter-spacing:-.055em;margin:.65rem 0}.vault-title p,.vault-card>p{color:var(--vault-muted);line-height:1.5;margin:.45rem 0 .9rem}
.vault-pill{display:inline-block;border:1px solid #a16b81;border-radius:30px;padding:.25rem .65rem;font-size:.72rem;font-weight:700;letter-spacing:.04em}
.vault-actions,.vault-nav{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.vault-actions{margin:.75rem 0}
.vault-art{position:absolute;width:25%;height:70%;right:6%;top:12%;perspective:560px;pointer-events:none}
.vault-art i{position:absolute;inset:12% 7%;border:1px solid #fc86ac;border-radius:14%;background:linear-gradient(135deg,#ffaccb88,#b2285aaf 59%,#49102e);transform:rotateX(50deg) rotateZ(-30deg);box-shadow:-3px 5px 0 #732341,0 15px 26px #160a1955}
.vault-art i:after{content:"";position:absolute;inset:15%;border:1px solid #ffcbde8a;border-radius:10%}.vault-art i:nth-child(2){top:0;bottom:24%}.vault-art i:nth-child(3){top:-12%;bottom:36%;background:linear-gradient(125deg,#ffa9c8,#af315b 55%,#711a44)}
.vault-nav{margin:1.2rem 0;padding:.28rem;background:#1f121c;border:1px solid var(--vault-line);border-radius:14px;width:fit-content}.vault-nav button{border:0;background:transparent;color:#ddc8d3;cursor:pointer;font:inherit;padding:.58rem .95rem;border-radius:10px}.vault-nav button[aria-pressed=true]{background:#6b2540;color:#fff;box-shadow:inset 0 0 0 1px #a54a6e}
.vault-metrics,.vault-columns{display:grid;gap:.9rem;margin-bottom:.9rem}.vault-metrics{grid-template-columns:1.35fr 1fr 1fr}.vault-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.vault-card,.vault-metrics article{min-width:0;background:linear-gradient(145deg,#2b1825,#1a1019);border:1px solid var(--vault-line);border-radius:15px;padding:clamp(15px,2vw,26px)}.vault-card{margin-bottom:.85rem}.vault-columns .vault-card{margin:0}.vault-card h3{margin:0 0 .5rem;font-size:1.16rem}.vault-metrics small,.vault-metrics span,#tab-insurance small{color:var(--vault-muted)}.vault-metrics strong{display:block;font-size:clamp(1.2rem,2.2vw,2rem);line-height:1.2;margin:.45rem 0;overflow-wrap:anywhere}.vault-metrics span{font-size:.8rem}
.vault-meter{height:6px;border-radius:10px;background:#462838;margin:.8rem 0}.vault-meter div{height:100%;border-radius:inherit;background:linear-gradient(90deg,#f32b69,#ff95b5)}.vault-card summary{cursor:pointer;font-weight:650}.vault-card>label,.vault-card>select{display:block;margin-block:.55rem}
#tab-insurance input:not([type=checkbox]),#tab-insurance select{font:inherit;color:inherit;border:1px solid #784253;background:#21131e;border-radius:8px;padding:.5rem .65rem;max-width:100%;min-width:0}
#tab-insurance :focus-visible{outline:2px solid #ff9fc6;outline-offset:3px}#tab-insurance button:disabled{opacity:.5;cursor:not-allowed}
#ins-view-roles,#ins-view-channels,#ins-history-list{gap:.55rem;max-height:400px;overflow:auto;margin-top:.7rem}#ins-view-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}#ins-view-channels,#ins-history-list{display:flex;flex-direction:column}
#insurance-live-status:empty{display:none}#insurance-live-status:not(:empty){padding:.7rem;border-left:3px solid #d64877;background:#271520}
#recovery-explorer .vault-options{padding:.75rem;border:1px solid var(--vault-line);border-radius:10px;margin:.75rem 0}#recovery-explorer .vault-options summary{color:#f4b6d0}
#recovery-explorer .vault-output section{border:1px solid var(--vault-line);border-radius:12px;padding:1rem;margin-top:.7rem;overflow-x:auto}#recovery-explorer .vault-output td,#recovery-explorer .vault-output th{padding:.45rem;text-align:left;border-bottom:1px solid var(--vault-line)}
@media(max-width:720px){.vault-art{right:-4%;opacity:.55;top:10%;height:47%}.vault-title{max-width:85%}.vault-metrics,.vault-columns{grid-template-columns:1fr}.vault-title .btn{font-size:.85rem}.vault-nav{width:100%}.vault-nav button{flex:1;padding:.5rem;font-size:.84rem}.vault-metrics article{display:grid;grid-template-columns:1fr auto;align-items:center}.vault-metrics span{grid-column:1/-1}.vault-metrics strong{margin:0}}


/* TempVoice Studio & Interface Grid */
.jtc-panel-btn {
  background: #121622;
  border: 1px solid #1d3557;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.jtc-panel-btn span {
  font-size: 0.7rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jtc-panel-btn:hover {
  background: #1a2236;
  border-color: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}
.jtc-panel-btn:active {
  transform: translateY(1px);
}
.jtc-discord-comp-btn {
  background: #2b2d31;
  border: 1px solid #383a40;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #fff;
}
.jtc-discord-comp-btn:hover {
  background: #3b3e45;
  border-color: #4e5058;
  transform: translateY(-1px);
}

#wl-editor {
  color: var(--text-primary, white);
  background: #161319;
  border: 1px solid #51424a;
  border-radius: 12px;
  width: min(32rem, 94vw);
  max-height: 90vh;
  margin: auto;
  padding: 1.25rem;
  overflow: auto;
}
#wl-editor::backdrop { background: rgba(0, 0, 0, .74); }
#wl-editor fieldset { border: 0; padding: 0; margin: 1rem 0; }
#wl-editor legend { color: var(--text-muted); margin-bottom: .5rem; }
#wl-permission-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .25rem; }
#wl-permission-list label { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; cursor: pointer; }
#wl-permission-list input { width: 1rem; height: 1rem; accent-color: #e02148; }
.wl-editor-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
#wl-editor-error { color: #fca5a5; margin-bottom: .6rem; }
