﻿/* =========================================
   CYORI PREMIUM ENGINE - BLACK & GOLD EDITION
   v4.1.0 - The Ultimate Luxury Experience (Mobile Fixing)
   ========================================= */

:root {
    /* --- CORE PALETTE --- */
    --gold-primary: #FFD700;
    --gold-dim: #C5A001;
    --gold-light: #FFE55C;
    --gold-metallic: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);

    --bg-deep: #050505;
    --bg-canva: #0a0a0a;
    --bg-card: rgba(18, 18, 18, 0.85);

    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-gold: #FFD700;

    /* --- GLASSMORPHISM --- */
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 215, 0, 0.15);
    --glass-shine: rgba(255, 255, 255, 0.05);

    /* --- ANIMATIONS --- */
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.03) 0%, transparent 25%);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
}

.text-gradient {
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* --- COMPONENTS: BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

/* Primary Gold Button */
.btn-primary {
    background: var(--gold-metallic);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Glass/Secondary Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* --- COMPONENTS: CONTAINERS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-dim);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- HEADER / NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 2000;
    /* High z-index to stay on top of overlay */
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold-dim);
    border-radius: 50px;
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
}

@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* --- STATS COUNTERS --- */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    min-width: 200px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-loading {
    animation: pulse 1.5s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* --- FEATURES SECTION --- */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.mesh-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    background: rgba(255, 215, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- TABS & COMMANDS --- */
.tabs-container {
    margin-top: 40px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.command-card code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--gold-primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1px dashed var(--glass-border);
}

/* --- PRICING --- */
.pricing-card {
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.pricing-card.featured {
    border-color: var(--gold-primary);
    background: rgba(20, 20, 20, 0.9);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.features-list li i {
    color: var(--gold-primary);
}

/* --- LOGIN & PROFILE --- */
#login-wall,
#profile-container {
    padding-top: 120px;
    text-align: center;
}

/* --- DASHBOARD SPECIFIC --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: 0.2s;
    margin-bottom: 5px;
}

.sidebar-btn:hover,
.sidebar-btn.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.player-main {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.now-playing-art {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.track-info h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.track-info p {
    color: var(--gold-dim);
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--gold-primary);
    border-radius: 3px;
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
}

.control-btn.play-btn {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    background: var(--gold-metallic);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.control-btn.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Utility Classes */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-success {
    background: #00C851 !important;
    border-color: #00C851 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 200, 81, 0.4);
}

.btn-error {
    background: #FF4444 !important;
    border-color: #FF4444 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

.no-servers-msg {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1.1rem;
    border: 1px dashed var(--glass-border);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* --- SETTINGS & TOGGLES --- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 4px;
    top: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--gold-primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--gold-primary);
}

input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

/* Premium Form Elements */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffcc33' 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 15px center;
    background-size: 18px;
    padding-right: 45px !important;
}

select option {
    background: #111;
    color: #fff;
    padding: 10px;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    outline: none;
}

/* Settings Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.server-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 100px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
}

.settings-card h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-size: 1rem;
    margin-top: 8px;
}

.form-control:focus {
    border-color: var(--gold-primary);
    outline: none;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.save-bar {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--gold-primary);
    padding: 12px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2100;
    /* Above everything */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto !important;
    /* Force auto width */
    color: var(--gold-primary);
    font-weight: 700;
}

.save-bar:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.2);
    background: var(--gold-primary);
    color: #000;
}

.save-bar i {
    font-size: 1.2rem;
}

/* Loader Enhancements */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.1);
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.btn-back:hover {
    color: var(--gold-primary);
}

/* --- FOOTER --- */
footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0 20px;
    /* Reduced from 80px 0 40px */
    margin-top: 20px;
    /* Reduced from 50px */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    /* Fix bullet points */
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- CUSTOM SLIDER (Volume & Progress) --- */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 1px solid var(--gold-primary);
    height: 14px;
    /* Reduced size */
    width: 14px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    margin-top: -5px;
    /* Adjust to center on track */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #fff;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    /* Thinner track */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Firefox Support */
input[type=range]::-moz-range-thumb {
    border: 1px solid var(--gold-primary);
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* --- CONTENT PAGES (Terms, Privacy) --- */
.content-page {
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.content-page h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-align: center;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.last-updated {
    display: block;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-card h2 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.feature-card ul {
    list-style: none;
    padding-left: 10px;
}

.feature-card ul li {
    margin-bottom: 12px;
    color: var(--text-muted);
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.feature-card ul li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--gold-primary);
    font-size: 0.9rem;
    position: absolute;
    left: 0;
    top: 4px;
}

.feature-card ul.prohibited-list li::before {
    content: '\f00d';
    /* FontAwesome Times (Cross) */
    color: #ff4d4d;
    /* Red color for prohibition */
}

.feature-card strong {
    color: #fff;
    font-weight: 700;
}

/* --- DASHBOARD CONTAINER --- */
.dashboard-container {
    padding-top: 120px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 100vh;
}

/* --- RESPONSIVE & MOBILE --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 2002;
    transition: 0.3s;
}

.mobile-toggle:hover {
    color: var(--gold-primary);
}

/* Default hidden overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1900;
    /* Behind header/nav-links but above content */
    backdrop-filter: blur(6px);
    transition: 0.3s;
}

.menu-overlay.active {
    display: block;
}

@media (max-width: 968px) {

    /* Fix Dashboard Scale */
    .dashboard-grid {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Fix Footer Scale */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }

    /* Adjust Header */
    .header-actions {
        gap: 10px;
    }

    /* Hide standard login button on very small screens to prevent overlap */
    @media (max-width: 480px) {
        .header-actions .login-btn .user-name-header {
            display: none;
            /* Only show avatar on mobile */
        }

        .header-actions .login-btn {
            padding: 8px;
            border-radius: 50%;
            min-width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header-actions .lang-switch {
            display: none;
        }
    }

    /* Show Toggle Button */
    .mobile-toggle {
        display: block;
    }

    /* Mobile Sidebar Menu (Slide from Left or Right - Choosing Right) */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen right */
        width: 280px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1001;
        /* Higher than header but lower than toggle if toggle is fixed */
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
        border-left: 1px solid var(--glass-border);
    }

    /* Active State */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
        width: 80%;
        margin: 0 auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-link:hover {
        background: rgba(255, 215, 0, 0.05);
        color: var(--gold-primary);
    }

    /* Overlay */
    /* Handled above with higher visibility logic */

    /* Responsive Content Adjustments */
    .hero-title {
        font-size: 2.2rem;
        /* Shrink to fit screen */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

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

    .container {
        padding: 0 20px;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .card {
        margin-bottom: 20px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }


    /* Login Wall Fix for Mobile */
    #login-wall {
        padding: 40px 20px;
    }
}

/* ========================================
   VOLUME SLIDER STYLING
   ======================================== */

/* Volume Slider - Custom Range Input */
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* .volume-slider:hover removed - Requested: no enlargement */

/* Webkit browsers (Chrome, Safari, Edge) */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    transition: all 0.2s ease;
}

/* .volume-slider::-webkit-slider-thumb:hover/active removed - Requested: no enlargement */

/* Firefox */
.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    transition: all 0.2s ease;
    border: none;
}

/* Firefox track */
.volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
}

/* IE/Edge */
.volume-slider::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    transition: all 0.2s ease;
    border: none;
}

input[type="range"].slider::-ms-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
    border: none;
    color: transparent;
}

input[type="range"].slider::-ms-fill-lower {
    background: var(--accent-gold);
    border-radius: 5px;
}

input[type="range"].slider::-ms-fill-upper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* ========================================
   PAYMENT & PLAN CARD STYLING
   ======================================== */

.payment-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 20px 80px;
    text-align: center;
}

.payment-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.payment-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.input-group {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 50px;
}

.input-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--gold-primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.user-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.user-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 16px 60px 16px 16px;
    /* Extra right padding for avatar */
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    transition: 0.3s;
}

.user-input-avatar {
    position: absolute;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    object-fit: cover;
}

.user-input:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Staggered Effect */
.plan-card:nth-child(even) {
    transform: translateY(15px);
}

.plan-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
    z-index: 10;
}

.plan-card.selected {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Special Lifetime Featured Card */
.plan-card:last-child {
    grid-column: span 4;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    padding: 25px 40px;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.9), rgba(40, 40, 40, 0.9)), url('logo-circle.png');
    background-size: cover, 150px;
    background-position: center, right;
    background-repeat: no-repeat;
    margin-top: 30px;
    border: 1px solid var(--glass-border);
    transform: none !important;
}

.plan-card:last-child:hover,
.plan-card:last-child.selected {
    border-color: var(--gold-primary);
}

.plan-card:last-child .plan-icon {
    margin-bottom: 0;
    font-size: 3rem;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }
}

.plan-card:last-child .plan-info-wrapper {
    text-align: left;
}

/* Responsive Adjustments for Staggered Grid */
@media (max-width: 992px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .plan-card:last-child {
        grid-column: span 2;
    }
}

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

    .plan-card:last-child {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .plan-card:last-child .plan-info-wrapper {
        text-align: center;
    }

    .plan-card:nth-child(even) {
        transform: none;
        /* Disable staggering on small mobile */
    }
}

/* Internal Plan Card Components */
.plan-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 18px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: 0.3s;
}

.plan-name {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-save {
    font-size: 0.8rem;
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.error-msg {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
    font-size: 0.95rem;
}

/* --- SETTINGS ENHANCEMENTS --- */

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.server-header h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.search-wrapper {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 12px 12px 45px;
    border-radius: 50px;
    color: #fff;
    transition: 0.3s;
}

.search-wrapper input:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
    outline: none;
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-owner {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-admin {
    background: rgba(0, 150, 255, 0.15);
    color: #0096FF;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.badge-bot {
    background: rgba(0, 200, 81, 0.15);
    color: #00C851;
    border: 1px solid rgba(0, 200, 81, 0.3);
}

.server-status {
    margin-top: 10px;
    font-weight: 600;
}

.status-manage {
    color: #00C851;
}

.status-invite {
    color: var(--gold-primary);
}

.status-no_perm {
    color: #ffbb33;
}

.status-disabled {
    color: var(--text-muted);
}

.back-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.guild-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
}

.settings-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gold-primary);
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: 0.2s ease;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.toggle-group:hover {
    background: rgba(255, 255, 255, 0.02);
}

.toggle-group h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
}

.server-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.server-action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.server-card:hover .server-action-overlay {
    opacity: 1;
}

.server-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* --- MODAL & SEARCH RESULTS --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 215, 0, 0.05);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gold-primary);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.close-btn:hover {
    opacity: 1;
    color: var(--gold-primary);
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-right: 15px;
    font-size: 1.2rem;
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.result-author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-action {
    color: var(--gold-primary);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: 0.3s;
}

.search-result-item:hover .result-action {
    opacity: 1;
    transform: scale(1.2);
}

/* Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}