/* ==========================================================================
   ZenFocus Premium CSS Stylesheet
   Design Language: Dark Mode, Calming Focus Palette, Glassmorphism, SaaS Feel
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Theme Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Palette colors */
    --color-bg-deep: #05070f;
    --color-bg-base: #0a0d1d;
    --color-bg-glass: rgba(13, 20, 38, 0.45);
    --color-bg-glass-hover: rgba(20, 30, 58, 0.6);
    --color-bg-dropdown: rgba(9, 14, 28, 0.9);
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Brand Accents */
    --color-primary: #8b5cf6;       /* Violet/Purple */
    --color-primary-glow: rgba(139, 92, 246, 0.35);
    --color-secondary: #6366f1;     /* Indigo */
    --color-secondary-glow: rgba(99, 102, 241, 0.3);
    --color-accent: #06b6d4;        /* Cyan */
    --color-accent-glow: rgba(6, 182, 212, 0.4);
    
    /* Feedback States */
    --color-success: #10b981;       /* Emerald */
    --color-warning: #f59e0b;       /* Amber */
    --color-error: #ef4444;         /* Rose Red */
    
    /* Text Palette */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    /* Shadows & Effects */
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.25);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
    --shadow-glow-orange: 0 0 25px rgba(245, 158, 11, 0.25);
    --shadow-glow-red: 0 0 25px rgba(239, 68, 68, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --------------------------------------------------------------------------
   2. Reset & Core Page Layout
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   3. Canvas Background & Ambient Effects
   -------------------------------------------------------------------------- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.22;
    z-index: -1;
    pointer-events: none;
    animation: pulse-orb 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: 10%;
    left: 15%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
}

.orb-2 {
    bottom: 10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 80%);
    animation-delay: -5s;
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 80%);
    animation-delay: -10s;
}

@keyframes pulse-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, -40px) scale(1.15);
    }
}

/* --------------------------------------------------------------------------
   4. Glassmorphism Design System Utility
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--color-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    background: var(--color-bg-glass-hover);
}

.glass-dropdown {
    background: var(--color-bg-dropdown);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-premium), 0 20px 40px rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
    position: absolute;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.2s ease;
    z-index: 100;
}

/* --------------------------------------------------------------------------
   5. Sticky Navbar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 15, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 16px;
    height: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Cart Indicator with Dropdown */
.cart-indicator-wrapper {
    position: relative;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-hover);
}

.cart-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-primary);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--color-accent-glow);
}

.cart-dropdown {
    right: 0;
    width: 320px;
    padding: 20px;
    top: 50px;
}

.cart-indicator-wrapper:hover .cart-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.cart-items-count {
    font-size: 0.8rem;
    color: var(--color-accent);
}

.cart-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.cart-item-remove:hover {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: var(--color-accent);
    color: #000;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

/* Profile Dropdown Styling */
.profile-dropdown-wrapper {
    position: relative;
}

.avatar-trigger {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.avatar-trigger:hover, .avatar-trigger:focus-within {
    border-color: var(--color-primary);
}

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

.avatar-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-success);
    border: 2px solid var(--color-bg-deep);
}

.profile-dropdown {
    right: 0;
    width: 240px;
    padding: 16px 0;
    top: 50px;
}

/* Elegant dropdown visibility on hover of the parent wrapper */
.profile-dropdown-wrapper:hover .profile-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dropdown-header {
    padding: 4px 20px 12px;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.user-email {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 8px 0;
}

.dropdown-menu-links {
    list-style: none;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.dropdown-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.dropdown-link.text-danger {
    color: var(--color-error);
}

.dropdown-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
}

.badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* --------------------------------------------------------------------------
     Community Section tips
   -------------------------------------------------------------------------- */
   .community-hero{
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
   }
   .community-flex {
    display: flex;
    flex-direction: row;
    gap: 28px;
    width: 100%;
   }
   .tip-card{
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-premium, var(--shadow-glow-purple));
    border-color: rgba(139, 92, 246, 0.2);
   }
   .tip-card p{
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
   }
   .tip-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
   }
   .info-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-secondary-glow) 0%, transparent 70%);
    z-index: 1;

   }
   .info-head{
    margin-top: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.35;
    letter-spacing: -0.5px;
    color: white;
    margin-bottom: 16px;
   }

/* --------------------------------------------------------------------------
    Hero Section (Inspiration Quote & Graphic)
   -------------------------------------------------------------------------- */

   .hero-section {
    width: 100%;
    margin-bottom: 50px;
    margin-top: 20px;
    display: flex;
   }

   .hero-grid{
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    margin-bottom: 20px;
    gap: 32px;
   }
   /* Left: Quote Card */
   .quote-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-premium, var(--shadow-glow-purple));
    border-color: rgba(139, 92, 246, 0.2);
   }
   .quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
   }
   .quote-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-accent);
   }

   .quote-icon-bg {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.03);;
    position: absolute;
    top: 30px;
    right: 40px;
   }
   .motivational-quote{
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1.35;
    letter-spacing: -1px;
    color: white;
    margin-bottom: 16px;
    background: linear-gradient(135deg, white 40%, var(--color-primary) 120%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
   }
   .quote-author {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 32px;
   }

.qoute-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.quote-pulse-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pulse-ring{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-success);
    opacity: 0.4;
    animation: pulse-ring-animation 2s infinite ease-out;
}

@keyframes pulse-ring-animation {
    0% {
        transform: scale(0.4);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.quote-pulse-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.quote-cta-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.quote-cta-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}
.virtual-pet-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.virtual-pet {
    position: relative;
    cursor: pointer;
}

.virtual-pet-img {
    width: 380px;
    max-width: 100%;
    border-radius: 50%;
    animation: pet-float 3s ease-in-out infinite;
    transition: all 0.4s ease;

    filter:
        drop-shadow(0 0 10px rgba(0, 229, 255, 0.5))
        drop-shadow(0 0 25px rgba(123, 44, 255, 0.4));
}

/* Hover Effect */
.virtual-pet:hover .virtual-pet-img {
    transform: scale(1.08) rotate(-4deg);

    filter:
        drop-shadow(0 0 20px rgba(0, 229, 255, 0.8))
        drop-shadow(0 0 40px rgba(123, 44, 255, 0.8))
        drop-shadow(0 0 60px rgba(0, 229, 255, 0.5));
}
.virtual-pet:hover .virtual-pet-img {
    animation: happy-jump 0.6s ease infinite alternate;
}

@keyframes happy-jump {
    from {
        transform: translateY(0) scale(1.05);
    }
    to {
        transform: translateY(-12px) scale(1.1);
    }
}
/* Floating Animation */
@keyframes pet-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}
.pet-pulse-ring {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-success);
    opacity: 0.4;
    animation: pet-pulse-ring-animation 2s infinite ease-out;
}
.pet-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
}
@keyframes pet-pulse-ring-animation {
    0% {
        transform: scale(0.4);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
/* Right: Graphic Card */
.illustration-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 320px;
}
.illustration-backdrop {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-secondary-glow) 0%, transparent 70%);
    z-index: 1;
}
.floating-illustration {
    max-height: 200px;
    object-fit: contain;
    z-index: 2;
    animation: float-animation 6s ease-in-out infinite;
}

@keyframes float-animation {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}
.feature-pills {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 3;
}

.feature-pill {
    position: absolute;
    padding: 8px 14px;
    background: rgba(13, 20, 38, 0.7);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pill-timer {
    top: 15%;
    left: 10%;
    animation: float-item 4s ease-in-out infinite alternate;
}

.pill-ai {
    bottom: 20%;
    right: 8%;
    animation: float-item 5s ease-in-out infinite alternate -1s;
}

.pill-community {
    top: 60%;
    left: 12%;
    animation: float-item 6s ease-in-out infinite alternate -2s;
}
@keyframes float-item {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-8px);
    }
}
/* --------------------------------------------------------------------------
   9. Focus Session Timer & Study Rooms Container
   -------------------------------------------------------------------------- */
#focus{
    margin-top: 20px;
    width: 100%;
    padding: 0 12px;
}
   .focus-community-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* Pomodoro Timer widget */
.timer-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 430px;
    justify-content: space-between;
}

.timer-modes {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.03);
}

.timer-mode-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timer-mode-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow-purple);
}

.timer-display-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.timer-circle-svg {
    transform: rotate(-90deg);
}

.timer-circle-track {
    stroke: rgba(255, 255, 255, 0.03);
}

.timer-circle-progress {
    stroke: var(--color-primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s linear;
    filter: drop-shadow(0 0 6px var(--color-primary-glow));
}

.timer-digits-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-digits {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1px;
}

.timer-state-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.timer-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.timer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 8px;
    box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.btn-primary i {
    width: 16px;
    height: 16px;
}

.hidden {
    display: none !important;
}

.timer-audio-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timer-audio-control:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

/* Community / Study Rooms Styling */
.community-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 430px;
    justify-content: space-between;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: live-pulse-animation 1.5s infinite alternate ease-in-out;
}

@keyframes live-pulse-animation {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.live-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-success);
}

.community-link-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
}

.room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.room-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.room-details {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.small-icon {
    width: 12px;
    height: 12px;
}

.join-room-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.join-room-btn:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow-cyan);
}


/* Community / Study Rooms Styling */
.community-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 430px;
    justify-content: space-between;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: live-pulse-animation 1.5s infinite alternate ease-in-out;
}

@keyframes live-pulse-animation {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.live-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-success);
}

.community-link-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
}

.room-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.room-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}
.room-hidden-item{
    display: none;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
.room-hidden-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}
.room-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.room-details {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.small-icon {
    width: 12px;
    height: 12px;
}

.join-room-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.join-room-btn:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow-cyan);
}

/* Leaderboard Preview */
.leaderboard-preview {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.trophy-icon {
    width: 14px;
    height: 14px;
    color: var(--color-warning);
}

.leaderboard-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

.rank {
    font-size: 0.75rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-1 { background: rgba(245, 158, 11, 0.2); color: var(--color-warning); }
.rank-2 { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.rank-3 { background: rgba(180, 83, 9, 0.2); color: #d97706; }

.leaderboard-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.leaderboard-user .user-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.focus-time {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
}


/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer-wrapper {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    margin-top: 80px;
    background: rgba(5,7,15,0.4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-right p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 16px 0;
        gap: 16px;
    }
    
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .focus-community-container {
        grid-template-columns: 1fr;
    }
    
    .motivational-quote {
        font-size: 1.8rem;
    }
}

@media (max-width: 580px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quote-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =================================================================---------
   14. Enhanced Elements (Toasts, Modals, Notifications)
   ================================================================---------- */

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    pointer-events: none;
}
.toast-item {
    background: rgba(13, 20, 38, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium), 0 0 10px rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}
@keyframes toast-slide-in {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.toast-item.fade-out {
    animation: toast-fade-out 0.25s ease forwards;
}
@keyframes toast-fade-out {
    to {
        transform: translateY(-10px) scale(0.95);
        opacity: 0;
    }
}
.toast-item.success { border-left: 4px solid var(--color-success); }
.toast-item.warning { border-left: 4px solid var(--color-warning); }
.toast-item.error { border-left: 4px solid var(--color-error); }
.toast-item.info { border-left: 4px solid var(--color-accent); }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    width: 100%;
    transform-origin: left;
    animation: toast-timer 3s linear forwards;
}
.toast-item.success .toast-progress { background: var(--color-success); }
.toast-item.warning .toast-progress { background: var(--color-warning); }
.toast-item.error .toast-progress { background: var(--color-error); }
.toast-item.info .toast-progress { background: var(--color-accent); }

@keyframes toast-timer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(13, 20, 38, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-premium);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}
.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: #ffffff;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.form-group input, .form-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #ffffff;
    transition: all 0.2s ease;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}
.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.modal-save-btn {
    width: 100%;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-glow-purple);
    margin-top: 10px;
}
.modal-save-btn:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* Switch styling for Checkbox slider */
.switch-wrapper {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--color-border);
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.switch-wrapper input:checked + .switch-slider {
    background-color: var(--color-primary);
}
.switch-wrapper input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Notifications Dropdown Layout */
.notification-indicator-wrapper {
    position: relative;
}
.notification-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}
.notification-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-hover);
}
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--color-accent-glow);
}
.notification-dropdown {
    right: 0;
    width: 320px;
    padding: 20px;
    top: 50px;
    text-align: left;
}
.notification-indicator-wrapper:hover .notification-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.notification-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}
.mark-all-read {
    font-size: 0.75rem;
    color: var(--color-accent);
    cursor: pointer;
    font-weight: 500;
}
.mark-all-read:hover {
    text-decoration: underline;
}
.notification-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}
.notification-item {
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.notification-item.unread {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
}
.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.notification-text {
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
    color: var(--color-text-primary);
}
.notification-time {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    display: block;
}

/* Auth Modal Styles */
.auth-toggle {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
#auth-toggle-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
}
#auth-toggle-btn:hover {
    text-decoration: underline;
}

/* Checkout Form details */
.checkout-items {
    list-style: none;
    margin-bottom: 12px;
}
.checkout-item-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding: 4px 0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

