/* Updated and Refactored style.css for NotiFire */
/* Organized into sections for better maintainability. Removed duplicates and conflicting styles. */

/* --- CSS Variables --- */

/*
 * DARK MODE (default)
 *
 * Deeper navy-charcoal foundation with subtle blue ambient depth.
 * Alpha-based surface layering for crisp card separation.
 * Cleaner cool-gray borders with white-alpha edge definition.
 * Softer, larger-blur shadows for premium elevation.
 */
:root {
    /* ── Foundation ── */
    --bg-color: #0B0E15;
    --bg-secondary: #12161F;
    --card-color: #181D2A;

    /* ── Text hierarchy ── */
    --text-color: #ECF0F5;
    --text-secondary: #A5ACBD;
    --text-muted: #848CA4;

    /* ── Accent: premium amber-orange ── */
    --accent-color: #F16A2A;
    --accent-hover: #F68240;
    --accent-light: #FCC8A8;
    --accent-soft: rgba(241, 106, 42, 0.08);
    --accent-soft-text: #FAA876;

    /* ── Borders: cleaner cool-gray with white-alpha edge ── */
    --border-color: #2C3445;
    --border-light: #242B3C;

    /* ── Inputs ── */
    --input-bg: #0F131C;
    --input-focus-bg: #11151F;

    /* ── Semantic colors ── */
    --success-color: #10B981;
    --success-soft: rgba(16, 185, 129, 0.08);
    --success-text: #34D399;
    --error-color: #EF4444;
    --error-soft: rgba(239, 68, 68, 0.08);
    --error-text: #F87171;
    --warning-color: #F59E0B;
    --warning-soft: rgba(245, 158, 11, 0.08);
    --warning-text: #FBBF24;
    --info-color: #0EA5E9;
    --info-soft: rgba(14, 165, 233, 0.08);
    --info-text: #7DD3FC;

    /* ── Brand / ecosystem ── */
    --discord-color: #5865F2;
    --discord-hover: #4752C4;
    --gradient-stop: #8B5CF6;
    --patreon-color: #F87060;

    /* ── Usage bars (quota) ── */
    --usage-purple-start: #8B5CF6;
    --usage-purple-end: #A855F7;
    --usage-track: rgba(255, 255, 255, 0.06);
    --usage-icon-bg: rgba(139, 92, 246, 0.10);

    /* ── Surfaces & overlays ── */
    --tooltip-bg: #1E2234;
    --tooltip-text: #ECF0F5;
    --card-hover-bg: #1C2030;
    --mention-bg: rgba(148, 163, 184, 0.12);
    --mention-text: #D5DCE6;
    --mention-border: rgba(148, 163, 184, 0.20);

    /* ── Focus ── */
    --focus-ring: 0 0 0 3px rgba(241, 106, 42, 0.20);

    /* ── Shadows: larger blur, ambient-blue tint, premium depth ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 8px 36px rgba(0, 0, 0, 0.48);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.025);
    --shadow-ambient: 0 0 80px rgba(59, 130, 246, 0.035);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03);

    /* ── Radii ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* ── Utility tokens ── */
    --text-on-accent: #FFFFFF;
    --surface-overlay: rgba(0, 0, 0, 0.30);
    --surface-elevated: rgba(255, 255, 255, 0.03);
    --skeleton-shimmer-mid: rgba(255, 255, 255, 0.04);

    /* ── Creator card (elevated surface above panel) ── */
    --creator-card-bg: #1E2333;
    --creator-card-border: #323A4E;
    --creator-card-shadow: 0 2px 10px rgba(0, 0, 0, 0.40);

    /* ── Logo ── */
    --logo-primary: #ECF0F5;
    --logo-accent: #F16A2A;

    /* ── Z-index layers ── */
    --z-navbar: 100;
    --z-dropdown: 200;
    --z-tooltip: 500;
    --z-overlay: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/*
 * LIGHT MODE
 *
 * Clean warm-white foundation. Premium contrast with sharper borders.
 * Preserves elegant feel with refined shadows.
 */
[data-theme="light"] {
    /* ── Foundation ── */
    --bg-color: #F8F7F5;
    --bg-secondary: #F1EFEC;
    --card-color: #FFFFFF;

    /* ── Text hierarchy ── */
    --text-color: #1D1E22;
    --text-secondary: #5A5D66;
    --text-muted: #6E7380;

    /* ── Accent: deeper amber-orange on light ── */
    --accent-color: #F16A2A;
    --accent-hover: #E05A18;
    --accent-light: #FED7AA;
    --accent-soft: #FFF5F0;
    --accent-soft-text: #C2410C;

    /* ── Borders: warm grays ── */
    --border-color: #E6E4E0;
    --border-light: #F0EEEA;

    /* ── Inputs ── */
    --input-bg: #FFFFFF;
    --input-focus-bg: #FFFFFF;

    /* ── Semantic colors ── */
    --success-color: #10B981;
    --success-soft: #ECFDF5;
    --success-text: #047857;
    --error-color: #EF4444;
    --error-soft: #FEF2F2;
    --error-text: #DC2626;
    --warning-color: #F59E0B;
    --warning-soft: #FFFBEB;
    --warning-text: #92400E;
    --info-color: #0EA5E9;
    --info-soft: #F0F9FF;
    --info-text: #0369A1;

    /* ── Brand / ecosystem ── */
    --discord-color: #5865F2;
    --discord-hover: #4752C4;
    --gradient-stop: #8B5CF6;
    --patreon-color: #F87060;

    /* ── Usage bars (quota) ── */
    --usage-purple-start: #7C3AED;
    --usage-purple-end: #8B5CF6;
    --usage-track: rgba(0, 0, 0, 0.05);
    --usage-icon-bg: rgba(124, 58, 237, 0.07);

    /* ── Surfaces & overlays ── */
    --tooltip-bg: #2D2E35;
    --tooltip-text: #FFFFFF;
    --card-hover-bg: #FAFAF9;
    --mention-bg: rgba(71, 85, 105, 0.08);
    --mention-text: #475569;
    --mention-border: rgba(71, 85, 105, 0.14);

    /* ── Focus ── */
    --focus-ring: 0 0 0 3px rgba(241, 106, 42, 0.15);

    /* ── Shadows: refined, cleaner, larger blur ── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-ambient: 0 0 60px rgba(99, 102, 241, 0.04);
    --shadow-elevated: 0 6px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);

    /* ── Radii ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* ── Utility tokens ── */
    --text-on-accent: #FFFFFF;
    --surface-overlay: rgba(0, 0, 0, 0.12);
    --surface-elevated: rgba(0, 0, 0, 0.02);
    --skeleton-shimmer-mid: #E8E6E2;

    /* ── Creator card (elevated surface above panel) ── */
    --creator-card-bg: #F3F1EE;
    --creator-card-border: #DCD9D4;
    --creator-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    /* ── Logo ── */
    --logo-primary: #1D1E22;
    --logo-accent: #F16A2A;
}

/* --- Global Styles & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 105%;
    scroll-behavior: smooth;
    height: 100%;
    /* Theme-aware transitions for smooth dark/light switching */
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.18) 100%),
        var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: background 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
}

#footer {
    margin-top: auto;
    width: 100%;
}

/*
 * Theme transition — scoped to interactive surfaces only.
 * Avoids the global * selector anti-pattern that causes unintended
 * animations, high repaint cost, and future debugging pain.
 *
 * Components opt into theme transitions via their own :hover/:focus rules
 * or via the .theme-transition utility below.
 */
.theme-transition,
.navbar,
.nav-container,
.nav-link,
.nav-brand,
.nav-profile-trigger,
.nav-profile-dropdown,
.nav-profile-item,
.nav-theme-toggle,
.card,
.creator-card,
.server-card,
.pipeline-node,
.showcase-row,
.cta-card,
.support-card,
.public-panel,
.plan-usage-card,
.filters-summary-card,
.checkbox-pill .post-type-chip,
.radio-option,
.servers-panel,
.servers-state,
.info-box,
.webhook-display,
.empty-state,
.pagination-btn,
.creator-modal,
.creator-modal-overlay,
input[type="text"],
input[type="password"],
textarea,
select,
button,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-discord,
.btn-link,
.btn-danger,
.btn-save,
.creator-action-btn,
.content-chip,
.feedback-message,
#save-feedback {
    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- Navigation Bar --- */
.navbar {
    background: var(--card-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 10%;
    bottom: -6px;
    width: 80%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-hover);
}

.nav-link:hover::after {
    opacity: 0.6;
    transform: scaleX(0.9);
}

.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-link.active {
  color: var(--accent-color); /* keep same */
  font-weight: 600;         /* subtle emphasis */
}

.nav-link--upgrade i {
    color: var(--warning-color);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.nav-link--upgrade:hover i,
.nav-link--upgrade.active i {
    color: currentColor;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.nav-donors i {
    color: var(--text-on-accent);
}

.nav-donors {
    color: var(--text-on-accent);
    background: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-donors:hover {
    background: var(--accent-color);
    color: var(--text-on-accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-status {
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Theme toggle button — subtle, glassy, icon-only */
.nav-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 2.35rem;
  height: 2.35rem;

  border-radius: 999px;

  border: 1px solid var(--border-color);
  background: var(--card-color);

  color: var(--text-muted);

  font-size: 0.9rem;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  flex-shrink: 0;
}

.nav-theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-light);
  color: var(--accent-color);

  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-theme-toggle:active {
  transform: translateY(0);
}

.nav-theme-toggle i {
  transition: transform 0.3s ease;
}

.nav-theme-toggle:hover i {
  transform: rotate(-12deg);
}

/* remove underline system from support */
.nav-donors::after {
  display: none;
}

.nav-home {
  font-weight: 600;
}

/* --- Navbar Brand (Logo) --- */
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1rem;
}

/*
 * Logo theme awareness:
 * The logo is an inline SVG (directly in HTML, not <img> tag) so that
 * "Noti" (fill="currentColor") reliably inherits the parent's CSS 'color'.
 * "Fire" uses hardcoded #F16A2A. Set color on the parent element
 * (.nav-logo-icon, .brand svg, .preview-msg-avatar svg) to control.
 */
.nav-logo-icon {
  height: 34px;
  width: auto;
  color: var(--logo-primary);
}

/* --- Navbar Profile Dropdown --- */
.nav-profile {
  position: relative;
}

.nav-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-profile-trigger:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-light);
}

.nav-profile-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--discord-color), var(--gradient-stop));
}

.nav-profile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8rem;
}

/* Premium badge in navbar — sits left of the profile dropdown */
.nav-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;

  height: 1.9rem;
  padding: 0 0.7rem;

  border-radius: 999px;

  background: var(--warning-soft);
  border: 1px solid var(--warning-color);

  color: var(--warning-text);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  white-space: nowrap;

  backdrop-filter: blur(10px);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;

  margin-right: 0.55rem;
}

.nav-premium-badge i {
  font-size: 0.68rem;
  opacity: 0.9;
}

.nav-premium-badge:hover {
  background: var(--warning-soft);
  border-color: var(--warning-color);
  transform: translateY(-1px);
}

.plan-free-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-profile-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-profile-chevron {
  color: var(--text-muted);
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-profile-trigger[aria-expanded="true"] .nav-profile-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.nav-profile-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-profile-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-profile-item:hover,
.nav-profile-item:focus-visible {
  background: var(--bg-secondary);
  outline: none;
}

.nav-profile-item i {
  width: 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.nav-profile-item--logout {
  color: var(--error-color);
}

.nav-profile-item--logout i {
  color: var(--error-color);
}

.nav-profile-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}


/* --- Header --- */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Theme-aware brand logo (status page) */
.brand img {
    color: var(--logo-primary);
}

.logo-container {
    position: relative;
}

.logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-lg);
    font-size: 28px;
    color: var(--text-on-accent);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(241, 106, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-text {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

h1 .fire-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.site-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 50ch;
    margin: 0.75rem auto 0;
    font-weight: 450;
    line-height: 1.75;
    position: relative;
    padding: 1rem 1.5rem;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-color);
    padding-bottom: 1.4rem;
}

.site-description::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    opacity: 0.8;
}

@media (hover: hover) and (pointer: fine) {
    .site-description:hover::after {
        width: 70%;
        transition: width 300ms ease;
    }
    .site-description:hover {
        box-shadow: 0 4px 12px rgba(241, 106, 42, 0.06);
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .site-description {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        padding-bottom: 1.15rem;
    }
    .site-description::after {
        height: 2px;
        width: 60%;
    }
}

/* --- Progress Indicator (Kept for Completeness, Commented Out if Not Used) --- */
/* .progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--card-color);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 100%;
    width: 2rem;
    height: 2px;
    background: var(--border-color);
    transition: background-color 0.3s ease;
}

.progress-step.active:not(:last-child)::after {
    background: var(--accent-color);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.progress-step .step-circle i {
    font-size: 1rem;
}

.progress-step.active .step-circle {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.progress-step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.progress-step.active span {
    color: var(--accent-color);
} */

/* --- Main Content & Cards --- */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: var(--card-color);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    margin: 6px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:focus-within {
    box-shadow: var(--shadow-elevated);
    border-color: var(--accent-light);
}

.card:focus-within::before {
    opacity: 1;
}

.public-panel {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.public-copy h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 0;
}

.public-copy p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body:not(.app-authenticated) #settings-form {
    display: none;
}

body.app-authenticated #public-panel {
    display: none;
}

.legacy-webhook-control {
    display: none !important;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-light) 100%);
    color: var(--accent-soft-text);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 1.125rem;
    border: 1px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.section-help {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.92rem;
    letter-spacing: -0.005em;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    z-index: 1;
}

input[type="text"]:not(.token-input),
input[type="password"],
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

input[type="text"]:not(.input-wrapper input):not(.token-input),
textarea {
    padding-left: 1rem;
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input[type="text"]:not(.token-input):focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--focus-ring), var(--shadow-sm);
    background: var(--input-focus-bg);
}

.input-error-field {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-readonly {
    background-color: var(--bg-muted, #f3f4f6);
    color: var(--text-muted, #6b7280);
    cursor: not-allowed;
    opacity: 0.85;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-left: 0.1rem;
}

@media (min-width: 1024px) {
    input[type="text"]::placeholder,
    input[type="password"]::placeholder,
    textarea::placeholder {
        font-size: 0.9rem;
    }
    .section-help {
        font-size: 0.95rem;
    }
    .info-box,
    .info-list li {
        font-size: 0.95rem;
    }
}

/* --- Buttons --- */
button,
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent-color);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

button:hover::before {
    left: 100%;
}

button:hover,
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(241, 106, 42, 0.22), var(--shadow-sm);
}

button:focus,
.btn-primary:focus {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-sm);
}

button:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button:disabled,
.btn-primary:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

button:disabled::before,
.btn-primary:disabled::before {
    display: none;
}

.btn-primary {
    background: var(--accent-color);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-danger {
    background: var(--error-color);
    color: var(--text-on-accent);
}

.btn-danger:hover {
    background: var(--error-text);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.22), var(--shadow-sm);
}

.btn-discord {
    background: var(--discord-color);
    color: var(--text-on-accent);
}

.btn-discord:hover {
    background: var(--discord-hover);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.22), var(--shadow-sm);
}

.btn-link {
    background: transparent;
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-link:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.btn-save {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-text) 100%);
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
}

.btn-save:disabled {
  color: var(--text-on-accent);
}

.btn-save:hover {
    background: linear-gradient(135deg, var(--success-text) 0%, var(--success-color) 100%);
}

/* --- Creator List --- */
.creator-list-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.creator-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.empty-state i {
    font-size: 2rem;
    color: var(--text-muted);
}

.empty-state p {
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.empty-state small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.creator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-light) 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-soft-text);
    border: 1px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.creator-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.creator-index {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--card-color);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-hover);
    border: 1px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-color);
    border: 1px solid var(--accent-light);
    color: var(--error-color);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.remove-btn:hover {
    background: var(--error-color);
    border-color: var(--error-color);
    color: var(--text-on-accent);
    transform: scale(1.1);
}

/* --- Info Box --- */
.info-box {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--warning-soft) 100%);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--accent-soft-text);
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-soft-text);
    font-size: 0.9rem;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.info-list li:last-child {
    margin-bottom: 0;
}

/* --- Filter Sections --- */
.filter-section {
    margin-bottom: 2rem;
}

.filter-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-section-header i {
    color: var(--accent-color);
    font-size: 1.125rem;
}

.filter-section-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

/* --- Token/Chips Input — all token styles moved to creators.css --- */
/* No token fields exist outside the creators page. */

/* --- Checkboxes --- */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    position: relative;
    width: 22px;
    height: 22px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.checkbox-custom svg {
    width: 14px;
    height: 14px;
    color: var(--text-on-accent);
    transform: scale(0);
    transition: transform 0.2s ease;
}

input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: var(--focus-ring);
}

input[type="checkbox"]:checked + .checkbox-custom svg {
    transform: scale(1);
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-content i {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Webhook Display --- */
.webhook-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--success-soft) 0%, var(--success-soft) 100%);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--success-color);
    gap: 1rem;
    box-shadow: var(--shadow-card);
}

.webhook-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.webhook-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--success-color);
    border-radius: 50%;
    color: var(--text-on-accent);
    font-size: 1.125rem;
    box-shadow: var(--shadow-sm);
}

.webhook-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.webhook-details .status {
    font-weight: 600;
    color: var(--success-text);
    font-size: 0.95rem;
}

.webhook-details .webhook-url {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--surface-elevated);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.webhook-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.destination-picker {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.destination-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.destination-user i {
    color: var(--discord-color);
    font-size: 1.2rem;
}

.destination-select {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text-color);
    font: inherit;
}

.destination-select:disabled {
    opacity: 0.65;
}

/* --- Divider --- */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

/* --- Actions & Feedback --- */
.actions-container {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

#save-button {
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.feedback-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid transparent;
    max-width: 100%;
    margin-inline: auto;
    box-shadow: var(--shadow-sm);
}

.feedback-message.hidden {
    display: none;
}

.feedback-message--error {
    background: var(--error-soft);
    color: var(--error-text);
    border-color: var(--error-color);
}

.feedback-message--success {
    background: var(--success-soft);
    color: var(--success-text);
    border-color: var(--success-color);
}

.feedback-message--info {
    background: var(--info-soft);
    color: var(--info-text);
    border-color: var(--info-color);
}

.feedback-message a {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: none;
}

.feedback-message a:hover {
    text-decoration: underline;
}

.feedback-message a.feedback-upgrade-link,
.feedback-message a.feedback-upgrade-link:visited {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.feedback-message a.feedback-upgrade-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ================================================================
   SAVE FEEDBACK TOAST (shared — used by landing page & creators page)
   ================================================================ */
#save-feedback {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: var(--z-toast);
  min-width: 280px;
  width: clamp(320px, 38vw, 600px);
  max-width: calc(100vw - 2rem);
  margin: 0;
  pointer-events: auto;
  padding: 0.7rem 2.25rem 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  text-align: left;
  border: 1px solid var(--border-color);
  background: var(--card-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  color: var(--text-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#save-feedback.feedback-message--success {
  border-color: var(--success-color);
  color: var(--success-text);
}

#save-feedback.feedback-message--error {
  border-color: var(--error-color);
  color: var(--error-text);
}

#save-feedback.feedback-message--info {
  border-color: var(--info-color);
  color: var(--info-text);
}

.feedback-close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--surface-overlay);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.feedback-close-btn:hover {
  opacity: 1;
  background: var(--surface-overlay);
}

.feedback-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  border-radius: 0 0 10px 10px;
  background: var(--surface-overlay);
  transform-origin: left center;
  animation: feedbackProgressShrink 8s linear forwards;
}

.feedback-message--success .feedback-progress-bar {
  background: rgba(16, 185, 129, 0.45);
}

.feedback-message--error .feedback-progress-bar {
  background: var(--error-soft);
}

.feedback-message--info .feedback-progress-bar {
  background: var(--info-soft);
}

@keyframes feedbackProgressShrink {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}

@media (max-width: 768px) {
  #save-feedback {
    top: auto;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(10px);
    min-width: 0;
    max-width: calc(100vw - 2rem);
    width: auto;
  }
}

/* --- Footer (big landing-page variant) --- */
.footer-big {
    margin-top: 4rem;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-big .footer-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
    flex-shrink: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-trust-statement {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}

.footer-columns {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-col-heading {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-link i {
    font-size: 0.8rem;
    opacity: 0.65;
    width: 1em;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-bottom-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: var(--accent-color);
}

/* --- Compact footer (all non-landing pages) --- */
.footer-compact {
    margin-top: 3rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-compact-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-compact-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    flex-shrink: 0;
}

.footer-compact-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.footer-compact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-compact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-compact-link:hover {
    color: var(--accent-color);
}

.footer-donate-link i {
    color: var(--error-color);
    font-size: 0.7rem;
}

.footer-donate-link:hover i {
    color: var(--accent-color);
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

.update-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: center;
    opacity: 0.85;
}

.donation-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    opacity: 0.85;
}

.arrow {
    margin: 0 6px;
    color: var(--accent-color);
    display: inline-block;
    transform: translateY(-1px);
}

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

/* --- Connect Controls --- */
#connect-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.radio-option input[type="radio"] {
    margin-top: 4px;
}

input[type="radio"] {
    display: none;
}

.radio-custom {
    position: relative;
    width: 22px;
    height: 22px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.radio-custom .radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-on-accent);
    transform: scale(0);
    transition: transform 0.2s ease;
}

input[type="radio"]:checked + .radio-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: var(--focus-ring);
}

input[type="radio"]:checked + .radio-custom .radio-dot {
    transform: scale(1);
}

/* --- Status Page --- */
.status-page-header {
  text-align: center;
  margin-bottom: 0.5rem;
}
.status-page-kicker {
  margin: 0 0 0.25rem;
  color: var(--accent-soft-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-page-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.status-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.status-header h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.status-overview {
    max-width: 650px;   /* controls card width */
    margin: 2rem auto;  /* centers it */
    padding: 20px;
}

/* Permanent orange top accent for status card */
.status-overview::before {
    opacity: 1;
}

/* Permanent orange top accent for updates cards */
#updates-container .card::before {
    opacity: 1;
}

.status-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.status-card {
    max-width: 520px;
    width: 100%;
    background: var(--card-color);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
}

.status-indicator.online .dot {
    background: var(--success-color);
}

.status-indicator.degraded .dot {
    background: var(--warning-color);
}

.status-indicator.down .dot {
    background: var(--error-color);
}

.status-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.status-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.status-subtext {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 420px;
    margin: 0 auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
}

.status-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center; /* centers content */
    text-align: center;
}

.status-content {
    flex: 1;
    min-width: 0;   /* prevent flex child overflow */
}

/* ---- Status loading skeleton ---- */
.status-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.status-skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--skeleton-shimmer-mid) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.status-skeleton-title {
    width: 160px;
    max-width: 100%;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--skeleton-shimmer-mid) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    margin-top: 4px;
}

.status-skeleton-subtitle {
    width: 260px;
    max-width: 80%;
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--skeleton-shimmer-mid) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.status-skeleton-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.7rem 1.6rem;
}

.status-skeleton-line {
    width: 180px;
    max-width: 100%;
    height: 14px;
    border-radius: 4px;
}

.status-skeleton-line--short {
    width: 130px;
    max-width: 80%;
}

.status-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.75rem;
  align-items: center;

  background: var(--accent-soft);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-md);
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--accent-light);
}

.status-line {
  display: contents;
}

.status-line .label {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#last-checked {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  word-break: break-word;
  min-width: 0;
}

.status-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-active {
    color: var(--success-color);
    font-weight: 600;
}

.status-active .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--success-color);
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
}

.status-active.down .dot {
    background: var(--error-color);
}

.status-active.maintenance .dot {
    background: var(--warning-color);
}

/* subtle pulse */
.status-active .dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.4;
    animation: statusPulse 1.8s ease-out infinite;
}

/* operational */
.status-active.operational .dot::after {
    background: var(--success-color);
}

/* down */
.status-active.down .dot::after {
    background: var(--error-color);
}

/* maintenance */
.status-active.maintenance .dot::after {
    background: var(--warning-color);
}

/* animation */
@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.status-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.status-note a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.status-note a:hover {
    text-decoration: underline;
}

.status-info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 520px;
  margin: 1.8rem auto 0.8rem;
  line-height: 1.4;
}

/* subtle emphasis */
.status-info strong {
  color: var(--text-color);
  display: block;
  font-size: 1.8rem;   /* bigger = header feel */
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.status-active.down {
  color: var(--error-color);
}

.status-active.maintenance {
  color: var(--warning-color);
}

.status-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.status-subtitle {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}

/* colors */
.status-green {
  color: var(--success-color);
}

.status-red {
  color: var(--error-color);
}

.status-yellow {
  color: var(--warning-color);
}

.status-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.status-icon.green {
  color: var(--success-color);
}

.status-icon.red {
  color: var(--error-color);
}

.status-icon.yellow {
  color: var(--warning-color);
}

/* Notification Performance (inline inside status details) */
.status-line .label .fa-bolt {
  color: var(--accent-color);
}

.perf-value {
  font-weight: 600;
  color: var(--accent-color);
}

.perf-paused {
  color: var(--error-color) !important;
}

/* --- Donations Page --- */
.support-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}

.support-card {
    background: var(--card-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.support-header {
    margin-bottom: 1.5rem;
}

.support-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.support-main {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.support-perk {
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--accent-soft-text);
    font-weight: 500;
}

.support-psst {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.donate-inside .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* --- Servers Page --- */
.servers-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1 0 auto;
}

.servers-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-color) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.servers-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: var(--accent-soft-text);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.servers-kicker i {
    color: var(--discord-color);
    font-size: 1rem;
}

.servers-hero h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: 0;
    color: var(--text-color);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.servers-subtitle {
    margin: 0.45rem 0 0;
    max-width: 44rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* ---- Plan Usage Summary Card ---- */
.plan-usage-summary {
    display: none;
    margin-bottom: 1rem;
}
.plan-usage-summary.is-visible {
    display: block;
}

.plan-usage-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.plan-usage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.plan-usage-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.plan-usage-plan-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;

    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}
.plan-usage-plan-name i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.plan-usage-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.plan-free-inline {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Metrics grid */
.plan-usage-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.plan-usage-metric {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.8rem 0.9rem;
}

/* ── Shared Usage / Quota Component System ── */
/*
 * Structured layout:
 *   .usage-stat-header  → icon + title + count in one row
 *   .usage-stat-icon    → circular violet icon container
 *   .usage-stat-meta    → title + usage numbers
 *   .usage-bar-track    → tinted, inset-feel background
 *   .usage-bar-fill     → premium violet gradient (always)
 */

/* ── Stat header: icon + meta row ── */
.usage-stat-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.usage-stat-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--usage-icon-bg);
    color: var(--usage-purple-start);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.usage-stat-meta {
    min-width: 0;
    flex: 1;
}

.usage-stat-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
}

.usage-stat-usage {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

/* ── Progress bar ── */
.usage-bar-track,
.plan-usage-bar-track,
.server-info-usage-bar {
    width: 100%;
    height: 5px;
    background: var(--usage-track);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.usage-bar-fill,
.plan-usage-bar-fill,
.server-info-usage-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--usage-purple-start) 0%, var(--usage-purple-end) 100%);
    transition: width 0.5s ease;
    min-width: 0;
}

/* Helper text */
.plan-usage-helper {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-light);
}

.plan-usage-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    min-height: 2.25rem;
}

.plan-usage-inline-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.plan-usage-inline-note--danger {
    color: var(--error-text);
    font-weight: 600;
}

.plan-usage-inline-note .nav-premium-badge {
    margin-right: 0;
    height: 1.55rem;
    padding: 0 0.55rem;
    font-size: 0.68rem;
}

.plan-usage-inline-plan {
    font-weight: 700;
    color: var(--text-color);
}

.plan-usage-inline-sub {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.plan-usage-inline-sub--success {
    color: var(--success-text);
    font-weight: 600;
}

.plan-usage-inline-sub--danger {
    color: var(--error-text);
    font-weight: 600;
}

.plan-usage-action-links {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.plan-usage-action-text {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.plan-usage-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    transition: all 0.2s ease;

    color: var(--text-color);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.plan-usage-action-link:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.plan-usage-action-link:active {
    transform: translateY(0);
}

.plan-usage-action-link--primary {
    color: var(--text-on-accent);
    background: var(--accent-color);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.plan-usage-action-link--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(241, 106, 42, 0.22), var(--shadow-sm);
}

.plan-usage-action-link--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Mobile: stack metrics vertically, let actions wrap naturally */
@media (max-width: 540px) {
    .plan-usage-metrics {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .plan-usage-card {
        padding: 0.75rem 0.85rem;
    }
    .plan-usage-metric {
        padding: 0.6rem 0.75rem;
    }
    .plan-usage-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .plan-usage-action-links {
        flex-shrink: 1;
        width: 100%;
        justify-content: flex-start;
    }
    .plan-usage-action-text {
        white-space: normal;
    }
    .plan-usage-inline-note {
        font-size: 0.78rem;
    }
}

.servers-hero-mark {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    color: var(--accent-color);
    box-shadow: var(--shadow-card);
    font-size: 1.35rem;
}

.servers-panel {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.servers-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
}

.servers-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.servers-panel-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
}

.servers-panel-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}


.servers-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.servers-status-pill.is-loading {
    background: linear-gradient(90deg, var(--accent-soft) 25%, var(--skeleton-shimmer-mid) 50%, var(--accent-soft) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-color: var(--accent-light);
    color: var(--accent-soft-text);
}

.servers-status-pill.is-ready {
    background: var(--success-soft);
    border-color: var(--success-color);
    color: var(--success-text);
}

.servers-status-pill.is-error {
    background: var(--error-soft);
    border-color: var(--error-color);
    color: var(--error-text);
}

/* --- Reload Servers Button --- */
.servers-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reload-servers-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--card-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
}

.reload-servers-btn:hover:not(:disabled) {
    background: var(--accent-soft);
    border-color: var(--accent-light);
    color: var(--accent-color);
}

.reload-servers-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.reload-servers-btn i {
    font-size: 0.75rem;
}

/* --- Server Card Validation States --- */
.server-card.is-validating {
    pointer-events: none;
    opacity: 0.7;
}

.server-card.is-validating::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: -0.675rem;
    margin-left: -0.675rem;
    border: 2.5px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Server card validation result expansion */
.server-card-validation {
    display: none;
    grid-column: 1 / -1;
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
}

.server-card-validation.is-visible {
    display: block;
}

.server-card-validation--error {
    background: var(--error-soft);
    border: 1px solid var(--error-color);
    color: var(--error-text);
}

.server-card-validation--warning {
    background: var(--warning-soft);
    border: 1px solid var(--warning-color);
    color: var(--warning-text);
}

.server-card-validation--info {
    background: var(--info-soft);
    border: 1px solid var(--info-color);
    color: var(--info-text);
}

.server-card-validation-message {
    margin-bottom: 0.5rem;
}

.server-card-validation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.server-card-validation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid currentColor;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}

.server-card-validation-btn:hover {
    opacity: 0.85;
}

.server-card-validation-btn--primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-on-accent);
}

.server-card-validation-btn--primary:hover {
    background: var(--accent-hover);
}

.server-card-validation-btn--secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.server-card-validation-btn--secondary:hover {
    background: var(--bg-secondary);
}

/* Server card position relative for spinner */
.server-card {
    position: relative;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 5rem;
    padding: 0.85rem;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.server-card:hover,
.server-card:focus-visible {
    outline: none;
    border-color: var(--accent-light);
    background: var(--accent-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.server-card.is-selecting {
    border-color: var(--accent-color);
    background: var(--accent-soft);
}

.server-avatar {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.server-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.server-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--discord-color), var(--gradient-stop));
    color: var(--text-on-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.server-card-body {
    min-width: 0;
    flex: 1;
}

.server-card-body h3 {
    margin: 0 0 0.2rem;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-card-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-card-action {
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.72rem;
    transition: all 0.18s ease;
}

.server-card:hover .server-card-action,
.server-card:focus-visible .server-card-action,
.server-card.is-selecting .server-card-action {
    background: var(--accent-color);
    color: var(--text-on-accent);
    transform: translateX(2px);
}

.servers-state {
    grid-column: 1 / -1;
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.servers-state-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--card-color);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.25rem;
}

.servers-state h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
}

.servers-state p {
    margin: 0;
    max-width: 28rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.servers-state--error .servers-state-icon {
    color: var(--error-color);
}

/* Server Card Skeleton Loading */
.server-card-skeleton {
    pointer-events: none;
    cursor: default;
}

/* Plan Usage Card Skeleton */
.plan-usage-card-skeleton {
    pointer-events: none;
    cursor: default;
}
.plan-usage-card-skeleton .usage-bar-track {
    box-shadow: none !important;
}

.skeleton-pulse {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--skeleton-shimmer-mid) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.skeleton-line {
    height: 0.8rem;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--skeleton-shimmer-mid) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.skeleton-line--title {
    height: 1rem;
}

.skeleton-line--meta {
    height: 0.7rem;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    header {
        margin-bottom: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .step-header {
        gap: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .webhook-display {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .webhook-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .footer-big .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-compact-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-right {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
  }
    
 .nav-link {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-text {
        display: inline;
    }

    .servers-page {
        padding: 1.25rem 1rem;
    }

    .servers-hero {
        align-items: flex-start;
    }

    .servers-hero h1 {
        font-size: 1.65rem;
    }

    .servers-hero-mark {
        width: 2.75rem;
        height: 2.75rem;
    }

    .servers-panel-header {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .servers-status-pill {
        width: fit-content;
    }

    .servers-panel {
        padding: 1rem;
    }

    .servers-panel-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .servers-grid {
        gap: 0.75rem;
    }

    .server-card {
        min-height: 4.75rem;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .server-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step:not(:last-child)::after {
        display: none;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
    }
    
    .progress-step span {
        font-size: 0.7rem;
    }
    
    .nav-container {
        gap: 1rem;
    }

    .servers-hero {
        flex-direction: column;
        gap: 1rem;
    }

    .servers-hero-mark {
        display: none;
    }

    .servers-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .server-card {
        min-height: 4.5rem;
        padding: 0.65rem;
        gap: 0.65rem;
    }

    .server-avatar {
        width: 2.25rem;
        height: 2.25rem;
    }

    .server-card-body h3 {
        font-size: 0.88rem;
    }

    .server-card-body p {
        font-size: 0.7rem;
    }

    .server-card-action {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.68rem;
    }

    .servers-panel {
        padding: 0.75rem;
    }

    .servers-panel-header {
        padding-bottom: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .servers-panel-header h2 {
        font-size: 1rem;
    }
}

/* --- Status Page Responsive --- */
@media (max-width: 768px) {
    .status-overview {
        margin: 1.5rem 1rem;
        padding: 1.25rem;
    }

    .status-details {
        padding: 0.5rem 1rem;
    }

    .status-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .status-overview {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }

    .status-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .status-line .label {
        white-space: normal;
    }

    .status-title {
        font-size: 16px;
    }

    .status-subtitle {
        font-size: 13px;
    }

    .status-icon {
        font-size: 2rem;
    }

    .status-skeleton-details {
        padding: 0.5rem 0.75rem;
    }

    .status-loading-state {
        gap: 0.5rem;
    }
}

/* =====================================================
   LANDING PAGE — Premium Discord-Native SaaS
   ===================================================== */

/* ---------- Shared landing container ---------- */
.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Shared section header ---------- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: 0.55rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 46ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- HERO ---------- */
.landing-hero {
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   CINEMATIC HERO PREVIEW
========================================================= */

.hero-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 560px;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.60;
}

.hero-orb-1 {
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.10);
    top: 5%;
    right: 5%;
}

.hero-orb-2 {
    width: 260px;
    height: 260px;
    background: rgba(59, 130, 246, 0.06);
    bottom: 10%;
    left: -5%;
}

.discord-preview-card {
    position: relative;
    width: 500px;
    border-radius: 32px;
    padding: 1.1rem;
    background:
        linear-gradient(180deg, rgba(30, 36, 50, 0.88), rgba(18, 22, 34, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(24px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.50),
        0 0 60px rgba(59, 130, 246, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    isolation: isolate;
    transform: rotate(-2deg);
    animation: heroFloat 6s ease-in-out infinite;
}

.preview-accent {
    position: absolute;

    top: 28px;
    left: 18px;
    bottom: 28px;

    width: 4px;

    border-radius: 999px;

    background:
        linear-gradient(
            to bottom,
            #f59e0b,
            #f97316
        );

    box-shadow:
        0 0 16px rgba(249, 115, 22, 0.35);
}

.preview-header {
    display: flex;

    gap: .9rem;

    padding-left: .9rem;
}

.preview-avatar {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

    border: 2px solid rgba(255,255,255,.1);

    box-shadow:
        0 8px 24px rgba(124,58,237,.35);
}

.preview-meta {
    flex: 1;
}

.preview-top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: .55rem;

    margin-bottom: .55rem;
}

.preview-app-name {
    font-size: 1.05rem;
    font-weight: 800;

    color: white;
}

.preview-app-badge {
    padding: .16rem .48rem;

    border-radius: 9px;

    background: #5865f2;

    color: white;

    font-size: .72rem;
    font-weight: 700;
}

.preview-time {
    color: rgba(255,255,255,.45);

    font-size: .82rem;
}

.preview-message {
    color: rgba(255,255,255,.92);

    font-size: .93rem;
    line-height: 1.55;

    max-width: 92%;
}

.mention-pill {
    display: inline-flex;

    padding: .14rem .45rem;

    border-radius: 8px;

    background: rgba(99,102,241,.32);

    color: #c7d2fe;

    font-weight: 700;

    margin-right: .2rem;
}

.preview-link {
    margin-top: .8rem;

    color: #60a5fa;

    font-size: .82rem;

    word-break: break-word;
}

.preview-embed {
    position: relative;

    margin-top: 1rem;

    margin-left: 5rem;

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(30,35,48,.95),
            rgba(20,24,34,.95)
        );

    border: 1px solid rgba(255,255,255,.06);

    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 20px 40px rgba(0,0,0,.35);
}

.embed-left-bar {
    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 5px;

    background:
        linear-gradient(
            to bottom,
            #3b82f6,
            #60a5fa
        );

    box-shadow:
        0 0 16px rgba(59, 130, 246, 0.30);
}

.embed-content {
    padding: 0.85rem 0.9rem 0.9rem 1rem;
}

.embed-author {
    display: flex;
    align-items: center;

    gap: .7rem;

    margin-bottom: 0.7rem;
}

.embed-author-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(255,255,255,.08);

    box-shadow:
        0 6px 18px rgba(0,0,0,.25);

    flex-shrink: 0;
}

.embed-author span {
    color: white;

    font-weight: 700;

    font-size: .96rem;
}

.embed-author-role {
    color: rgba(255,255,255,.5);

    font-size: .78rem;
    font-weight: 500;

    margin-top: .05rem;
}

.embed-title {
    color: #60a5fa;

    font-size: 1.08rem;
    line-height: 1.35;

    font-weight: 800;

    margin-bottom: 0.45rem;
}

.embed-tags {
    color: rgba(255,255,255,.6);

    font-size: .82rem;

    line-height: 1.6;

    margin-bottom: 0.7rem;
}

.embed-thumbnail {
    width: 100%;

    height: 170px;

    object-fit: cover;
    object-position: center;

    border-radius: 18px;

    display: block;

    box-shadow:
        0 10px 30px rgba(0,0,0,.35);
}

@keyframes heroFloat {

    0% {
        transform: rotate(-2deg) translateY(0px);
    }

    50% {
        transform: rotate(-2deg) translateY(-10px);
    }

    100% {
        transform: rotate(-2deg) translateY(0px);
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .discord-preview-card {
        width: 100%;
        max-width: 520px;

        padding: 1.2rem;

        transform: none;
    }

    .preview-embed {
        margin-left: 0;
    }

    .hero-visual {
        min-height: auto;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .discord-preview-card {
        width: 100%;

        padding: 1rem;

        border-radius: 24px;
    }

    .preview-header {
        gap: .8rem;

        padding-left: .35rem;
    }

    .preview-avatar {
        width: 46px;
        height: 46px;
    }

    .preview-top-row {
        gap: .45rem;
    }

    .preview-app-name {
        font-size: .92rem;
    }

    .preview-app-badge {
        font-size: .65rem;

        padding: .14rem .4rem;
    }

    .preview-time {
        font-size: .74rem;
    }

    .preview-message {
        font-size: .86rem;

        max-width: 100%;
    }

    .preview-link {
        font-size: .76rem;
    }

    .preview-embed {
        margin-top: 1.1rem;

        border-radius: 20px;
    }

    .embed-content {
        padding: .9rem .9rem .95rem 1rem;
        padding-left: 1.15rem;
    }

    .embed-author {
        gap: .6rem;

        margin-bottom: .9rem;
    }

    .embed-author-avatar {
        width: 34px;
        height: 34px;
    }

    .embed-author span {
        font-size: .9rem;
    }

    .embed-author-role {
        font-size: .7rem;
    }

    .embed-title {
        font-size: .96rem;
    }

    .embed-tags {
        font-size: .72rem;

        margin-bottom: .9rem;
    }

    .embed-thumbnail {
        height: 135px;

        border-radius: 14px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .landing-container {
        padding: 0 1rem;
    }

    .discord-preview-card {
        border-radius: 22px;

        padding: .85rem;
    }

    .preview-header {
        gap: .7rem;

        padding-left: .7rem;
    }

    .preview-avatar {
        width: 42px;
        height: 42px;
    }

    .preview-app-name {
        font-size: .88rem;
    }

    .preview-message {
        font-size: .82rem;
    }

    .preview-embed {
        margin-top: 1rem;

        border-radius: 18px;
    }

    .embed-content {
    padding: .8rem .75rem .85rem 1.35rem;
    }

    .embed-title {
        font-size: .9rem;
    }

    .embed-tags {
        font-size: .68rem;
    }

    .embed-thumbnail {
        height: 120px;

        border-radius: 12px;
    }

    .embed-left-bar {
        width: 3px;
        left: 0;
    }

    .embed-author {
        gap: .5rem;
        margin-left: .45rem;
    }

    .embed-author-avatar {
        width: 30px;
        height: 30px;
    }

    .preview-accent {
        left: 12px;
    }
    
}

.landing-hero .landing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-soft-text);
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    width: fit-content;
    letter-spacing: 0.01em;
}

.hero-badge i {
    color: var(--accent-color);
    font-size: 0.65rem;
}

.hero-headline {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin: 0;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--discord-color), var(--gradient-stop));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 46ch;
    margin: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.btn-lg {
    padding: 0.85rem 1.65rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--accent-light);
    color: var(--accent-color);
    background: var(--accent-soft);
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 0.35rem;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-trust i {
    color: var(--success-color);
    font-size: 0.75rem;
}

/* ── Hero visual (screenshot) ── */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-screenshot-wrap {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 8px 40px rgba(0, 0, 0, 0.30),
        0 2px 8px rgba(0, 0, 0, 0.18),
        0 0 60px rgba(59, 130, 246, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-screenshot-wrap:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 50px rgba(0, 0, 0, 0.38),
        0 4px 12px rgba(0, 0, 0, 0.22),
        0 0 80px rgba(59, 130, 246, 0.055);
}

.hero-screenshot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* ── Pipeline (How It Works) ── */
.landing-how {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 150px;
    padding: 1.25rem 0.75rem;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pipeline-node:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.pipeline-node.is-terminal {
    border-color: var(--accent-light);
    background: var(--accent-soft);
}

.pipeline-node.is-terminal .pipeline-node-icon {
    background: var(--accent-color);
    color: var(--text-on-accent);
}

.pipeline-node-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    margin-bottom: 0.7rem;
    border: 1px solid var(--accent-light);
    font-size: 1.1rem;
    color: var(--accent-soft-text);
    transition: background 0.25s ease, color 0.25s ease;
}

.pipeline-node-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.15rem;
}

.pipeline-node-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.pipeline-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0.35rem;
    padding-top: 2.6rem;
}

.pipeline-line {
    width: 2.25rem;
    height: 1.5px;
    background: var(--border-color);
    border-radius: 999px;
    transition: background 0.3s ease;
}

.pipeline-chevron {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-left: -2px;
}

/* ── Features Showcase ── */
.landing-showcase {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.showcase-row:last-of-type {
    margin-bottom: 0;
}

.showcase-row.is-reversed .showcase-visual {
    order: -1;
}

.showcase-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-soft-text);
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.85rem;
}

.showcase-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0 0 0.6rem 0;
    line-height: 1.25;
}

.showcase-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    max-width: 46ch;
}

.showcase-details {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.showcase-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.showcase-details li i {
    color: var(--success-color);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-screenshot-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.035),
        0 4px 24px rgba(0, 0, 0, 0.22),
        0 1px 4px rgba(0, 0, 0, 0.12),
        0 0 40px rgba(59, 130, 246, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 520px;
}

.showcase-screenshot-wrap:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.30),
        0 2px 8px rgba(0, 0, 0, 0.18),
        0 0 60px rgba(59, 130, 246, 0.04);
}

.showcase-screenshot {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Mobile teaser (subtle) ── */
.showcase-mobile-teaser {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2rem;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-top: 1rem;
}

.showcase-mobile-text {
    flex: 1;
}

.showcase-mobile-text .showcase-title {
    font-size: 1.25rem;
}

.showcase-mobile-visual {
    flex-shrink: 0;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.20));
}

.showcase-mobile-screenshot {
    display: block;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 0 1px var(--border-color);
}

/* ── Dashboard Showcase ── */
.landing-dashboard {
    padding: 5rem 0 6rem;
    border-top: 1px solid var(--border-color);
}

.dashboard-showcase {
    text-align: center;
}

.dashboard-showcase-header {
    margin-bottom: 3rem;
}

.dashboard-showcase-frame {
    position: relative;
    display: inline-block;
    max-width: 960px;
    width: 100%;
}

.dashboard-showcase-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 8px 44px rgba(0, 0, 0, 0.32),
        0 2px 10px rgba(0, 0, 0, 0.16),
        0 0 50px rgba(59, 130, 246, 0.035);
    position: relative;
    z-index: 1;
}

.dashboard-showcase-shadow {
    position: absolute;
    bottom: -16px;
    left: 4%;
    width: 92%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Bottom CTA ── */
.landing-cta {
    padding: 4rem 0 5rem;
    border-top: 1px solid var(--border-color);
}

.cta-card {
    text-align: center;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    box-shadow: var(--shadow-card);
}

.cta-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.cta-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.75rem 0;
}

.cta-card .btn-discord {
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .landing-hero .landing-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-content {
    text-align: center;
    align-items: center;
    }

    .hero-subheadline {
        max-width: 34ch;
    }

    .hero-actions {
        justify-content: center;
    }

    .discord-preview-card {
        margin-top: 0.5rem;
    }

    .hero-screenshot-wrap {
        max-width: 480px;
        margin: 0 auto;
    }

    .pipeline {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .pipeline-node {
        width: 130px;
        padding: 1rem 0.5rem;
    }

    .pipeline-connector {
        display: none;
    }

    .showcase-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .showcase-row.is-reversed .showcase-visual {
        order: 0;
    }

    .showcase-visual {
        order: -1;
    }

    .showcase-screenshot-wrap {
        max-width: 100%;
    }

    .showcase-mobile-teaser {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .showcase-mobile-screenshot {
        max-width: 160px;
    }
}

@media (max-width: 540px) {
    .landing-hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-headline {
        font-size: 1.6rem;
    }

    .hero-subheadline {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-ghost {
        justify-content: center;
    }

    .hero-trust {
        gap: 0.65rem;
        justify-content: flex-start;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .showcase-title {
        font-size: 1.15rem;
    }

    .showcase-desc {
        font-size: 0.88rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .cta-card {
        padding: 2.25rem 1.25rem;
    }

    .landing-how,
    .landing-showcase,
    .landing-dashboard,
    .landing-cta {
        padding: 3.5rem 0;
    }

    .dashboard-showcase-img {
        border-radius: var(--radius-lg);
    }

    .pipeline-node {
        width: 110px;
        padding: 0.85rem 0.4rem;
    }

    .pipeline-node-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .pipeline-node-label {
        font-size: 0.76rem;
    }

    .pipeline-node-hint {
        font-size: 0.68rem;
    }

    .showcase-mobile-teaser {
        padding: 1.5rem 1rem;
    }
}

/* Light-mode specific overrides for screenshots */
[data-theme="light"] .hero-screenshot-wrap {
    box-shadow:
        0 0 0 1px var(--border-color),
        0 8px 32px rgba(0, 0, 0, 0.10),
        0 2px 6px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-screenshot-wrap:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 12px 48px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .showcase-screenshot-wrap {
    box-shadow:
        0 0 0 1px var(--border-color),
        0 4px 18px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .showcase-screenshot-wrap:hover {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dashboard-showcase-img {
   box-shadow:
       0 0 0 1px var(--border-color),
       0 6px 28px rgba(0, 0, 0, 0.10),
       0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ================================================================
  LEGAL PAGES (Terms, Privacy, Refund, Subscription & Billing)
  ================================================================ */
.legal-page {
 min-height: 100vh;
 padding: 2rem 1rem 4rem;
 flex: 1 0 auto;
}

.legal-container {
 max-width: 780px;
 margin: 0 auto;
}

.legal-header {
 margin-bottom: 2.5rem;
 padding-bottom: 1.5rem;
 border-bottom: 1px solid var(--border-color);
}

.legal-eyebrow {
 color: var(--accent-color);
 font-weight: 700;
 font-size: 0.78rem;
 text-transform: uppercase;
 letter-spacing: 0.08em;
 margin: 0 0 0.5rem;
}

.legal-header h1 {
 font-size: clamp(1.8rem, 3.5vw, 2.5rem);
 font-weight: 800;
 line-height: 1.1;
 margin: 0 0 0.5rem;
 color: var(--text-color);
}

.legal-date {
 color: var(--text-muted);
 font-size: 0.875rem;
 margin: 0;
}

.legal-body {
 display: flex;
 flex-direction: column;
 gap: 2rem;
}

.legal-section h2 {
 font-size: 1.25rem;
 font-weight: 700;
 color: var(--text-color);
 margin: 0 0 0.75rem;
}

.legal-section h3 {
 font-size: 1.05rem;
 font-weight: 600;
 color: var(--text-secondary);
 margin: 1.25rem 0 0.6rem;
}

.legal-section p {
 color: var(--text-secondary);
 line-height: 1.7;
 margin: 0 0 0.75rem;
 font-size: 0.95rem;
}

.legal-section ul,
.legal-section ol {
 margin: 0.5rem 0 0.75rem 1.5rem;
 color: var(--text-secondary);
 font-size: 0.95rem;
 line-height: 1.7;
}

.legal-section li {
 margin-bottom: 0.4rem;
}

.legal-section li:last-child {
 margin-bottom: 0;
}

.legal-section a {
 color: var(--accent-color);
 text-decoration: none;
 font-weight: 500;
}

.legal-section a:hover {
 text-decoration: underline;
}

.legal-section strong {
 color: var(--text-color);
}

/* Callout notice box — used by Subscription page */
.legal-notice {
 display: flex;
 align-items: flex-start;
 gap: 0.85rem;
 padding: 1.15rem 1.25rem;
 border-radius: var(--radius-lg);
 background: var(--accent-soft);
 border: 1px solid rgba(241, 106, 42, 0.2);
 color: var(--accent-soft-text);
 font-size: 0.95rem;
 line-height: 1.6;
}

.legal-notice i {
 font-size: 1.15rem;
 flex-shrink: 0;
 margin-top: 0.1rem;
 color: var(--accent-color);
}

.legal-notice strong {
 color: var(--accent-color);
}

/* Data tables — used by Privacy Policy and Subscription pages */
.legal-table {
 width: 100%;
 border-collapse: collapse;
 margin: 0.75rem 0 1rem;
 font-size: 0.9rem;
}

.legal-table th {
 text-align: left;
 padding: 0.65rem 0.85rem;
 font-weight: 600;
 color: var(--text-color);
 background: var(--surface-elevated);
 border-bottom: 1px solid var(--border-color);
 font-size: 0.82rem;
 text-transform: uppercase;
 letter-spacing: 0.04em;
}

.legal-table td {
 padding: 0.6rem 0.85rem;
 color: var(--text-secondary);
 border-bottom: 1px solid var(--border-light);
}

.legal-table tr:last-child td {
 border-bottom: none;
}

.legal-table code {
 font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
 font-size: 0.8rem;
 color: var(--accent-color);
 background: var(--accent-soft);
 padding: 0.1rem 0.35rem;
 border-radius: 4px;
}

@media (max-width: 768px) {
 .legal-page {
   padding: 1.25rem 1rem 3rem;
 }

 .legal-header h1 {
   font-size: 1.6rem;
 }

 .legal-table {
   font-size: 0.8rem;
 }

 .legal-table th,
 .legal-table td {
   padding: 0.5rem 0.6rem;
 }

 .footer-top {
   flex-direction: column;
   gap: 2rem;
 }

 .footer-columns {
   gap: 1.5rem;
 }

 .footer-bottom {
   flex-direction: column;
   align-items: flex-start;
 }
}

/* ── Updates Page Header ── */
.updates-page-kicker {
  margin: 0 0 0.25rem;
  color: var(--accent-soft-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Updates Page Pagination ── */
.updates-pagination {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 1rem;
 padding: 1rem 0 0.5rem;
 max-width: 900px;
 margin: 0 auto;
}

.updates-pagination-btn {
 display: inline-flex;
 align-items: center;
 gap: 0.35rem;
 padding: 0.45rem 1rem;
 background: var(--card-color);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 color: var(--text-color);
 font-size: 0.82rem;
 font-weight: 500;
 font-family: inherit;
 cursor: pointer;
 transition: all 0.2s ease;
}

.updates-pagination-btn:hover:not(:disabled) {
 background: var(--accent-soft);
 border-color: var(--accent-light);
 color: var(--accent-color);
}

.updates-pagination-btn:disabled {
 opacity: 0.35;
 cursor: not-allowed;
}

.updates-pagination-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 100px;
  text-align: center;
}

/* ── Updates Category Badge ── */
.updates-category-badge {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.updates-category-badge--feature      { background: var(--accent-soft); color: var(--accent-color); }
.updates-category-badge--fix           { background: var(--success-soft); color: var(--success-text); }
.updates-category-badge--announcement  { background: var(--info-soft); color: var(--info-text); }
.updates-category-badge--other         { background: var(--bg-secondary); color: var(--text-muted); }
