.docs-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--docs-primary, #DC2626);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
    z-index: 9999;
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.docs-mobile-toggle:active {
    transform: scale(0.9);
}

@media (max-width: 1024px) {
    .premium-nav {
        padding: 0 1rem;
    }
    
    .docs-sidebar {
        transform: translateX(-100%);
        background: rgba(10, 10, 13, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
        width: 280px;
        padding: 2rem 1.5rem;
    }
    
    .docs-sidebar.open {
        transform: translateX(0);
    }
    
    .docs-content {
        margin-left: 0;
        padding: 2rem 1.5rem 6rem;
    }
    
    .docs-section {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin-bottom: 3rem;
    }
    
    .docs-mobile-toggle {
        display: flex;
    }
    
    .docs-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .docs-content h2 {
        font-size: 1.6rem;
    }
    
    .docs-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .compact-footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .compact-footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .premium-header {
        width: 95%;
        top: 15px;
    }
    
    .docs-section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .docs-content h1 {
        font-size: 1.8rem;
    }
    
    .docs-mobile-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}


/* --- EXTRACTED FROM STYLES.CSS --- */
@media (max-width: 1024px) {
  .features-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .developer-container { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 100%; }
  .nav-links { gap: 0.5rem; padding: 0 1rem; }
  .nav-link { padding: 0 0.8rem; font-size: 0.9rem;}
  .nav-link::after { left: 0.8rem; right: 0.8rem; }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); } h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); } .section { padding: 4.5rem 0; }
  main { padding-top: 70px; }
  .header { height: 60px; top: 0; width: 100%; max-width: none; border-radius: 0; left: 0; transform: none; border-top: none;}
  .header.scrolled { height: 55px; border-top: none;}
  .nav { padding: 0 1rem; grid-template-columns: 1fr auto; gap: 1rem; }
  .nav-brand { gap: 0.4em; } .nav-title { font-size: 1.6rem; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100%; background-color: #0D0D0F; padding: 70px 1.5rem 2rem; flex-direction: column; align-items: center; height: 100vh; overflow-y: auto; gap: 1rem; border: none; transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 5px 0 15px rgba(0,0,0,0.2); z-index: 99; grid-column: 1;}
  .nav-links.active { display: flex; transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 0.6rem 1rem; width: 90%; text-align: center; height: auto;} .nav-link::after { display: none; }
  .mobile-toggle { display: block; z-index: 101; grid-column: 2; } 
  .nav-right-group { 
    display: none !important; 
  }
  .nav-right-group.mobile-active {
    display: flex !important;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 400px;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
  .nav-right-group.mobile-active .btn-dashboard,
  .nav-right-group.mobile-active .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .nav-right-group.mobile-active .language-selector {
    width: 100%;
  }
  .nav-right-group.mobile-active .language-btn {
    width: 100%;
    justify-content: center;
  }
  .main-cta-card { grid-template-columns: 1fr; text-align: center; gap: 2rem;}
  .main-cta-card .cta-visual { display: none; }
  .main-cta-card .cta-text-content p { margin-left: auto; margin-right: auto; }
  .main-cta-card .card-footer { justify-content: center; }
  .footer-content { gap: 1rem; } .footer-links-simple { gap: 1rem; margin-bottom: 1rem;} .footer-bottom { gap: 0.8rem;}
}

@media (max-width: 768px) { .command-row { flex-direction: column; } .command-syntax { border-bottom: 1px solid var(--card-border); border-right: none; flex-basis: auto; } .command-desc { flex-basis: auto; padding-top: 0.8rem;} .command-section-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; } .command-title h2 { font-size: 1.5rem;} .command-title p { font-size: 0.9rem;} }

@media (max-width: 768px) { .pricing-grid.top-row-grid { grid-template-columns: 1fr; } .pricing-card.featured { transform: scale(1); } .pricing-card.featured:hover { transform: translateY(-8px) scale(1.01); } }

@media (max-width: 768px) {
    .timeline { padding-left: 1.5rem; }
    .timeline-marker { left: -1.5rem; }
    .timeline-title { font-size: 1.3rem; }
}

@media (max-width: 600px) { .legal-page article { padding: 2rem 1.5rem; } .legal-page h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); } .legal-page h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); } .legal-page ul { padding-left: 1.5rem; } }

@media (max-width: 480px) {
  .preloader-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }
  .preloader-logo img {
    width: 65px;
    height: 65px;
  }
  .preloader-progress {
    width: 240px;
    height: 5px;
  }
  .preloader-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; width: 100%; }
  .hero { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 3rem; min-height: 85vh; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .section { padding: 3rem 0; }
  .hero-cta { flex-direction: column; gap: 0.8rem; align-items: stretch; width: 100%; }
  .hero-cta .btn { width: 100%; max-width: 100%; }
  .developer-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .command-row { flex-direction: column; }
  .command-syntax { border-bottom: 1px solid var(--card-border); border-right: none; flex-basis: auto; padding: 1rem; }
  .command-desc { flex-basis: auto; padding-top: 0.8rem; padding: 1rem; }
  .nav-links { padding: 60px 1rem 2rem; }
  .header { height: 55px; }
  .header.scrolled { height: 50px; }
  .nav { padding: 0 0.75rem; }
  .nav-title { font-size: 1.5rem; }
  .v3-banner .container { flex-direction: column; gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .v3-banner span, .v3-banner a { font-size: 0.8rem; }
  .page-header { padding-bottom: 2.5rem; }
  .page-title { font-size: clamp(2rem, 8vw, 3rem); }
  .page-subtitle { font-size: 1rem; padding: 0 1rem; }
}

@media (max-width: 480px) { .currency-toggle { display: flex; width: 100%; } .currency-toggle .toggle-option { flex: 1; text-align: center;} .pricing-card { padding: 2rem 1.5rem;} .pricing-amount .price { font-size: clamp(2.5rem, 7vw, 3.5rem); } .feature-text { font-size: 0.95rem; } }

@media (max-width: 480px) { .currency-toggle { display: flex; width: 100%; } .currency-toggle .toggle-option { flex: 1; text-align: center;} .timeline { padding-left: 1.5rem; } .timeline-item::before { left: -1.5rem; } .version-badge { margin-left: 1rem; margin-top: 0.5rem; width: 100%; text-align: left; } .change-item { flex-direction: column; align-items: flex-start; } .change-type { margin-bottom: 0.5rem; margin-right: 0; width: fit-content; } }

@media (max-width: 360px) {
  .preloader-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1.2rem;
  }
  .preloader-logo img {
    width: 55px;
    height: 55px;
  }
  .preloader-progress {
    width: 200px;
  }
}

@media (max-width: 360px) {
  .container { padding: 0 0.5rem; }
  .hero { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: 2.5rem; }
  h1 { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .section { padding: 2.5rem 0; }
  .nav-title { font-size: 1.4rem; }
  .hero-cta .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .btn-large { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .feature-card { padding: 1.5rem 1.2rem; }
  .developer-card { padding: 1.5rem; }
  .developer-pfp { width: 90px; height: 90px; }
  .command-categories { gap: 0.5rem; flex-wrap: wrap; }
  .category-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .nav-links { padding: 55px 0.75rem 1.5rem; }
  .footer-links-simple { gap: 0.8rem; font-size: 0.85rem; }
}

@media (max-width: 320px) {
  .container { padding: 0 0.4rem; }
  .nav { padding: 0 0.5rem; }
  .nav-title { font-size: 1.2rem; }
  .hero-title { font-size: clamp(1.4rem, 10vw, 2rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta .btn { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
  .feature-card { padding: 1.2rem 1rem; }
  .developer-card { padding: 1.2rem; }
  .pricing-card { padding: 1.5rem 1.2rem; }
  .footer-links-simple { flex-direction: column; gap: 0.5rem; }
}

/* --- EXTRACTED FROM PANEL.CSS --- */
@media (max-width: 1400px) {
    .users-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    #shared-configs-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    .user-card-horizontal {
        grid-template-columns: 60px 180px 180px 180px 180px 120px 160px auto;
        min-width: 1200px;
    }
    
    .config-card {
        grid-template-columns: 90px 1fr 120px auto;
        min-width: 1000px;
    }
}

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

@media (max-width: 1024px) {
    #shared-configs-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 768px) {
    .ticket-category-entry > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .ticket-category-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ticket-category-emoji-input {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .admin-main-content {
        padding-top: calc(var(--header-height, 60px) + 0.5rem);
        gap: 1.5rem;
    }

    .admin-panel-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .admin-tabs-header {
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 0.8rem;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .admin-form-body {
        gap: 1rem;
    }

    .config-sections {
        gap: 1rem;
    }

    .config-section-header {
        padding: 0.8rem 1.2rem;
    }

    .config-section-header h3 {
        font-size: 1.1rem;
    }

    .config-section-content {
        padding: 1rem;
        gap: 0.8rem;
    }

    #change-container .form-group {
        padding: 0.8rem;
    }

    .live-category-preview {
        padding: 0.6rem;
    }

    .category-preview-item {
        padding: 0.4rem;
    }

    .user-info {
        min-width: 150px;
        padding: 0.5rem 0.875rem;
        gap: 0.625rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .user-info-username {
        font-size: 0.875rem;
    }

    .user-info-rank {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .ticket-category-entry > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .ticket-category-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ticket-category-emoji-input {
        width: 100% !important;
    }
    
    #servers-list-container {
        grid-template-columns: 1fr;
    }
    
    #shared-configs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-card-horizontal {
        grid-template-columns: 1fr;
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .user-card-horizontal-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .btn-modern {
        flex: 1;
        min-width: 0;
    }
    
    .config-card {
        grid-template-columns: 1fr;
        min-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-stats,
    .stats-grid {
        grid-template-columns: 1fr;
    gap: 1rem;
}

    #dashboard-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
  .admin-main-content {
    width: 95% !important;
    padding-top: calc(var(--header-height, 70px) + 1.5rem) !important;
  }
  .admin-tabs-header {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }
  .tab-btn {
    flex: 1 1 calc(50% - 0.5rem) !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .dashboard-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    padding: 1.5rem !important;
  }
  .dashboard-header button {
    width: 100% !important;
  }
  .servers-toolbar {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
  }
  .servers-toolbar > div {
    max-width: 100% !important;
    width: 100% !important;
  }
  .servers-toolbar button {
    width: 100% !important;
  }
  .sub-tabs-header {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
  }
  .sub-tab-btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 640px) {
    .users-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
        #shared-configs-list {
            grid-template-columns: 1fr;
        }
    }

@media (max-width: 640px) {
    #shared-configs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
  .login-top-bar {
    padding: 0 1.5rem;
    top: 1.5rem;
  }
  .login-main-container {
    padding: 5rem 1rem 2rem;
  }
  .login-card-main {
    padding: 2.5rem 1.75rem 2.25rem;
  }
  .login-heading-main {
    font-size: 1.75rem;
  }
  .login-trust-indicators {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
    .admin-main-content {
        padding-top: calc(var(--header-height, 60px) + 0.5rem);
        gap: 1rem;
    }

    .admin-panel-card {
        padding: 1rem;
        gap: 0.8rem;
    }

    .admin-tabs-header {
        gap: 0.3rem;
        padding-bottom: 0.6rem;
    }

    .admin-form-body {
        gap: 0.8rem;
    }

    .config-sections {
        gap: 0.8rem;
    }

    .config-section-header {
        padding: 0.5rem 0.8rem;
    }

    .config-section-header h3 {
        font-size: 0.95rem;
    }

    .config-section-content {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    #change-container .form-group {
        padding: 0.6rem;
    }

    .change-entry-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .live-category-preview {
        padding: 0.4rem;
        gap: 0.4rem;
    }

    .category-preview-item {
        padding: 0.2rem;
    }

    .user-info {
        min-width: auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .user-info-username {
        font-size: 0.8rem;
    }

    .user-info-rank {
        font-size: 0.7rem;
    }

    .user-info-content {
        display: none;
    }

    .user-info {
        padding: 0.375rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }
    
    #servers-list-container {
        grid-template-columns: 1fr;
    }
    
    #shared-configs-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    
    .ticket-category-entry > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}
/* Premium Navbar Mobile Styles */
@media (max-width: 900px) {
    .premium-header {
        top: 0;
        width: 100%;
        border-radius: 0;
    }
    .premium-nav {
        flex-wrap: wrap;
    }
    .premium-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem 1rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }
    .premium-actions.active {
        display: flex !important;
        position: absolute;
        top: calc(70px + 250px);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        flex-direction: column;
    }
    .premium-btn-panel, .premium-btn-invite {
        width: 100%;
        justify-content: center;
    }
}
