/* --- AESTHETIC THEME VARIABLES --- */
:root {
    --bg-body: #f0f4f8;       
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-main: #ffffff;
    --bg-secondary: rgba(248, 250, 252, 0.8);
    --text-main: #1e293b;     
    --text-sub: #64748b;      
    --border: rgba(255, 255, 255, 0.6);
    --shadow-card: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-header: rgba(15, 23, 42, 0.85);
    --bg-main: #1e293b;
    --bg-secondary: rgba(30, 41, 59, 0.5);
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

/* --- SWEETALERT Z-INDEX OVERRIDE --- */
.swal2-container {
    z-index: 999999 !important;
}

/* --- BASE --- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    transition: background-color 0.5s ease, color 0.3s ease;
    overflow-x: hidden;
    overflow-y: scroll;
    background-attachment: fixed;
    background-image: radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
}

/* --- DEFAULT HEADER LAYOUT (DESKTOP FIRST) --- */
.header-top { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    width: 95%; 
    max-width: 1800px; 
    margin: 0 auto; 
    position: relative; 
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 10px 0;
}

.header-left { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    min-width: 0; 
}

.header-right { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 10px; 
}

/* --- HEADER (CENTERED LOGO) --- */
header {
    background: var(--bg-header) !important; 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 10px 0; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

/* --- ANIMATED HEADER LOGO STYLES --- */
.header-center h1 { 
    margin: 0; 
    font-size: 28px !important; 
    font-weight: 400; 
    font-family: 'Gelasio', serif, 'Poppins', 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    letter-spacing: 2px;
    text-transform: none;
    transform-origin: center;
    animation: textFloat 4s ease-in-out infinite;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-style: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* DESKTOP HEADER FIXES - Ensure desktop layout is preserved */
@media (min-width: 769px) {
    .header-top {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        padding: 10px 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: auto !important;
    }
    
    .header-left {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        order: unset !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    
    .header-center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        order: unset !important;
        z-index: 10 !important;
        max-width: none !important;
    }
    
    .header-center h1 {
        font-size: 28px !important;
        white-space: nowrap !important;
        text-align: center !important;
        line-height: normal !important;
        margin: 0 !important;
        display: block !important;
        align-items: unset !important;
        justify-content: unset !important;
        gap: unset !important;
    }
    
    .header-center p {
        font-size: 10px !important;
        text-align: center !important;
        line-height: normal !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    
    .header-center .header-credit {
        font-size: 10px !important;
        margin-top: 6px !important;
    }
    
    .header-right {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        order: unset !important;
        margin-left: 0 !important;
        max-width: none !important;
    }
    
    /* Desktop button sizes */
    #lang-toggle,
    #theme-toggle,
    #notif-bell,
    #install-pwa-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        padding: 8px !important;
        min-width: 35px !important;
        margin-right: 0 !important;
        border-radius: 10px !important;
    }
    
    .login-btn-top {
        padding: 8px 24px !important;
        font-size: 12px !important;
        height: auto !important;
        border-radius: 50px !important;
        min-width: auto !important;
    }
    
    .header-left button[onclick*="faq.html"] {
        padding: 6px 15px !important;
        height: auto !important;
        font-size: 11px !important;
        border-radius: 50px !important;
    }
    
    .header-left button[onclick*="faq.html"] span {
        display: inline !important;
    }
    
    #trophy-container {
        transform: scale(1) !important;
    }
    
    #online-counter {
        padding: 4px 8px !important;
        font-size: 10px !important;
        height: auto !important;
    }
    
    #user-nav button,
    #user-nav .head-btn {
        width: auto !important;
        height: auto !important;
        font-size: 11px !important;
        padding: 6px 15px !important;
    }
    
    #guest-nav button {
        padding: 8px 24px !important;
        font-size: 12px !important;
        height: auto !important;
    }
    
    #notif-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: -5px !important;
        right: -5px !important;
    }
}

/* Background glow removed - no pill shape */
.header-center h1::before {
    display: none;
}

/* Shimmer Overlay - REMOVED */
.header-center h1::after {
    display: none !important;
}

/* Animated Subtitle */
.header-center p { 
    margin: 0; 
    font-size: 10px !important; 
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-sub);
    letter-spacing: 3px; 
    text-transform: none; 
    font-weight: 500; 
    position: relative;
    z-index: 9;
    opacity: 0.9;
    animation: 
        subtitleFloat 5s ease-in-out infinite,
        letterSpacing 4s ease-in-out infinite alternate;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Animated underline effect */
.header-center p::before {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--text-sub), 
        transparent);
    animation: underlineExpand 3s ease-in-out infinite;
    opacity: 0.5;
}

/* Keep after hidden */
.header-center p::after {
    display: none;
}

/* Header Credit - By Imran */
.header-center .header-credit {
    display: block;
    margin: 6px 0 0 0;
    font-size: 10px !important;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text-sub);
    letter-spacing: 1.5px;
    text-transform: none;
    font-weight: 500;
    opacity: 0.7;
    position: relative;
    z-index: 9;
    animation: subtitleFloat 6s ease-in-out infinite;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-align: right !important;
    width: 100% !important;
    padding-right: 0;
}

/* Floating sparkles - REMOVED */
.header-center::before {
    display: none !important;
}

/* Remove digital noise effect */
.header-center::after {
    display: none !important;
}

/* Ultra Advanced Cyberpunk Keyframe Animations */
@keyframes ultraRainbowText {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 200% 50%; }
    75% { background-position: 300% 50%; }
    100% { background-position: 400% 50%; }
}

@keyframes ultraRainbowBg {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 100%; }
    50% { background-position: 200% 0%; }
    75% { background-position: 300% 100%; }
    100% { background-position: 400% 0%; }
}

@keyframes cyberFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotateX(0deg);
    }
    25% {
        transform: translateY(-3px) scale(1.02) rotateX(2deg);
    }
    50% {
        transform: translateY(-1px) scale(1.05) rotateX(0deg);
    }
    75% {
        transform: translateY(-4px) scale(1.01) rotateX(-2deg);
    }
}

@keyframes textPulse {
    0% {
        filter: brightness(1.2) contrast(1.1) saturate(1.3) hue-rotate(0deg);
    }
    100% {
        filter: brightness(1.5) contrast(1.3) saturate(1.6) hue-rotate(10deg);
    }
}

@keyframes glitchShake {
    0%, 90%, 100% {
        transform: translate(0);
    }
    10% {
        transform: translate(-1px, 0);
    }
    20% {
        transform: translate(1px, 0);
    }
    30% {
        transform: translate(0, -1px);
    }
    40% {
        transform: translate(-1px, 1px);
    }
    50% {
        transform: translate(1px, -1px);
    }
    60% {
        transform: translate(-1px, 0);
    }
    70% {
        transform: translate(1px, 1px);
    }
    80% {
        transform: translate(0, -1px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        filter: blur(12px) brightness(1);
    }
    100% {
        opacity: 0.8;
        filter: blur(8px) brightness(1.5);
    }
}

@keyframes holoScan {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0;
    }
}

@keyframes textShimmer {
    0% {
        filter: brightness(1) contrast(1);
    }
    100% {
        filter: brightness(1.3) contrast(1.2);
    }
}

@keyframes subtitleRainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes cyberBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    33% {
        transform: translateY(-2px) scale(1.05);
    }
    66% {
        transform: translateY(1px) scale(0.98);
    }
}

@keyframes letterSpacing {
    0% {
        letter-spacing: 3px;
    }
    100% {
        letter-spacing: 5px;
    }
}

@keyframes scanLines {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes energyFlow {
    0% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 200% 50%;
        opacity: 0.6;
    }
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 5px currentColor;
        height: 2px;
    }
    100% {
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
        height: 3px;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-5px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-2px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-7px) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes particleGlow {
    0% {
        text-shadow: 0 0 5px currentColor;
        filter: brightness(1);
    }
    100% {
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
        filter: brightness(1.5);
    }
}

@keyframes digitalNoise {
    0% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    25% {
        opacity: 0.7;
        transform: scaleX(1.1);
    }
    50% {
        opacity: 0.4;
        transform: scaleX(0.9);
    }
    75% {
        opacity: 0.8;
        transform: scaleX(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scaleX(1);
    }
}

@keyframes noiseShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

/* Enhanced hover effects */
.header-center:hover h1 {
    transform: scale(1.05);
    animation-duration: 2s;
}

.header-center:hover p {
    opacity: 1;
    letter-spacing: 3px;
    animation-duration: 2s;
}

/* Additional Cyberpunk Effects - SIMPLIFIED */

/* Simplified particle animation */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Enhanced Mobile Performance - OPTIMIZED */
@media (max-width: 768px) {
    .header-center h1 {
        font-size: 24px !important;
        animation-duration: 4s;
        letter-spacing: 1.5px;
        font-weight: 400;
        font-family: 'Gelasio', serif;
    }
    
    .header-center p {
        font-size: 9px !important;
        letter-spacing: 2.5px;
        animation-duration: 3s;
    }
    
    .header-center .header-credit {
        font-size: 9px !important;
        letter-spacing: 1.2px;
        margin-top: 4px;
        text-align: right !important;
        width: 100% !important;
    }
    
    /* MOBILE GRID LAYOUT FIX */
    #menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 20px !important;
        padding: 15px !important;
    }
    
    /* MOBILE DASHBOARD CONTAINER */
    #dashboard-container {
        width: 98% !important;
        margin: 10px auto !important;
        padding-bottom: 120px !important;
    }
    
    /* MOBILE GREETING SECTION */
    .greeting-section {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
        text-align: center !important;
    }
    
    .greeting-title {
        font-size: 18px !important;
    }
    
    /* MOBILE SEARCH CONTAINER */
    .search-container {
        max-width: 100% !important;
        margin: 15px 0 !important;
    }
    
    .search-input {
        padding: 12px 40px 12px 40px !important;
        font-size: 14px !important;
    }
    
    /* MOBILE HERO BANNER */
    .hero-banner {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    }
    
    .hero-text h3 {
        font-size: 16px !important;
    }
    
    .hero-text p {
        font-size: 13px !important;
    }
    
    /* MOBILE SERVICES MENU */
    .services-menu-wrapper {
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* MOBILE CARDS */
    .card {
        padding: 15px 8px !important;
        border-radius: 16px !important;
    }
    
    .card-content span {
        font-size: 12px !important;
        min-height: 24px !important;
    }
    
    .card-desc {
        font-size: 10px !important;
    }
    
    .icon-tile {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    /* MOBILE ABOUT SECTION */
    div[style*="margin:60px auto 40px auto"] {
        margin: 30px auto 20px auto !important;
        padding: 30px 20px !important;
    }
    
    div[style*="font-size:32px"] {
        font-size: 24px !important;
    }
    
    div[style*="font-size:26px"] {
        font-size: 20px !important;
    }
    
    div[style*="grid-template-columns:repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Reduce particle effects on mobile for performance */
    .cyber-particles {
        opacity: 0.3;
    }
    
    /* Simplify animations on mobile */
    .header-center h1 {
        animation: 
            ultraRainbowText 4s linear infinite,
            cyberFloat 6s ease-in-out infinite;
    }
    
    /* Hide complex effects on mobile */
    .digital-grid {
        display: none;
    }
    
    .header-center::before,
    .header-center::after {
        display: none;
    }
    
    /* MOBILE HEADER LAYOUT FIXES - ONLY ON MOBILE */
    .header-top {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 6px 8px !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 50px !important;
    }
    
    .header-left {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        order: 1 !important;
        min-width: 0 !important;
        max-width: 25% !important;
    }
    
    .header-center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        order: 2 !important;
        z-index: 10 !important;
        max-width: 50% !important;
    }
    
    .header-right {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        order: 3 !important;
        margin-left: 0 !important;
        max-width: 25% !important;
    }
    
    /* Make ALL header buttons smaller on mobile ONLY */
    #lang-toggle,
    #theme-toggle,
    #notif-bell,
    #install-pwa-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
        padding: 4px !important;
        min-width: 28px !important;
        margin-right: 0 !important;
        border-radius: 8px !important;
    }
    
    /* Login button smaller on mobile ONLY */
    .login-btn-top {
        padding: 4px 8px !important;
        font-size: 10px !important;
        height: 28px !important;
        border-radius: 14px !important;
        min-width: auto !important;
    }
    
    /* FAQ button smaller on mobile ONLY */
    .header-left button[onclick*="faq.html"] {
        padding: 4px 6px !important;
        height: 28px !important;
        font-size: 9px !important;
        border-radius: 8px !important;
    }
    
    .header-left button[onclick*="faq.html"] span {
        display: none !important;
    }
    
    /* Trophy container smaller on mobile ONLY */
    #trophy-container {
        transform: scale(0.7) !important;
    }
    
    /* Online counter smaller on mobile ONLY */
    #online-counter {
        padding: 2px 6px !important;
        font-size: 8px !important;
        height: 20px !important;
    }
    
    /* User navigation smaller on mobile ONLY */
    #user-nav button,
    #user-nav .head-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
        padding: 4px !important;
    }
    
    /* Guest navigation smaller on mobile ONLY */
    #guest-nav button {
        padding: 4px 8px !important;
        font-size: 10px !important;
        height: 28px !important;
    }
    
    /* Notification badge smaller on mobile ONLY */
    #notif-badge {
        width: 14px !important;
        height: 14px !important;
        font-size: 8px !important;
        top: -3px !important;
        right: -3px !important;
    }
}

@media (max-width: 480px) {
    .header-center h1 {
        font-size: 22px !important;
        letter-spacing: 1.2px;
        font-weight: 400;
        font-family: 'Gelasio', serif;
    }
    
    .header-center p {
        font-size: 8px !important;
        letter-spacing: 2px;
    }
    
    .header-center .header-credit {
        font-size: 8px !important;
        letter-spacing: 1px;
        margin-top: 3px;
        text-align: right !important;
        width: 100% !important;
    }
    
    /* EXTRA SMALL MOBILE GRID */
    #menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 15px !important;
        padding: 10px !important;
    }
    
    /* EXTRA SMALL MOBILE DASHBOARD */
    #dashboard-container {
        width: 100% !important;
        margin: 5px auto !important;
        padding-bottom: 130px !important;
    }
    
    /* EXTRA SMALL MOBILE HEADER */
    .header-top {
        padding: 4px 6px !important;
        gap: 2px !important;
        min-height: 45px !important;
    }
    
    .header-left {
        max-width: 20% !important;
        gap: 2px !important;
    }
    
    .header-center {
        max-width: 60% !important;
    }
    
    .header-center h1 {
        font-size: 18px !important;
        gap: 4px !important;
    }
    
    .header-center p {
        font-size: 7px !important;
    }
    
    .header-center .header-credit {
        font-size: 6px !important;
        margin-top: 1px !important;
    }
    
    .header-right {
        max-width: 20% !important;
        gap: 2px !important;
    }
    
    /* EXTRA SMALL MOBILE BUTTONS */
    #lang-toggle,
    #theme-toggle,
    #notif-bell,
    #install-pwa-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 9px !important;
        padding: 3px !important;
        min-width: 24px !important;
        border-radius: 6px !important;
    }
    
    .login-btn-top {
        padding: 3px 6px !important;
        font-size: 9px !important;
        height: 24px !important;
        border-radius: 12px !important;
    }
    
    .header-left button[onclick*="faq.html"] {
        padding: 3px 4px !important;
        height: 24px !important;
        font-size: 8px !important;
        border-radius: 6px !important;
    }
    
    #trophy-container {
        transform: scale(0.6) !important;
    }
    
    #online-counter {
        padding: 1px 4px !important;
        font-size: 7px !important;
        height: 16px !important;
    }
    
    #notif-badge {
        width: 12px !important;
        height: 12px !important;
        font-size: 7px !important;
        top: -2px !important;
        right: -2px !important;
    }
    
    /* Hide some elements on very small screens if needed */
    #install-pwa-btn {
        display: none !important;
    }
    
    /* EXTRA SMALL MOBILE GREETING */
    .greeting-title {
        font-size: 16px !important;
    }
    
    .greeting-sub {
        font-size: 12px !important;
    }
    
    /* EXTRA SMALL MOBILE SEARCH */
    .search-input {
        padding: 10px 35px 10px 35px !important;
        font-size: 13px !important;
    }
    
    /* EXTRA SMALL MOBILE CARDS */
    .card {
        padding: 12px 6px !important;
        border-radius: 12px !important;
    }
    
    .card-content span {
        font-size: 11px !important;
        min-height: 20px !important;
    }
    
    .card-desc {
        font-size: 9px !important;
    }
    
    .icon-tile {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    /* EXTRA SMALL MOBILE ABOUT SECTION */
    div[style*="margin:60px auto 40px auto"] {
        margin: 20px auto 15px auto !important;
        padding: 20px 15px !important;
    }
    
    div[style*="font-size:32px"] {
        font-size: 20px !important;
    }
    
    div[style*="font-size:26px"] {
        font-size: 18px !important;
    }
    
    /* Hide all particle effects on very small screens */
    .cyber-particles {
        display: none;
    }
    
    .cyber-border-top,
    .cyber-border-bottom {
        display: none;
    }
    
    /* Keep only essential animations */
    .header-center h1 {
        animation: ultraRainbowText 4s linear infinite;
    }
    
    .header-center p {
        animation: subtitleRainbow 3s linear infinite;
    }
}

/* Additional Keyframes */
@keyframes holoInterference {
    0%, 100% {
        transform: translateX(0) skewX(0deg);
        opacity: 0.03;
    }
    25% {
        transform: translateX(2px) skewX(1deg);
        opacity: 0.05;
    }
    50% {
        transform: translateX(-1px) skewX(-0.5deg);
        opacity: 0.02;
    }
    75% {
        transform: translateX(1px) skewX(0.5deg);
        opacity: 0.04;
    }
}

@keyframes dataStream {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes glitchClip {
    0%, 90%, 100% {
        clip-path: inset(0 0 0 0);
    }
    10% {
        clip-path: inset(0 0 95% 0);
    }
    20% {
        clip-path: inset(85% 0 0 0);
    }
    30% {
        clip-path: inset(40% 0 50% 0);
    }
    40% {
        clip-path: inset(0 0 80% 0);
    }
    50% {
        clip-path: inset(70% 0 0 0);
    }
}

@keyframes neonPulse {
    0% {
        filter: brightness(1) contrast(1);
        text-shadow: 0 0 5px currentColor;
    }
    100% {
        filter: brightness(1.5) contrast(1.3);
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* Removed duplicate .header-top rule - using media query specific rules instead */

.header-left { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    min-width: 0; 
}

/* Removed old pill-shaped header-center styles - using clean version below */

/* Remove floating particles */
.cyber-particles {
    display: none !important;
}

/* Remove digital grid and borders */
.digital-grid {
    display: none !important;
}

.cyber-border-top {
    display: none !important;
}

.cyber-border-bottom {
    display: none !important;
}

/* Enhanced Particle Animations */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) translateX(-8px) rotate(180deg) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) translateX(15px) rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

@keyframes borderScan {
    0% {
        background-position: -200% 0;
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0.5;
    }
}

/* Clean Header Container - NO PILL SHAPE */
.header-center { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    text-align: center;
    z-index: 10;
    padding: 8px 15px;
    background: transparent !important;
    border: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.header-center:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.02);
}

/* Clean Animation Keyframes */
@keyframes textFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.01);
    }
}

/* textGlow animation removed - no text shadow effects */
@keyframes textGlow {
    0% {
        /* No text shadow */
    }
    100% {
        /* No text shadow */
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }
    100% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes subtitleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-1px);
    }
}

@keyframes letterSpacing {
    0% {
        letter-spacing: 2px;
    }
    100% {
        letter-spacing: 3px;
    }
}

@keyframes underlineExpand {
    0%, 100% {
        width: 20px;
        opacity: 0.3;
    }
    50% {
        width: 60px;
        opacity: 0.7;
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-3px) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-1px) rotate(240deg);
        opacity: 0.8;
    }
}

@keyframes containerGlow {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    }
    100% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    }
}

/* Removed duplicate .header-center h1 rule - using media query specific rules instead */

/* Removed duplicate .header-center p rule - using media query specific rules instead */

/* Removed duplicate .header-right rule - using default desktop rule instead */

/* Festival theme classes (safe override) */
header.festival-independence,
header.festival-republic {
    background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%) !important;
}
header.festival-independence {
    border-bottom: 3px solid #000080 !important;
}
header.festival-diwali {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF6347) !important;
}
header.festival-eid {
    background: linear-gradient(135deg, #00A86B, #FFFFFF, #FFD700) !important;
}
header.festival-holi {
    background: linear-gradient(135deg, #FF1493, #FFD700, #00CED1, #32CD32) !important;
}
/* Removed duplicate .header-top rule - using media query specific rules instead */
/* Removed duplicate .header-right rule - using default desktop rule instead */

/* --- HEADER BUTTONS --- */
.head-btn { background: var(--bg-body); border: 1px solid var(--border); color: var(--text-main); padding: 6px 15px; border-radius: 50px; font-size: 11px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; text-decoration: none; }
.head-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-money { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-money:hover { transform: scale(1.05); }

/* --- THEME TOGGLE --- */
#theme-toggle { background: var(--bg-body); border: 1px solid var(--border); color: var(--text-main); width: 35px; height: 35px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.4s; }
#theme-toggle:hover { transform: rotate(180deg) scale(1.1); }

/* --- FIXED: WORK VIEW (FULL SCREEN APP) --- */
#work-view {
    display: none;
    flex-direction: column;
    position: fixed; /* Takes over whole screen */
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000000;
    z-index: 5000; /* Stays on top of everything */
}
/* ADAPTIVE TOOLBAR - SMART COLOR DETECTION */
#toolbar { 
    background: rgba(100, 100, 100, 0.7) !important; /* Neutral gray default */
    backdrop-filter: blur(10px) !important; 
    padding: 10px 20px !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; 
    display: flex !important; 
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 100;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

/* DEFAULT TOOLBAR TEXT COLORS */
#toolbar #back-btn {
    color: white !important; /* Default white text on gray background */
}

#toolbar #tool-title {
    color: white !important; /* Default white text on gray background */
}

/* TOOLBAR BRAND SECTION */
#toolbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 15px !important;
    pointer-events: none !important;
}

#toolbar-logo {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    object-fit: contain !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2px !important;
}

/* Fallback when logo fails to load */
#toolbar-logo[src=""], #toolbar-logo:not([src]) {
    display: none !important;
}

#toolbar-brand-text {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    white-space: nowrap !important;
}

/* WHITE TOOLBAR MODE (for dark services) */
#toolbar.white-mode { 
    background: rgba(255, 255, 255, 0.9) !important; 
    backdrop-filter: blur(10px) !important; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* BLACK TOOLBAR MODE (for light services) */
#toolbar.black-mode { 
    background: rgba(0, 0, 0, 0.8) !important; 
    backdrop-filter: blur(10px) !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

#back-btn { 
    background: transparent !important; 
    backdrop-filter: none !important;
    border: none !important; 
    padding: 8px 16px !important; 
    border-radius: 50px !important; 
    cursor: pointer !important; 
    font-weight: 600 !important; 
    font-size: 14px !important;
    color: white !important; 
    display: flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: none !important;
    font-family: 'Poppins', sans-serif !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* WHITE MODE - Dark text for light toolbar */
#toolbar.white-mode #back-btn {
    color: #1f2937 !important;
}

#toolbar.white-mode #back-btn:hover { 
    background: rgba(59, 130, 246, 0.8) !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    border-radius: 50px !important;
}

/* WHITE MODE - Brand colors for light toolbar */
#toolbar.white-mode #toolbar-brand-text {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* BLACK MODE - Light text for dark toolbar */
#toolbar.black-mode #back-btn {
    color: white !important;
}

/* BLACK MODE - Brand colors for dark toolbar */
#toolbar.black-mode #toolbar-brand-text {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* MOBILE RESPONSIVE - TOOLBAR BRAND */
@media (max-width: 768px) {
    #toolbar-brand {
        margin-left: 8px !important;
        gap: 6px !important;
    }
    
    #toolbar-logo {
        width: 20px !important;
        height: 20px !important;
    }
    
    #toolbar-brand-text {
        font-size: 12px !important;
        letter-spacing: 0.3px !important;
    }
}

@media (max-width: 480px) {
    #toolbar-brand-text {
        font-size: 11px !important;
        letter-spacing: 0.2px !important;
    }
}

#back-btn:hover { 
    background: rgba(59, 130, 246, 0.8) !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    border-radius: 50px !important;
}

#back-btn:active {
    transform: scale(0.98) !important;
}

/* Option to hide toolbar title - only show back button */
#toolbar.back-only #tool-title {
    display: none;
}

#toolbar.back-only {
    justify-content: flex-start;
}

#back-btn i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#back-btn:hover i {
    transform: translateX(-3px);
}

iframe { 
    flex-grow: 1; 
    width: 100%; 
    border: none; 
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
}

/* --- ENHANCED: STYLISH LOGIN MODAL WITH ANIMATIONS --- */
#auth-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(15px) saturate(120%);
    z-index: 99999;
    display: none; 
    justify-content: center; 
    align-items: flex-end;
    animation: fadeInOverlay 0.4s ease;
}

@media (min-width: 769px) {
    #auth-container {
        align-items: center;
    }
}

.auth-box {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.95)); 
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 40px 35px; 
    border-radius: 30px 30px 0 0;
    width: 100%; 
    max-width: 450px; 
    text-align: center; 
    position: relative;
    box-shadow: 
        0 -20px 60px rgba(0,0,0,0.6),
        0 -10px 30px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUpBottomEnhanced 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    animation: shimmer 2s infinite;
}

@media (min-width: 769px) {
    .auth-box {
        border-radius: 25px;
        animation: scaleInEnhanced 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 45px 40px;
    }
}

.auth-box h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.auth-box p {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.close-auth {
    position: absolute !important; 
    top: 20px !important; 
    right: 25px !important; 
    font-size: 28px !important; 
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease !important;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.close-auth:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.auth-input { 
    width: 100%; 
    padding: 16px 20px; 
    margin-top: 15px; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: rgba(255, 255, 255, 0.05); 
    color: white; 
    outline: none; 
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.auth-input:focus {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-input.error { 
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-container { 
    width: 100%;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.error-message { 
    color: #ef4444; 
    font-size: 13px; 
    margin-top: 8px; 
    margin-left: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '⚠';
    font-size: 14px;
}

/* Input error styling */
.auth-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Input container styling */
.input-container {
    width: 100%;
    margin-bottom: 10px;
}

.auth-btn { 
    width: 100%; 
    padding: 16px; 
    border-radius: 12px; 
    border: none; 
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8); 
    color: white; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
}

/* Enhanced Animations */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpBottomEnhanced {
    from {
        transform: translateY(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes scaleInEnhanced {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Link Styles */
.auth-box span[onclick] {
    color: #3b82f6 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

.auth-box span[onclick]:hover {
    color: #60a5fa !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

.auth-box p[onclick] {
    color: #3b82f6 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    animation: fadeInUp 0.6s ease 0.7s both;
}

.auth-box p[onclick]:hover {
    color: #60a5fa !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3) !important;
}

/* --- REST OF STYLES (Grid, Cards, Footer, etc.) --- */
#dashboard-container { width: 95%; max-width: 1800px; margin: 0 auto; padding-bottom: 100px; }
#menu-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 40px !important; padding: 10px 20px !important; }
.greeting-section { padding: 15px 20px 5px 20px; animation: fadeIn 1s ease; }
.greeting-title { font-size: 22px; font-weight: 800; background: linear-gradient(90deg, #60a5fa, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0; }
.greeting-sub { font-size: 12px; color: var(--text-sub); margin-top: 4px; font-weight: 500; }
.hero-banner { 
    margin: 20px; 
    background: linear-gradient(135deg, #2563eb, #7c3aed); 
    border-radius: 24px; 
    padding: 25px; 
    color: white; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.5); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    transition: transform 0.3s, opacity 0.3s ease-in-out; 
    opacity: 1;
}
.hero-banner:hover { transform: translateY(-2px); }
.hero-text h3 { margin: 0; font-size: 18px; font-weight: 700; transition: opacity 0.3s ease-in-out; }
.hero-text p { margin: 5px 0 0; font-size: 12px; opacity: 0.9; transition: opacity 0.3s ease-in-out; }
.hero-badge { background: #facc15; color: black; font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px; margin-right: 8px; vertical-align: middle; transition: background 0.3s ease-in-out; }
.hero-icon { font-size: 45px; color: rgba(255,255,255,0.25); transform: rotate(-10deg); transition: all 0.3s ease-in-out; }
.card { background: var(--bg-card); backdrop-filter: blur(15px); border: 1px solid var(--border); border-radius: 24px; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow-card); position: relative; cursor: pointer; height: 100%; transition: all 0.5s; opacity: 0; animation: fadeInUp 0.8s forwards; animation-delay: calc(var(--i) * 0.05s); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.card:hover { transform: translateY(-12px) scale(1.03); box-shadow: var(--shadow-hover); border-color: rgba(255, 255, 255, 0.4); z-index: 10; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; transition: 0.3s; }
.card:hover .icon-tile { transform: scale(1.1) rotate(5deg); }
.card.green .icon-tile { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.card.blue .icon-tile { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.card.orange .icon-tile { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.card.rose .icon-tile { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }
.card.purple .icon-tile { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.card.teal .icon-tile { background: rgba(20, 184, 166, 0.15); color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.3); }
.card.red .icon-tile { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.card.gold .icon-tile { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.card.cyan .icon-tile { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.card.indigo .icon-tile { background: rgba(99, 102, 241, 0.15); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.3); }
.card.navy .icon-tile { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.3); }
.card.admin .icon-tile { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.card-content span { display: block; font-weight: 700; font-size: 13px; color: var(--text-main); margin-bottom: 4px; }
.card-desc { font-size: 10px; color: var(--text-sub); font-weight: 500; opacity: 0.8; }
.category-header { width: 100%; grid-column: 1 / -1; margin-top: 30px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; opacity: 0; animation: fadeIn 1s ease forwards; }
.category-header h3 { margin: 0; font-size: 16px; color: var(--text-main); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.badge { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 800; padding: 3px 10px; border-radius: 50px; color: white; z-index: 5; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.badge-new { background: #ef4444; } .badge-fire { background: #facc15; color: black; } .badge-hot { background: #f97316; } .badge-free { background: #10b981; } .badge-login { background: #6366f1; } 
.login-btn-top { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border: none; padding: 8px 24px; border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 12px; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); transition: transform 0.2s; }
.login-btn-top:hover { transform: scale(1.05); }
.services-menu-wrapper { position: relative; width: 100%; max-width: 250px; margin: 0 auto 25px auto; z-index: 50; }
.services-trigger { width: 100%; padding: 12px 24px; background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border); color: var(--text-main); border-radius: 50px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-card); transition: all 0.3s; }
.services-trigger:hover { border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.3); }
.services-dropdown { position: absolute; top: 120%; left: 0; width: 100%; background: var(--bg-header); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3); max-height: 0; overflow: hidden; transition: 0.4s; opacity: 0; }
.services-dropdown.active { max-height: 400px; overflow-y: auto; opacity: 1; padding: 10px 0; }
.service-list-item { padding: 12px 24px; font-size: 13px; color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s; border-bottom: 1px solid var(--border); }
.service-list-item:hover { background: rgba(59, 130, 246, 0.1); color: #3b82f6; padding-left: 30px; }
footer { margin-top: 50px; padding: 30px; text-align: center; color: var(--text-sub); border-top: 1px solid var(--border); background: var(--bg-card); backdrop-filter: blur(10px); border-radius: 30px 30px 0 0; }
.contact-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-body); border: 1px solid var(--border); padding: 6px 18px; border-radius: 50px; margin: 5px; font-size: 11px; color: var(--text-main); font-weight: 600; transition: 0.3s; }
.contact-pill:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 997; display: flex; flex-direction: column-reverse; align-items: center; gap: 15px; }
.fab-main { width: 60px; height: 60px; background: linear-gradient(135deg, #10b981, #059669); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 26px; box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4); cursor: pointer; transition: transform 0.4s; }
.fab-main:hover { transform: scale(1.1); }
.fab-main.active { transform: rotate(45deg); background: #ef4444; }
.fab-options { display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: 0.3s; }
.fab-options.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.fab-item { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); cursor: pointer; text-decoration: none; transition: 0.3s; }
.fab-wa { background: #25D366; } .fab-call { background: #3b82f6; }
.hidden { display: none !important; }


/* --- MOBILE BOTTOM NAVIGATION (APP-LIKE) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: none; /* Hidden by default on desktop */
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    flex: 1;
    max-width: 80px;
}

.bottom-nav .nav-item i {
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav .nav-item.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav .nav-item:active {
    transform: scale(0.95);
}

/* Show bottom nav only on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex; /* Only show on mobile */
    }
    
    /* Add padding to body to prevent content from being hidden behind bottom nav */
    body {
        padding-bottom: 80px;
    }
    
    #dashboard-container {
        padding-bottom: 20px;
    }
}

/* Explicitly hide on desktop */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Ripple effect on tap */
.bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bottom-nav .nav-item:active::before {
    width: 100px;
    height: 100px;
}


/* --- RECENTLY USED SECTION --- */
.recently-used-section {
    margin: 20px;
    padding: 15px;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.recently-used-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.recently-used-section .section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recently-used-section .section-header h3 i {
    color: #3b82f6;
    font-size: 16px;
}

.clear-recent-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-recent-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.recently-used-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.recently-used-scroll::-webkit-scrollbar {
    height: 4px;
}

.recently-used-scroll::-webkit-scrollbar-track {
    background: var(--bg-body);
    border-radius: 10px;
}

.recently-used-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.recently-used-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-sub);
}

.recent-card {
    min-width: 110px;
    max-width: 110px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.recent-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.recent-card .icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-card:hover .icon-tile {
    transform: scale(1.1) rotate(5deg);
}

.recent-card-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #3b82f6;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}


/* --- NETWORK STATUS BAR --- */
.network-status-bar {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    z-index: 100000;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.network-status-bar.show {
    top: 0;
}

.network-status-bar.offline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.network-status-bar.online {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}


/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
}

.toast.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
}

.toast.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
}

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

.toast.hiding {
    animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideDown {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    #toast-container {
        bottom: 90px;
    }
}


/* --- SKELETON LOADING --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    width: 100%;
    height: 180px;
    border-radius: 24px;
    margin-bottom: 18px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    padding: 20px;
}


/* --- RESPONSIVE TABLE CARDS (MOBILE) --- */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: visible;
    }
    
    thead {
        display: none;
    }
    
    tbody {
        display: block;
    }
    
    tr {
        display: block;
        margin-bottom: 15px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid var(--border);
    }
    
    td:last-child {
        border-bottom: none;
    }
    
    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-sub);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    td:not([data-label])::before {
        content: '';
    }
}



    
    /* Adjust FAB position on mobile to avoid bottom nav */
    .fab-container {
        bottom: 90px;
        right: 20px;
    }

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px !important;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}


/* --- WORK VIEW LOADER --- */
#work-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    z-index: 10;
    gap: 20px;
}

#work-loader .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#work-loader::after {
    content: 'Loading...';
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#app-frame {
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease;
}


/* --- GLOBAL LOADING OVERLAY (for page navigation) --- */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    gap: 20px;
}

#global-loader .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#global-loader p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

/* CONSOLIDATED TOOL TITLE STYLING */
#tool-title {
    font-weight: 600;
    font-size: 16px;
    color: white !important;
    letter-spacing: -0.3px;
    text-align: center;
    flex: 1;
    display: block !important;
    transition: color 0.3s ease !important;
}

/* WHITE MODE - Dark text for light toolbar */
#toolbar.white-mode #tool-title {
    color: #1f2937 !important;
}

/* BLACK MODE - Light text for dark toolbar */
#toolbar.black-mode #tool-title {
    color: white !important;
}
/* HOME BUTTON SPECIFIC STYLING */
#back-btn:hover i {
    transform: scale(1.1) !important;
}

/* Override any previous arrow-left transforms */
#back-btn i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* --- MODAL OVERLAY STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.close-modal {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: bold;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* --- PROFILE MENU SPECIFIC STYLES --- */
.profile-option:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- FORM STYLES FOR MODALS --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-body);
    color: var(--text-main);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* --- RESPONSIVE MODAL --- */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
}
/* --- ENHANCED NOTIFICATION SYSTEM STYLES --- */

/* Notification Panel */
#notif-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 380px;
    max-width: 90vw;
    max-height: 600px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: notificationPanelSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notificationPanelSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Notification Header */
.notif-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
}

.notif-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-header h3 i {
    color: #3b82f6;
    font-size: 18px;
}

#notif-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #10b981;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notif-close {
    cursor: pointer;
    color: var(--text-sub);
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notif-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

/* Notification Filters */
.notif-filters {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--bg-body);
}

.notif-filter {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sub);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.notif-filter:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.notif-filter.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Notification List */
.notif-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: var(--bg-body);
}

.notif-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-sub);
}

/* Notification Items */
.notif-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: notificationItemFadeIn 0.5s ease-out;
}

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

.notif-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
}

.notif-item.unread:hover {
    background: rgba(59, 130, 246, 0.12);
}

.notif-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notif-icon i {
    font-size: 16px;
    color: #3b82f6;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.notif-message {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.4;
    margin-bottom: 8px;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-time {
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.8;
}

.notif-type-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-type-badge.type-transaction {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notif-type-badge.type-system {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notif-type-badge.type-alert {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notif-type-badge.type-service {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.notif-type-badge.type-promotion {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.notif-urgent {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: urgentPulse 1.5s infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.notif-action {
    margin-top: 8px;
}

.notif-action-btn {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.notif-unread-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: unreadDotPulse 2s infinite;
}

@keyframes unreadDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Empty State */
.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-sub);
}

.notif-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.notif-empty p {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.notif-empty small {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Loading State */
.notif-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-sub);
}

.notif-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Load More Button */
.notif-load-more {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-body);
}

.notif-load-more button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.notif-load-more button:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Notification Settings Modal */
#notif-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#notif-settings-modal > div {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.setting-item input[type="time"] {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-size: 14px;
    width: 120px;
}

.setting-item span {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.setting-item small {
    font-size: 12px;
    color: var(--text-sub);
    opacity: 0.8;
    line-height: 1.3;
    display: block;
}

.settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.save-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.cancel-btn {
    background: var(--bg-body);
    color: var(--text-sub);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* Toast Notifications */
.notification-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    max-width: 400px;
    width: 90%;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    cursor: pointer;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-toast.priority-urgent {
    animation: toastSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1), urgentShake 0.5s ease-in-out 0.5s;
}

@keyframes urgentShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Notification Badge */
#notif-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #notif-panel {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .notification-toast {
        top: 20px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
    
    .notif-filters {
        padding: 10px 12px;
    }
    
    .notif-filter {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .notif-item {
        padding: 14px 16px;
    }
    
    .notif-icon {
        width: 36px;
        height: 36px;
    }
    
    .notif-icon i {
        font-size: 14px;
    }
    
    .notif-title {
        font-size: 13px;
    }
    
    .notif-message {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #notif-settings-modal > div {
        padding: 20px;
        margin: 20px;
        width: auto;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .save-btn,
    .cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- TOAST NOTIFICATION SYSTEM --- */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #3b82f6;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    max-width: 400px;
    width: 90%;
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.toast-notification.show {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.toast-notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.toast-notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.toast-icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 18px;
    opacity: 0.9;
}

.toast-content {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.toast-message {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    margin-top: 2px;
    margin-left: 12px;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 2px;
    border-radius: 4px;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    .toast-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
    }
}

/* Dark theme adjustments for toast */
[data-theme="dark"] .toast-notification {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}