/* ==========================================================================
   CTCL BOT — DESIGN SYSTEM
   Dark mode, electric-blue accent, rounded display typography,
   monospace data registers, bento cards & crisp hairlines.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --background: #000000;
    --surface: #111111;
    --surface-alt: #1E1E1E;
    --surface-elevated: #161616;
    --surface-glass: rgba(0, 153, 255, 0.22);
    
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --text-muted: #666666;
    
    --accent: #0099FF;
    --accent-hover: #1aa3ff;
    --accent-glow: rgba(0, 153, 255, 0.35);
    --accent-subtle: rgba(0, 153, 255, 0.1);
    --accent-secondary: #00BB88;
    --accent-secondary-subtle: rgba(0, 187, 136, 0.12);
    
    --link: #0000EE;
    
    --border: #767676;
    --border-subtle: #1E1E1E;
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-accent: #0099FF;
    
    --danger: #ef4444;
    --danger-subtle: rgba(239, 68, 68, 0.12);
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Input Mono', monospace;
    
    /* Spacing & Radii (framer-design.md) */
    --gap-sm: 10px;
    --gap-md: 15px;
    --gap-lg: 20px;
    --gap-xl: 40px;
    
    --r-chip: 6px;
    --r-control: 8px;
    --r-control-lg: 10px;
    --r-card: 15px;
    --r-card-lg: 20px;
    --r-pill: 100px;
    
    /* Shadows */
    --shadow-resting: rgba(0, 0, 0, 0.25) 0px 4px 8px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-accent-glow: 0 0 24px rgba(0, 153, 255, 0.25);
    
    /* Transitions & Smooth Physics */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.18s var(--ease-out-expo);
    --transition-base: all 0.28s var(--ease-out-expo);
    --transition-smooth: all 0.35s var(--ease-out-expo);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    background-color: var(--background);
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 14px;
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   NAVBAR (64px sticky, transparent)
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--r-chip);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-title span {
    color: var(--text-muted);
    font-weight: 500;
}

.brand-badge {
    background: var(--surface-alt);
    border: 1px solid var(--border-subtle);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--r-chip);
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-user-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-pill-red {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
    border-radius: var(--r-pill);
    font-size: 0.82rem;
}

.user-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-text {
    font-weight: 600;
    color: var(--text-primary);
}

.user-id-pink {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(0, 153, 255, 0.12);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.role-banner {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.role-banner-dev {
    background: rgba(0, 153, 255, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.role-banner-admin {
    background: rgba(0, 187, 136, 0.15);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.role-banner-user {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS (Exact components from framer-design.md)
   ========================================================================== */

/* Button Nav CTA: #FFFFFF background, #0000EE text, 8px radius, 30px height */
.btn-nav-cta, a.btn-nav-cta {
    background: #FFFFFF;
    color: #0000EE !important;
    border-radius: var(--r-control);
    height: 30px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out-expo), opacity 0.18s ease, background-color 0.18s ease;
    will-change: transform;
    transform: translateZ(0);
}
.btn-nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn-nav-cta:active {
    transform: scale(0.96) translateY(0);
}

/* Button Hero Primary: #DEDEDE near-white solid, #000000 text, 10px radius, 34px height */
.btn-hero-primary, .btn-pink, button.btn-pink, a.btn-pink {
    background: #DEDEDE;
    color: #000000 !important;
    border-radius: var(--r-control-lg);
    min-height: 34px;
    padding: 0.45rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out-expo), background-color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
    transform: translateZ(0);
}
.btn-hero-primary:hover, .btn-pink:hover {
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
.btn-hero-primary:active, .btn-pink:active {
    transform: scale(0.96) translateY(0);
}

/* Button Hero Secondary: #000000 solid, #FFFFFF text, 10px radius, 34px height, subtle border */
.btn-hero-secondary, .btn-pink-outline, a.btn-pink-outline {
    background: #000000;
    color: #FFFFFF !important;
    border: 1px solid #333333;
    border-radius: var(--r-control-lg);
    min-height: 34px;
    padding: 0.45rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out-expo), border-color 0.18s ease, background-color 0.18s ease;
    will-change: transform;
    transform: translateZ(0);
}
.btn-hero-secondary:hover, .btn-pink-outline:hover {
    border-color: #666666;
    background: #0e0e0e;
    transform: translateY(-1px);
}
.btn-hero-secondary:active, .btn-pink-outline:active {
    transform: scale(0.96) translateY(0);
}

/* Button Utility: Solid #FFFFFF, #000000 text, 8px radius, 30px height */
.btn-utility {
    background: #FFFFFF;
    color: #000000 !important;
    border-radius: var(--r-control);
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out-expo), opacity 0.18s ease;
    will-change: transform;
    transform: translateZ(0);
}
.btn-utility:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn-utility:active {
    transform: scale(0.96) translateY(0);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-control);
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out-expo), color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
    will-change: transform;
    transform: translateZ(0);
}
.btn-secondary:hover {
    color: var(--text-primary) !important;
    border-color: var(--border);
    background: #181818;
    transform: translateY(-1px);
}
.btn-secondary:active {
    transform: scale(0.96) translateY(0);
}

.btn-sm {
    min-height: 28px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.78rem !important;
}

/* ==========================================================================
   TICKER / STATUS BAR
   ========================================================================== */
.ticker-bar {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ticker-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ticker-item strong {
    color: var(--text-primary);
}

.dot-pulse-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
}

.dot-red {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ==========================================================================
   TYPOGRAPHY & HERO SECTION
   ========================================================================== */
.hero-title-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 60px;
    text-align: left;
}

.hero-main-title {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -2.2px;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hero-sub-title {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   BENTO TOOL PREVIEW GRIDS
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s var(--ease-out-expo), border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.28s var(--ease-out-expo);
    will-change: transform;
    transform: translateZ(0);
}

.bento-card:hover {
    border-color: #383838;
    background: #141414;
    transform: translateY(-3px) scale(1.006);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.bento-card.glass-accent {
    background: var(--surface-glass);
    border-color: rgba(0, 153, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bento-icon {
    font-size: 1.5rem;
}

.bento-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(0, 153, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--r-chip);
}

.bento-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.bento-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   MODULE CARDS (Server Dashboard & Modules)
   ========================================================================== */
.module-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s var(--ease-out-expo), border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.28s var(--ease-out-expo);
    will-change: transform;
    transform: translateZ(0);
}

.module-card:hover {
    border-color: #383838;
    background: #141414;
    transform: translateY(-3px) scale(1.006);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.module-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.module-icon-box {
    font-size: 1.4rem;
}

.module-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.module-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.feature-tag {
    display: inline-block;
    background: var(--surface-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.status-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-chip);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.status-pill.enabled {
    background: var(--accent-secondary-subtle);
    border: 1px solid rgba(0, 187, 136, 0.3);
    color: var(--accent-secondary);
}

.status-pill.disabled {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* ==========================================================================
   DASHBOARD LAYOUT & SERVER CARDS
   ========================================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: var(--gap-lg);
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

@media (max-width: 960px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card);
}

.filter-group-item {
    transition: all 0.18s var(--ease-out-expo);
    will-change: transform;
}

.filter-group-item:hover {
    border-color: #444444 !important;
    transform: translateX(2px);
}

.filter-group-item.active-filter {
    background: var(--surface-alt) !important;
    border-color: var(--accent) !important;
    color: var(--text-primary) !important;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-md);
}

.server-card-redux {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s var(--ease-out-expo), border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.28s var(--ease-out-expo);
    will-change: transform;
    transform: translateZ(0);
}

.server-card-redux:hover {
    border-color: #383838;
    background: #141414;
    transform: translateY(-3px) scale(1.006);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.server-card-redux.connected {
    border-color: rgba(0, 187, 136, 0.25);
}

/* ==========================================================================
   FORMS & INPUTS (Crisp & Clean)
   ========================================================================== */
.form-control, .search-input-field {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: #0d0d0d;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-control);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus, .search-input-field:focus {
    border-color: var(--accent);
    background: #111111;
    box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230099FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 0.85rem;
    padding-right: 2.2rem;
    cursor: pointer;
}

select.form-control option {
    background: #0e0e0e;
    color: #ffffff;
    padding: 0.5rem;
}

/* ==========================================================================
   MODAL WINDOW (IDE Style Dark Modal with Smooth Scale Animation)
   ========================================================================== */
@keyframes modalBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalContentScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalBackdropFadeIn 0.2s var(--ease-out-expo) forwards;
}

.modal-card {
    background: var(--surface);
    border: 1px solid #2a2a2a;
    border-radius: var(--r-card-lg);
    box-shadow: var(--shadow-glass);
    padding: 1.8rem;
    animation: modalContentScaleIn 0.24s var(--ease-out-expo) forwards;
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ==========================================================================
   SUBSCRIPTION MASTER CARD
   ========================================================================== */
.sub-master-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card-lg);
    box-shadow: var(--shadow-resting);
    position: relative;
    padding: 2.5rem 2.2rem;
}

.sub-master-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0099FF 0%, rgba(0, 153, 255, 0.2) 100%);
    border-radius: var(--r-card-lg) var(--r-card-lg) 0 0;
}

.sub-pills-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    margin: 2rem 0;
    width: 100%;
}

@media (max-width: 900px) {
    .sub-pills-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .sub-pills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sub-pill-item {
    background: #0d0d0d;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-control-lg);
    padding: 1.1rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    user-select: none;
    text-align: center;
}

.sub-pill-item:hover {
    border-color: #444444;
    background: #141414;
}

.sub-pill-item.active {
    background: rgba(0, 153, 255, 0.12) !important;
    border-color: var(--accent) !important;
}

.sub-pill-badge-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000000;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--r-pill);
    white-space: nowrap;
    text-transform: uppercase;
}

.sub-pill-days-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sub-pill-price-text {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
}

.sub-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

@media (max-width: 860px) {
    .sub-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.sub-giant-price {
    font-family: var(--font-mono);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.sub-giant-price span.currency {
    font-size: 1.8rem;
    color: var(--accent);
}

.sub-per-day-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: var(--surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-chip);
    padding: 0.35rem 0.75rem;
    width: fit-content;
}

.sub-super-btn {
    background: #DEDEDE;
    color: #000000 !important;
    border-radius: var(--r-control-lg);
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sub-super-btn:hover {
    background: #FFFFFF;
    opacity: 0.9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    width: 100%;
    margin: 4rem 0 0;
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

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

.footer-contacts,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

footer a,
footer a:link,
footer a:visited {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   SERVER DASHBOARD SIDEBAR LAYOUT
   ========================================================================== */
.server-sidebar-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

@media (max-width: 960px) {
    .server-sidebar-layout {
        grid-template-columns: 1fr;
    }
}

.server-sidebar {
    background-color: var(--surface);
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.server-selector-card {
    background: var(--surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-control);
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
}

.server-selector-card:hover {
    border-color: #444444;
}

.menu-section-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    padding-left: 0.4rem;
}

.nav-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.8rem;
    border-radius: var(--r-control);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    background: transparent;
    border: 1px solid transparent;
}

.nav-menu-item:hover {
    background: var(--surface-alt);
    color: var(--text-primary);
}

.nav-menu-item.active {
    background: var(--surface-alt);
    border-color: var(--border-subtle);
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
}

.badge-update {
    background: rgba(0, 153, 255, 0.12);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 153, 255, 0.25);
}

.badge-new {
    background: var(--accent-secondary-subtle);
    color: var(--accent-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 187, 136, 0.3);
}

.server-main-content {
    padding: 2rem 2.5rem;
    background: var(--background);
    width: 100%;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ==========================================================================
   PAGE ENTRANCE & FADE-IN PHYSICS ANIMATIONS
   ========================================================================== */
@keyframes pageFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardStaggerIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Автоматическая плавная анимация появления страницы */
body {
    animation: pageFadeIn 0.3s var(--ease-out-expo) forwards;
}

.navbar {
    animation: slideInDown 0.35s var(--ease-out-expo) forwards;
    will-change: transform, opacity;
}

.hero-title-section, .hero-section {
    animation: slideInUp 0.4s var(--ease-out-expo) 0.04s both;
    will-change: transform, opacity;
}

.ticker-bar {
    animation: slideInUp 0.35s var(--ease-out-expo) 0.08s both;
}

.sidebar-panel, .server-dash-sidebar {
    animation: slideInUp 0.38s var(--ease-out-expo) 0.05s both;
    will-change: transform, opacity;
}

.server-main-content, .dashboard-main-content {
    animation: slideInUp 0.4s var(--ease-out-expo) 0.08s both;
}

/* Каскадное появление Бенто-карточек (Главная) */
.bento-grid .bento-card:nth-child(1) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.06s both; }
.bento-grid .bento-card:nth-child(2) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.10s both; }
.bento-grid .bento-card:nth-child(3) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.14s both; }
.bento-grid .bento-card:nth-child(4) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.18s both; }
.bento-grid .bento-card:nth-child(5) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.22s both; }
.bento-grid .bento-card:nth-child(6) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.26s both; }

/* Каскадное появление Модулей (Дашборд сервера) */
.modules-grid .module-card:nth-child(1) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.06s both; }
.modules-grid .module-card:nth-child(2) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.10s both; }
.modules-grid .module-card:nth-child(3) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.14s both; }
.modules-grid .module-card:nth-child(4) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.18s both; }
.modules-grid .module-card:nth-child(5) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.22s both; }
.modules-grid .module-card:nth-child(6) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.26s both; }

/* Каскадное появление Серверов (Список серверов) */
.cards-grid .server-card-redux:nth-child(1) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.05s both; }
.cards-grid .server-card-redux:nth-child(2) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.08s both; }
.cards-grid .server-card-redux:nth-child(3) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.11s both; }
.cards-grid .server-card-redux:nth-child(4) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.14s both; }
.cards-grid .server-card-redux:nth-child(5) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.17s both; }
.cards-grid .server-card-redux:nth-child(6) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.20s both; }
.cards-grid .server-card-redux:nth-child(7) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.23s both; }
.cards-grid .server-card-redux:nth-child(8) { animation: cardStaggerIn 0.4s var(--ease-out-expo) 0.26s both; }

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MULTI-ROLE TAG PICKER (Screenshot 1 Style)
   ========================================================================== */
.multi-role-box {
    position: relative;
    width: 100%;
    display: block;
}

.multi-role-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 5px 8px;
    background: #11141c;
    border: 1px solid #252c3d;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.multi-role-container:hover {
    border-color: #384259;
}

.multi-role-container:focus-within,
.multi-role-container.is-focused {
    border-color: #5865f2;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25);
}

.role-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #202738;
    border: 1px solid #333f59;
    color: #ffffff;
    padding: 3px 8px 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    line-height: 1.2;
}

.role-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    color: #94a3b8;
    transition: all 0.15s ease;
    margin-left: 2px;
}

.role-tag-remove:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.role-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: transparent;
    color: #8f9bb3;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
}

.role-add-btn:hover {
    background: #252c3d;
    color: #ffffff;
}

.role-picker-popup {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 230px;
    max-width: 90vw;
    background: #0f121a;
    border: 1px solid #232838;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
    z-index: 99999;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.role-picker-popup.is-open {
    display: flex !important;
}

.role-picker-search-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-picker-search-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 2px;
}

.role-picker-search-inp {
    width: 100%;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
}

.role-picker-search-inp:focus {
    box-shadow: 0 0 0 2px #5865f2;
}

.role-picker-items-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.role-picker-items-list::-webkit-scrollbar {
    width: 4px;
}
.role-picker-items-list::-webkit-scrollbar-thumb {
    background: #283044;
    border-radius: 4px;
}

.role-picker-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.12s ease;
}

.role-picker-option:hover {
    background: #1e2638;
    color: #ffffff;
}

.role-picker-option.is-selected {
    background: rgba(88, 101, 242, 0.2);
    color: #93c5fd;
    font-weight: 600;
}

.role-picker-empty {
    padding: 12px 6px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.checkout-agree {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    cursor: pointer;
}

.checkout-agree input {
    margin-top: 0.2rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkout-agree a,
.checkout-agree a:link,
.checkout-agree a:visited,
.checkout-agree a:hover,
.checkout-agree a:active {
    color: #4db8ff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sub-super-btn.is-disabled,
a.sub-super-btn.is-disabled,
a.sub-super-btn[aria-disabled="true"] {
    background: #1a1a1a !important;
    color: #666666 !important;
    opacity: 1;
    filter: none;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}

.legal-page a,
.legal-page a:link,
.legal-page a:visited,
.legal-page a:hover,
.legal-page a:active {
    color: #4db8ff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page {
    max-width: 820px;
    margin: 3rem auto 4rem;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

.legal-kicker {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-family: var(--font-heading, var(--font-display));
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 1.6rem 0 0.55rem;
}

.legal-page p {
    margin-bottom: 0.75rem;
}

.legal-page ul {
    margin: 0 0 0.9rem 1.2rem;
}


