/* Kawaii Dashboard v2 — elevated layer (Discord-dark + glass + accent depth) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('fun.css');

:root {
  --bg: #0f1014;
  --bg-elevated: #14151a;
  --surface: rgba(30, 31, 38, 0.72);
  --surface-solid: #1a1b22;
  --surface-hover: rgba(44, 46, 56, 0.85);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --accent: #5865f2;
  --accent-hover: #7983f5;
  --accent-soft: rgba(88, 101, 242, 0.18);
  --accent-glow: rgba(88, 101, 242, 0.35);
  --text-primary: #f2f3f5;
  --text-secondary: #b5bac1;
  --text-muted: #6d7178;
  --green: #3ba55d;
  --red: #ed4245;
  --orange: #f0b232;
  --yellow: #fee75c;
  --blue: #57a5ff;
  --purple: #9b84ee;
  --pink: #eb459e;
  --content-max: min(1280px, 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 24px 48px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --sidebar-width: 272px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(88, 101, 242, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(155, 132, 238, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(235, 69, 158, 0.05), transparent 45%);
}

.layout,
.dash-index,
body > .min-h-screen {
  position: relative;
  z-index: 1;
}

/* Sidebar — glass rail */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(20, 21, 26, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.sidebar-guild {
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar-guild-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-guild-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}

.guild-avatar-img,
.sidebar-guild img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--border-strong);
}

.guild-avatar-ph,
.sidebar-guild-icon-ph {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-item {
  border-radius: var(--radius-sm);
  margin: 1px 0;
  font-size: 13px;
}

.nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  color: var(--text-primary);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-item:hover:not(.active) {
  background: var(--surface-hover);
}

.sidebar-section-label {
  color: var(--text-muted);
  padding-top: 14px;
}

/* Main content */
.main-content {
  padding: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 32px) 48px;
}

.page-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* Cards — elevated glass */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-header {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Stat cards — 21st-inspired accent tiles */
.stats-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--stat-orb, rgba(88, 101, 242, 0.15));
  filter: blur(24px);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-strong);
}

.stat-card--join { --stat-orb: rgba(59, 165, 93, 0.25); border-top: 2px solid var(--green); }
.stat-card--leave { --stat-orb: rgba(237, 66, 69, 0.2); border-top: 2px solid var(--red); }
.stat-card--voice { --stat-orb: rgba(87, 165, 255, 0.25); border-top: 2px solid var(--blue); }
.stat-card--mod { --stat-orb: rgba(155, 132, 238, 0.3); border-top: 2px solid var(--purple); }

.stat-icon {
  font-size: 20px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.stat-delta.positive {
  background: rgba(59, 165, 93, 0.15);
  color: var(--green);
}

.stat-delta.negative {
  background: rgba(237, 66, 69, 0.12);
  color: var(--red);
}

/* Index / server picker */
.dash-index {
  background: var(--bg);
  min-height: 100vh;
}

.dash-topbar {
  background: rgba(20, 21, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px clamp(20px, 4vw, 32px);
}

a.dash-brand {
  text-decoration: none;
  color: inherit;
}

.dash-brand-text {
  background: linear-gradient(135deg, #fff, var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dash-brand-badge {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-hover);
}

.dash-hero {
  margin-bottom: 8px;
}

.dash-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.dash-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.04em;
}

.dash-hero-actions {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.dash-refresh-link {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.dash-refresh-link:hover {
  text-decoration: underline;
}

.bot-status-bar {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.guilds-grid {
  gap: 14px;
}

.guild-card {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}

.guild-card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 12px 40px var(--accent-glow);
  transform: translateY(-3px);
}

.guild-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 14px;
  opacity: 1;
}

.empty-state {
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
}

.global-broadcast-panel {
  margin: 24px 0 8px;
  padding: 20px 22px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  border-left: 3px solid var(--accent);
}

.global-broadcast-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.global-broadcast-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.global-broadcast-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.global-broadcast-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.global-broadcast-input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.global-broadcast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.global-broadcast-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.global-broadcast-results-wrap {
  margin-top: 14px;
  font-size: 0.82rem;
}

.global-broadcast-results {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  max-height: 220px;
  overflow-y: auto;
  color: var(--text-muted);
}

.global-broadcast-results li {
  margin-bottom: 4px;
}

.onboarding-panel-wrap {
  margin-top: 20px;
  max-width: 640px;
}

.onboarding-panel-wrap.is-open .onboarding-panel,
.onboarding-panel-wrap .empty-state.onboarding-panel {
  margin-top: 0;
}

.onboarding-panel {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

/* Add Server card on server picker */
.guild-card-add {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
}

.guild-card-add:hover,
.guild-card-add.is-active {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
}

.guild-card-add::before {
  display: none;
}

.guild-icon-add {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px dashed rgba(88, 101, 242, 0.45);
  border-radius: 50%;
  color: var(--accent-hover);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
}

.guild-icon-add span {
  margin-top: -2px;
}

.guild-card-add .guild-members {
  color: var(--text-muted);
}

.addable-guilds-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.guild-card-pick {
  text-decoration: none;
  color: inherit;
}

.guild-card-pick::before {
  display: none;
}

.guild-add-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
}

.guild-card-pick:hover .guild-add-badge {
  background: var(--accent);
  color: #fff;
}

.onboarding-after-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.onboarding-after-hint a {
  color: var(--accent-hover);
}

.onboarding-waiting {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
  font-style: italic;
}

.onboarding-panel .empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.onboarding-panel .empty-body {
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.onboarding-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboarding-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-elevated, rgba(0, 0, 0, 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.onboarding-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 13px;
}

.onboarding-steps li strong {
  display: block;
  margin-bottom: 4px;
}

.onboarding-steps li p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.onboarding-invite-btn {
  text-decoration: none;
}

.onboarding-muted,
.landing-cta-muted {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.onboarding-muted code,
.landing-cta-muted code {
  font-size: 12px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  border: none;
  box-shadow: 0 4px 14px var(--accent-glow);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface-hover);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* Forms */
.text-input,
.select-input,
textarea.text-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.text-input:focus,
.select-input:focus,
textarea.text-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

/* Status bar */
.status-bar {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
}

.funnel-bar-fill {
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--pink));
}

.cog-pill {
  border-radius: 999px;
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-hover);
  font-weight: 500;
}

.filter-tab.active {
  background: var(--accent-soft);
  color: var(--text-primary);
}

/* Public landing */
.landing-page {
  min-height: 100vh;
  background: var(--bg);
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: rgba(20, 21, 26, 0.75);
  backdrop-filter: blur(16px);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.landing-brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #fff, var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
}

.landing-nav-link:hover {
  color: var(--text-primary);
}

.landing-nav-btn {
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 4vw, 40px);
}

.landing-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  margin-bottom: 12px;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.landing-gradient {
  background: linear-gradient(135deg, var(--accent-hover), var(--pink, #eb459e));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 28px;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.landing-cta-primary,
.landing-cta-secondary,
.landing-discord-btn {
  text-decoration: none;
}

.landing-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-hint-box--dev {
  margin-top: 16px;
  font-size: 12px;
}

.landing-cta-note {
  font-size: 13px;
  color: var(--text-muted);
}

.landing-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-visual img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 40px var(--accent-glow));
}

.landing-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: 0;
}

.landing-features,
.landing-steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 64px;
}

.landing-features h2,
.landing-steps h2 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.landing-feature-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

.landing-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.landing-feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.landing-steps-list {
  max-width: 560px;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.landing-footer-links a {
  color: var(--accent-hover);
  text-decoration: none;
  font-size: 13px;
}

.landing-footer-links a:hover {
  text-decoration: underline;
}

.landing-support {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 64px;
}

.landing-support h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.landing-support-intro {
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 520px;
  line-height: 1.55;
}

.landing-support-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 400px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.landing-support-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.landing-support-label {
  font-weight: 700;
  font-size: 1rem;
}

.landing-support-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.landing-support-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  margin-top: 4px;
}

/* Legal / info pages */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px) 64px;
}

.legal-main h1 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.legal-main h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.legal-main p,
.legal-main li {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.legal-main ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

@media (max-width: 800px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .landing-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .landing-cta-row {
    justify-content: center;
  }
  .landing-hero-visual {
    order: -1;
  }
}

/* Login page (replaces Tailwind shell) */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-back {
  position: absolute;
  top: 20px;
  left: 24px;
  margin: 0;
  font-size: 13px;
}

.login-back a {
  color: var(--text-muted);
  text-decoration: none;
}

.login-back a:hover {
  color: var(--accent-hover);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-elevated);
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.login-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}

.login-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.login-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}

.login-alert--error {
  background: rgba(237, 66, 69, 0.12);
  border: 1px solid rgba(237, 66, 69, 0.3);
  color: #faa;
}

.login-alert--warn {
  background: rgba(240, 178, 50, 0.1);
  border: 1px solid rgba(240, 178, 50, 0.25);
  color: #fcd34d;
}

.login-hint-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.login-hint-box code {
  font-size: 11px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Toasts */
.toast {
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-elevated);
}

/* Tables */
.data-table th {
  background: rgba(0, 0, 0, 0.2);
}

.data-table tr:hover td {
  background: var(--accent-soft);
}

/* Cog intro */
.cog-intro-card {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cog-status-pill {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .layout {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card:hover,
  .guild-card:hover,
  .login-discord-btn:hover {
    transform: none;
  }
}
