﻿/**
 * Bernd Bot - Dashboard Styles
 * Modern, responsive design with Discord-inspired theme
 */

/* ==================== Variables ==================== */
:root {
    /* Colors - Discord Theme */
    --discord-blurple: #5865F2;
    --discord-dark: #2b2d31;
    --discord-darker: #1e1f22;
    --discord-light: #313338;
    --discord-lighter: #383a40;
    --discord-green: #23a559;
    --discord-yellow: #f0b232;
    --discord-red: #f23f43;
    --discord-fuchsia: #eb459e;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    --gradient-secondary: linear-gradient(135deg, #23a559 0%, #43b581 100%);
    --gradient-danger: linear-gradient(135deg, #f23f43 0%, #eb459e 100%);
    --gradient-hero: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, rgba(235, 69, 158, 0.05) 100%);
    --gradient-card: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
    
    /* Text */
    --text-primary: #f2f3f5;
    --text-secondary: #b5bac1;
    --text-muted: #80848e;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(88, 101, 242, 0.4);
    --shadow-glow-green: 0 0 20px rgba(35, 165, 89, 0.4);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--discord-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 31, 34, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(88, 101, 242, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
    border: 2px solid rgba(88, 101, 242, 0.2);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* â”€â”€ Nav Dropdown (Mehr) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-more-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-more-chevron {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
    background: #2b2d31;
    border: 1px solid rgba(88,101,242,0.25);
    border-radius: 12px;
    padding: 0.4rem;
    min-width: 170px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 500;
    flex-direction: column;
    gap: 0.15rem;
    animation: navSlideDown 0.18s ease;
}
.nav-dropdown.open .nav-dropdown-menu {
    display: flex;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: rgba(88,101,242,0.18);
    color: var(--text-primary);
}
.nav-dropdown-item i { width: 1rem; text-align: center; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    box-shadow: var(--shadow-glow);
}

/* Nav CTA Button (Einladen) */
.nav-link-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #f0b132, #d4930e) !important;
    color: #1a1a2e !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.nav-link-premium:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #5865F2 100%);
    background-size: 200% auto;
    color: #fff !important;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-position 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.5);
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    transition: left 0.55s ease;
}

.nav-cta:hover::after {
    left: 160%;
}

.nav-cta:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.75);
    color: #fff !important;
}

.nav-cta:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(20, 21, 26, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem var(--spacing-md) 1.4rem;
        gap: 0.4rem;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
        border-bottom: 2px solid rgba(88, 101, 242, 0.4);
        /* display:none = completely removed from paint tree, no click interception */
        display: none;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        animation: navMobileOpen 0.22s ease forwards;
    }

    @keyframes navMobileOpen {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-link {
        padding: 0.75rem var(--spacing-sm);
        border-radius: var(--radius-md);
        background: rgba(88, 101, 242, 0.08);
        border: 1px solid rgba(88, 101, 242, 0.14);
        transition: background 0.15s ease;
        text-align: left;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(88, 101, 242, 0.2);
        transform: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 0.5rem;
        justify-content: center;
        padding: 0.75rem var(--spacing-sm);
        border-radius: var(--radius-md);
    }

    .mobile-menu-btn {
        display: block;
        transition: var(--transition);
    }

    .mobile-menu-btn:hover {
        color: var(--discord-blurple);
        transform: scale(1.1);
    }

    /* Dropdown: always expanded inline on mobile, no toggle */
    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    /* Hide the "Mehr" toggle button on mobile â€“ show items directly */
    .nav-more-btn {
        display: none;
    }
    /* Always visible on mobile */
    .nav-dropdown-menu {
        display: flex;
        flex-direction: column;
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.4rem;
        min-width: unset;
        opacity: 1;
        visibility: visible;
        animation: none;
        pointer-events: auto;
    }
    .nav-dropdown-item {
        padding: 0.75rem var(--spacing-sm);
        background: rgba(88, 101, 242, 0.08);
        border: 1px solid rgba(88, 101, 242, 0.14);
        border-radius: var(--radius-md);
        font-size: 0.95rem;
    }
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(135deg, #5865F2, #7289DA, #5865F2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5), 0 0 30px rgba(88, 101, 242, 0.2);
}

.btn-primary:hover::after {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--discord-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--discord-lighter);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--discord-blurple);
    color: var(--discord-blurple);
    position: relative;
}

.btn-outline:hover {
    background: var(--discord-blurple);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    animation: pulse 6s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(235, 69, 158, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    left: -200px;
    animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(88, 101, 242, 0.05);
    border-radius: var(--radius-md);
    border: 2px solid rgba(88, 101, 242, 0.1);
    transition: var(--transition);
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.1);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    text-align: center;
    z-index: 1;
}

.bot-image {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(88, 101, 242, 0.3);
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(88, 101, 242, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.status-badge {
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(30, 31, 34, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(35, 165, 89, 0.3);
    border: 2px solid rgba(35, 165, 89, 0.5);
    font-weight: 700;
    font-size: 0.95rem;
}

.status-online {
    color: var(--discord-green);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        flex: 1;
        min-width: 90px;
    }
    
    .bot-image {
        max-width: 280px;
    }
    
    .status-badge {
        bottom: -10px;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* ==================== Sections ==================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==================== Features Section ==================== */
.features {
    background: var(--discord-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--discord-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.2), 0 0 20px rgba(88, 101, 242, 0.1);
    background: linear-gradient(135deg, var(--discord-light) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(360deg);
}

.feature-title {
    margin-bottom: var(--spacing-xs);
}

.feature-description {
    color: var(--text-secondary);
}

.feature-card-skeleton {
    background: var(--discord-light);
    height: 200px;
    border-radius: var(--radius-lg);
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== Commands Section ==================== */
.command-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;       /* natural wrap on desktop */
    padding: 4px 0 10px;   /* top gap lets hover-lift show without clipping */
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    background: var(--discord-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.category-btn:hover,
.category-btn.active {
    background: var(--discord-blurple);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.5);
}

.category-btn.active::before {
    left: 0;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.command-card {
    background: var(--discord-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--discord-blurple);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.command-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2);
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.05) 0%, var(--discord-light) 100%);
    border-left-color: transparent;
}

.command-card:hover::before {
    height: 100%;
}

.command-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.command-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--discord-blurple);
}

.command-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.command-card-skeleton {
    background: var(--discord-light);
    height: 120px;
    border-radius: var(--radius-lg);
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* ==================== Statistics Section ==================== */
.statistics {
    background: var(--discord-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--discord-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-card:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.15);
    transform: translateY(-5px);
}

.stat-card-header {
    background: linear-gradient(135deg, var(--discord-lighter) 0%, var(--discord-light) 100%);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 2px solid rgba(88, 101, 242, 0.3);
    position: relative;
}

.stat-card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover .stat-card-header::after {
    transform: scaleX(1);
}

.stat-card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.1rem;
}

.stat-card-body {
    padding: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

.command-stat,
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: var(--discord-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.command-stat:hover,
.activity-item:hover {
    background: var(--discord-darker);
}

.command-stat-name,
.activity-type {
    font-weight: 600;
    color: var(--text-primary);
}

.command-stat-count {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.loading-spinner {
    text-align: center;
    padding: var(--spacing-lg);
    font-size: 2rem;
    color: var(--discord-blurple);
}

/* ==================== Invite Section ==================== */
.invite-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.invite-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 5s ease-in-out infinite;
}

.invite-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    background: linear-gradient(135deg, var(--discord-light) 0%, rgba(88, 101, 242, 0.1) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(88, 101, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.invite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(88, 101, 242, 0.03) 50%, transparent 100%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.invite-title {
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

.invite-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.invite-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.invite-image img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.3);
    border: 3px solid rgba(88, 101, 242, 0.3);
    transition: var(--transition);
}

.invite-image img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 50px rgba(88, 101, 242, 0.4);
}

@media (max-width: 968px) {
    .invite-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .invite-buttons {
        justify-content: center;
    }
    
    .invite-image {
        text-align: center;
    }
}

/* ==================== Footer ==================== */
.footer {
    background: var(--discord-darker);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 2px solid rgba(88, 101, 242, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    align-items: start;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
    border: 2px solid rgba(88, 101, 242, 0.3);
    transition: var(--transition);
}

.footer-logo:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.footer-brand h3 {
    margin-top: var(--spacing-xs);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--discord-blurple);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.footer-column a::before {
    content: 'â†’';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--discord-blurple);
}

.footer-column a:hover {
    color: var(--discord-blurple);
    padding-left: 20px;
}

.footer-column a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--discord-light);
    color: var(--text-muted);
}

.footer-bottom i {
    color: var(--discord-red);
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-column a::before {
        display: none;
    }

    .footer-column a:hover {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== Scroll to Top ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.scroll-to-top:active {
    transform: translateY(-5px) scale(1.05);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--discord-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--discord-blurple) 0%, rgba(88, 101, 242, 0.6) 100%);
    border-radius: 6px;
    border: 2px solid var(--discord-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--discord-blurple);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

/* ==================== Utilities ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ==================== Additional Discord Effects ==================== */

/* Glow on hover for important elements */
.nav-logo,
.bot-image {
    transition: var(--transition);
}

.nav-logo:hover {
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.6));
    transform: scale(1.1);
}

/* Command stat improved styling */
.command-stat:hover,
.activity-item:hover {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.1) 0%, var(--discord-dark) 100%);
    border-left: 3px solid var(--discord-blurple);
    padding-left: calc(var(--spacing-sm) + 3px);
}

/* Section backgrounds with subtle patterns */
.features,
.statistics {
    position: relative;
}

.features::before,
.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(88, 101, 242, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(235, 69, 158, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Improved loading spinner */
.loading-spinner {
    text-align: center;
    padding: var(--spacing-lg);
    font-size: 2rem;
}

.loading-spinner i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge styles for status indicators */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: var(--gradient-secondary);
    color: var(--text-primary);
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

/* Smooth reveal animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Discord hover state for links */
a:not(.btn):not(.nav-link) {
    color: var(--discord-blurple);
    transition: var(--transition-fast);
}

a:not(.btn):not(.nav-link):hover {
    color: #7289DA;
    text-decoration: underline;
}

/* Improved footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(88, 101, 242, 0.1);
    color: var(--text-muted);
}

.footer-bottom i {
    color: var(--discord-red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* Button icon animations */
.btn-primary:hover .fa-discord {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* ==================== MOBILE OVERHAUL ==================== */

/* -- Tablet (â‰¤ 900px) ---------------------------------------- */
@media (max-width: 900px) {
    .hero-content       { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-image         { order: -1; }
    .hero-buttons       { justify-content: center; }
    .hero-stats         { justify-content: center; }
    .bot-image          { max-width: 240px; }

    .invite-card        { grid-template-columns: 1fr; text-align: center; }
    .invite-buttons     { justify-content: center; flex-wrap: wrap; }
    .invite-image       { display: none; }

    .stats-grid         { grid-template-columns: 1fr; }

    .footer-content     { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .footer-links       { justify-content: center; }
    .footer-brand       { align-items: center; }
    .footer-column a::before { display: none; }
    .footer-column a:hover   { padding-left: 0; }
}

/* -- Phone (â‰¤ 768px) ----------------------------------------- */
@media (max-width: 768px) {
    /* Base */
    .container          { padding: 0 1rem; }
    section             { padding: 2.5rem 0; }

    /* Typography */
    h1                  { font-size: 2rem; }
    h2                  { font-size: 1.65rem; }
    h3                  { font-size: 1.25rem; }
    .section-header     { margin-bottom: 1.5rem; }
    .section-title      { font-size: 1.65rem; }
    .section-subtitle   { font-size: 0.92rem; }

    /* Hero */
    .hero               { padding-top: 68px; }
    .hero-content       { grid-template-columns: 1fr; text-align: center; gap: 1.75rem; }
    .hero-image         { order: -1; }
    .hero-title         { font-size: 1.9rem; margin-bottom: 0.75rem; }
    .hero-subtitle      { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .hero-buttons       {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 1.75rem;
    }
    .hero-buttons .btn  { width: 100%; max-width: 320px; justify-content: center; }
    .hero-stats         { justify-content: center; gap: 0.75rem; }
    .stat-item          { padding: 0.7rem 0.9rem; flex: 1; min-width: 0; }
    .stat-number        { font-size: 1.5rem; }
    .stat-label         { font-size: 0.78rem; }
    .bot-image          { max-width: 200px; }
    .status-badge       { font-size: 0.8rem; padding: 0.5rem 1rem; }

    /* Features */
    .features-grid      { grid-template-columns: 1fr; gap: 0.75rem; }
    .feature-card       { padding: 1.25rem; }
    .feature-card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .feature-icon       { font-size: 2.2rem; }
    .feature-card:hover .feature-icon { transform: none; }

    /* Commands */
    .command-categories {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.4rem;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .command-categories::-webkit-scrollbar { display: none; }
    .category-btn       { flex-shrink: 0; padding: 0.5rem 0.9rem; font-size: 0.82rem; }
    .commands-grid      { grid-template-columns: 1fr; gap: 0.65rem; }
    .command-card       { padding: 1rem; }
    .command-card:hover { transform: none; }
    .command-name       { font-size: 1rem; }
    .command-description{ font-size: 0.88rem; }

    /* Statistics */
    .stats-grid         { grid-template-columns: 1fr; gap: 0.75rem; }
    .stat-card-body     { max-height: 280px; }

    /* Invite */
    .invite-card        {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.75rem 1.25rem;
        gap: 1.25rem;
    }
    .invite-title       { font-size: 1.8rem; }
    .invite-text        { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .invite-buttons     { flex-direction: column; align-items: center; gap: 0.65rem; }
    .invite-buttons .btn { width: 100%; max-width: 300px; }
    .invite-image       { display: none; }

    /* Footer */
    .footer-content     { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .footer-links       { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .footer-brand       { align-items: center; }
    .footer-column a::before { display: none; }
    .footer-column a:hover   { padding-left: 0; }

    /* Scroll to top */
    .scroll-to-top      { width: 44px; height: 44px; bottom: 18px; right: 16px; font-size: 0.95rem; }

    /* Buttons */
    .btn-large          { padding: 0.875rem 1.5rem; font-size: 1rem; }
}

/* -- Small phones (â‰¤ 480px) ---------------------------------- */
@media (max-width: 480px) {
    .container          { padding: 0 0.875rem; }
    h1                  { font-size: 1.75rem; }
    h2                  { font-size: 1.45rem; }
    h3                  { font-size: 1.15rem; }
    .section-title      { font-size: 1.45rem; }

    .hero-content       { gap: 1.25rem; }
    .hero-title         { font-size: 1.6rem; line-height: 1.25; }
    .hero-subtitle      { font-size: 0.88rem; }
    .hero-buttons .btn  { max-width: 100%; }
    .bot-image          { max-width: 160px; }
    .stat-item          { padding: 0.6rem 0.5rem; }
    .stat-number        { font-size: 1.25rem; }

    .features-grid      { gap: 0.6rem; }
    .feature-card       { padding: 1rem; }

    .commands-grid      { gap: 0.6rem; }
    .command-card       { padding: 0.875rem; }

    .invite-card        { padding: 1.25rem 0.875rem; }
    .invite-title       { font-size: 1.5rem; }

    .footer-links       { grid-template-columns: 1fr 1fr; }
    .footer             { padding: 2rem 0 1.5rem; }
}

/* ==================== Page Loader Bar ==================== */
#pg-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.pg-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5865F2 0%, #7289DA 60%, #5865F2 100%);
    background-size: 200% auto;
    border-radius: 0 3px 3px 0;
    transition: width 0.38s ease;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.85), 0 0 5px rgba(114, 137, 218, 0.5);
    position: relative;
}

.pg-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    width: 7px;
    height: 11px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    filter: blur(4px);
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.4);
}

/*  Language Toggle Button  */
.lang-btn {
    background: rgba(255,255,255,0.07);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 0.28rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
    line-height: 1.5;
}
.lang-btn:hover {
    background: rgba(88,101,242,0.18);
    color: var(--text-primary);
    border-color: rgba(88,101,242,0.4);
}
.lang-btn i { font-size: 0.75rem; }

/* ==================== WEBHOOK CREATOR ==================== */

.wh-hero {
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 60%, #1e1f2e 100%);
    padding: 5rem 1rem 3rem;
    text-align: center;
}
.wh-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--blurple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
}
.wh-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.wh-page {
    padding: 2.5rem 1rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Mode tabs */
.wh-mode-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.3rem;
    width: fit-content;
    margin-bottom: 2rem;
}
.wh-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.55rem 1.4rem;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}
.wh-tab-btn.active {
    background: var(--blurple);
    color: #fff;
    box-shadow: 0 2px 12px rgba(88,101,242,0.4);
}
.wh-tab-btn:not(.active):hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-primary);
}

/* Layout */
.wh-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    align-items: start;
}
@media (max-width: 800px) {
    .wh-layout { grid-template-columns: 1fr; }
}

/* Form card */
.wh-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem;
}
.wh-card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blurple);
    margin-bottom: 1.2rem;
}

/* Form elements */
.wh-field {
    margin-bottom: 1.1rem;
}
.wh-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wh-input, .wh-textarea, .wh-select {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.wh-input:focus, .wh-textarea:focus, .wh-select:focus {
    outline: none;
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88,101,242,0.18);
}
.wh-input::placeholder, .wh-textarea::placeholder {
    color: var(--text-muted);
}
.wh-textarea {
    resize: vertical;
    min-height: 90px;
}
.wh-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}
.wh-select option { background: #1e1f2e; }

/* Color row */
.wh-color-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.wh-color-row input[type="color"] {
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    flex-shrink: 0;
}
.wh-color-hex {
    flex: 1;
    font-family: monospace;
}

/* Embed toggle */
.wh-embed-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(88,101,242,0.08);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
}
.wh-embed-toggle:hover { background: rgba(88,101,242,0.14); }
.wh-embed-toggle i { color: var(--blurple); }
.wh-embed-section { display: none; }
.wh-embed-section.open { display: block; }

/* Send button */
.wh-send-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--blurple), #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.2s, transform 0.1s;
    font-family: inherit;
}
.wh-send-btn:hover { opacity: 0.88; }
.wh-send-btn:active { transform: scale(0.98); }
.wh-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Status message */
.wh-status {
    margin-top: 0.8rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
}
.wh-status.show { display: block; }
.wh-status.success { background: rgba(59,165,93,0.15); border: 1px solid rgba(59,165,93,0.35); color: #3ba55d; }
.wh-status.error   { background: rgba(237,66,69,0.12);  border: 1px solid rgba(237,66,69,0.35);  color: #ed4245; }

/* â”€â”€ Discord-style Preview â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wh-preview-card {
    background: #313338;
    border-radius: 12px;
    padding: 1rem 1rem 1rem 1rem;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #dcddde;
    font-size: 0.95rem;
}
.wh-preview-msg {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.wh-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blurple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.wh-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.wh-preview-body { flex: 1; min-width: 0; }
.wh-preview-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.15rem;
}
.wh-preview-name .wh-bot-tag {
    background: var(--blurple);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    margin-left: 0.35rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wh-preview-content {
    color: #dcddde;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.wh-preview-embed {
    border-radius: 4px;
    background: #2b2d31;
    border-left: 4px solid var(--blurple);
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    max-width: 500px;
    display: none;
}
.wh-preview-embed.show { display: block; }
.wh-preview-embed-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
.wh-preview-embed-desc {
    font-size: 0.88rem;
    color: #b9bbbe;
    white-space: pre-wrap;
}
.wh-preview-empty {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 0;
}

/* ========================================================
   MOBILE OVERHAUL v2  Bernd Bot
   Fixes: overflow, navbar, hero, cards, lang-btn, footer
   ======================================================== */

/* --- Prevent horizontal overflow site-wide --- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
* { box-sizing: border-box; }

/* --- lang-btn mobile sizing --- */
@media (max-width: 960px) {
    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem var(--spacing-sm, 1rem);
        border-radius: var(--radius-md, 8px);
        font-size: 0.95rem;
    }
    .lang-btn i { font-size: 0.88rem; }

    /* Nav-CTA full width on mobile */
    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    /* Premium nav link full width */
    .nav-link-premium {
        width: 100%;
        justify-content: center;
    }
}

/* --- Tablet ( 768px) --- */
@media (max-width: 768px) {

    /* Hero stats: prevent overflow */
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }
    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: 180px;
        text-align: center;
    }

    /* Hero text doesn't overflow */
    .hero-title, .hero-subtitle {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Section padding safe on small screens */
    section {
        padding-left: 0;
        padding-right: 0;
    }

    /* Features grid single column, no overflow */
    .features-grid {
        grid-template-columns: 1fr !important;
        padding: 0 0.5rem;
    }

    /* Commands categories  horizontal scroll without showing scrollbar */
    .command-categories {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        justify-content: flex-start !important;
    }

    .commands-grid {
        grid-template-columns: 1fr !important;
        padding: 0 0.5rem;
    }

    /* Stats grid single column */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Invite card */
    .invite-card {
        padding: 1.5rem 1rem !important;
    }

    /* Footer links stack better */
    .footer-links {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
    }

    /* Scroll to top button safe positioning */
    .scroll-to-top {
        bottom: 16px !important;
        right: 12px !important;
    }

    /* About / SEO section inner grid */
    #about > .container > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    #about > .container > div[style*="grid"] > div {
        margin-bottom: 1.25rem;
    }
}

/* --- Small phones ( 480px) --- */
@media (max-width: 480px) {

    /* Nav height adjustment */
    .navbar { padding: 0.4rem 0; }

    /* Hero full padding */
    .hero-content {
        padding: 1.5rem 0.75rem !important;
    }
    .hero-title { font-size: 1.6rem !important; }
    .hero-subtitle { font-size: 0.88rem !important; }

    /* Stat items single row on very small */
    .stat-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Buttons stack full width */
    .hero-buttons .btn,
    .invite-buttons .btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Footer single column */
    .footer-links {
        grid-template-columns: 1fr !important;
    }

    /* Section header spacing */
    .section-header { margin-bottom: 1.25rem; }

    /* Feature/command cards tight */
    .feature-card,
    .command-card {
        padding: 0.875rem !important;
        border-radius: 8px;
    }

    /* Invite card tight */
    .invite-card {
        padding: 1.25rem 0.75rem !important;
        border-radius: 10px;
    }

    /* Category buttons smaller */
    .category-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}