/* ==========================================================================
   WLG BOT: PREMIUM GLASSMORPHIC PORTAL DESIGN SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(18, 20, 29, 0.75);
    --bg-card-hover: rgba(28, 32, 48, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --neon-blue: #06b6d4;
    --neon-green: #10b981;
    --neon-yellow: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px var(--primary-glow);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

img, svg, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 11, 16, 0.85);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.brand-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    box-shadow: 0 0 20px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    flex-shrink: 0 !important;
}

.brand-logo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 0 30px var(--primary-glow);
}

.brand-logo-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    border-radius: 10px;
}

/* HERO LOGO EMBLEM */
.hero-logo-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100%;
}

.hero-mascot-img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 32px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.45), 0 15px 35px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(99, 102, 241, 0.4);
    animation: floatMascot 4s ease-in-out infinite;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block;
    margin: 0 auto;
}

@keyframes floatMascot {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 0 50px rgba(99, 102, 241, 0.4), 0 20px 40px rgba(0, 0, 0, 0.8);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
        box-shadow: 0 0 70px rgba(168, 85, 247, 0.6), 0 25px 50px rgba(0, 0, 0, 0.9);
    }
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

.lang-switch {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.lang-switch:hover {
    border-color: var(--border-hover);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    user-select: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-discord {
    background: #5865F2;
    color: white;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-success {
    background: #10b981;
    color: white;
}
.btn-success:hover {
    background: #059669;
}

/* ==========================================================================
   USER PROFILE CHIP
   ========================================================================== */
.user-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.user-chip:hover {
    border-color: var(--border-hover);
}

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

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================================================
   HERO SECTION (LANDING PAGE)
   ========================================================================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
    max-width: 1000px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FEATURE CARDS (USP)
   ========================================================================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(14px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    color: #a855f7;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   SERVER SELECTOR GRID (DASHBOARD)
   ========================================================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 340px;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.server-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #c7d2fe;
    border: 2px solid var(--border-glass);
}

.server-name {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.status-joined {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-not-joined {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.server-card .btn {
    width: 100%;
}

/* ==========================================================================
   GUILD MANAGEMENT MODULE PANELS
   ========================================================================== */
.guild-header-banner {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-glass);
    padding: 2.5rem 1.5rem;
}

.guild-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.guild-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.guild-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    border: 2px solid var(--border-glass);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.module-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

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

.module-icon-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.module-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.module-control {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.select-control {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.select-control:focus {
    border-color: var(--border-hover);
}

/* ==========================================================================
   WLG STYLE TOGGLE SWITCH
   ========================================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary-gradient);
    box-shadow: 0 0 12px var(--primary-glow);
}

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

/* ==========================================================================
   TOAST ALERT
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(18, 20, 29, 0.95);
    border: 1px solid var(--neon-green);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 1.5rem;
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   ADVANCED WLG GUILD DASHBOARD LAYOUT & TABS
   ========================================================================== */
.probot-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    align-items: start;
}

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

/* SIDEBAR NAVIGATION */
.guild-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.sidebar-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin: 1.25rem 0 0.5rem 0.75rem;
}

.sidebar-category:first-child {
    margin-top: 0.25rem;
}

.sidebar-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    margin-bottom: 0.35rem;
}

.sidebar-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    transform: translateX(4px);
}

.sidebar-tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.sidebar-tab-btn .tab-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-tab-btn .tab-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.tab-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-weight: 600;
}

.tab-badge.off {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* CONTENT PANELS */
.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SETTINGS CARD SECTIONS */
.settings-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.section-head-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-head-title h2 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.section-head-title .icon {
    font-size: 1.5rem;
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.text-input, .textarea-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(10, 11, 16, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.text-input:focus, .textarea-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    background: rgba(10, 11, 16, 0.9);
}

.textarea-input {
    resize: vertical;
    min-height: 80px;
}

/* VARIABLE CHIPS */
.var-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.var-chip {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-family: monospace;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.var-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* RANGE SLIDER */
.range-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

.range-val {
    font-weight: 700;
    color: var(--neon-blue);
    min-width: 45px;
}

/* DISCORD EMBED / MESSAGE SIMULATOR */
.discord-preview {
    background: #2b2d31;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
    display: flex;
    gap: 1rem;
}

.discord-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.discord-preview-content {
    flex: 1;
}

.discord-preview-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.discord-bot-badge {
    background: #5865f2;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 700;
}

.discord-preview-text {
    font-size: 0.9rem;
    color: #dbdee1;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* FLOATING SAVE BAR */
.floating-save-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(18, 20, 29, 0.95);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 990;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.floating-save-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE PERFECTION
   ========================================================================== */
@media (max-width: 992px) {
    .probot-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.25rem;
    }
    .embed-builder-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Navbar & Brand */
    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .brand {
        gap: 0.5rem;
    }

    .brand-logo {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 10px;
    }

    .brand-logo-img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 8px;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .nav-links {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.4rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 0.82rem;
        padding: 0.35rem 0.6rem;
        white-space: nowrap;
    }

    .lang-switch {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

    .user-chip {
        padding: 0.3rem 0.6rem;
        max-width: 140px;
    }

    .user-name {
        font-size: 0.82rem;
        max-width: 80px;
    }

    /* Landing Page Hero */
    .hero {
        padding: 2.5rem 1rem 1.75rem 1rem;
    }

    .hero-logo-wrapper {
        margin-bottom: 1.25rem;
    }

    .hero-mascot-img {
        width: 86px !important;
        height: 86px !important;
        max-width: 86px !important;
        max-height: 86px !important;
        border-radius: 22px !important;
        box-shadow: 0 0 35px rgba(99, 102, 241, 0.4), 0 10px 25px rgba(0, 0, 0, 0.7);
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 0.65rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    /* Stats Bar */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .stat-card {
        padding: 1rem 0.6rem;
    }

    .stat-value {
        font-size: 1.45rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* Features Grid */
    .section {
        padding: 2rem 1rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.35rem;
    }

    /* Dashboard Server Selector */
    .dashboard-container {
        padding: 1.5rem 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-bar {
        max-width: 100%;
    }

    .servers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .server-card {
        padding: 1.25rem;
    }

    .server-icon {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        border-radius: 18px;
        font-size: 1.6rem;
    }

    /* WLG Guild Dashboard Header */
    .guild-header-banner {
        padding: 1.25rem 0.85rem;
    }

    .guild-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .guild-info {
        gap: 0.75rem;
        width: 100%;
    }

    .guild-info > div:last-child {
        min-width: 0;
        flex: 1;
    }

    .guild-avatar {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        border-radius: 14px;
        font-size: 1.1rem;
    }

    #guildTitle {
        font-size: 1.25rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #guildSubtitle {
        font-size: 0.8rem;
    }

    .guild-header-content > div:last-child {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .guild-header-content > div:last-child .btn {
        flex: 1;
        justify-content: center;
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    /* Sticky Horizontal Tab Bar on Mobile */
    .guild-sidebar {
        position: sticky;
        top: 56px;
        z-index: 30;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.4rem;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: rgba(10, 11, 16, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-md);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        margin: 0;
    }

    .guild-sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-category {
        display: none;
    }

    .sidebar-tab-btn {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-glass);
    }

    .sidebar-tab-btn.active {
        background: var(--primary-gradient);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 0 15px var(--primary-glow);
    }

    .tab-badge {
        display: none;
    }

    /* Settings Sections */
    .settings-section-card {
        padding: 1rem 0.85rem;
        border-radius: var(--radius-md);
    }

    .section-head {
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-head-title h2 {
        font-size: 1.15rem;
    }

    .text-input, .textarea-input, .select-control {
        font-size: 16px !important; /* Critical: stops iOS zoom */
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Discord Msg Simulator & Embed Live Preview */
    .discord-msg-simulator {
        padding: 0.85rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .discord-embed-card {
        max-width: 100%;
        width: 100%;
        padding: 0.75rem;
        box-sizing: border-box;
    }

    .discord-embed-fields-grid {
        grid-template-columns: 1fr !important;
        gap: 0.4rem;
    }

    .discord-embed-thumb-img {
        width: 56px;
        height: 56px;
    }

    /* Streamer Cards */
    .streamer-list-grid {
        grid-template-columns: 1fr !important;
    }

    .field-row-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    /* Floating Save Bar */
    .floating-save-bar {
        width: calc(100% - 1.5rem);
        left: 50%;
        bottom: 0.75rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .floating-save-bar > div:last-child {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .floating-save-bar .btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem;
    }

    /* Toast */
    .toast {
        max-width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        text-align: center;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: 1.55rem !important;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .discord-msg-header {
        gap: 0.5rem;
    }

    .discord-msg-avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
}

/* ==========================================================================
   DISCORD EMBED BUILDER & REALTIME SIMULATOR
   ========================================================================== */
.embed-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .embed-builder-grid {
        grid-template-columns: 1fr;
    }
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.color-swatch-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-swatch-btn:hover, .color-swatch-btn.active {
    transform: scale(1.15);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.discord-msg-simulator {
    background: #313338;
    border-radius: 12px;
    padding: 1.25rem;
    color: #dbdee1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-msg-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.discord-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-msg-author-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.discord-msg-username {
    font-weight: 600;
    color: #f2f3f5;
    font-size: 0.95rem;
}

.discord-msg-bot-tag {
    background: #5865f2;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.discord-msg-time {
    color: #949ba4;
    font-size: 0.75rem;
}

.discord-embed-card {
    background: #2b2d31;
    border-left: 4px solid #5865f2;
    border-radius: 4px;
    padding: 0.85rem 1rem;
    max-width: 520px;
    position: relative;
    overflow: hidden;
}

.discord-embed-thumb-img {
    float: right;
    width: 76px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: 0.75rem;
    margin-bottom: 0.5rem;
}

.discord-embed-author-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.discord-embed-author-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-embed-author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f2f3f5;
    text-decoration: none;
}

.discord-embed-title-text {
    font-size: 1rem;
    font-weight: 700;
    color: #00a8fc;
    margin-bottom: 0.4rem;
    text-decoration: none;
    display: block;
}

.discord-embed-desc-text {
    font-size: 0.88rem;
    color: #dbdee1;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.6rem;
}

.discord-embed-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.discord-embed-field-col {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.discord-embed-field-k {
    font-size: 0.8rem;
    font-weight: 700;
    color: #b5bac1;
    margin-bottom: 0.2rem;
}

.discord-embed-field-v {
    font-size: 0.85rem;
    color: #dbdee1;
    word-break: break-word;
}

.discord-embed-banner-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 0.6rem;
    display: block;
}

.discord-embed-footer-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #949ba4;
}

.discord-embed-footer-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-action-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: filter 0.15s ease;
}

.discord-btn:hover {
    filter: brightness(1.15);
}

.discord-btn-primary { background: #5865f2; color: #fff; }
.discord-btn-secondary { background: #4e5058; color: #fff; }
.discord-btn-success { background: #23a55a; color: #fff; }
.discord-btn-danger { background: #da373c; color: #fff; }
.discord-btn-link { background: #4e5058; color: #fff; }

/* STREAMER CARDS & BADGES */
.streamer-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.streamer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.85rem;
    transition: var(--transition);
}

.streamer-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    text-transform: uppercase;
}

.badge-kick { background: rgba(83, 252, 24, 0.15); color: #53fc18; border: 1px solid rgba(83, 252, 24, 0.3); }
.badge-twitch { background: rgba(145, 70, 255, 0.15); color: #a970ff; border: 1px solid rgba(145, 70, 255, 0.3); }
.badge-youtube { background: rgba(255, 0, 0, 0.15); color: #ff4e4e; border: 1px solid rgba(255, 0, 0, 0.3); }

/* FIELD ROW EDITOR */
.field-row-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}

.field-row-item input[type="text"] {
    flex: 1;
}

.lockdown-active-alert {
    background: rgba(237, 66, 69, 0.12);
    border: 1px solid #ed4245;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    animation: pulse 2s infinite;
}

/* ==========================================================================
   DASHBOARD TABS & WLG PRIME DESK
   ========================================================================== */
.dash-tabs-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
}

.dash-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dash-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dash-tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.dash-tab-btn.prime-btn {
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.dash-tab-btn.prime-btn:hover {
    border-color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.dash-tab-btn.prime-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
    border-color: #fbbf24;
    color: #ffd700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.prime-desk-card {
    background: linear-gradient(135deg, rgba(26, 21, 14, 0.85), rgba(18, 20, 29, 0.85));
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.15);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.prime-desk-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.server-prime-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 2;
}

.server-prime-badge.active-prime {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: #000;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.server-prime-badge.free-tier {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid var(--border-glass);
}



