:root {
    --bg-color: #f1f5f9; /* Cooler, high-fidelity light base */
    --sidebar-bg: #e2e8f0; /* Tighter contrast for light sidebar */
    --shadow-light: #ffffff;
    --shadow-dark: #cbd5e1; /* Authoritative shadow for world-class light depth */
    --text-color: #1e293b; /* Deeper slate for high-intensity legibility */
    --icon-color: #475569;
    --accent-blue: #2563eb;
    --navbar-bg: #f8fafc;
    --card-bg: #ffffff;
    --nav-shade: linear-gradient(145deg, #ffffff, #f1f5f9);
    --card-shade: linear-gradient(145deg, #ffffff, #e2e8f0); /* Focal light shade arrival */
}

body.dark-mode {
    --bg-color: #111114; /* Deep Zinc for maximum professional black contrast */
    --sidebar-bg: #1c1c20; /* Slightly lighter Zinc for dark sidebar contrast */
    --shadow-light: #27272a;
    --shadow-dark: #000000;
    --text-color: #f4f4f5;
    --icon-color: #a1a1aa;
    --accent-blue: #3b82f6;
    --navbar-bg: #1c1c20;
    --card-bg: #18181b;
    --hover-bg: rgba(255, 255, 255, 0.1); /* High-fidelity dark-mode highlight */
    --hero-gradient: linear-gradient(135deg, #3b82f6, #9333ea, #db2777);
    --nav-shade: linear-gradient(145deg, #1c1c20, #09090b);
    --card-shade: linear-gradient(145deg, #18181b, #111114);
}

.home-title, .palette-hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin: 0;
    transition: var(--transition);
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

body.dark-mode .home-title, 
body.dark-mode .palette-hero h1 {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(59, 130, 246, 0.2));
}

body.dark-mode .home-subtitle {
    background: linear-gradient(90deg, #94a3b8, #f1f5f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 10px 15px 15px; /* Precision 10px top-cushion */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced gap to bring the palette closer to the navbar */
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Unified premium font */
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-y: auto; /* Universal page scrolling enabled */
}

.informationpalette {
    flex: 1;
    width: 100%;
    max-width: 1400px; /* Aligned with menustage */
    min-height: 500px;
    background: var(--bg-color);
    border-radius: 20px; /* Boxier, more structural radius */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Crisp, high-fidelity light edge */
    box-shadow: 25px 25px 60px var(--shadow-dark), 
               -25px -25px 60px var(--shadow-light); /* Deepened, high-authority shadows */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Contents can still be deep but shown via body scroll */
}

body.dark-mode .informationpalette {
    border: 1px solid rgba(255, 255, 255, 0.05); /* Stealthy dark edge */
}

.menustage {
    min-height: 80px;
    width: 100%;
    max-width: 1400px;
    border-radius: 22px; /* Precision 22px radius for world-class geometry */
    background: var(--navbar-bg); /* Dynamic High-Fidelity backdrop */
    box-shadow: 20px 20px 45px var(--shadow-dark), 
               -20px -20px 45px var(--shadow-light); /* Maximum box visibility */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Authoritative distributed layout */
    padding: 10px 25px;
    flex-wrap: nowrap; /* Enforce strictly linear formation */
    gap: 10px; /* Tighter gap for high-density elegance */
    position: sticky;
    top: 10px; /* Dock at the precision 10px point */
    z-index: 6000; /* Authoritative Level 6000 Hub Stacking arrival */
}

.lesai button{
    height: 45px;
    width: 170px;
    border-radius: 17px;
    background: var(--bg-color);
    box-shadow: 8px 8px 16px var(--shadow-dark), 
               -8px -8px 16px var(--shadow-light); /* Increased button visibility */
    border: none;
    cursor: pointer;
    transition: all 0.05s cubic-bezier(0, 0, 0, 1); /* Instant Snappy Response Hub */
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lesai button:hover{
    box-shadow: 2px 2px 5px var(--shadow-dark), 
               -2px -2px 5px var(--shadow-light);
    color: var(--accent-blue);
}

.lesai button i{
    font-size: 20px;
    color: var(--icon-color);
}

.lesai button:active{
    box-shadow: inset 5px 5px 10px var(--shadow-dark), 
               inset -5px -5px 10px var(--shadow-light);
    transform: translateY(2px);
}

/* Premium AI Button Styling */
#ai-btn, #mobile-ai-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    /* High-End 3D Colored Neumorphic Shadows */
    box-shadow: 10px 10px 20px rgba(79, 70, 229, 0.5), 
               -10px -10px 20px rgba(192, 132, 252, 0.3); 
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ai-btn i, #mobile-ai-btn i {
    color: #ffffff !important;
}

#ai-btn:hover, #mobile-ai-btn:hover {
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.6); /* Stationary premium glow */
    filter: brightness(1.1);
}

#ai-btn:active, #mobile-ai-btn:active {
    box-shadow: inset 5px 5px 10px rgba(79, 70, 229, 0.5), 
               inset -5px -5px 10px rgba(168, 85, 247, 0.5); /* Tactile colored inset */
}

#sidebar {
    position: fixed; /* Global-Fixed authority like the Settings Hub */
    top: 50%;
    left: -320px;
    transform: translateY(-50%);
    width: 300px;
    height: 98vh; /* Definitive World-Class Maximum Height arrival */
    max-height: 98vh;
    border-radius: 40px;
    background: var(--sidebar-bg);
    color: var(--text-color);
    padding: 0; /* Padding moved to internal components for world-class docking */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 15px 15px 35px var(--shadow-dark), 
               -10px -10px 30px var(--shadow-light);
    z-index: 11000; /* Absolute Top-Tier Interaction Hub arrival */
    overflow: hidden; /* Scroll handled by internal area */
    visibility: hidden;
    opacity: 0;
    
    /* Flexbox Hierarchy arrival */
    display: flex;
    flex-direction: column;
}

.sidebar-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 60px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* High-intensity tight gap arrival */
}

.sidebar-footer {
    padding: 20px 30px 40px;
    width: 100%;
}

.sidebar-scroll-area::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

/* Prussian Blue Settings Sidebar Hub - Authoritative Bottom Dock */
.sidebar-settings-btn {
    width: 100%;
    margin-top: 20px; /* Sit higher in the sidebar */
    padding: 18px 25px; /* High-fidelity proportional height arrival */
    border-radius: 20px;
    background: #003153; /* Definitive Prussian Blue Hub arrival */
    color: #ffffff;      /* High-fidelity white text authority */
    border: none;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.05s cubic-bezier(0, 0, 0, 1); /* Instant Snap arrival */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-settings-btn:hover {
    background: #004d80; /* Still maintain the brighter Prussian hover gate */
    box-shadow: 0 10px 20px rgba(0, 49, 83, 0.4);
}

.sidebar-settings-btn:active {
    filter: brightness(0.9);
}

/* World-Class Large Sidebar Settings Aside Panel - Absolute Static Fade arrival */
.settings-aside-panel {
    position: fixed;
    top: 50%;
    left: 330px; /* Static position aside the 300px sidebar */
    transform: translateY(-50%) scale(0.95); /* Subtle scale-in arrival logic */
    width: calc(100vw - 360px); 
    height: 94vh;
    max-height: 94vh;
    background: var(--bg-color);
    border-radius: 40px; 
    padding: 60px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15) !important; /* Matte Focal Shadow (No Glow) arrival */
    z-index: 12000; /* Absolute Top-Tier Master Hub arrival */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Proximity-Matte World-Class Border arrival */
    overflow-y: auto;
    pointer-events: none; /* Critical for background interaction when hidden */
}

.settings-aside-panel.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: all;
}

body.dark-mode .settings-aside-panel {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9) !important;
}

/* Support Portal Styles */
.support-portal-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.support-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.support-header-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.support-desc {
    color: var(--icon-color);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.support-card {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 12px 12px 24px var(--shadow-dark), 
               -12px -12px 24px var(--shadow-light);
    border: 1px solid rgba(128, 128, 128, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-card:hover::before {
    opacity: 1;
}

.support-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 20px 20px 40px var(--shadow-dark), 
               -20px -20px 40px var(--shadow-light);
}

.support-card.primary {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.support-card.primary::before {
    opacity: 1;
}

.support-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.support-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.support-icon.email { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.support-icon.docs { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.support-icon.community { background: linear-gradient(135deg, #10b981, #059669); }
.support-icon.bug { background: linear-gradient(135deg, #f59e0b, #d97706); }

.support-card-content {
    flex: 1;
}

.support-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.support-card p {
    color: var(--icon-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.support-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(128, 128, 128, 0.1);
    color: var(--icon-color);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-tag i {
    font-size: 0.7rem;
}

.support-link {
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
}

.support-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.support-link.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.support-link.primary:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.support-status {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
               inset -6px -6px 12px var(--shadow-light);
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.status-indicator.online {
    color: #10b981;
}

.status-indicator i {
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--icon-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-quick-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
}

.quick-link:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.quick-link i {
    font-size: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0; /* Minimalist proximity logic */
}

.panel-header h3 {
    font-size: 2.2rem; /* Elevated Title presence */
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#close-settings-panel {
    position: absolute; /* Absolute Top-Right Arrival logic */
    top: 40px;
    right: 40px;
    cursor: pointer;
    font-size: 2rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    z-index: 100;
}

#close-settings-panel:hover {
    opacity: 1;
    color: #ff0000;
    transform: scale(1.1);
}

.panel-content.split-layout {
    display: flex;
    height: calc(100% - 60px); /* Fill the large Hub elevation */
    gap: 0;
    margin-top: 20px;
}

/* Left Navigation Sidebar (Settings names) */
.settings-nav {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 30px;
}

.settings-nav-item {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 18px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.05s cubic-bezier(0, 0, 0, 1); /* Universal Snap Hub */
    opacity: 0.7;
}

.settings-nav-item i {
    font-size: 1.1rem;
    width: 25px;
    color: var(--accent-blue);
}

.settings-nav-item:hover {
    opacity: 1;
    background: var(--hover-bg);
    padding-left: 25px;
}

.settings-nav-item.active {
    opacity: 1;
    background: #000000 !important; /* Premium Black Box Arrival */
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

body.dark-mode .settings-nav-item.active {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Authoritative Vertical Divider Hub */
.settings-vertical-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--shadow-dark), transparent);
    margin: 0 10px;
    border-radius: 10px;
}

/* World-Class Settings Main Stage (Right - Large) */
.settings-main-stage {
    flex: 1;
    padding: 0 40px;
    overflow-y: auto;
    display: flex; /* High-performance stage flex arrival */
    flex-direction: column;
    height: 100%;
}

#settings-dynamic-view {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stage-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
    text-align: center;
}

.stage-placeholder i {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stage-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 300px;
}

/* --- Focused Focal Silence (Dynamic Stage) --- */
.notifications-focal-stage {
    height: 100%;
    min-height: 400px; /* Absolute vertical-command arrival logic */
    display: flex;
    justify-content: center;
    align-items: center; 
    text-align: center;
    width: 100%;
}

.large-empty-message {
    font-size: 5rem; /* High-intensity Mega font arrival */
    font-weight: 800;
    color: var(--text-color);
    opacity: 0.2; /* Production-quality structural presence */
    letter-spacing: -2px;
    user-select: none;
}

/* --- Theme Portal Interaction Hub --- */
.theme-portal-container h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.theme-desc {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 40px;
}

.theme-grid {
    display: flex;
    gap: 30px;
}

.theme-card {
    flex: 1;
    max-width: 200px;
    background: var(--bg-color);
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    box-shadow: 10px 10px 25px var(--shadow-dark), 
                -10px -10px 25px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 15px 15px 35px var(--shadow-dark), 
                -12px -12px 30px var(--shadow-light);
}

.theme-card.active {
    border: 2px solid var(--accent-blue);
    box-shadow: inset 5px 5px 12px var(--shadow-dark), 
                inset -5px -5px 12px var(--shadow-light);
}

.theme-preview {
    width: 100%;
    height: 100px;
    background: var(--card-shade);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 4px 4px 8px var(--shadow-dark);
}

.preview-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.2);
}

.theme-card span {
    font-weight: 800;
    font-size: 1rem;
}

@keyframes fadeInHub {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ACCOUNT HUB STYLES ===== */

.account-hub-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeInHub 0.4s ease-out;
}

.account-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.account-section:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.section-header-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.section-header-account i {
    font-size: 1.3rem;
    color: #6366f1;
}

.section-header-account h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-color);
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.profile-details {
    flex: 1;
}

.profile-details h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.profile-details p {
    font-size: 0.9rem;
    color: var(--text-color-alt);
    margin: 0 0 15px 0;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-action-btn {
    padding: 8px 16px;
    border: 1px solid #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.account-action-btn:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.account-action-btn.delete-account {
    width: 100%;
    padding: 12px;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    margin-top: 10px;
}

.account-action-btn.delete-account:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Plan Card */
.plan-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.plan-header {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-badge {
    font-weight: 800;
    font-size: 1.1rem;
}

.plan-status {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-status.active {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.plan-details {
    padding: 20px;
}

.plan-description {
    margin: 0 0 15px 0;
    color: var(--text-color-alt);
}

.plan-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.feature-item i {
    color: #22c55e;
    font-size: 0.9rem;
}

.plan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.renewal-info {
    font-size: 0.85rem;
    color: var(--text-color-alt);
}

.plan-btn {
    padding: 8px 16px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.security-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.security-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.security-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.security-icon.password {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.security-icon.two-fa {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.security-icon.device {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.security-icon.login {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.security-content h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-color);
}

.security-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-color-alt);
}

.security-content p.status {
    margin: 5px 0 0 0;
}

.security-content p.status.disabled {
    color: #ef4444;
}

.security-action-btn {
    padding: 8px 12px;
    border: 1px solid #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.security-action-btn:hover {
    background: #6366f1;
    color: white;
}

.security-action-btn.enable {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.security-action-btn.enable:hover {
    background: #22c55e;
    color: white;
}

/* Linked Accounts */
.linked-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.linked-account {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.linked-account:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.account-provider {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.account-provider.github {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.account-provider.google {
    background: linear-gradient(135deg, #4285f4 0%, #1f6feb 100%);
}

.account-provider.discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
}

.account-info h5 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-color);
}

.account-info p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-color-alt);
}

.connection-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.connection-btn.disconnect {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.connection-btn.disconnect:hover {
    background: #ef4444;
    color: white;
}

.connection-btn.connect {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.connection-btn.connect:hover {
    background: #22c55e;
    color: white;
}

/* Preferences */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preference-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.preference-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.preference-content h5 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-color);
}

.preference-content p {
    font-size: 0.85rem;
    margin: 4px 0 0 0;
    color: var(--text-color-alt);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider::before {
    position: absolute;
    content: \"\";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #6366f1;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Dark Mode Support */
body.dark-mode .account-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .profile-card,
body.dark-mode .plan-details,
body.dark-mode .security-item,
body.dark-mode .linked-account,
body.dark-mode .preference-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .plan-footer {
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .account-section {
        padding: 20px;
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .security-grid,
    .linked-accounts-grid {
        grid-template-columns: 1fr;
    }

    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .toggle-switch {
        align-self: flex-start;
    }
}

#sidebar.active {
    visibility: visible;
    opacity: 1;
    left: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

/* World-Class Custom Sidebar Scrollbar */
#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1); /* Stealthy Light Mode */
    border-radius: 10px;
}

body.dark-mode #sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05); /* Stealthy Dark Mode */
}

/* World-Class Sidebar Interaction Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6); /* Neutral Slate-Dark tint arrival */
    backdrop-filter: blur(15px); /* Deepened, high-fidelity neural blur */
    z-index: 10000; /* Absolute Top-Level Blur Hub arrival */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

#close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.1s ease;
}

#close-btn:hover {
    color: #000;
}

.menu__icon span {
    display: block;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.493);
    border-radius: 2px;
}

.menu__icon:hover span {
    background-color: rgba(0, 0, 0, 0.493);
}

#menubardiv{
    height: 45px;
    width: auto;
    min-width: 25px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.background {
    border-radius: 12px;
    border: none;
    background: #003153; /* Prussian Blue */
    box-shadow: 5px 5px 10px var(--shadow-dark), 
               -5px -5px 10px var(--shadow-light);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #ffffff; /* White text */
    transition: all 0.1s ease-in-out;
}

.background i{
    font-size: 20px;
}

.background:hover {
    background: #004d80;
    box-shadow: 2px 2px 5px var(--shadow-dark), 
               -2px -2px 5px var(--shadow-light);
}

.background:active {
    background: #00213d; /* Darker blue when pressed */
    box-shadow: inset 5px 5px 10px #001a2e, 
               inset -5px -5px 10px #00416d;
    transform: translateY(2px);
}

#sgninbtn i{
    font-size: 20px;
    color: #ffffff !important; /* Unified White Icon Hub arrival */
}

#sgninbtn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 45px;
    width: 140px;
    border-radius: 40px;
    border: none;
    background: var(--accent-blue); /* Flagship Blue Hub arrival */
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); /* High-fidelity blue glow */
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    outline: none;
}

#sgninbtn:hover{
    background: #1d4ed8; /* Slightly deeper blue hover gate */
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

#sgninbtn:active{
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 10px rgba(37, 99, 235, 0.2);
}

/* More Button styling */
#more-div {
    display: none; /* Hidden on desktop to maintain peak-minimalist architecture */
}

#more-btn {
    height: 45px;
    width: 110px;
    border-radius: 17px;
    background: var(--bg-color);
    box-shadow: 8px 8px 16px var(--shadow-dark), 
               -8px -8px 16px var(--shadow-light); /* Pronounced more button */
    border: none;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#more-btn:active {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), 
               inset -5px -5px 10px var(--shadow-light);
    transform: translateY(2px);
}


/* Downward Dropdown Menu */
#dropdown-menu {
    width: 100%;
    max-width: 1400px;
    max-height: 0;
    overflow: hidden;
    background: var(--bg-color);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 20px var(--shadow-dark);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-20px);
}

#dropdown-menu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 30px 20px;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.menu-btn {
    width: 90%;
    height: 55px;
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: 6px 6px 12px var(--shadow-dark), 
               -6px -6px 12px var(--shadow-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.05s cubic-bezier(0, 0, 0, 1); /* Instant Focal Response */
}

.menu-btn:active {
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
               inset -6px -6px 12px var(--shadow-light);
    transform: scale(0.97);
}

#sgninbtn a{
    text-decoration: none;
    color: inherit;
}


/* Responsive Media Queries */

/* Tablet and below */
@media (max-width: 1024px) {
    .lesai button {
        width: 150px;
        font-size: 16px;
        gap: 8px;
    }
    
    #menubardiv {
        width: auto;
    }
}

/* Mobile Devices */
@media (max-width: 1100px) {
    .logo-text {
        display: none !important;
    }

    .menustage {
        border-radius: 20px;
        justify-content: space-between;
        padding: 5px 15px;
        gap: 5px;
    }

    .lesai {
        display: none; /* Hide main nav buttons on mobile */
    }

    #more-div {
        display: flex !important;
    }

    #sgninbtn {
        width: 100px;
        height: 40px;
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .menustage {
        padding: 5px 12px;
        gap: 5px;
        justify-content: space-between;
    }

    #more-btn {
        width: 45px !important;
        min-width: 45px !important;
        padding: 0 !important;
        font-size: 0 !important;
        height: 40px !important;
    }
    
    #more-btn i {
        font-size: 18px !important;
    }

    .nav-logo img {
        height: 35px;
    }

    .home-title {
        font-size: 3.5rem !important;
    }

    #sidebar {
        width: 85%;
        max-width: 280px;
        left: -100%;
    }

    #sidebar.active {
        left: 0px;
    }

    #sgninbtn i {
        display: none;
    }
    
    #sgninbtn {
        width: 75px;
        height: 35px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    #settings-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .settings-aside-panel {
        left: 10px;
        width: calc(100vw - 20px);
        height: 85vh;
        padding: 20px;
        box-sizing: border-box;
    }
}

/* Settings Hub (Fixed Page Equilibrium) */
#settings-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 9000; /* High-Performance Floating More Gate (Above Sidebar) */
}

#settings-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    /* Neutral High-Intensity World-Class Shadow arrival */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 
               0 0 0 1px rgba(0, 0, 0, 0.04); 
    cursor: pointer;
    font-size: 24px;
    color: var(--icon-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#settings-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    transform: scale(1.1); /* Authoritative static-radial scale arrival logic */
}

#settings-btn:active {
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

#settings-popup {
    width: 200px;
    background: var(--sidebar-bg);
    border-radius: 25px;
    /* Absolute Sharp Focal Dock Shadow for world-class blur-resistance */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 
               0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Animation Ecosystem */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#settings-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: flex-start; /* Align icons with text on the left */
    align-items: center;
    gap: 15px;
    transition: background 0.2s ease;
}

.menu-icon {
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Snappy bounce transition */
}

/* Individual Icon Colors - Blending with the environment */
.fa-user-plus { 
    color: #2ecc71; /* Soft Emerald */
}

.fa-circle-question { 
    color: #e67e22; /* Soft Coral/Orange */
}

/* Hover effect on just the ICON as requested */
.menu-icon:hover {
    transform: scale(1.3) rotate(-15deg);
    filter: brightness(1.2); /* Slight glow effect */
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

#theme-trigger i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

#theme-trigger.open i {
    transform: rotate(90deg);
}

/* Submenu for Theme */
#theme-submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

#theme-submenu.active {
    max-height: 80px;
    padding: 15px 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--shadow-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 34px;
    box-shadow: inset 4px 4px 8px var(--shadow-dark), 
               inset -4px -4px 8px var(--shadow-light);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3.2px;
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
}

input:checked + .slider {
    background-color: #2563eb;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #ffffff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Navbar Logo Styling */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    height: 100%;
}

.nav-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.15)); /* Deep-impact brand shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* High-fidelity pop */
    cursor: pointer;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-left: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%); /* World-class brand gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-text {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.nav-logo:hover img {
    transform: scale(1.08) rotate(-3deg); /* Dynamic brand engagement */
}

/* Sidebar Social Media Hub */
.sidebar-social {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Purged horizontal padding for absolute width symmetry arrival */
    margin-bottom: 10px; /* High-intensity consolidated spacing */
}

.sidebar-social-popup {
    width: 100%;
    background: var(--bg-color); /* Restored to native suite background */
    border-radius: 20px;
    padding: 10px;
    box-shadow: inset 5px 5px 15px var(--shadow-dark), 
                inset -5px -5px 15px var(--shadow-light); /* Professional Inset Neumorphism */
    
    /* Smooth Transition Architecture */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-social-popup.active {
    max-height: 400px;
    margin-top: 15px;
    opacity: 1;
}

.sidebar-social-popup .social-item {
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--text-color);
    border-radius: 12px;
    transition: all 0.3s ease; /* Restoring interaction engine */
}

.sidebar-social-popup .social-item:hover {
    background: var(--hover-bg); /* Unified "darker white" focal point */
    box-shadow: 2px 2px 5px var(--shadow-dark);
    transform: translateX(8px);
    color: #3b82f6;
}

.sidebar-section {
    padding: 10px 0;
}

.sidebar-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--icon-color);
    opacity: 0.6;
    margin-bottom: 12px;
    padding-left: 5px;
    letter-spacing: 1px;
}

.sidebar-nav-list,
.sidebar-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-nav-item i {
    font-size: 1.1rem;
    color: var(--accent-blue);
    width: 20px;
    text-align: center;
}

.sidebar-nav-item:hover {
    background: var(--hover-bg);
    transform: translateX(5px);
    color: var(--accent-blue);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
}

.sidebar-social-btn {
    width: 100%;
    padding: 14px 18px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-social-btn i:first-child {
    font-size: 1.1rem;
    color: var(--accent-blue);
    width: 20px;
}

.sidebar-social-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.sidebar-social-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    color: white;
    border: none;
}

.sidebar-social-btn.active i {
    color: white;
}

.sidebar-social-btn i.fa-chevron-right {
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-social-btn.active i.fa-chevron-right {
    transform: rotate(90deg);
}

.sidebar-social-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Sidebar Logo Styling */
.sidebar-branding {
    padding: 0 20px 0; /* Absolute top-mounting with zero bottom-padding */
    margin: 0 auto 0; /* Absolute head-mounting */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-divider {
    border: 0;
    height: 2px; /* Increased visibility */
    background: rgba(0,0,0,0.05); /* Stealthy architectural background */
    margin: 5px 35px 10px;
    width: auto;
    border-radius: 10px;
    box-shadow: inset 1px 1px 4px rgba(0,0,0,0.15), 
                inset -1px -1px 2px rgba(255,255,255,0.8); /* World-class Neumorphic groove */
}

body.dark-mode .sidebar-divider {
    background: rgba(255,255,255,0.02);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5), 
                inset -1px -1px 2px rgba(255,255,255,0.05); /* Deep-impact dark groove */
}

.sidebar-branding img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.18)); /* Maximum shadow for massive logo */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Social Media Button Gradient */
#social-btn {
    transition: transform 0.2s ease; /* Smooth transition for the press effect */
}

#social-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.active-social {
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.active-social i {
    color: white !important;
}

/* Social Media Popup Hub */
.social-container {
    position: relative;
    display: inline-block;
}

.social-popup {
    position: absolute;
    top: 70px;
    right: 0;
    width: 240px;
    background: var(--bg-color); /* Restored to native suite background */
    border-radius: 25px;
    padding: 15px;
    box-shadow: 15px 15px 35px var(--shadow-dark), 
               -10px -10px 30px var(--shadow-light);
    
    /* Smooth Transition Architecture */
    visibility: hidden; 
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.05); /* Professional edge-border */
}

.social-popup.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-item {
    padding: 12px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-item:hover {
    background: var(--hover-bg); /* Refined world-class hover depth */
    box-shadow: inset 4px 4px 8px var(--shadow-dark), 
                inset -4px -4px 8px var(--shadow-light); /* Professional Inset Neumorphism */
    color: #3b82f6;
    transform: translateX(5px);
}

.social-item i {
    font-size: 1.1rem;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* High-contrast icons on brand backgrounds */
    border-radius: 50%; /* World-class Circular Profile */
    box-shadow: 4px 4px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.settings-nav-item i {
    color: var(--accent-blue) !important;
}

.social-item.youtube i { background: #ff0000; }
.social-item.instagram i { background: #e4405f; }
.social-item.discord i { background: #5865f2; }
.social-item.github i { background: #333; }

/* User Profile Styling */
#user-profile {
    position: relative;
    display: none; /* Controlled by JS */
    align-items: center;
    gap: 12px;
    margin-right: 20px;
}

.user-nav-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-color);
    letter-spacing: -0.2px;
    user-select: none;

    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block !important;
}

.avatar-box {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 6px 6px 12px var(--shadow-dark), 
               -6px -6px 12px var(--shadow-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--accent-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-box:hover {
    transform: scale(1.05);
    color: var(--text-color);
}

#profile-popup {
    position: absolute;
    top: 60px;
    right: 32px;
    width: 260px;
    background: var(--sidebar-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 15px 15px 35px var(--shadow-dark), 
               -15px -15px 35px var(--shadow-light);
    z-index: 3000;
    
    /* Animation: Fade in and slide down */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#profile-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--shadow-dark);
    margin-bottom: 15px;
}

.popup-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

#user-display-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-color);
}

#user-display-email {
    font-size: 12px;
    color: var(--icon-color);
}

.profile-menu-item {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-blue);
    font-size: 16px;
}

.profile-menu-item:hover {
    color: #2563eb;
    padding-left: 5px; /* Professional nudge effect */
}

#signout-link i {
    color: #ef4444; /* Alert color for sign out */
}
/* Home Palette Hero Components */
.palette-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding-top: 10px;
    text-align: center;
}

.home-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 0px;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

body.dark-mode .home-title {
    background-image: linear-gradient(to bottom, #ffffff, #e4e4e7);
}

/* Adaptive Showcase Category Labels */
.short-text {
    display: none; /* Persistent hidden state for desktop */
}

@media (max-width: 600px) {
    .full-text {
        display: none;
    }
    .short-text {
        display: inline;
    }
}

/* Premium Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ultra-Low Dimension Digital Stability Overrides (under 325px) */
@media (max-width: 325px) {
    .menustage {
        height: auto;
        padding: 1rem 0.5rem;
        flex-direction: column;
        gap: 15px;
    }

    #menubardiv {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .acc-part, .signinbtn {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .home-title {
        font-size: 2.5rem !important;
        letter-spacing: -1px;
    }

    .informationpalette {
        padding: 10px;
    }

    #settings-container {
        bottom: 15px;
        right: 15px;
    }

    #settings-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* --- High-Fidelity Home Content Ecosystem --- */
.home-content-container {
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: -10px;
    letter-spacing: 1px;
}

/* Mission Section */
.home-mission-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mission-card {
    background: var(--card-shade);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 20px 20px 60px var(--shadow-dark), 
               -20px -20px 60px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
}

.mission-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

/* Feature Hub Grid (Flex Equilibrium) */
.home-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* Ensures world-class centering for hanging boxes */
    width: 100%;
}

.feature-card {
    flex: 1 1 320px; /* High-performance flexible base */
    max-width: 400px; /* Absolute focal width cap */
    background: var(--card-shade);
    padding: 35px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 15px 15px 35px var(--shadow-dark), 
               -12px -12px 25px var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 20px 20px 45px var(--shadow-dark), 
               -20px -20px 45px var(--shadow-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), 
                inset -6px -6px 12px var(--shadow-light);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.feature-cta {
    margin-top: auto;
    padding: 12px 25px;
    border-radius: 15px;
    border: none;
    background: var(--bg-color);
    color: var(--accent-blue);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 6px 6px 12px var(--shadow-dark), 
               -6px -6px 12px var(--shadow-light);
    transition: all 0.2s ease;
}

.feature-cta:hover {
    color: #ffffff;
    background: var(--accent-blue);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

/* Stats Bar */
.home-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background: var(--bg-color);
    border-radius: 30px;
    box-shadow: inset 10px 10px 20px var(--shadow-dark), 
                inset -10px -10px 20px var(--shadow-light);
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .home-content-container {
        padding: 0 20px 40px;
        gap: 40px;
    }
    
    .home-title {
        font-size: 3.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }

    .settings-aside-panel {
        left: 20px;
        width: calc(100vw - 40px);
        height: 90vh;
        padding: 30px;
        box-sizing: border-box;
    }
}

/* --- Golden Community Card High-Fidelity Overrides --- */
.community-card {
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.community-card h3 {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.community-card .feature-icon {
    color: #f59e0b;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.1), 
                inset -4px -4px 8px rgba(245, 158, 11, 0.2);
}

.community-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2) !important;
    border: none;
    transition: all 0.3s ease;
}

.community-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4) !important;
}

body.dark-mode .community-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

/* Academy Hub Spectrum Shade (Box 1) */
.feature-card:nth-child(1) {
    background: linear-gradient(145deg, #ffffff 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}
.feature-card:nth-child(1) .feature-icon {
    color: #3b82f6;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.06), 
                inset -4px -4px 8px rgba(59, 130, 246, 0.25);
}

/* Project Showcases Spectrum Shade (Box 2) */
.feature-card:nth-child(2) {
    background: linear-gradient(145deg, #ffffff 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}
.feature-card:nth-child(2) .feature-icon {
    color: #6366f1;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.06), 
                inset -4px -4px 8px rgba(99, 102, 241, 0.25);
}

/* Secret Lab Stealth Purple Shade (Box 3) */
.feature-card:nth-child(3) {
    background: linear-gradient(145deg, #ffffff 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.feature-card:nth-child(3) .feature-icon {
    color: #8b5cf6;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.06), 
                inset -4px -4px 8px rgba(139, 92, 246, 0.25);
}

/* Dark Mode Spectrum Overrides */
body.dark-mode .feature-card:nth-child(1) {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.1) 100%);
}
body.dark-mode .feature-card:nth-child(2) {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.1) 100%);
}
body.dark-mode .feature-card:nth-child(3) {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(139, 92, 246, 0.1) 100%);
}
/* --- High-Fidelity Integrated Quadrant Hub --- */
.quadrant-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 40px auto;
    background: var(--bg-color);
    border-radius: 50px; /* Authoritative main-box Hub border radius */
    box-shadow: 25px 25px 50px var(--shadow-dark), 
               -25px -25px 50px var(--shadow-light); /* Improved 'High Shade' depth arrival */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

/* Master Grid Lines (Absolute Symmetry Gates) */
.quad-square {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(var(--accent-rgb), 0.04); /* High-fidelity solid color-shade arrival */
    box-shadow: none !important; /* Authoritative shadow purging */
    position: relative;
    border: none;
}

/* Vertical and Horizontal Divider Protocols with High-Fidelity 'Dashboard-Identity' Shades */
.quad-apps {
    background: rgba(59, 130, 246, 0.04); /* Sub-Box Academy Blue Arrival */
    border-right: 1px solid rgba(128, 128, 128, 0.1);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.quad-games {
    background: rgba(99, 102, 241, 0.04); /* Sub-Box Project Indigo Presence */
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.quad-contact {
    background: rgba(20, 184, 166, 0.04); /* Sub-Box Community Teal Gateway */
    border-right: 1px solid rgba(128, 128, 128, 0.1);
}

.quad-about {
    background: rgba(139, 92, 246, 0.04); /* Sub-Box Secret Lab Purple Foundation */
}

.quad-square i.main-icon {
    font-size: 3.5rem;
    color: var(--accent-blue); /* Authoritative Prussian Blue Focal Connection */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

.quad-square span {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -1px;
}

.quad-arrow, .view-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 1.5rem; /* Authoritative bigger focal size */
    color: var(--accent-blue); /* Authoritative Prussian Blue Gateway Connection */
    opacity: 0.5; /* Balanced world-class gateway hint */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.quad-square:hover .quad-arrow, .showcase-card:hover .view-btn {
    opacity: 1;
    transform: scale(1.1) translateX(5px);
}

.quad-square:hover {
    background: rgba(128, 128, 128, 0.05); /* Slight focal hover */
}

.quad-square:hover i {
    transform: scale(1.15) translateY(-5px);
}

.quad-square:active {
    background: var(--shadow-dark);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .quadrant-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: auto;
        border-radius: 30px;
        margin: 20px auto;
    }
    .quad-square {
        height: 180px;
        border-right: none !important;
        border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    }
    .quad-about {
        border-bottom: none !important;
    }
}
/* --- High-Fidelity Showcase Card Ecosystem --- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.showcase-card {
    background: linear-gradient(145deg, var(--bg-color) 0%, rgba(var(--accent-rgb), 0.05) 100%); /* High-fidelity sub-box shade arrival */
    border-radius: 25px;
    box-shadow: 10px 10px 20px var(--shadow-dark), 
               -10px -10px 20px var(--shadow-light);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 15px 15px 30px var(--shadow-dark), 
               -15px -15px 30px var(--shadow-light);
}

.card-img-wrapper {
    height: 180px;
    background: rgba(var(--accent-rgb), 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(128, 128, 128, 0.05);
}

.card-img-wrapper i {
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.8;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 12px;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tag {
    padding: 6px 14px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-blue);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.view-btn {
    cursor: pointer;
    color: var(--accent-blue);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.view-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
/* --- High-Fidelity Adaptive Golden Community Hub Protocol --- */
.community-box {
    width: 100%;
    min-height: 750px; /* Authoritative Min-Height Recovery Arrival */
    background: rgba(251, 191, 36, 0.08); /* Authoritative Golden RGBA Arrival */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    margin-top: 60px;
    padding: 80px 40px; /* Enhanced Padding Hub */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Adaptive Top-Centric Flow */
    color: var(--text-color); /* Adaptive Text Hub */
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

body.dark-mode .community-box {
    background: rgba(251, 191, 36, 0.05); /* Stealth Golden Presence */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.community-logo {
    height: 180px; /* Authoritative Bigger Logo Presence */
    margin-top: 15px; /* Surgically Clean Header Separation */
    margin-bottom: 25px; /* Adaptive Focal Mid-Gap */
    filter: drop-shadow(0 15px 30px rgba(251, 191, 36, 0.5));
    transition: transform 0.3s ease;
}

.community-logo:hover {
    transform: scale(1.05); /* Interactive Logo Hub */
}

.community-header {
    font-size: 3.5rem; /* Authoritative Top Heading Focal Hub */
    font-weight: 900;
    margin-bottom: 0px; /* Minimal Heading Gap Hub */
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
}

.community-divider {
    border: none;
    height: 4px;
    width: 60%;
    max-width: 600px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent); /* Identity Gradient Divider hub */
    margin: 10px 0 60px 0; /* Surgically Clean List Depth */
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
    border-radius: 5px;
    opacity: 0.8;
}

.community-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.community-member {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%); /* Identity Gradient Hub Entrance */
    color: #ffffff; /* Absolute White contrast Hub */
    padding: 12px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

body.dark-mode .community-member {
    background: rgba(255, 255, 255, 0.03);
}

.community-member:hover {
    transform: scale(1.1);
    background: rgba(251, 191, 36, 0.15); /* Golden Highlight Hub */
    color: #fbbf24;
}
/* --- High-Fidelity Golden Project Card Protocol --- */
.special-golden-card {
    background: linear-gradient(145deg, #ffffff 0%, rgba(37, 99, 235, 0.08) 100%) !important;
    border: 2px solid rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 15px 45px rgba(37, 99, 235, 0.1) !important;
    backdrop-filter: blur(10px);
}

.special-golden-card .card-img-wrapper {
    background: rgba(37, 99, 235, 0.05) !important;
}

.special-red-card .card-img-wrapper {
    background: rgba(239, 68, 68, 0.05) !important;
}

.special-golden-card .card-content {
    margin-top: -15px !important; /* Slightly Upper Hub */
    padding-top: 0 !important;
}

.special-golden-card .card-content h3 {
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.special-golden-card .card-content p {
    color: #000 !important; /* Absolute Black Command */
    font-weight: 800 !important;
    font-size: 1.45rem; /* Bigger focal scale hub */
    line-height: 1.4;
}

.special-golden-card .tag {
    background: rgba(37, 99, 235, 0.25);
    color: #000 !important; /* Absolute Titan-Black Command */
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.special-golden-card .view-btn {
    color: #000 !important;
}

.special-golden-card:hover {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2) !important;
    border: 2px solid rgba(37, 99, 235, 0.5) !important;
    transform: none !important; /* Absolute Focal Lockdown Hub arrival */
}

body.dark-mode .special-golden-card {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15) 0%, rgba(20, 20, 24, 0.95) 100%) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.6), 
               0 0 30px rgba(37, 99, 235, 0.1) !important;
}

body.dark-mode .special-golden-card .card-content h3,
body.dark-mode .special-golden-card .card-content p {
    color: #3b82f6 !important; /* Reverting to Blue in Dark Mode for absolute clarity */
}

body.dark-mode .special-golden-card:hover {
    box-shadow: 25px 25px 50px rgba(0, 0, 0, 0.8), 
               0 0 35px rgba(37, 99, 235, 0.15) !important;
    border: 1px solid rgba(37, 99, 235, 0.6) !important;
    transform: none !important;
}

body.dark-mode .special-golden-card .card-img-wrapper {
    background: rgba(37, 99, 235, 0.05); /* Reflective Dark Blue Base */
}

/* --- High-Fidelity Crimson Automation Project Card Protocol --- */
.special-red-card {
    background: linear-gradient(145deg, #ffffff 0%, rgba(239, 68, 68, 0.08) 100%) !important;
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 15px 45px rgba(239, 68, 68, 0.1) !important;
    backdrop-filter: blur(10px);
}

.special-red-card .card-content {
    margin-top: -15px !important;
    padding-top: 0 !important;
}

.special-red-card .card-content h3 {
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.special-red-card .card-content p {
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 1.45rem;
    line-height: 1.4;
}

.special-red-card .tag {
    background: rgba(239, 68, 68, 0.25);
    color: #000 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.special-red-card .view-btn {
    color: #000 !important;
}

.special-red-card:hover {
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.2) !important;
    border: 2px solid rgba(239, 68, 68, 0.5) !important;
    transform: none !important;
}

body.dark-mode .special-red-card {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15) 0%, rgba(20, 20, 24, 0.95) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.6), 
               0 0 30px rgba(239, 68, 68, 0.1) !important;
}

body.dark-mode .special-red-card .card-content h3,
body.dark-mode .special-red-card .card-content p {
    color: #ef4444 !important;
}

body.dark-mode .special-red-card:hover {
    box-shadow: 25px 25px 50px rgba(0, 0, 0, 0.8), 
               0 0 35px rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    transform: none !important;
}

body.dark-mode .special-red-card .card-img-wrapper {
    background: rgba(239, 68, 68, 0.05);
}

/* ===== PRIVACY & SECURITY HUB STYLES ===== */

.privacy-hub-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInHub 0.4s ease-out;
}

.privacy-hub-container > h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-hub-container > .section-desc {
    color: var(--text-color-alt);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.privacy-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.privacy-section:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.privacy-section.last-section {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), rgba(99, 102, 241, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.section-info {
    flex: 1;
}

.section-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
}

.section-info p {
    font-size: 0.85rem;
    color: var(--text-color-alt);
    margin: 0;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Password Status */
.password-status {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #22c55e;
}

.status-indicator.strong {
    color: #10b981;
}

.status-detail {
    font-size: 0.8rem;
    color: var(--text-color-alt);
    margin: 0;
}

/* Two-Factor Auth Status */
.tfa-status {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-badge.enabled {
    background: rgba(34, 197, 94, 0.15);
}

.backup-codes {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.code-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-color);
}

/* Active Sessions */
.session-item {
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.session-item.current {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.session-device {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.session-device > i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.device-info {
    display: flex;
    flex-direction: column;
}

.device-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.device-location {
    font-size: 0.8rem;
    color: var(--text-color-alt);
}

.session-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.session-badge.current {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-blue);
}

.session-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-action-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Login History */
.login-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.history-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
    background: rgba(34, 197, 94, 0.2);
}

.history-icon.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.history-icon.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.history-time {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.history-location {
    font-size: 0.8rem;
    color: var(--text-color-alt);
}

/* Privacy Toggles */
.privacy-toggles {
    gap: 1rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.toggle-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toggle-label > span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.toggle-label > small {
    font-size: 0.8rem;
    color: var(--text-color-alt);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-switch input:checked + label {
    background-color: var(--accent-blue);
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + label:before {
    transform: translateX(22px);
}

/* Data Management */
.data-management {
    flex-direction: row;
    gap: 1rem;
}

/* Action Buttons */
.privacy-action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.privacy-action-btn.primary {
    background: linear-gradient(135deg, var(--accent-blue), rgba(99, 102, 241, 0.7));
    color: white;
}

.privacy-action-btn.primary:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.privacy-action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.privacy-action-btn.secondary:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.privacy-action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.privacy-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.data-management .privacy-action-btn {
    flex: 1;
}

/* Help Modal Styles */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.help-modal-content {
    background: var(--bg-color);
    border-radius: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    position: relative;
}

.help-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
}

.help-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.modal-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.help-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.question-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.question-content i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    width: 20px;
}

.question-content span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.question-toggle {
    color: var(--icon-color);
    transition: all 0.3s ease;
}

.faq-item.active .question-toggle {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.faq-item.active .faq-question {
    background: rgba(59, 130, 246, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(59, 130, 246, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    margin: 15px 0 0 0;
    color: var(--icon-color);
    line-height: 1.6;
    font-size: 1rem;
}

.help-contact {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 25px;
    padding: 35px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.help-contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.help-contact > p {
    color: var(--icon-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    justify-content: center;
}

.support-mail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.support-mail-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.support-mail-btn.primary:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--icon-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item i {
    color: var(--accent-blue);
}

.help-footer {
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    padding: 30px 40px;
    background: rgba(128, 128, 128, 0.02);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.help-footer p {
    color: var(--icon-color);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #8b5cf6;
}

/* Centered Modal Panels for Contact and About */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 14000;
    animation: panelFadeIn 0.3s ease;
}

.panel-overlay.active {
    display: flex;
}

.contact-aside-panel,
.about-aside-panel {
    background: var(--bg-color);
    border-radius: 40px;
    padding: 60px;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    max-height: 85vh;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow-y: auto;
    animation: panelSlideUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes panelFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes panelSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body.dark-mode .contact-aside-panel,
body.dark-mode .about-aside-panel {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.panel-header span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--icon-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.panel-header span:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.panel-content {
    height: calc(100% - 70px);
    overflow-y: auto;
}

.contact-header-section,
.about-header-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.contact-header-icon,
.about-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-header-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.about-header-icon {
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    color: white;
}

.contact-header-section h2,
.about-header-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-header-section p,
.about-header-section p {
    font-size: 1.1rem;
    color: var(--icon-color);
    margin: 0;
}

.contact-content,
.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    position: relative;
}

.contact-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.contact-body {
    padding: 40px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
}

.contact-intro h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--icon-color);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-card:nth-child(1) .contact-card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.contact-card:nth-child(2) .contact-card-icon {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

.contact-card:nth-child(3) .contact-card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.contact-card:nth-child(4) .contact-card-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.contact-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-card p {
    color: var(--icon-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.contact-link.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.contact-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.contact-link.secondary {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.contact-link.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.contact-link.tertiary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.contact-link.tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.contact-link.quaternary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.contact-link.quaternary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.contact-meta {
    font-size: 0.85rem;
    color: var(--icon-color);
    font-weight: 500;
}

.contact-meta i {
    color: var(--accent-blue);
    margin-right: 5px;
}

.contact-additional {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-hours h4,
.contact-locations h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-hours h4 i,
.contact-locations h4 i {
    color: var(--accent-blue);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-color);
}

.hours-item .time {
    color: var(--icon-color);
    font-size: 0.9rem;
}

.contact-locations p {
    color: var(--icon-color);
    line-height: 1.6;
}

/* About Panel logic moved to unified centered modal class above */

.about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    position: relative;
}

.about-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.about-body {
    padding: 40px;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.about-hero-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.about-hero-content p {
    font-size: 1.1rem;
    color: var(--icon-color);
    line-height: 1.6;
    max-width: 500px;
}

.about-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    min-width: 120px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--icon-color);
    font-weight: 500;
}

.about-mission {
    margin-bottom: 50px;
}

.mission-content {
    text-align: center;
    margin-bottom: 40px;
}

.mission-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.mission-content p {
    font-size: 1.1rem;
    color: var(--icon-color);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.value-item:nth-child(1) .value-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.value-item:nth-child(2) .value-icon {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

.value-item:nth-child(3) .value-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.value-item h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.value-item p {
    color: var(--icon-color);
    line-height: 1.5;
}

.about-team {
    margin-bottom: 50px;
}

.about-team h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.team-member {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(128, 128, 128, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    color: white;
}

.team-member h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.team-member p {
    color: var(--icon-color);
    line-height: 1.5;
}

.about-journey {
    margin-bottom: 30px;
}

.about-journey h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.journey-timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), #8b5cf6);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-item.current {
    opacity: 0.9;
}

.timeline-marker {
    position: absolute;
    left: 21px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.timeline-item.current .timeline-marker {
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1); }
    100% { box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
}

.timeline-content h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--icon-color);
    line-height: 1.5;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-modal-content,
    .about-modal-content {
        width: 95%;
        margin: 20px;
    }

    .contact-header,
    .about-header {
        padding: 25px 30px;
    }

    .contact-header h2,
    .about-header h2 {
        font-size: 1.6rem;
    }

    .contact-body,
    .about-body {
        padding: 30px 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-additional {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .mission-values,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .journey-timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 11px;
    }
}

/* Sign In Required Modal Styles */
.signin-required-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.signin-required-modal-content {
    background: var(--bg-color);
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

.signin-required-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    position: relative;
}

.signin-required-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
}

.signin-required-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.signin-required-body {
    padding: 40px;
}

.signin-required-message h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.signin-required-message > p {
    font-size: 1.1rem;
    color: var(--icon-color);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

.signin-required-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.feature-item i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    width: 20px;
}

.feature-item span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.signin-required-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signin-required-primary-btn,
.signin-required-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.signin-required-primary-btn {
    background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.signin-required-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.signin-required-secondary-btn {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.signin-required-secondary-btn:hover {
    background: rgba(128, 128, 128, 0.2);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-aside-panel,
    .about-aside-panel {
        left: 20px;
        width: calc(100vw - 40px);
        height: 90vh;
        padding: 30px;
        top: 50%;
        transform: translateY(-50%) scale(0.95);
        box-sizing: border-box;
    }

    .contact-aside-panel.active,
    .about-aside-panel.active {
        transform: translateY(-50%) scale(1);
    }

    .panel-header {
        margin-bottom: 20px;
    }

    .panel-content {
        height: calc(100% - 60px);
    }

    .contact-header-section h2,
    .about-header-section h2 {
        font-size: 2rem;
    }

    .contact-content,
    .about-content {
        gap: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .help-modal-content {
        width: 95%;
        margin: 20px;
    }

    .help-header {
        padding: 25px 30px;
    }

    .help-header h2 {
        font-size: 1.6rem;
    }

    .help-body {
        padding: 30px 25px;
        gap: 30px;
    }

    .faq-question {
        padding: 20px 25px;
    }

    .question-content span {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 25px 20px 25px;
    }

    .help-contact {
        padding: 25px;
    }

    .contact-actions {
        gap: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .help-footer {
        padding: 25px 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Community Hub Modal Styles */
.hub-invitation-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 15px 15px 35px var(--shadow-dark), -15px -15px 35px var(--shadow-light);
    border: 1px solid rgba(128, 128, 128, 0.1);
    margin-top: 30px;
    transition: all 0.4s ease;
}

.hub-card-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-color);
}

.invitation-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.inv-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--icon-color);
}

.inv-feature i {
    color: var(--accent-blue);
    width: 20px;
}

.invite-link-box {
    background: rgba(128, 128, 128, 0.05);
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed var(--accent-blue);
    margin-bottom: 30px;
}

.invite-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.link-display {
    display: flex;
    gap: 10px;
    background: var(--bg-color);
    padding: 5px;
    border-radius: 12px;
    box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}

.profile-card {
    background: var(--card-shade);
    padding: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: inset 5px 5px 15px var(--shadow-dark), 
               inset -5px -5px 15px var(--shadow-light);
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 15px;
    }
    
    .name-edit-wrapper {
        justify-content: center;
    }
}

.profile-avatar-large-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-color);
    box-shadow: 10px 10px 20px var(--shadow-dark), 
               -10px -10px 20px var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    overflow: hidden;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: 3px solid var(--card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: #1d4ed8;
}

.name-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inline-edit-btn {
    background: none;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.inline-edit-btn:hover {
    color: var(--accent-blue);
}

.link-display input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
}

.link-display button {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-display button:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.hub-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: #5865F2; /* Discord Blurple */
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hub-join-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.5);
    filter: brightness(1.1);
}

/* DGFruit World-Class Notification System */
.dg-notification {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: auto;
}

body.dark-mode .dg-notification {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.dg-notification.active {
    transform: translateX(0);
}

.dg-notification i {
    font-size: 1.4rem;
}

.dg-notification.success {
    border-left: 6px solid #10b981;
}

.dg-notification.success i {
    color: #10b981;
}

.dg-notification.info {
    border-left: 6px solid var(--accent-blue);
}

.dg-notification.info i {
    color: var(--accent-blue);
}

@media (max-width: 480px) {
    #notification-hub {
        right: 15px !important;
        left: 15px !important;
        top: 20px !important;
        width: auto !important;
    
    #more-btn {
        width: 45px !important;
        min-width: 45px !important;
        padding: 0 !important;
        font-size: 0 !important;
    }
    #more-btn i {
        font-size: 18px !important;
    }
}
    
    .dg-notification {
        padding: 12px 20px;
        font-size: 0.9rem;
        transform: translateY(-120%);
    }
    
    .dg-notification.active {
        transform: translateY(0);
    }
}

/* DGFruit Formal Profile Modal Styling */
.profile-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 95%;
    max-width: 500px;
    border-radius: 35px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10001;
}

#username-modal-overlay.active .profile-modal {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

body.dark-mode .profile-modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-header i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
}

#close-username-modal {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--icon-color);
    transition: color 0.3s ease;
}

#close-username-modal:hover {
    color: #ef4444;
}

.modal-body p {
    color: var(--icon-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.formal-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.formal-input-group label {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formal-input-group input {
    background: var(--bg-color);
    border: none;
    padding: 18px 25px;
    border-radius: 20px;
    box-shadow: inset 8px 8px 16px var(--shadow-dark), 
               inset -8px -8px 16px var(--shadow-light);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 700;
    outline: none;
    transition: all 0.3s ease;
}

.formal-input-group input:focus {
    box-shadow: inset 4px 4px 8px var(--shadow-dark), 
               inset -4px -4px 8px var(--shadow-light);
    transform: translateY(2px);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 16px;
    border-radius: 20px;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.modal-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.modal-btn.secondary {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: 8px 8px 16px var(--shadow-dark), 
               -8px -8px 16px var(--shadow-light);
}

.modal-btn.secondary:hover {
    box-shadow: 4px 4px 8px var(--shadow-dark), 
               -4px -4px 8px var(--shadow-light);
}

/* DGFruit Security intelligence Visualization */
.logs-modal {
    max-width: 650px;
}

.logs-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-right: 10px;
}

.logs-container::-webkit-scrollbar {
    width: 6px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

.log-item {
    background: var(--bg-color);
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 4px 4px 10px var(--shadow-dark), 
               -4px -4px 10px var(--shadow-light);
    transition: transform 0.3s ease;
}

.log-item:hover {
    transform: translateX(5px);
}

.log-icon {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.log-icon.success { background: #10b981; }
.log-icon.warning { background: #f59e0b; }
.log-icon.danger { background: #ef4444; }

.log-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-time {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.log-info {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.log-location {
    font-size: 0.8rem;
    color: var(--icon-color);
}

/* Security Status Tokens */
.status.enabled {
    color: #10b981 !important;
    font-weight: 800;
}

.status.disabled {
    color: var(--icon-color);
    font-weight: 700;
}




