:root {
    --primary-color: #ffa030;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;


    --light-primary: #ffe7ad;
    --neon-glow: 0 0 5px var(--primary-color), 0 0 20px var(--card-border);
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--light-primary));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(252, 227, 143, 0.3);
    --dark-bg: #0b0b0b;
    --card-bg: #151515;
    --border-radius: 12px;


    --premium-gold: #fce38f;
    --premium-dark: #f9d84e;
    --premium-glow: 0 0 5px var(--premium-gold), 0 0 20px rgba(252, 227, 143, 0.3);
    --premium-gradient: linear-gradient(135deg, var(--premium-gold), var(--premium-dark));
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid rgba(252, 227, 143, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-color);
    border: 3px solid var(--bg-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}


* {
    scrollbar-width: thin;
    scrollbar-color: var(--surface-color) var(--bg-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.navbar {
    background-color: var(--surface-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.login-btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.login-btn:hover {
    background: var(--primary-color);
    color: var(--surface-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(252, 227, 143, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.hero {
    padding-top: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Remove the radial gradient */
.hero::before {
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(252, 227, 143, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(252, 227, 143, 0.2);
}

.hero-badge i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.hero-badge span {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cta-btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.cta-btn:hover {
    background: var(--primary-color);
    color: var(--surface-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(252, 227, 143, 0.2);
}

.secondary-btn {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--surface-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(252, 227, 143, 0.2);
}

.hero-image {
    flex: 1.2;
    position: relative;
    max-width: none;
    width: 100%;
}

.hero-background {
    display: none;
}

.dashboard-preview {
    background: var(--surface-color);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 700px;
}

.preview-header {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) {
    background: #ff5f57;
}

.preview-dots span:nth-child(2) {
    background: #ffbd2e;
}

.preview-dots span:nth-child(3) {
    background: #28c940;
}

.preview-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.preview-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.preview-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Remove the hover effect gradient */
.preview-block::before {
    display: none;
}

.preview-block:nth-child(1) {
    grid-column: span 2;
    height: 160px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .dashboard-preview {
        max-width: 600px;
        margin: 0 auto;
    }

    .preview-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .preview-block:nth-child(1) {
        grid-column: span 1;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
        min-height: auto;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
        gap: 3rem;
    }

    .dashboard-preview {
        border-radius: 16px;
    }

    .preview-header {
        padding: 1rem;
    }

    .preview-content {
        padding: 1rem;
        gap: 1rem;
    }

    .preview-block {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 7rem;
    }

    .preview-block {
        height: 80px;
    }

    .preview-dots span {
        width: 10px;
        height: 10px;
    }
}

html {
    scroll-behavior: smooth;
}


.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    position: relative;
    padding: 2rem 0;
}

.about-grid {
    display: grid;
    gap: 4rem;
}

.about-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.mission-statement {
    margin-bottom: 2rem;
}

.mission-statement h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mission-statement p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(252, 227, 143, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    border: 1px solid rgba(252, 227, 143, 0.2);
}

.feature-tag i {
    color: var(--primary-color);
    font-size: 1rem;
}

.feature-tag span {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-cta {
    text-align: center;
    margin-top: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-buttons a {
    text-decoration: none;
}

@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-text {
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 1rem 0;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-tag {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons a {
        width: 100%;
    }
}

.commands {
    padding: 4rem 0;
    overflow: hidden;
}

.commands-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.category-btn {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.category-btn i {
    font-size: 1.1rem;
}

.category-btn:hover {
    background: rgba(30, 30, 30, 0.7);
    color: var(--text-color);
    border-color: rgba(252, 227, 143, 0.3);
    transform: translateY(-2px);
}

.category-btn.active {
    background: rgba(252, 227, 143, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.commands-display {
    position: relative;
    min-height: 400px;
    padding: 0 1rem;
}

.command-category {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.command-category.active {
    display: block;
    opacity: 1;
    position: relative;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.command-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.command-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(252, 227, 143, 0.1);
}

.command-name {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    padding: 0.6rem 1rem;
    background: rgba(252, 227, 143, 0.1);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(252, 227, 143, 0.2);
}

.command-card p {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 1200px) {
    .section-content {
        padding: 4rem 1rem;
    }

    .command-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .command-grid {
        grid-template-columns: 1fr;
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .commands {
        padding: 2rem 0;
    }

    .category-selector {
        flex-direction: column;
        padding: 0 1rem;
    }

    .category-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .commands-display {
        padding: 0 1rem;
    }

    .command-card {
        padding: 1.4rem;
    }

    .credits {
        padding: 2rem 0;
    }

    .credit-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .credit-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .credit-skills {
        justify-content: center;
    }

    .credit-bio {
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .credit-card {
        padding: 1.5rem;
    }

    .credit-avatar {
        width: 60px;
        height: 60px;
    }

    .credit-info h3 {
        font-size: 1.2rem;
    }

    .credit-role {
        font-size: 0.9rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .credit-bio {
        font-size: 0.85rem;
    }

    .command-name {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    .command-card p {
        font-size: 0.85rem;
    }
}

.credits {
    padding: 4rem 0;
    overflow: hidden;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.credit-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.credit-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(252, 227, 143, 0.1);
}

.credit-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.credit-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.credit-info {
    flex: 1;
}

.credit-info h3 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.credit-role {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.credit-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(252, 227, 143, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(252, 227, 143, 0.2);
}

.credit-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Server Card for About Section */
.about .server-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about .server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 227, 143, 0.2), transparent);
    transform: translateY(-1px);
    opacity: 0;
}

.about .server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 227, 143, 0.1);
}

.about .server-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.about .server-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(252, 227, 143, 0.2);
    transition: all 0.3s ease;
}

.about .server-card:hover .server-icon {
    border-color: rgba(252, 227, 143, 0.4);
}

.about .server-info {
    flex: 1;
}

.about .server-info h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.about .server-stats {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.about .server-stat {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.about .server-card:hover .server-stat {
    border-color: rgba(252, 227, 143, 0.1);
}

.about .server-stat i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ba55c;
}

.about .server-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.about .join-server-btn {
    width: 100%;
    padding: 0.8rem 1.4rem;
    background: var(--primary-color);
    color: var(--surface-color);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.about .join-server-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 227, 143, 0.2);
}

.about .join-server-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .about .server-card {
        margin: 0;
        width: 100%;
    }

    .about .server-icon {
        width: 48px;
        height: 48px;
    }

    .about .server-buttons {
        flex-direction: column;
    }
}

/* Server Card for the discord preview thing - Dynamic server memeber grabbing code or something for it soon pls */
.server-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 227, 143, 0.2), transparent);
    transform: translateY(-1px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 227, 143, 0.1);
}

.server-card:hover::before {
    opacity: 1;
}

.server-content {
    flex: 1;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.server-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(252, 227, 143, 0.2);
    transition: all 0.3s ease;
}

.server-card:hover .server-icon {
    border-color: rgba(252, 227, 143, 0.4);
}

.server-info h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.server-stats {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.server-stat {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.server-card:hover .server-stat {
    border-color: rgba(252, 227, 143, 0.1);
}

.server-stat i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.server-buttons {
    margin-top: 1.5rem;
}

.manage-server-btn {
    width: 100%;
    padding: 0.8rem 1.4rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid rgba(252, 227, 143, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.manage-server-btn:hover {
    background: var(--primary-color);
    color: rgb(253, 236, 180);
    transform: translateY(-1px);
}

.manage-server-btn.add-bot {
    background: rgba(252, 227, 143, 0.05);
    border-color: transparent;
    color: #ffffff;
}

.manage-server-btn.add-bot:hover {
    background: rgb(253, 236, 180);
    color: var(--surface-color);
    transform: translateY(-2px);
}

/* Server Grid Layout */
.servers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1rem;
}

.server-category {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

.server-category h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.server-category h3 i {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.server-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

/* Server Card Styling */
.server-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.server-card:hover::before {
    opacity: 1;
}

.server-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.server-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.server-card:hover .server-icon {
    border-color: var(--primary-color);
}

.server-info {
    flex: 1;
}

.server-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.server-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.server-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.server-stat i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.server-buttons {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.manage-server-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.manage-server-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Loading State */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .server-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .server-list {
        grid-template-columns: 1fr;
    }

    .server-card {
        min-height: auto;
    }

    .server-header {
        flex-direction: column;
        text-align: center;
    }

    .server-stats {
        justify-content: center;
    }

    .server-buttons {
        flex-direction: column;
    }
}

/* Dashboard Styles */
.dashboard {
    background-color: var(--bg-color);
    min-height: 100vh;
    padding-top: 5rem;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.server-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(252, 227, 143, 0.2);
}

.server-info h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.server-status.online i {
    color: #3ba55c;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.tab-link i {
    font-size: 1.1rem;
}

.tab-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.02);
}

.tab-link.active {
    color: var(--primary-color);
    background: rgba(252, 227, 143, 0.05);
    border-bottom: 2px solid var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;

}

.tab-content.active {
    display: block;

}

.dashboard-content {
    padding: 1rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.server-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    flex: 1;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(252, 227, 143, 0.2);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    border-color: rgba(252, 227, 143, 0.2);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-header h3 i {
    color: var(--primary-color);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Settings Styles */
.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.settings-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.setting-input, .setting-select {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    width: 200px;
}

.setting-input:focus, .setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.setting-select option {
    background-color: var(--bg-color);
    color: var(--text-secondary);
}

.setting-select option:hover {
    background-color: rgba(252, 227, 143, 0.1);
    color: var(--primary-color);
}

.setting-input:focus, .setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Image Input Setting */
.setting-image-input {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
}

.setting-image-input button.upload-btn {
    all: unset;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: inherit;
    line-height: normal;
}

.setting-image-input .upload-btn:hover {
    background: rgba(252, 227, 143, 0.1);
    border-color: rgba(252, 227, 143, 0.2);
}

/* Hidden file input (label styling makes it clickable) */
.setting-image-input input[type="file"] {
    display: none;
}

/* Modules Styles */
.modules-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: rgba(252, 227, 143, 0.2);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.module-header h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.module-header h3 i {
    color: var(--primary-color);
}

.module-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Misc Styles */
.misc-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.misc-card {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.misc-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.misc-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.misc-btn:hover {
    background: rgba(252, 227, 143, 0.1);
    border-color: rgba(252, 227, 143, 0.2);
}

/* Help Styles */
.help-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.help-card {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.help-link:hover {
    text-decoration: underline;
}

/* Music Player Styles */
.music-player .now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.music-player .album-art {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.music-player .track-info h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.music-player .track-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.music-player .player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

.music-player .control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.music-player .control-btn:hover {
    color: var(--primary-color);
    background: rgba(252, 227, 143, 0.1);
}

.music-player .control-btn.play {
    font-size: 1.5rem;
    background: var(--primary-color);
    color: var(--surface-color);
    padding: 0.8rem;
}

.music-player .control-btn.play:hover {
    transform: scale(1.1);
}

/* Moderation Styles */
.moderation .mod-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.moderation .mod-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.moderation .mod-stat .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.moderation .recent-actions h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.moderation .action-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.moderation .action-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.moderation .action-list li i {
    color: var(--primary-color);
    font-size: 1rem;
}

.moderation .action-list li span {
    color: var(--text-color);
    font-size: 0.9rem;
}

.moderation .action-list li .action-time {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Ticket Styles */
.tickets .ticket-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tickets .ticket-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tickets .ticket-stat .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.tickets .recent-tickets h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tickets .ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tickets .ticket-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tickets .ticket-id {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.tickets .ticket-title {
    color: var(--text-color);
    font-size: 0.9rem;
    flex: 1;
}

.tickets .ticket-status {
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tickets .ticket-status.open {
    background: rgba(59, 165, 92, 0.1);
    color: #3ba55c;
    border: 1px solid rgba(59, 165, 92, 0.2);
}

.tickets .ticket-status.closed {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Analytics Styles */
.analytics .analytics-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analytics .analytics-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics .analytics-stat .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.analytics .chart-container {
    height: 200px;
    margin-top: auto;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        padding: 0 1.5rem;
    }

    .dashboard-tabs {
        gap: 0.3rem;
    }

    .tab-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 0 1rem;
    }

    .server-stats {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-items {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-color);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }

    .nav-items.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.8rem 0;
    }

    .login-btn {
        width: 100%;
    }

    .dashboard-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tab-link {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .dashboard-content {
        padding: 0.5rem 0;

    }

    .dashboard-card {
        border-radius: 12px;
    }

    .card-header {
        padding: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .music-player .now-playing {
        flex-direction: column;
        text-align: center;
    }

    .moderation .mod-stats,
    .tickets .ticket-stats,
    .analytics .analytics-stats {
        grid-template-columns: 1fr;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .setting-input, .setting-select {
        width: 100%;
    }

    .misc-buttons {
        flex-direction: column;
    }
}

/* Server Page Header */
.servers-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 6rem 0 2rem;
    position: relative;
}

.servers-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #fff5d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
}

.servers-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.servers-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 3px;
}

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5; /* Or match your site's background color */
    font-family: Arial, sans-serif;
}

.error-container {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-title {
    font-size: 36px;
    font-weight: bold;
    color: #e74c3c; /* A red color for error message */
}

.error-message {
    font-size: 18px;
    color: #555;
    margin: 20px 0;
}

.error-action .back-home {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #3498db; /* Blue button */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.error-action .back-home:hover {
    background-color: #2980b9;
}



/* REVIEWS */
.reviews {
  padding: 4rem 0;
  overflow: hidden;
}

.review-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

#reviewCarousel {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  backface-visibility: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#reviewCarousel::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 25%;
  padding: 1rem;
  transform: scale(0.9);
  transition: transform 0.6s ease, opacity 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-color);
  border-radius: 16px;
  opacity: 0.6;
  z-index: 1;
  overflow: hidden;
}

.review-card .review-text {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Enlarge when active center */
.review-card.large {
  flex: 0 0 50%;
  transform: scale(1);
  opacity: 1;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(252, 227, 143, 0.2);
  z-index: 2;
}

.review-card.large .review-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  text-overflow: unset;
}

/* Animate incoming */
.review-card.incoming {
  flex: 0 0 50%;
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

/* Animate outgoing */
.review-card.outgoing {
  flex: 0 0 25%;
  transform: scale(0.9);
  opacity: 0.6;
  z-index: 1;
}

.review-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
  margin-bottom: 1rem;
}

.review-user {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-family: Arial, Helvetica, sans-serif !important;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ccc; /* gray for unfilled */
  font-size: 18px;
}

.star.filled {
  color: gold; /* gold for filled */
}

.average-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  font-size: 18px;
  margin-top: 5px;
}

.average-rating .star {
  color: #ccc;
}

.average-rating .star.filled {
  color: gold;
}

.avg-number {
  font-weight: bold;
}

.news {
  background-color: var(--bg-color);
  padding: 6rem 0;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.news-version-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.news-version-selector label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.news-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.news-card {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(252, 227, 143, 0.15);
}

.news-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.news-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .news-container {
    grid-template-columns: 1fr;
  }
}

/* Discord-like channel styling */
.channel-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.5rem;
  width: 100%;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.2s ease;
}

.channel i {
  color: var(--text-secondary);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.channel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

.channel.active {
  background: rgba(252, 227, 143, 0.1);
  color: var(--primary-color);
}

.channel svg {
  color: #5865F2; /* Discord blurple */
  vertical-align: middle;
}

button[disabled] { opacity:.6; pointer-events:none; }


.user-list {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 0.5rem;
  width: 100%;
}

.user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: default;
  transition: background 0.2s ease;
}

.user i {
  color: var(--text-secondary);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.user:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

.user svg {
  color: #5865F2; /* Discord blurple */
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

button[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* Fullscreen Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

/* Modal Content Box */
.modal-card {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: fadeInScale 0.3s ease;
}

.modal-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.modal-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Animation */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Reuse modal-overlay and modal-card */
#customAlert .modal-card {
    max-width: 360px;
}

#customAlert h3 {
    font-size: 1.2rem;
}

#customAlert p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}


.container {
    padding: 10px 50px;
    margin-top: 5rem;
}

/* Import header styles */
/* ... (copy header styles from home.css) ... */

/* Premium Hero Section */
.premium-hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: rgba(21, 21, 21, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid rgba(252, 227, 143, 0.1);
}

.premium-hero h1 {
    font-size: 3em;
    margin-bottom: 1rem;
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-hero .subtitle {
    font-size: 1.5em;
    color: #f0f0f0;
    opacity: 0.9;
}

/* Premium Tiers Section */
.premium-tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    margin: 0 auto;
    max-width: 1400px;
}

.tier-card {
    background: rgba(21, 21, 21, 0.7);
    border: 1px solid var(--premium-gold);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--premium-glow);
    z-index: 3;
}

.tier-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(252, 227, 143, 0.2);
}

.tier-header i {
    font-size: 2.5em;
    color: var(--premium-gold);
    margin-bottom: 1rem;
}

.tier-header h2 {
    font-size: 1.8em;
    color: var(--premium-gold);
    margin: 0.5rem 0;
}

.price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--premium-gold);
}

.price-subtitle {
    color: #f0f0f0;
    opacity: 0.7;
    font-size: 0.9em;
}

/* Features */
.tier-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: calc(var(--border-radius) / 2);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(252, 227, 143, 0.05);
}

.feature i {
    color: var(--premium-gold);
    font-size: 1.2em;
}

/* Purchase Button */
.purchase-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 2rem);
    margin: 2rem auto 0;
    height: 3rem;
    background: var(--premium-gradient);
    color: var(--dark-bg);
    text-decoration: none;
    text-align: center;
    border-radius: calc(var(--border-radius) / 2);
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.purchase-btn:hover::before {
    left: 100%;
}

/* Popular Tag */
.popular-tag {
    position: absolute;
    top: 35px;
    right: -65px;
    transform: rotate(45deg);
    background: var(--premium-gold);
    color: var(--dark-bg);
    padding: 8px 60px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    width: auto;
}

/* Badge 2 Highlight */
.badge-2 {
    border-width: 2px;
    transform: scale(1.05);
    z-index: 2;
    position: relative;
}

.badge-2:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Features Breakdown Section */
.features-breakdown {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--premium-gold);
    border-radius: var(--border-radius);
}

.features-breakdown h2 {
    text-align: center;
    color: var(--premium-gold);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .premium-tiers {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .badge-2 {
        grid-column: span 2;  /* Make middle card span full width */
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px 20px;
    }

    .premium-hero h1 {
        font-size: 2em;
    }

    .premium-hero .subtitle {
        font-size: 1.2em;
    }

    .premium-tiers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .badge-2 {
        grid-column: auto;  /* Reset grid span */
    }

    .tier-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .popular-tag {
        font-size: 0.7em;
        padding: 6px 50px;
    }

    .tier-header {
        padding: 1.5rem;
    }

    .tier-features {
        padding: 0 1rem;
    }

    .purchase-btn {
        margin: 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .premium-hero h1 {
        font-size: 2em;
    }

    .premium-hero .subtitle {
        font-size: 1.1em;
    }

    .tier-card {
        padding: 1.5rem;
    }

    .feature {
        padding: 0.8rem;
    }
}

/* Add scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--premium-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--premium-dark);
}

/* Add navbar styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    padding: 0.5rem 0;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile responsiveness for navbar */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(21, 21, 21, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* Premium button in navbar - single consolidated style */
.nav-link.premium-button {
    color: #fce38f;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0.8rem 1.2rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Keep icon and text together */
.nav-link.premium-button i {
    color: #fce38f;
    transition: color 0.3s;
    margin-right: 0;
}

.nav-link.premium-button span {
    animation: breathe 1.5s infinite alternate;
    animation-delay: calc(0.1s * var(--i));
    transition: color 0.3s;
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Premium button letter animations */
.nav-link.premium-button span:nth-child(1) { --i: 1; }
.nav-link.premium-button span:nth-child(2) { --i: 2; }
.nav-link.premium-button span:nth-child(3) { --i: 3; }
.nav-link.premium-button span:nth-child(4) { --i: 4; }
.nav-link.premium-button span:nth-child(5) { --i: 5; }
.nav-link.premium-button span:nth-child(6) { --i: 6; }
.nav-link.premium-button span:nth-child(7) { --i: 7; }

@keyframes breathe {
    0% {
        color: #fce38f;
    }
    100% {
        color: #f9d84e;
    }
}

/* Add hover effect for nav links */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Fix nav-link hover when it's also a premium button */
.nav-link.premium-button:hover {
    color: #fce38f;
}

.nav-link.premium-button:hover span {
    text-shadow: 0 0 8px rgba(252, 227, 143, 0.6);
}

/* Keep everything gold when active */
.nav-link.premium-button.active,
.nav-link.premium-button.active i {
    color: #fce38f;
}

/* Override the default active state */
.nav-link.premium-button.active::after {
    background: #fce38f;
}

/* Fix premium button positioning in mobile menu */
@media (max-width: 768px) {
    .nav-link.premium-button {
        justify-content: center;  /* Center the premium button content */
        margin: 0 auto;  /* Center the button itself */
        width: auto;  /* Allow natural width */
        padding: 0.8rem 1.2rem;
    }

    .nav-menu .premium-button {
        display: inline-flex;
        align-items: center;
        gap: 0;  /* Remove gap between icon and text */
    }

    .nav-menu .premium-button i {
        margin-right: 0;  /* Remove margin from icon */
    }
}


.question-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.question-input {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-color, #1e1e1e);
  color: var(--text-color, #fff);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  resize: none;
  line-height: 1.2em;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  font-family: inherit;
}

.char-counter {
  font-size: 0.7rem;
  color: #7a7a7a;
  text-align: left;
  margin-top: 4px;
}

.char-counter.warning {
  color: #f39c12;
}

.char-counter.error {
  color: #e74c3c;
}

#question-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#add-question:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



.channel-edit-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  position: relative;
}

.channel-name {
  flex: 1;
  padding-right: 40px;
}

.channel-number {
  color: var(--text-secondary, #aaa);
  font-weight: 500;
  user-select: none;
  pointer-events: none;
  position: absolute;
  right: 40px;
}

.channel.editable-channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-name {
  border: none;
  background: transparent;
  font: inherit;
  width: 100%;
  color: var(--primary-color);
  outline: none;
  transition: background 0.2s;
}

.channel-name:focus {
  background: rgba(255,255,255,0.05);
}

.edit-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  opacity: 0.6;
}

.edit-btn:hover {
  opacity: 1;
}


.rec-amount-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cta-btn.active {
  background: var(--primary-color);
  color: var(--surface-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(252, 227, 143, 0.25);
}

/* Embed + Controls container */
.embed-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0 20px 20px;
    max-width: 100%;
}

/* Embed container */
.discord-embed {
    display: flex;
    flex-direction: column;
    border-left: 4px solid #5865F2; /* Default embed color */
    background-color: #2f3136;
    color: #dcddde;
    border-radius: 4px;
    padding: 16px;
    max-width: 640px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    flex: 1;
}

.discord-embed-join {
    display: inline-block;
    background-color: #2f3136;
    color: #dcddde;
    border-left: 4px solid #5865F2;
    border-radius: 4px;
    padding: 16px 10px 13px 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
    width: fit-content;       /* <<< Shrinks to content */
    max-width: 620px;         /* 600px image + 20px padding */
    box-sizing: content-box;  /* <<< Critical to not include padding in width calc */
}

.discord-embed-leave {
    display: inline-block;
    background-color: #2f3136;
    color: #dcddde;
    border-left: 4px solid #5865F2;
    border-radius: 4px;
    padding: 16px 10px 13px 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
    width: fit-content;       /* <<< Shrinks to content */
    max-width: 620px;         /* 600px image + 20px padding */
    box-sizing: content-box;  /* <<< Critical to not include padding in width calc */
}

/* Inputs */
.embed-title,
.embed-description {
    display: block;
    max-width: 100%;
    width: 100%;             /* This now respects parent */
    box-sizing: border-box;
    background-color: #2f3136;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 6px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.embed-title::placeholder,
.embed-description::placeholder {
    color: #b9bbbe;
    opacity: 0.8;
}

.embed-title {
    font-size: 16px;
    font-weight: 600;
}

.embed-description {
    font-size: 14px;
    color: #b9bbbe;
    resize: none;
    min-height: 60px;
    overflow: hidden;
}

.setting-image-input {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.extra-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 260px;
}

.image-preview {
    display: block;
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
}

.image-preview:not([src]):not([alt="Uploaded Resized Image"]) {
    display: none;
}

/* Controls section */
.embed-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 260px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
}

.upload-btn {
    background-color: #4f545c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.image-settings-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.upload-btn:hover {
    background-color: #5d626a;
}

#imageUploadJoin {
    display: none;
}

#imageUploadLeave {
  display: none;
}




/* Sliders */
.slider {
    width: 200px;
    height: 20px;
    appearance: none;
    border-radius: 10px;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid black;
    border-radius: 50%;
}

.section-label {
    display: block;
    color: #b9bbbe;
    font-size: 13px;
    margin-bottom: 4px;
}


.tab-background {
    position: fixed;            /* fixed in viewport */
    bottom: 0;                  /* align to bottom */
    left: 0;                    /* align to left */
    width: 100vw;               /* full viewport width */
    height: 100vh;              /* full viewport height */
    z-index: -1;                /* behind all content */
    pointer-events: none;       /* clicks pass through */
    background-size: auto 80%;  /* scale image height to 80% of viewport */
    background-repeat: no-repeat;
    background-position: left bottom; /* image anchored bottom-left */
    opacity: 0;                 /* hidden by default */
    transform: translateY(0);
    animation: floatBG 6s ease-in-out infinite;
}

/* optional subtle floating animation */
@keyframes floatBG {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.index-background {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 1024px;
    aspect-ratio: 1 / 1;    /* ensures container has height */
    z-index: -1;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    filter: brightness(0.6);
    transition: filter 0.4s ease, opacity 0.4s ease;
}

@media (max-width: 768px) {

    /* Hide background image completely on mobile */
    #index-bg.index-background {
        display: none !important;
    }

    /* General hero layout */
    .hero {
        width: 100%;
        padding-top: 7rem;
        padding-bottom: 3rem;
        overflow: hidden;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        width: 100%;
        max-width: 90vw;
        margin: 0 auto;
    }

    /* Stats in one row, centered */
    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem; /* space between the three items */
        margin-bottom: 2rem;
        padding: 1rem 0;
        flex-wrap: nowrap; /* prevent wrapping */
    }

    .stat {
        text-align: center;
        min-width: 80px; /* ensures equal spacing */
    }

    .stat-number {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .stat-label {
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Center hero buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .cta-btn,
    .secondary-btn {
        width: 80%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Wrapper fully responsive, no clipping */
    .embed-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;           /* allow slight horizontal growth if needed */
        overflow-y: visible;        /* ? ensures textarea bottom never cut off */
        box-sizing: border-box;
        padding: 0 1rem;
    }

    /* Inner container adapts to content height */
    .embed-wrapper .extra-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow: visible;          /* ? allow inner elements to grow */
    }

    /* Embed container stretches naturally */
    .discord-embed-leave,
    .embed-wrapper .discord-embed-leave {
        width: 100%;
        max-width: 100%;
        overflow: visible;          /* ? no clipping */
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Text input + textarea responsive and auto-growing */
    .embed-wrapper input[type="text"],
    .embed-wrapper textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        line-height: 1.4;
        resize: none;               /* JS handles auto height already */
    }

    .embed-wrapper textarea {
        min-height: 80px;
        overflow-y: visible;        /* ? allow full text to show */
    }

    /* Image and upload controls still centered */
    .embed-wrapper .setting-image-input,
    .embed-wrapper .image-settings-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .embed-wrapper .upload-btn {
        flex: 1 1 auto;
        max-width: 200px;
        text-align: center;
    }

    .embed-wrapper img.image-preview {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Global safeguard */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* --- Mobile fix: Server Members layout cleanup --- */
@media (max-width: 768px) {

    #serverMembersContainer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        box-sizing: border-box;
    }

    /* Each member block stacks vertically */
    .member-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(200,200,200,0.2);
        width: 100%;
        box-sizing: border-box;
    }

    /* Avatar + names row */
    .member-item > div:first-child {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
        overflow: hidden;
    }

    .member-item img {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .member-item div div {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .member-item div div:first-child {
        font-weight: 600;
        font-size: 0.95rem;
    }

    .member-item div div:last-child {
        color: #ffffff;
        font-size: 0.8rem;
    }

    /* Buttons now in their own row below the name */
    .member-item > div:last-child {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .member-item button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        min-width: 90px;
        text-align: center;
        white-space: nowrap;
    }

    .kick-btn,
    .ban-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
    }

    #serverMembersContainer,
    .member-item {
        font-size: 0.9rem;
    }
}

/* Fiery entrance: soft fade + lift + glow flare */
@keyframes ignite {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
        filter: brightness(0.6);
    }
    25% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.05);
        filter: brightness(1.4);
    }
    55% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
        filter: brightness(1.15);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
        filter: brightness(1);
    }
}

/* Idle: subtle floating shimmer */
@keyframes idleFloat {
    0%, 100% {
        transform: translateY(-50%) translateY(0);
        filter: brightness(1);
    }
    25% {
        transform: translateY(-50%) translateY(-10px);
        filter: brightness(1.05);
    }
    50% {
        transform: translateY(-50%) translateY(0);
        filter: brightness(0.96);
    }
    75% {
        transform: translateY(-50%) translateY(-6px);
        filter: brightness(1.08);
    }
}

/* Classes that control state */
.index-background.start {
    animation: ignite 3.5s ease-out forwards;
}

.index-background.idle {
    animation: idleFloat 7s ease-in-out infinite;
}

/* Hover: faint glow pulse */
.index-background:hover {
    filter: brightness(1.25) drop-shadow(0 0 35px rgba(255, 180, 70, 0.6));
}



/* New Notes Analytics Card */
.notes-analytics .analytics-stats {
    display: grid;
    grid-template-columns: 1fr; /* single stat for total notes */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.notes-analytics .analytics-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.notes-analytics .analytics-stat .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.notes-analytics .chart-container {
    height: 200px; /* bigger semicircle */
    margin-top: auto;
}

.notes-analytics .chart-container canvas {
    display: block;
    margin: 0 auto;
}

.music-queue-analytics .analytics-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.music-queue-analytics .analytics-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.music-queue-analytics .analytics-stat .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

/* identical to .notes-analytics dimensions */
.music-queue-analytics .chart-container {
    height: 200px; /* match notes chart height */
    margin-top: auto;
    position: relative;
}

.music-queue-analytics canvas {
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-shared {
    height: 200px;
    margin-top: auto;
}

.chart-shared canvas {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}


/* Info popup styling */
.info-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #888;
  font-size: 0.85em;
  transition: color 0.2s ease;
  vertical-align: middle;
}

.info-container:hover {
  color: var(--primary-color);
}

/* Popup box */
.info-popup {
  position: absolute;
  top: 160%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 240px;
  background: rgba(25, 25, 25, 0.95);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--primary-color);
  font-size: 0.85rem;
  line-height: 1.4em;
  opacity: 0;
  visibility: hidden; /* 🚀 use visibility instead of pointer-events for better timing */
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  z-index: 100;
  text-transform: none !important;
  margin-top: 6px; /* gap buffer */
}

/* When hovering icon OR popup — keep it open */
.info-container:hover .info-popup,
.info-container .info-popup:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  transition-delay: 0s, 0s, 0s; /* no delay when appearing */
}

/* Optional: gentle fade-out delay */
.info-container:not(:hover) .info-popup {
  transition-delay: 0.15s, 0.15s, 0.15s;
}

/* Icon adjustment */
.info-container i {
  position: relative;
  top: -2.5px;
  font-size: 0.85em;
}

/* Link styling */
.info-popup .premium-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.info-popup .premium-link:hover {
  color: var(--light-primary);
  text-shadow: 0 0 6px rgba(252, 227, 143, 0.4);
}


/* When hovering icon OR popup — keep it open */
.info-container-appy {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #888;
  font-size: 0.85em;
  transition: color 0.2s ease;
  vertical-align: middle;
}

.info-container-appy:hover {
  color: var(--primary-color);
}

.info-container-appy:hover .info-popup,
.info-container-appy .info-popup:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  transition-delay: 0s, 0s, 0s; /* no delay when appearing */
}

/* Optional: gentle fade-out delay */
.info-container-appy:not(:hover) .info-popup {
  transition-delay: 0.15s, 0.15s, 0.15s;
}

.info-container-appy i {
  position: relative;
  top: 15px;
  font-size: 1.3em;
  text-shadow: 0 0 4px #000;
}


