/*
=============================================================================
WARNING: DO NOT ADD BOX-SHADOW FOR DROP SHADOWS OR DEPTH EFFECTS
=============================================================================
Box-shadow should ONLY be used for glow effects (like button/element highlights).
NEVER use box-shadow to create drop shadows, depth, or elevation effects.
Existing glow effects (colored box-shadows on active/selected states) are fine.
=============================================================================
*/

/* GG Sans Font - Using Medium as base, Bold for emphasis */
@font-face {
    font-family: 'gg sans';
    src: url('fonts/ggsans-Medium.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'gg sans Bold';
    src: url('fonts/ggsans-Bold.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'ABC Ginto Nord';
    src: url('fonts/ABCGintoNord-Black-Trial.otf') format('opentype');
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'gg sans';
}

html {
    scroll-behavior: smooth;
}

/* Native scrollbar with dark theme colors */
* {
    scrollbar-color: #5c5c5c #2a2a2a;
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: #2a2a2a;
}

*::-webkit-scrollbar-thumb {
    background: #5c5c5c;
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #6c6c6c;
}

body {
    overscroll-behavior-y: none;
}

/* Ensure ALL form elements use gg sans */
input, button, select, textarea, label, a, span, p, h1, h2, h3, h4, h5, h6, div {
    font-family: 'gg sans';
}

:root {
    --primary: #335FFF;
    --primary-light: #4575FF;
    --dark: #121215;
    --darker: #0a0a0c;
    --light: #ffffff;
    --bg-secondary: #191A1F;
    --bg-tertiary: #282930;
    --scroll-color: #666770;
    --border-color: #335FFF;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'gg sans';
    color: #ffffff;
    overflow-x: hidden;
}

/* Panel */
.panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* About Section - Optimized with GPU acceleration */
.about-section {
    padding: 4rem 2rem;
    margin-top: 50px;
    background: #121215;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    contain: layout style paint;
}

.about-section.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.about-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.about-description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #81828A;
    text-align: center;
}

/* Why Discord Section */
.why-discord-section {
    padding: 2.5rem 2rem;
    padding-top: 55px;
    padding-bottom: 4rem;
    background: transparent;
    position: relative;
    z-index: 3;
    overflow: visible;
    margin-top: 0;
}

.why-discord-title {
    font-size: 2rem;
    font-family: 'ABC Ginto Nord';
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}


/* Discord orbiting image - anchored to center, near title right edge */
.why-discord-orbiting {
    position: absolute;
    top: -40px;
    left: calc(50% + 380px);
    width: 138px;
    height: auto;
    pointer-events: none;
}

/* Wumpus character - anchored to center, left of stats */
.why-discord-wumpus {
    position: absolute;
    left: calc(50% - 560px);
    bottom: 20px;
    z-index: 1;
    pointer-events: none;
}

.why-discord-wumpus-img {
    width: 220px;
    height: auto;
    display: block;
}

.why-discord-wumpus-leaf {
    position: absolute;
    top: -50px;
    left: calc(50% - 40px);
    transform: translateX(-50%);
    z-index: 3;
    animation: leafSway 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    transform-origin: center bottom;
    contain: layout style paint;
}

.why-discord-wumpus-leaf img {
    width: 85px;
    height: auto;
    transform: translateZ(0);
    will-change: transform;
}

/* Content wrapper - positions wordmark behind title+stats */
.why-discord-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Wordmark centered vertically on title+stats */
.discord-wordmark-bottom {
    position: absolute;
    top: calc(50% - 21px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1440px;
    height: auto;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

/* Source text under stats */
.discord-stats-source {
    margin-top: 40px;
    font-size: 0.8925rem;
    color: #81828A;
    font-family: 'gg sans';
    text-align: center;
}

/* Discord stats grid */
.discord-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.discord-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.discord-stat-item .stat-number {
    font-size: 3rem;
    font-family: 'ABC Ginto Nord' !important;
    color: #ffffff;
    line-height: 1;
    contain: layout style paint;
    font-variant-numeric: tabular-nums;
}

.discord-stat-item .stat-label {
    font-size: 0.9rem;
    color: #ffffff;
    font-family: 'gg sans Bold', 'gg sans' !important;
    letter-spacing: 0.5px;
}


/* Optimized keyframes - only transform (GPU accelerated) */
@keyframes leafSway {
    0%, 100% {
        transform: translateX(-50%) rotate(-8deg);
    }
    50% {
        transform: translateX(-50%) rotate(8deg);
    }
}
.panel-container {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

/* Sticky header wrapper - contains logo/profile only */
.navbar-sticky-header {
    position: sticky;
    top: 0;
    z-index: 103; /* Higher than navbar so profile/gear are clickable */
    background: transparent;
    pointer-events: none;
}

/* Only clickable elements in sticky header, not the full-width containers */
.navbar-sticky-header .navbar-logo-img,
.navbar-sticky-header .navbar-profile-container,
.navbar-sticky-header .navbar-settings-icon,
.navbar-sticky-header .navbar-auth-link {
    pointer-events: auto;
}

/* Navbar - contains nav links, overlaps with sticky header to center vertically */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: transparent;
    z-index: 101; /* Below sticky header */
    position: relative;
    width: 100%;
    height: 48px;
    margin-top: -48px; /* Pull up to overlap with logo/profile row */
    pointer-events: none;
}

/* Only nav links should be clickable, not the container */
.navbar .nav-link,
.navbar .nav-link-disabled {
    pointer-events: auto;
}

/* Dashboard uses fixed header instead of sticky (not a scroll page) */
.dashboard-page .navbar-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 103; /* Higher than navbar so profile/gear are clickable */
    background: transparent;
    pointer-events: none;
}

/* Only clickable elements in sticky header, not the full-width containers */
.dashboard-page .navbar-sticky-header .navbar-logo-img,
.dashboard-page .navbar-sticky-header .navbar-profile-container,
.dashboard-page .navbar-sticky-header .navbar-settings-icon,
.dashboard-page .navbar-sticky-header .navbar-auth-link {
    pointer-events: auto;
}

/* Dashboard nav links - show centered, fixed position to match sticky header */
.dashboard-page .navbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(48px + 1rem); /* Match sticky header height (48px + padding) */
    margin-top: 0;
    z-index: 101; /* Below sticky header */
    pointer-events: none;
}

/* Only nav links should be clickable, not the container */
.dashboard-page .navbar .nav-link,
.dashboard-page .navbar .nav-link-disabled {
    pointer-events: auto;
}

.dashboard-page .navbar .nav-link.disabled {
    pointer-events: none;
}

/* Hide desktop nav on mobile for dashboard */
@media (max-width: 1150px) {
    .dashboard-page .navbar {
        display: none;
    }
}

/* Logo + profile row within sticky header */
.navbar-fixed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem; /* Same gap on all sides */
    height: 48px;
    box-sizing: content-box;
}

.navbar-fixed-left,
.navbar-fixed-right {
    display: flex;
    align-items: center;
}

/* Desktop navbar row */
.navbar-fixed-desktop {
    display: flex;
}

/* Mobile fixed navbar - fixed position, hidden on desktop */
.navbar-fixed-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 102;
    pointer-events: none;
}

.navbar-fixed-mobile > * {
    pointer-events: auto;
}

/* Desktop nav links container - centered in viewport */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.navbar-content-desktop {
    display: flex;
}

.navbar-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.navbar-title {
    font-size: 2.1rem;
    color: #ffffff;
    margin: 0;
}

.navbar-title .gradient-z {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(89, 215, 140, 0.6)) drop-shadow(0 0 16px rgba(89, 215, 140, 0.4));
}

.navbar-subtitle {
    font-size: 0.9rem;
    color: #81828A;
    margin: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    user-select: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    color: #ffffff;
    font-size: 1rem;
}

.user-id {
    font-size: 0.85rem;
    color: #81828A;
}

/* Auth buttons (login/signup when not logged in) */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.auth-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.auth-btn.login-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.auth-btn.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.auth-btn.signup-btn {
    background: #ffffff;
    color: #121215;
    border: 2px solid #ffffff;
}

.auth-btn.signup-btn:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Desktop nav links - centered in navbar content */
.nav-links-desktop {
    /* Already centered by parent flexbox */
}

.nav-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navbar Profile Container */
.navbar-profile-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #1A1A1E;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: none;
    width: 185px;
    min-height: 48px;
}

.navbar-profile-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-welcome-text {
    color: #dcddde;
    font-size: 0.9rem;
}

.navbar-settings-icon {
    width: 29px;
    height: 29px;
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Navbar Bottom Links */
.navbar-bottom-links {
    position: absolute;
    bottom: -28px;
    left: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Navbar Auth Links (for non-logged-in users) */
.navbar-auth-link {
    background: transparent;
    border: none;
    color: #59d78c;
    padding: 0;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    margin: auto;
    transition: text-decoration 0.2s;
}

.navbar-auth-link:hover {
    text-decoration: underline;
}

/* Desktop logo - same height as profile section (48px) */
.navbar-logo-img {
    height: 48px;
    display: block;
    object-fit: contain;
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

/* ==================== MOBILE NAVBAR ==================== */
@media (max-width: 1150px) {
    /* Hide desktop sticky header on mobile */
    .navbar-sticky-header {
        display: none;
    }

    /* Hide desktop fixed navbar and content */
    .navbar-fixed-desktop {
        display: none;
    }

    .navbar-content-desktop {
        display: none;
    }

    /* Show mobile fixed navbar */
    .navbar-fixed-mobile {
        display: flex;
        background: transparent; /* JS handles fade */
        height: auto;
    }

    /* Hide navbar element on mobile (content is in fixed bar) */
    .navbar {
        display: none;
        margin-top: 0; /* Reset negative margin on mobile */
    }

    /* Prevent horizontal scroll */
    .page-scroll-container {
        overflow-x: hidden;
    }

    /* Mobile profile container - compact version */
    .navbar-profile-mobile {
        width: 170px;
        min-height: 40px;
        padding: 6px 10px;
        gap: 8px;
    }

    .navbar-profile-mobile .navbar-profile-circle {
        width: 28px;
        height: 28px;
    }

    .navbar-profile-mobile .navbar-settings-icon {
        width: 24px;
        height: 24px;
    }

    /* Mobile welcome text - fixed width sized to fit all slideshow texts, centered */
    .navbar-profile-mobile .navbar-welcome-text {
        font-size: 0.75rem;
        width: 90px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #121215;
        border: 1px solid #222225;
        cursor: pointer;
        padding: 0.25rem;
        border-radius: 4px;
        width: 32px;
        height: 32px;
        position: relative;
    }

    .mobile-menu-icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) saturate(100%) invert(100%);
    }

    /* When menu is open - hide the topbar button */
    .mobile-menu-btn.active {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu - slides from right */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #121215;
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 56px 0.5rem 2rem 0.5rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Mobile menu header - mirrors navbar structure exactly */
.mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
}

/* Mobile menu close button - white icon */
.mobile-menu-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.mobile-menu-close-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Mobile menu logo - white */
.mobile-menu-logo {
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.mobile-menu-logo-img {
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Mobile nav links - vertical list with dividers like footer */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 1rem 0;
    transition: opacity 0.2s ease;
    position: relative;
}

/* Dividers using pseudo-element so they're not affected by disabled opacity */
.mobile-nav-link + .mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-link:hover {
    opacity: 0.7;
}

.mobile-nav-link.disabled {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    pointer-events: none;
}

/* Menu Icon */
.menu-icon {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon svg {
    color: #ffffff;
    stroke: #ffffff;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 2rem;
    background: #1a1a1d;
    border: 1px solid #ffffff;
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-item.logout-item {
    color: #ff0046;
}

.dropdown-item.logout-item:hover {
    background: rgba(255, 0, 70, 0.2);
    color: #ff0046;
}

.dropdown-item.discord-item {
    color: #5662F6;
}

.dropdown-item.discord-item:hover {
    background: rgba(86, 98, 246, 0.2);
    color: #5662F6;
}

.dropdown-item.admin-item {
    color: #ff0046;
}

.dropdown-item.admin-item:hover {
    background: rgba(255, 0, 70, 0.2);
    color: #ff0046;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Login Button in Navbar */
.login-btn-nav {
    padding: 0.75rem 2rem;
    background: #335FFF;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn-nav:hover {
    transform: scale(1.015);
}

.login-btn-nav:active {
    transform: scale(1.01);
}

/* Home Page Content */
.home-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    max-width: 100%;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Hero top section - logo and text side by side */
.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Hero Fade-in Animation - Optimized for 60fps */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-fade-in {
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: opacity, transform;
    contain: layout style paint;
}

/* Hero Heading Section */
.hero-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-brand {
    font-size: 3.15rem;
    color: #ffffff;
    margin: 0;
}

.hero-brand .gradient-z {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(89, 215, 140, 0.6)) drop-shadow(0 0 16px rgba(89, 215, 140, 0.4));
}

.hero-tagline-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 3.25rem;
}

.hero-tagline {
    font-size: 2.1rem;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.hero-tagline .teal-gradient {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ffffff 120px, #ffffff calc(100% - 120px), transparent);
    margin-top: 5px;
}

.hero-title {
    font-size: 1.225rem;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.5px;
    min-height: 3em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    contain: layout style paint;
}

.hero-title.fade-out {
    opacity: 0 !important;
}

.hero-title.fade-in {
    opacity: 1 !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.discord-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(to bottom right, #28528C, #0D0D1D);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.discord-btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.discord-btn:hover {
    opacity: 0.9;
}

.view-pricing-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border: none;
    border-radius: 4px;
    color: #121215;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Hero Panel Images - 3 images with rotation */
.hero-panel-images {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: calc(1.5rem - 20px);
    padding: 3rem 0;
    width: 100%;
    max-width: 1365px;
    justify-content: center;
}

.hero-panel-image {
    flex: 1;
    max-width: 537px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #222225;
    position: relative;
}

.hero-panel-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Left image - rotated inward (top-left higher) */
.hero-panel-left {
    transform: translateY(5px) rotate(-3deg);
}

/* Center image - no rotation, stays level, teal border and glow */
.hero-panel-center {
    transform: translateY(15px);
    z-index: 1;
    border-color: #59d78c;
    filter: drop-shadow(0 0 16px rgba(89, 215, 140, 0.3));
}

/* Right image - rotated inward (top-right higher) */
.hero-panel-right {
    transform: translateY(5px) rotate(3deg);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: calc(6.1875rem - 30px);
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-text {
    font-size: 0.9rem;
    color: #81828A;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: #81828A;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

.logout-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 0, 70, 0.2);
    border: 2px solid #ff0046;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 0, 70, 0.4);
}

.logout-btn:hover {
    transform: scale(1.015);
}

.logout-btn:active {
    transform: scale(1.01);
}


/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: calc(100vh - 150px);
    min-height: 0;
    overflow: hidden;
}

.selection-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: none;
    overflow: hidden;
}

.unified-header {
    margin-bottom: 1rem;
}

.header-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.servers-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.channels-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.action-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: none;
    overflow: hidden;
}

.selected-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0.55;
    min-height: 0;
    margin-bottom: 1rem;
}

.message-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    flex: 0.85;
}

.panel-header {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Channel Search Bar */
.channels-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}

.channels-search .search-input {
    width: 100%;
}

/* Channels Notice */
.channels-notice {
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #81828A;
    text-align: center;
    line-height: 1.4;
}

.search-input {
    padding: 0.35rem 0.75rem;
    padding-left: 2.5rem;
    background-color: #1A1A1E;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2381828A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 16px 16px;
    border: 1px solid #222225;
    border-radius: 8px;
    color: #81828A;
    font-size: 0.85rem;
    font-family: 'gg sans';
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search-input:focus {
    outline: none;
    background-color: #1A1A1E;
    border-color: #222225;
}

.search-input:active {
    outline: none;
    border-color: #222225;
}

.search-input::placeholder {
    color: #81828A;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Server Search */
.server-search-container {
    width: 100%;
}

.server-search-container .search-input {
    width: 100%;
}

/* Selected Channels Search */
.selected-search-container {
    width: 100%;
}

.selected-search-container .search-input {
    width: 100%;
}

/* Server List Styling */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: transparent;
    padding: 0.75rem;
    border-radius: 8px;
    flex: 1;
    min-height: 0;
    max-height: 100%;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #212227;
    border: 2px solid transparent;
}

.server-item:hover {
    transform: scale(1.015);
}

.server-item.active {
    background: #212227;
    border: 2px solid rgba(89, 215, 140, 0.6);
    box-shadow: 0 0 15px rgba(89, 215, 140, 0.4);
}

.server-item.has-selection {
    border-color: transparent;
}

.server-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: none;
}

.server-icon-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: none;
}

.server-info {
    flex: 1;
    min-width: 0;
}

.server-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.server-count {
    font-size: 0.7rem;
    color: #81828A;
    margin-top: 0.15rem;
    letter-spacing: 0.5px;
}

/* Channels List Styling */
.channels-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    min-height: 0;
    max-height: 100%;
    background: transparent;
    padding: 0.75rem;
    flex: 1;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #212227;
    border: 2px solid transparent;
}

.channel-item:hover {
    transform: scale(1.015);
}

.channel-item.selected {
    background: #212227;
    border: 2px solid rgba(51, 95, 255, 0.6);
    box-shadow: 0 0 15px rgba(51, 95, 255, 0.4);
}

/* Channel Tick Icon */
.channel-tick {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

/* Modern Checkbox Styling */
.channel-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    flex-shrink: 0;
    position: relative;
}

.channel-checkbox:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
}

.channel-checkbox:checked {
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.channel-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
}

.channel-label {
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-selection {
    color: #81828A;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
}

/* When channels-list only contains a no-selection or loading message, center it */
.channels-list:has(.no-selection),
.channels-list:has(.loading-container) {
    position: relative;
}

.channels-list > .no-selection,
.channels-list > .loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-container {
    color: #81828A;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Loading dots animation - centralized, do not duplicate */
.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.loading-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #b5bac1;
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite both;
    will-change: opacity, transform;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.16s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.32s;
}

/* Dark dot variant for light backgrounds */
.loading-dots.dark .dot {
    background-color: #121215;
}

@keyframes dot-pulse {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Selected Channels Display */
.selected-channels-tags {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    flex: 1;
    background: transparent;
    padding: 0.75rem;
    border-radius: 8px;
    min-height: 0;
    max-height: 100%;
}

.selected-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #212227;
    border: none;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

.selected-tag.failed-channel {
    background: rgba(255, 0, 70, 0.3);
    border: none;
}

.selected-tag.rate-limited {
    background: rgba(250, 166, 26, 0.3);
    border: none;
}

.failure-label {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    flex-shrink: 0;
    border: none;
}

.failure-label.permission {
    background: linear-gradient(to bottom, #ff0046, #930028);
    color: #ffffff;
}

.failure-label.ratelimit {
    background: linear-gradient(to bottom, #faa61a, #c77800);
    color: #121215;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 0.75rem;
    border: none;
}

.tag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-text {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-remove {
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #ff0046;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tag-remove:hover {
    background: rgba(255, 0, 70, 0.2);
    transform: scale(1.1);
}

.clear-all-btn {
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border: none;
    border-radius: 8px;
    color: #121215;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}



.search-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #121215;
}

.search-tag-remove {
    cursor: pointer;
    font-size: 0.9rem;
    color: #121215;
}

/* Message Input */
.message-input {
    flex: 1;
    padding: 1rem;
    background: #212227;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    transition: all 0.3s ease;
    min-height: 200px;
}

.message-input:focus {
    outline: none;
    background: #212227;
}

.message-input::placeholder {
    color: #81828A;
}

/* Message Footer */
.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.char-count {
    font-size: 0.9rem;
    color: #81828A;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border: none;
    border-radius: 4px;
    color: #121215;
    font-size: 1rem;
    font-family: 'gg sans Bold' !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
}

.empty-icon {
    font-size: 4rem;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #F7F7F8;
}

.empty-state p {
    color: #81828A;
}

/* Settings Page */
.settings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: calc(100vh - 150px);
    box-sizing: border-box;
    width: 100%;
}

.return-panel-btn {
    padding: 1rem 2rem;
    background: #335FFF;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    align-self: flex-start;
}

.return-panel-btn:hover {
    transform: scale(1.015);
}

.return-panel-btn:active {
    transform: scale(1.01);
}

.support-notice {
    text-align: center;
    color: #81828A;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.settings-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 1.5rem;
    align-content: start;
    width: 100%;
    padding-bottom: 4rem;
    box-sizing: border-box;
}

.settings-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.settings-panel-header {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.settings-panel-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    align-items: stretch;
}

.usage-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.usage-label {
    font-size: 0.9rem;
    color: #81828A;
}

.usage-value {
    font-size: 1.75rem;
    color: #ffffff;
}

.usage-progress-bar {
    width: 100%;
    height: 8px;
    background: #121215;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.usage-progress-fill {
    height: 100%;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* General Settings Styles */
.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-label {
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.setting-description {
    font-size: 0.9rem;
    color: #81828A;
    margin-top: -0.5rem;
}

.delete-account-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to bottom, #ff0046, #930028);
    color: #121215;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'gg sans Bold', 'gg sans' !important;
    cursor: pointer;
    width: 100%;
}

.delay-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

.delay-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delay-option:hover {
    background: transparent;
}

.delay-option:has(.delay-radio:checked) {
    background: transparent;
}

.delay-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #81828A;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.delay-radio:hover {
    border-color: #ffffff;
}

.delay-radio:checked {
    border-color: #335FFF;
    background: transparent;
}

.delay-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #335FFF;
    border-radius: 50%;
}

.delay-radio:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.delay-option:has(.delay-radio:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.delay-option-label {
    font-size: 0.9rem;
    color: #dcddde;
    cursor: pointer;
}

/* Responsive breakpoints removed - full-width layout at all resolutions
   Mobile-specific layouts will be added later */

/* Purchase Page Styles */
.purchase-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.purchase-mode-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.mode-btn {
    flex: 1;
    max-width: 300px;
    padding: 0.75rem 2rem;
    background: transparent;
    color: #ffffff;
    border: 2px solid #59d78c;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(89, 215, 140, 0.1);
    border-color: #59d78c;
}

.mode-btn.active {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border-color: #59d78c;
    color: #121215;
    box-shadow: 0 0 20px rgba(89, 215, 140, 0.3);
}

/* Purchase View Switch Button */
.purchase-view-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.view-switch-btn {
    background: transparent;
    border: none;
    color: #59d78c;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.purchase-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.purchase-section.fade-out {
    opacity: 0;
}

.purchase-section.fade-in {
    opacity: 1;
}

.billing-toggle {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.billing-label {
    font-size: 1rem;
    color: #ffffff;
    font-family: 'gg sans Bold', 'gg sans' !important;
}

.billing-label:first-child {
    text-align: right;
}

.billing-label:last-child {
    text-align: left;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Monthly state (unchecked): transparent background, gradient circle */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 2px solid #59d78c;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    transition: 0.4s;
    border-radius: 50%;
}

/* Yearly state (checked): gradient background, dark circle */
input:checked + .toggle-slider {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: #121215;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    flex: 0;
    align-content: start;
}

.plan-card {
    /* Set to 'transparent' for see-through cards, or use a color like '#121215' */
    background: #121215;
    border: 1px solid #222225;
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-height: 450px;
    opacity: 1;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
}

.plan-card.fade-out {
    opacity: 0;
}

.plan-card.fade-in {
    opacity: 1;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-family: 'ABC Ginto Nord' !important;
}

.plan-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 120px;
}

.price-row {
    display: flex;
    align-items: baseline;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.price-row.fade-out {
    opacity: 0;
}

.price-row.fade-in {
    opacity: 1;
}

.price {
    font-size: 3.5rem;
    color: #ffffff;
    line-height: 1;
    font-family: 'ABC Ginto Nord' !important;
}

.period {
    font-size: 0.9rem;
    color: #81828A;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'gg sans Bold', 'gg sans' !important;
}

.period.fade-out {
    opacity: 0;
}

.period.fade-in {
    opacity: 1;
}

.yearly-savings {
    font-size: 0.75rem;
    color: #335FFF;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'gg sans Bold', 'gg sans' !important;
}

.yearly-savings.fade-out {
    opacity: 0;
}

.yearly-savings.fade-in {
    opacity: 1;
}

.plan-description {
    font-size: 0.95rem;
    color: #81828A;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature span {
    font-size: 0.95rem;
    color: #ffffff;
    font-family: 'gg sans' !important;
}

.check-icon {
    flex-shrink: 0;
}

.purchase-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    color: #121215;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'gg sans Bold', 'gg sans' !important;
    cursor: pointer;
    margin-top: auto;
}

.purchase-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Signup/Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem;
}

.auth-form {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: #1A1A1E;
    border: none;
    border-radius: 8px;
    text-align: center;
}

.form-title {
    font-size: 1.75rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0px;
}

.form-group-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.token-input {
    padding: 1rem;
    background: #212227;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'gg sans';
    transition: all 0.3s ease;
}

.token-input:focus {
    outline: none;
    background: #212227;
}

.token-input::placeholder {
    color: #81828A;
}

.submit-btn {
    padding: 1rem 2rem;
    background: #335FFF;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'gg sans Bold' !important;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: scale(1.015);
}

.submit-btn:active {
    transform: scale(1.01);
}

/* Login/Signup page buttons - teal gradient */
#login-btn,
#signup-btn {
    background: linear-gradient(to bottom, #59d78c, #3c935f) !important;
    color: #121215 !important;
    border: none !important;
}

.error-message {
    color: #ff0046;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.help-btn {
    background: none;
    border: none;
    color: #81828A;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.help-btn:hover {
    color: #335FFF;
    text-decoration: underline;
}

.security-warning {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    color: #FFC107;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.5;
}

/* Adjust Plan Button */
.adjust-plan-btn {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    color: #121215;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

/* Grey Gradient Buttons */
.grey-btn {
    background: linear-gradient(to bottom, #3a3a4d, #2a2a3d);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grey-btn:hover {
    background: linear-gradient(to bottom, #4a4a5d, #3a3a4d);
}

/* Teal Gradient Buttons */
.teal-btn {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border: none;
    border-radius: 8px;
    color: #121215;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Discord/Purple Gradient Buttons */
.discord-btn {
    background: linear-gradient(to bottom right, #28528C, #0D0D1D);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* View Mode Button hover styles */
.view-mode-btn:hover {
    filter: brightness(0.85);
}

.view-mode-btn.active:hover {
    background: linear-gradient(to bottom, #59d78c, #3c935f) !important;
    filter: none;
}

/* Billing View Button hover styles */
.billing-view-btn:hover {
    filter: brightness(0.85);
}

.billing-view-btn.active:hover {
    background: linear-gradient(to bottom, #59d78c, #3c935f) !important;
    filter: none;
}

/* Invoice View Button hover styles */
.invoice-view-btn:hover {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
}

/* Plans Tab Button hover styles */
.plans-tab-btn:hover {
    background: linear-gradient(to bottom, #4a4a5d, #3a3a4d);
}

/* =============================================================================
   CUSTOM POPUP SYSTEM
   ============================================================================= */

/* Popup Overlay (Lightbox) */
.custom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

/* Popup Container */
.custom-popup {
    background: #1A1A1E;
    border: 1px solid #222225;
    border-radius: 8px;
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    width: 440px;
    max-width: 90vw;
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Scrollable content area for popups */
.custom-popup-content {
    background: #121215;
    border: 1px solid #222225;
    border-radius: 6px;
    padding: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

/* Token input styling for popup */
.custom-popup-input {
    width: 100%;
    background: #121215;
    border: 1px solid #222225;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    color: #dcddde;
    font-size: 0.875rem;
    font-family: "gg sans";
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.custom-popup-input:focus {
    outline: none;
    border-color: #222225;
}

.custom-popup-input::placeholder {
    color: #81828A;
}

/* Status text for token input */
.custom-popup-status {
    font-size: 0.75rem;
    color: #ff0046;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Close Button (X) */
.custom-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    color: #81828A;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    border-radius: 4px;
}

.custom-popup-close:hover {
    background: #1A1A1E;
    border-color: #222225;
    color: white;
}

/* Popup Title */
.custom-popup-title {
    color: #ffffff;
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
    padding-right: 2rem;
    font-family: "gg sans";
}

/* Popup Text */
.custom-popup-text {
    color: #81828A;
    font-size: 0.8925rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    font-family: "gg sans";
    white-space: pre-wrap;
}

/* Popup Button */
.custom-popup-btn {
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    color: #121215;
    border: none;
    border-radius: 4px;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    font-family: 'gg sans Bold', 'gg sans' !important;
}

/* ==================== POPUP RESPONSIVE ==================== */
/* Mobile */
@media (max-width: 900px) {
    .custom-popup {
        width: 90vw;
        max-width: 400px;
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }

    .custom-popup-title {
        font-size: 1rem;
    }

    .custom-popup-text {
        font-size: 0.85rem;
    }

    .custom-popup-content {
        max-height: 300px;
        padding: 0.6rem;
    }

    .custom-popup-close {
        width: 26px;
        height: 26px;
        font-size: 1.35rem;
    }

    .custom-popup-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .custom-popup-input {
        padding: 0.55rem 0.7rem;
        font-size: 0.85rem;
    }

    .custom-popup-status {
        font-size: 0.7rem;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .custom-popup {
        width: 92vw;
        max-width: none;
        padding: 0.875rem 1rem 1rem 1rem;
        max-height: 85vh;
    }

    .custom-popup-title {
        font-size: 0.95rem;
        padding-right: 1.75rem;
    }

    .custom-popup-text {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }

    .custom-popup-content {
        max-height: 250px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .custom-popup-close {
        top: 0.6rem;
        right: 0.6rem;
        width: 24px;
        height: 24px;
        font-size: 1.25rem;
    }

    .custom-popup-btn {
        padding: 0.55rem 0.875rem;
        font-size: 0.8rem;
    }

    .custom-popup-input {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .custom-popup-status {
        font-size: 0.65rem;
    }
}

/* ==============================================
   ADJUST PLAN POPUP STYLES
   ============================================== */

.adjust-plan-popup {
    width: 480px;
}

.adjust-plan-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.adjust-plan-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #121215;
    border: 1px solid #222225;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

/* Hover effect removed per user request */

.adjust-plan-item.selected {
    border-color: #59d78c;
}

.adjust-plan-item.processing {
    opacity: 0.5;
    pointer-events: none;
}

.adjust-plan-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #4a4a4f;
    border-radius: 50%;
    margin-right: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.adjust-plan-item.selected .adjust-plan-radio {
    border-color: #59d78c;
}

.adjust-plan-radio-inner {
    width: 10px;
    height: 10px;
    background: linear-gradient(to bottom, #59d78c, #3c935f);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.adjust-plan-item.selected .adjust-plan-radio-inner {
    opacity: 1;
}

.adjust-plan-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.adjust-plan-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-family: "gg sans";
}

.adjust-plan-label {
    color: #59d78c;
    font-size: 0.75rem;
    font-family: "gg sans";
    margin-left: 0.5rem;
}

.adjust-plan-label.downgrading {
    color: #ffffff;
}

.adjust-plan-price {
    color: #81828A;
    font-size: 0.85rem;
    font-family: "gg sans";
}

/* Responsive */
@media (max-width: 600px) {
    .adjust-plan-popup {
        width: 92vw;
    }

    .adjust-plan-item {
        padding: 0.75rem;
    }

    .adjust-plan-radio {
        width: 16px;
        height: 16px;
    }

    .adjust-plan-radio-inner {
        width: 8px;
        height: 8px;
    }

    .adjust-plan-name {
        font-size: 0.875rem;
    }

    .adjust-plan-price {
        font-size: 0.8rem;
    }
}

/* ==============================================
   SUPPORT PAGE STYLES
   ============================================== */

/* Support Content Container */
.support-content {
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Support Hero Section */
.support-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0 2rem 0;
    margin-bottom: 0;
}

@font-face {
    font-family: 'ABC Ginto Nord';
    src: url('/static/fonts/ABCGintoNord-Black-Trial.otf') format('opentype');
}

.support-hero-title {
    font-size: 48px;
    font-family: 'ABC Ginto Nord', 'gg sans Bold' !important;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.5px;
    white-space: pre-line;
}

/* FAQ Section */
.support-faq-section {
    display: flex;
    flex-direction: column;
}

.support-faq-title {
    font-size: 1.225rem;
    color: #ffffff;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* FAQ Item */
.faq-item {
    background: #1A1A1E;
    border: 1px solid #222225;
    border-radius: 6px;
    overflow: hidden;
}

/* FAQ Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.faq-question-text {
    font-size: 1rem;
    color: #dcddde;
    font-family: 'gg sans';
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
    transform: rotate(-90deg);
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(0deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-divider {
    height: 1px;
    background: #222225;
    margin: 0 1.5rem;
}

.faq-answer p {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    margin: 0;
    color: #81828A;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: 'gg sans';
}

/* Contact Support Section */
.support-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222225;
}

.support-contact-text {
    font-size: 1.1rem;
    color: #dcddde;
    text-align: center;
    margin: 0;
    font-family: 'gg sans';
}

/* Terms Page */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.terms-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.terms-hero-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0;
}

.terms-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.terms-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terms-subheader {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.terms-text {
    font-size: 1rem;
    color: #dcddde;
    line-height: 1.6;
    margin: 0;
}

/* Guidelines Page */
.guidelines-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.guidelines-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.guidelines-hero-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0;
}

.guidelines-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.guidelines-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guidelines-subheader {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.guidelines-text {
    font-size: 1rem;
    color: #dcddde;
    line-height: 1.6;
    margin: 0;
}

/* Message Checker Section */
.message-checker-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
}

.message-checker-section .message-checker-input {
    width: 100%;
}

.message-checker-label {
    font-size: 0.875rem;
    color: #72767d;
    text-align: center;
    margin: 12px 0 0 0;
}

.message-checker-label.message-checker-found {
    color: #59d78c;
}
