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

/* Auto-fit text for large numbers */
.auto-fit-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    word-break: break-word;
}

.auto-fit-number {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* Responsive font sizing for numbers */
.number-value {
    font-size: clamp(0.75rem, 4vw, 1.5rem);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.number-value-large {
    font-size: clamp(1rem, 5vw, 2rem);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.number-value-medium {
    font-size: clamp(0.875rem, 4.5vw, 1.25rem);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Grid items should shrink properly */
.grid-item {
    min-width: 0;
    overflow: hidden;
}

html {
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 25%, #fce7f3 50%, #fef3c7 75%, #dbeafe 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: 
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 100%),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 100%),
        radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.4) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 100%),
        radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.1) 50%, transparent 100%),
        linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 25%, #fce7f3 50%, #fef3c7 75%, #dbeafe 100%);
    background-size: 400% 400%, 400% 400%, 400% 400%, 400% 400%, 100% 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    height: 100%;
    padding: 20px;
    padding-bottom: 40px;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 80%),
        radial-gradient(circle at 25% 75%, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 40%, transparent 70%),
        linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 12s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%),
        radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotateGlow 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%, 100% 50%, 0% 100%, 100% 0%, center;
    }
    50% { 
        background-position: 100% 50%, 0% 50%, 100% 0%, 0% 100%, center;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 1.05;
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    33% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
    66% {
        transform: translateY(10px) translateX(-10px);
        opacity: 0.9;
    }
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

header {
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 28px;
    padding: 28px 40px;
    margin-top: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #6366f1,
        #8b5cf6,
        #ec4899,
        #8b5cf6,
        #6366f1,
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0.6;
}

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

header:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 
        0 28px 80px rgba(0, 0, 0, 0.4),
        0 12px 32px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 16px;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    object-fit: contain;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.header-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 32px rgba(99, 102, 241, 0.5),
        0 6px 16px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(99, 102, 241, 0.6);
}

.header-logo:hover::before {
    left: 150%;
}

header h1 {
    font-size: 1.875rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #fce7f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
}

.header-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.header-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10001;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-label {
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.95rem;
}

.user-menu-wrapper {
    position: relative;
    z-index: 10001;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.user-avatar:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.user-menu-arrow {
    font-size: 0.7rem;
    color: #64748b;
    transition: transform 0.2s;
}

.user-menu-wrapper.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 220px;
    max-width: 280px;
    padding: 8px;
    display: none;
    z-index: 10002;
    animation: slideDown 0.2s ease-out;
    overflow: visible;
    max-height: none;
}

.user-menu-wrapper.active .user-menu {
    display: block;
}

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

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #1e293b;
}

.user-menu-item:hover {
    background: #f8fafc;
    color: #0ea5e9;
}

.user-menu-item-danger {
    color: #dc3545 !important;
}

.user-menu-item-danger:hover {
    background: #fff5f5 !important;
    color: #c82333 !important;
}

.menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: inherit;
}

.user-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

/* More Menu Styles */
.more-menu-wrapper {
    position: relative;
    z-index: 1000;
}

.more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px;
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
    overflow: visible;
    display: none;
}

.more-menu-arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.2s;
}

.more-menu-wrapper.active .more-menu-arrow {
    transform: rotate(180deg);
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #1e293b;
}

.more-menu-item:hover {
    background: #f8fafc;
    color: #0ea5e9;
}

.more-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: inherit;
}

/* Dark Mode More Menu */
body.dark-mode .more-menu {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .more-menu-item {
    color: #e2e8f0;
}

body.dark-mode .more-menu-item:hover {
    background: #374151;
    color: #0ea5e9;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-item label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.setting-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.setting-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.btn-logout {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-icon {
    font-size: 1rem;
}

.logout-text {
    display: inline-block;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
}

.btn-icon:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.theme-toggle {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.widgets-section {
    margin: 24px 0;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.smart-insights-section {
    margin: 24px 0;
    padding: 20px;
    background: transparent;
    border-radius: 14px;
    display: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    color: #1e293b;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: cardPulse 4s ease-in-out infinite;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        #6366f1,
        #8b5cf6,
        #ec4899,
        #8b5cf6,
        #6366f1,
        transparent
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shimmer 3s linear infinite;
}

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

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 0 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.35);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    opacity: 0.5;
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    min-height: 48px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 8px 20px rgba(99, 102, 241, 0.3),
        0 4px 10px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.stat-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 28px rgba(99, 102, 241, 0.4),
        0 6px 14px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(99, 102, 241, 0.5);
}

.stat-icon-wrapper:hover::before {
    left: 150%;
    opacity: 1;
}

.stat-icon {
    font-size: 1.25rem;
    color: white;
}

.stat-icon-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.stat-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon-secondary {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.stat-card h3 {
    color: rgba(241, 245, 249, 0.95);
    font-size: 0.75rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    flex-shrink: 1;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-card-primary::before {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

.stat-card-success::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
}

.stat-card-secondary::before {
    background: linear-gradient(90deg, #ec4899 0%, #f59e0b 100%);
}

/* Top gradient for winstreak card - override default .stat-card::before */
.stat-card-winstreak::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #ea580c 100%);
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    width: auto;
    transform: none;
    animation: shimmer 3s linear infinite;
    border-radius: 0;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    transition: font-size 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Responsive font sizes for large numbers */
.stat-value-large {
    font-size: 2.25rem;
}

.stat-value-medium {
    font-size: 1.75rem;
}

.stat-value-small {
    font-size: 1.4rem;
}

.stat-value.positive {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

.stat-value.negative {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}

.actions-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    letter-spacing: 0.1px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    border-color: transparent;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.3px;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    background-size: 200% 200%;
    box-shadow: 
        0 12px 32px rgba(99, 102, 241, 0.5),
        0 6px 16px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-4px) scale(1.05);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.calendar-section, .bets-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-section::before, .bets-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #6366f1,
        #8b5cf6,
        #ec4899,
        #8b5cf6,
        #6366f1,
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0.6;
}

.calendar-section:hover, .bets-section:hover {
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 0 40px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.45);
}

.calendar-section h2, .bets-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e293b;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
    position: relative;
}

.calendar-section h2 i, .bets-section h2 i {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 6px 20px rgba(99, 102, 241, 0.6));
    }
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav button {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#currentMonth {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    padding: 14px 10px;
    text-align: center;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: #f1f5f9;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    box-shadow: none;
    border: none;
}

.calendar-day:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 6px 16px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-6px) scale(1.08);
}

.calendar-day:hover:not(.empty)::before {
    opacity: 1;
}

.calendar-day.profit {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #6ee7b7;
}

.calendar-day.loss {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.calendar-day.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.day-number {
    font-weight: 900;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.day-profit {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.day-profit.positive {
    color: #059669;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.day-profit.negative {
    color: #dc2626;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.day-profit.zero {
    color: #64748b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #1e293b;
    font-weight: 600;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.filter-group select::placeholder,
.filter-group input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.filters-container {
    margin-bottom: 18px;
}

.advanced-filters {
    margin-top: 12px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: rgba(241, 245, 249, 0.9);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-filter-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.3),
        0 4px 12px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.2);
}

.quick-filter-btn:hover::before {
    opacity: 1;
}

#toggleAdvancedFiltersBtn.active,
.quick-filter-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    border-color: transparent;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(99, 102, 241, 0.3);
    animation: gradientMove 3s ease infinite;
}

/* Fire effect at the bottom of winstreak card */
.stat-card-winstreak::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: 
        radial-gradient(ellipse 80% 40px at 50% 100%, 
            rgba(251, 191, 36, 0.7) 0%,
            rgba(245, 158, 11, 0.5) 30%,
            rgba(217, 119, 6, 0.35) 60%,
            rgba(234, 88, 12, 0.2) 80%,
            transparent 100%
        ),
        radial-gradient(ellipse at 50% 100%, 
            rgba(245, 158, 11, 0.5) 0%,
            rgba(217, 119, 6, 0.4) 25%,
            rgba(251, 191, 36, 0.3) 50%,
            rgba(234, 88, 12, 0.2) 75%,
            transparent 100%
        );
    pointer-events: none;
    z-index: 2;
    animation: fireGlow 2s ease-in-out infinite alternate, fireFlicker 1.5s ease-in-out infinite;
    border-radius: 0 0 28px 28px;
}

/* Additional fire flicker layer - merged into ::after */

@keyframes fireGlow {
    0% {
        opacity: 0.7;
        transform: scaleY(1) scaleX(1);
        filter: blur(8px);
    }
    50% {
        opacity: 0.9;
        transform: scaleY(1.15) scaleX(1.05);
        filter: blur(10px);
    }
    100% {
        opacity: 0.8;
        transform: scaleY(1.2) scaleX(0.95);
        filter: blur(9px);
    }
}

@keyframes fireFlicker {
    0%, 100% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
    }
    25% {
        transform: translateX(-2%) scaleX(1.08);
        opacity: 1.1;
    }
    50% {
        transform: translateX(2%) scaleX(0.92);
        opacity: 0.95;
    }
    75% {
        transform: translateX(0) scaleX(1.03);
        opacity: 1.05;
    }
}

.stat-icon-winstreak {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 
        0 8px 20px rgba(245, 158, 11, 0.4),
        0 4px 10px rgba(217, 119, 6, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-icon-winstreak:hover {
    box-shadow: 
        0 12px 28px rgba(245, 158, 11, 0.5),
        0 6px 14px rgba(217, 119, 6, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 20px rgba(245, 158, 11, 0.6);
}

.bet-notes {
    font-style: italic;
    line-height: 1.4;
}

.bets-list {
    display: grid;
    gap: 12px;
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: #f1f5f9;
}

.bet-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s;
}

.bet-item:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px) translateX(4px);
}

.bet-item:hover::before {
    opacity: 1;
}

.bet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bet-item.win {
    border-left: 3px solid #28a745;
}

.bet-item.loss {
    border-left: 3px solid #dc3545;
}

.bet-item.pending {
    border-left: 3px solid #ffc107;
}

.bet-item.returned {
    border-left: 3px solid #0dcaf0;
}

.bet-info {
    flex: 1;
}

.bet-item:hover .bet-info {
    opacity: 0.9;
}

.bet-date {
    font-size: 0.875rem;
    color: rgba(241, 245, 249, 0.7);
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.bet-details {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(241, 245, 249, 0.9);
}

.bet-amount {
    font-weight: 700;
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bet-result {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bet-result.win {
    background: #d4edda;
    color: #155724;
}

.bet-result.loss {
    background: #f8d7da;
    color: #721c24;
}

.bet-result.pending {
    background: #fff3cd;
    color: #856404;
}

.bet-result.returned {
    background: #d1ecf1;
    color: #0c5460;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    padding: 40px;
    border-radius: 32px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 16px 40px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 60px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideUpModal 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #6366f1,
        #8b5cf6,
        #ec4899,
        #8b5cf6,
        #6366f1,
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

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

/* Auth Screen - Clean Modern Design */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.auth-card-container {
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-card-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: block;
    object-fit: contain;
}

.auth-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.auth-card-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modern-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.input-icon-right {
    position: absolute;
    right: 16px;
    color: #10b981;
    font-size: 1.25rem;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.input-with-icon:focus-within .input-icon-left {
    color: #0ea5e9;
}

.modern-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modern-input::placeholder {
    color: rgba(241, 245, 249, 0.5);
}

.modern-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #0f172a;
}

.modern-input::placeholder {
    color: #cbd5e0;
}

.password-requirements-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: -8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.requirement-item.valid {
    color: #10b981;
}

.requirement-icon {
    font-size: 0.5rem;
}

.requirement-item.valid .requirement-icon {
    color: #10b981;
}

.strength-meter-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -8px;
}

.strength-bar-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    background: #e2e8f0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-bar-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-bar-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-bar-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-bar-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.form-options-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -8px 0;
}

.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}

.checkbox-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link-text {
    font-size: 0.875rem;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link-text:hover {
    color: #0284c7;
    text-decoration: underline;
}

.btn-modern {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-modern-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

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

.auth-card-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.auth-card-footer p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.link-button {
    background: none;
    border: none;
    color: #0ea5e9;
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}

.link-button:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Language Switcher */
/* Settings Menu */
.settings-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.settings-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.settings-menu-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.settings-menu-btn i {
    font-size: 1rem;
}

.settings-label {
    font-size: 0.875rem;
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    max-width: 300px;
    padding: 12px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.settings-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.settings-section-title i {
    font-size: 0.875rem;
    color: #0ea5e9;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    font-family: 'Inter', sans-serif;
    text-align: left;
    width: 100%;
    position: relative;
}

.settings-option:hover {
    background: #f1f5f9;
}

.settings-option.active {
    background: #eff6ff;
    color: #0ea5e9;
}

.settings-option.active .check-icon {
    display: block !important;
    color: #0ea5e9;
    margin-left: auto;
}

.flag-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.currency-symbol {
    font-size: 1rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.check-icon {
    font-size: 0.875rem;
    margin-left: auto;
}

/* Legacy support */
.language-switcher,
.currency-switcher {
    display: none;
}

.currency-btn,
.lang-btn {
    display: none;
}

.flag-icon {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Register Button at Bottom */
.btn-register {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    background: transparent;
    color: #0ea5e9;
}

.btn-register:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-register i {
    font-size: 1.1rem;
}

/* Password Toggle */
.password-toggle {
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: #0ea5e9 !important;
}

/* Dark Mode Settings Menu */
body.dark-mode .settings-menu-btn {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .settings-menu-btn:hover {
    background: rgba(51, 65, 85, 0.95);
}

body.dark-mode .settings-dropdown {
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .settings-section-title {
    color: #94a3b8;
}

body.dark-mode .settings-option {
    color: #e2e8f0;
}

body.dark-mode .settings-option:hover {
    background: #374151;
}

body.dark-mode .settings-option.active {
    background: #1e293b;
    color: #0ea5e9;
}

body.dark-mode .lang-btn:hover {
    background: #374151;
}

body.dark-mode .lang-btn.active {
    border-color: #0ea5e9;
    background: #1e293b;
}

body.dark-mode .btn-register {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

body.dark-mode .btn-register:hover {
    background: #0ea5e9;
    color: white;
}

/* Dark Mode Auth Styles */
body.dark-mode .auth-card {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .auth-card-title {
    color: #f8fafc;
}

body.dark-mode .auth-card-subtitle {
    color: #94a3b8;
}

body.dark-mode .modern-label {
    color: #cbd5e0;
}

body.dark-mode .modern-input {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .modern-input:focus {
    border-color: #0ea5e9;
    background: #1e293b;
}

body.dark-mode .password-requirements-compact {
    background: #1e293b;
}

body.dark-mode .strength-bar-track {
    background: #334155;
}

body.dark-mode .link-text {
    color: #38bdf8;
}

body.dark-mode .link-text:hover {
    color: #7dd3fc;
}

body.dark-mode .auth-card-footer {
    border-color: #334155;
}

body.dark-mode .auth-card-footer p {
    color: #94a3b8;
}

body.dark-mode .link-button {
    color: #38bdf8;
}

body.dark-mode .link-button:hover {
    color: #7dd3fc;
}

body.dark-mode .strength-text {
    color: #94a3b8;
}

/* Responsive Auth Styles */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-card-title {
        font-size: 1.75rem;
    }
    
    .auth-card-logo {
        width: 70px;
        height: 70px;
    }
    
    .password-requirements-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-modern {
        padding: 12px 20px;
    }
    
    .stats-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .input-wrapper {
        padding: 16px 20px;
    }
    
    .switch-prompt {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Legacy styles for compatibility - cleaned up */

/* Legacy login styles (for modals) */
.login-container {
    position: relative;
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.login-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    position: relative;
    z-index: 2;
    object-fit: contain;
    padding: 16px;
}

.login-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-note {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 8px;
}

.form-label-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.auth-submit {
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-submit::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-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.auth-switch {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #e5e7eb;
    position: relative;
}

.auth-switch::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 1px;
}

.auth-switch p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.auth-switch a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    transition: width 0.3s ease;
}

.auth-switch a:hover {
    color: #0284c7;
}

.auth-switch a:hover::after {
    width: 100%;
}

.auth-link {
    color: #0ea5e9;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Dark Mode Auth Screen */
body.dark-mode .auth-screen {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

body.dark-mode .auth-container {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .auth-title {
    color: #f7fafc;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .auth-subtitle {
    color: #94a3b8;
}

body.dark-mode .auth-tabs {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .auth-tab {
    color: #94a3b8;
}

body.dark-mode .auth-tab:hover {
    color: #f7fafc;
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .auth-tab.active {
    background: #334155;
    color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2), 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

body.dark-mode .auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 2px;
}

body.dark-mode .auth-form-title {
    color: #f7fafc;
}

body.dark-mode .auth-form-subtitle {
    color: #94a3b8;
}

body.dark-mode .auth-form .form-label {
    color: #cbd5e0;
}

body.dark-mode .auth-form input[type="text"],
body.dark-mode .auth-form input[type="password"],
body.dark-mode .auth-form input[type="email"] {
    background: #1e293b;
    border-color: #334155;
    color: #f7fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.dark-mode .auth-form input[type="text"]:focus,
body.dark-mode .auth-form input[type="password"]:focus,
body.dark-mode .auth-form input[type="email"]:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.25), 0 4px 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

body.dark-mode .auth-switch {
    border-top-color: #334155;
}

body.dark-mode .auth-switch::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 1px;
}

body.dark-mode .auth-switch p {
    color: #94a3b8;
}

/* Password Requirements & Strength Indicator */
.password-requirements {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px 0;
}

.password-requirement i {
    width: 16px;
    text-align: center;
    transition: all 0.3s;
}

.password-requirement.valid {
    color: #10b981;
    transform: translateX(2px);
}

.password-requirement.valid i {
    color: #10b981;
}

.password-requirement.invalid {
    color: #ef4444;
}

.password-requirement.invalid i {
    color: #ef4444;
}

.password-requirement.pending {
    color: #64748b;
}

.password-requirement.pending i {
    color: #94a3b8;
}

.password-strength {
    margin-top: 12px;
}

.password-strength-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e5e7eb 100%);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px currentColor;
}

.password-strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.password-strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.password-strength-fill.good {
    width: 75%;
    background: #0ea5e9;
}

.password-strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 12px #10b981;
}

.password-strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    display: block;
    text-align: center;
}

.password-strength-fill.weak ~ .password-strength-text {
    color: #ef4444;
}

.password-strength-fill.fair ~ .password-strength-text {
    color: #f59e0b;
}

.password-strength-fill.good ~ .password-strength-text {
    color: #0ea5e9;
}

.password-strength-fill.strong ~ .password-strength-text {
    color: #10b981;
}

.password-match-indicator {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
    padding: 10px 14px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    border: 1px solid #10b981;
    animation: slideInFromRight 0.3s ease-out;
}

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

.password-match-indicator i {
    color: #10b981;
}

.password-match-indicator.mismatch {
    color: #ef4444;
}

.password-match-indicator.mismatch i {
    color: #ef4444;
}

/* Dark Mode Password Requirements */
body.dark-mode .password-strength-bar {
    background: linear-gradient(135deg, #2d3748 0%, #334155 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .password-requirement.pending {
    color: #94a3b8;
}

body.dark-mode .password-requirements {
    background: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
    border-color: #334155;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .password-match-indicator {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
    border-color: #10b981;
}

body.dark-mode .password-strength-text {
    color: #94a3b8;
}

/* Legacy login styles (for modals) */
.login-container {
    position: relative;
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.login-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    position: relative;
    z-index: 2;
    object-fit: contain;
    padding: 16px;
}

.login-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-label-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 1;
}

.form-group input {
    padding-left: 50px !important;
}

.login-submit {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.login-submit:hover .btn-arrow {
    transform: translateX(4px);
}

.login-note {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 8px 0 0 0;
}

.login-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #0ea5e9;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0284c7;
}

.divider {
    color: #cbd5e0;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close:hover {
    color: #475569;
    background: #f1f5f9;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Modal form-group styles - white text for readability */
.modal-content .form-group label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.modal-content .form-group input,
.modal-content .form-group select {
    padding: 10px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Light mode styles for modal inputs and selects - make text readable */
body:not(.dark-mode) .modal-content .form-group input,
body:not(.dark-mode) .modal-content .form-group select,
body:not(.dark-mode) .modal-content .form-group textarea {
    color: #1e293b !important; /* Dark text for readability in light mode */
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(30, 41, 59, 0.3) !important;
}

body:not(.dark-mode) .modal-content .form-group input:focus,
body:not(.dark-mode) .modal-content .form-group select:focus,
body:not(.dark-mode) .modal-content .form-group textarea:focus {
    color: #0f172a !important; /* Even darker on focus */
    background: rgba(255, 255, 255, 1) !important;
    border-color: #6366f1 !important;
}

body:not(.dark-mode) .modal-content .form-group select option {
    color: #1e293b !important; /* Dark text for dropdown options in light mode */
    background: #ffffff !important;
}

body:not(.dark-mode) .modal-content input::placeholder,
body:not(.dark-mode) .modal-content textarea::placeholder,
body:not(.dark-mode) .modal-content select option:disabled {
    color: rgba(30, 41, 59, 0.6) !important; /* Darker placeholder for light mode */
}

.modal-content .form-group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.modal-content .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.modal-content .form-group input::placeholder,
.modal-content .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* General form-group styles (outside modals) */
.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
    background: white;
}

.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: monospace;
    resize: vertical;
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: #94a3b8;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 4px;
    }
    
    header {
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .header-brand {
        gap: 12px;
    }
    
    .header-logo {
        width: 48px;
        height: 48px;
        padding: 6px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .header-tagline {
        font-size: 0.75rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-user-info {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .user-avatar {
        padding: 6px 12px;
    }
    
    .user-avatar-initial {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .btn-logout {
        padding: 8px 12px;
    }
    
    .logout-text {
        display: none;
    }
    
    .user-label {
        font-size: 0.85rem;
    }
    
    .login-logo {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
    
    .login-logo-glow {
        width: 100px;
        height: 100px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
        min-width: 0;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card-header {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .stat-icon {
        font-size: 1.25rem;
    }
    
    .stat-card h3 {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .actions-bar {
        gap: 8px;
        margin-bottom: 16px;
        display: grid;
        grid-template-columns: 1fr 1fr auto;
    }
    
    .btn {
        padding: 12px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    }
    
    .calendar-section, .bets-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .calendar-section h2, .bets-section h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .calendar-nav {
        margin-bottom: 12px;
    }
    
    .calendar-nav button {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 20px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .filters-bar {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        font-size: 16px;
    }
    
    #currentMonth {
        font-size: 0.9rem;
    }
    
    .calendar {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        font-size: 0.75rem;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 6px;
    }
    
    .bet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    
    .bet-details {
        flex-direction: column;
        gap: 6px;
        font-size: 0.875rem;
    }
    
    .bet-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .bet-actions button {
        font-size: 0.75rem;
        padding: 10px 6px;
        white-space: nowrap;
        touch-action: manipulation;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }
    
    .modal-content {
        width: 90%;
        max-width: none;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .form-group select {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }
    
    .close {
        font-size: 28px;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
        padding: 4px;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    .header-tagline {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-icon {
        font-size: 1rem;
    }
    
    .actions-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .actions-bar .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .calendar-day {
        padding: 6px 2px;
        font-size: 0.7rem;
        min-height: 45px;
    }
    
    .day-number {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }
    
    .day-profit {
        font-size: 0.6rem;
    }
    
    .calendar-header-day {
        padding: 8px 4px;
        font-size: 0.75em;
    }
    
    .bet-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bet-actions button {
        padding: 10px 6px;
        font-size: 0.7rem;
    }
    
    .stat-card h3 {
        font-size: 0.65rem;
    }
}

/* Dark Mode Styles */
html.dark-mode,
html.dark-mode {
    background: linear-gradient(135deg, #020617 0%, #0f172a 25%, #1e1b4b 50%, #0f172a 75%, #020617 100%);
    background-attachment: fixed;
}

body.dark-mode {
    background: 
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%),
        radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 100%),
        radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 100%),
        linear-gradient(135deg, #020617 0%, #0f172a 25%, #1e1b4b 50%, #0f172a 75%, #020617 100%);
    background-size: 400% 400%, 400% 400%, 400% 400%, 400% 400%, 100% 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    animation: gradientShift 20s ease infinite;
    color: #f1f5f9;
    height: 100%;
    min-height: 100vh;
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .header-logo {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

body.dark-mode header h1 {
    color: white;
}

body.dark-mode .header-tagline {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .stat-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

body.dark-mode .stat-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 12px 32px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 0 50px rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

body.dark-mode .stat-card h3 {
    color: #cbd5e0;
}

body.dark-mode .stat-value {
    color: #f7fafc;
}

body.dark-mode .stat-value.stat-value-large {
    font-size: 2rem;
}

body.dark-mode .stat-value.stat-value-medium {
    font-size: 1.6rem;
}

body.dark-mode .stat-value.stat-value-small {
    font-size: 1.3rem;
}

body.dark-mode .btn-secondary {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .btn-secondary:hover {
    background: #374151;
    border-color: #718096;
}

body.dark-mode .calendar-section,
body.dark-mode .bets-section {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

body.dark-mode .calendar-section h2,
body.dark-mode .bets-section h2 {
    color: #f7fafc;
}

body.dark-mode .calendar-nav button {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .calendar-nav button:hover {
    background: #374151;
    border-color: #718096;
}

body.dark-mode #currentMonth {
    color: #f7fafc;
}

body.dark-mode .calendar-day {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .calendar-day:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 6px 16px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-6px) scale(1.08);
}

body.dark-mode .calendar-day.empty {
    background: transparent;
}

body.dark-mode .bet-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

body.dark-mode .bet-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px) translateX(4px);
}

body.dark-mode .bet-date {
    color: rgba(241, 245, 249, 0.7);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bet-details {
    color: rgba(241, 245, 249, 0.9);
}

body.dark-mode .bet-amount {
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filters-bar {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

body.dark-mode .filter-group label {
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .filter-group select,
body.dark-mode .filter-group input {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .filter-group select:focus,
body.dark-mode .filter-group input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .modal-content {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #374151;
    border-color: #4a5568;
    color: #f7fafc;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .form-group label {
    color: #cbd5e0;
}

body.dark-mode .close {
    color: #a0aec0;
}

body.dark-mode .close:hover {
    color: #e2e8f0;
    background: #374151;
}

body.dark-mode .user-avatar {
    background: linear-gradient(135deg, #2d3748 0%, #374151 100%);
    border-color: #4a5568;
}

body.dark-mode .user-name {
    color: #e2e8f0;
}

body.dark-mode .user-avatar-initial {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

body.dark-mode .user-menu {
    background: #2d3748;
    border-color: #4a5568;
    backdrop-filter: blur(10px);
}

body.dark-mode .user-menu-item {
    color: #e2e8f0;
}

body.dark-mode .user-menu-item:hover {
    background: #374151;
    color: #0ea5e9;
}

body.dark-mode .user-menu-item-danger {
    color: #ef4444 !important;
}

body.dark-mode .user-menu-item-danger:hover {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
}

body.dark-mode .user-menu-divider {
    background: #4a5568;
}

body.dark-mode .profile-info {
    color: #e2e8f0;
}

body.dark-mode .profile-item label {
    color: #94a3b8;
}

body.dark-mode .profile-value {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .settings-list {
    color: #e2e8f0;
}

body.dark-mode .setting-item {
    background: #374151;
    border-color: #4a5568;
}

body.dark-mode .setting-item:hover {
    background: #4a5568;
    border-color: #718096;
}

body.dark-mode .setting-label {
    color: #e2e8f0;
}

body.dark-mode .setting-desc {
    color: #a0aec0;
}

body.dark-mode .setting-info {
    color: #cbd5e0;
}

body.dark-mode .btn-icon {
    background: #374151;
    border-color: #4a5568;
}

body.dark-mode .btn-icon:hover {
    background: #4a5568;
    border-color: #718096;
}

body.dark-mode .login-logo {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

body.dark-mode .login-logo-glow {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
}

body.dark-mode .login-title {
    color: #f7fafc;
}

body.dark-mode .login-subtitle {
    color: #cbd5e0;
}

body.dark-mode .login-note {
    color: #94a3b8;
}

body.dark-mode .login-options {
    color: #cbd5e0;
}

body.dark-mode .btn-link {
    color: #0ea5e9;
}

body.dark-mode .btn-link:hover {
    color: #38bdf8;
}

body.dark-mode .divider {
    color: #64748b;
}

body.dark-mode .bet-item.win {
    border-left: 3px solid #28a745;
}

body.dark-mode .bet-item.loss {
    border-left: 3px solid #dc3545;
}

body.dark-mode .bet-item.pending {
    border-left: 3px solid #ffc107;
}

body.dark-mode .bet-item.returned {
    border-left: 3px solid #0dcaf0;
}

body.dark-mode .calendar-day.profit {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

body.dark-mode .calendar-day.loss {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

body.dark-mode .calendar-day.pending {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

.widget-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    color: #1e293b;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        #6366f1,
        #8b5cf6,
        #ec4899,
        #8b5cf6,
        #6366f1,
        transparent
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shimmer 3s linear infinite;
}

.widget-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.widget-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 0 40px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.35);
}

.widget-card:hover::before {
    opacity: 1;
}

.widget-card:hover::after {
    opacity: 0.4;
}

body.dark-mode .widget-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
}

body.dark-mode .widget-card:hover {
    border-color: rgba(113, 128, 150, 0.8);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3);
    background: rgba(55, 65, 81, 0.9);
}

body.dark-mode .widget-card h3 {
    color: #f7fafc;
}

body.dark-mode .widget-card p {
    color: #cbd5e0;
}

body.dark-mode .widgets-section {
    color: #e2e8f0;
}

/* Bookmakers Balance Section */
.bookmakers-balance-section {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bookmakers-balance-section h3 {
    margin-bottom: 16px;
    color: #1e293b;
}

.bookmakers-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.bookmaker-card {
    transition: all 0.2s ease;
}

.bookmaker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.dark-mode .bookmakers-balance-section {
    background: rgba(31, 41, 55, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .bookmakers-balance-section h3 {
    color: #e5e7eb;
}

@media (max-width: 768px) {
    .bookmakers-balance-grid {
        grid-template-columns: 1fr;
    }
}

body.dark-mode .widgets-grid {
    color: #e2e8f0;
}

body.dark-mode .actions-bar {
    color: #e2e8f0;
}

body.dark-mode .actions-bar .btn {
    color: inherit;
}

body.dark-mode .actions-bar .btn span {
    color: inherit;
}

body.dark-mode .smart-insights-container {
    color: #e2e8f0;
}

body.dark-mode .smart-insights-container h2 {
    color: #f7fafc;
}

body.dark-mode .stat-value.positive {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}

body.dark-mode .stat-value.negative {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
}

body.dark-mode .day-number {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .day-profit {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.dark-mode .day-profit.positive {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(16, 185, 129, 0.8), 0 1px 4px rgba(16, 185, 129, 0.6);
}

body.dark-mode .day-profit.negative {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(239, 68, 68, 0.8), 0 1px 4px rgba(239, 68, 68, 0.6);
}

body.dark-mode .day-profit.zero {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.dark-mode .bet-result {
    color: #e2e8f0;
}

body.dark-mode .bet-result.win {
    color: #10b981;
}

body.dark-mode .bet-result.loss {
    color: #ef4444;
}

body.dark-mode .bet-result.pending {
    color: #f59e0b;
}

body.dark-mode .bet-result.returned {
    color: #0ea5e9;
}

body.dark-mode .bet-category {
    color: #cbd5e0;
}

body.dark-mode .bet-odds {
    color: #cbd5e0;
}

body.dark-mode .bet-stake {
    color: #e2e8f0;
}

body.dark-mode .bet-profit {
    color: #e2e8f0;
}

body.dark-mode .bet-profit.positive {
    color: #10b981;
}

body.dark-mode .bet-profit.negative {
    color: #ef4444;
}

body.dark-mode .bet-profit.zero {
    color: #94a3b8;
}

body.dark-mode .calendar-nav button {
    color: #e2e8f0;
}

body.dark-mode .calendar-nav button:disabled {
    color: #64748b;
    opacity: 0.5;
}

body.dark-mode .filter-group {
    color: #e2e8f0;
}

body.dark-mode .bet-checkbox {
    accent-color: #0ea5e9;
}

body.dark-mode .menu-icon {
    color: #e2e8f0;
}

body.dark-mode .theme-icon {
    color: #e2e8f0;
}

body.dark-mode .user-label {
    color: #cbd5e0;
}

body.dark-mode .stat-card-header {
    color: #e2e8f0;
}

body.dark-mode .stat-card-header h3 {
    color: #cbd5e0;
}

body.dark-mode .stat-icon-wrapper {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
}

body.dark-mode .stat-icon {
    color: white;
}

body.dark-mode .login-modal {
    background: rgba(45, 55, 72, 0.95);
}

body.dark-mode .login-modal .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .modal h2 {
    color: #f7fafc;
}

body.dark-mode .modal h3 {
    color: #f7fafc;
}

body.dark-mode .modal p {
    color: #cbd5e0;
}

body.dark-mode .modal label {
    color: #cbd5e0;
}

body.dark-mode .modal input[type="text"],
body.dark-mode .modal input[type="password"],
body.dark-mode .modal input[type="date"],
body.dark-mode .modal input[type="number"],
body.dark-mode .modal select,
body.dark-mode .modal textarea {
    background: #374151;
    border-color: #4a5568;
    color: #f7fafc;
}

body.dark-mode .modal input[type="text"]:focus,
body.dark-mode .modal input[type="password"]:focus,
body.dark-mode .modal input[type="date"]:focus,
body.dark-mode .modal input[type="number"]:focus,
body.dark-mode .modal select:focus,
body.dark-mode .modal textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .modal input::placeholder,
body.dark-mode .modal textarea::placeholder {
    color: #94a3b8;
}

body.dark-mode .btn-danger {
    background: #ef4444;
    color: white;
}

body.dark-mode .btn-danger:hover {
    background: #dc2626;
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: white;
}

body.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

body.dark-mode .calendar-day .day-number {
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .calendar-day .day-profit {
    color: rgba(241, 245, 249, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bet-item .bet-info {
    color: #e2e8f0;
}

body.dark-mode .bet-item .bet-actions {
    color: #e2e8f0;
}

body.dark-mode .bet-item .bet-actions button {
    color: #e2e8f0;
}

body.dark-mode .bet-result.win {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

body.dark-mode .bet-result.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

body.dark-mode .bet-result.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

body.dark-mode .bet-result.returned {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

body.dark-mode .bulk-operations-toolbar {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .bulk-operations-toolbar .bulk-info {
    color: #cbd5e0;
}

body.dark-mode .bulk-operations-toolbar .bulk-actions {
    color: #e2e8f0;
}

/* Dark mode overrides for bulk buttons - gradients work in dark mode too */
body.dark-mode .bulk-btn {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .bulk-btn:hover {
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bulk-operations-toolbar .bulk-actions .btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

body.dark-mode .bulk-operations-toolbar .bulk-actions .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

body.dark-mode .select-all-container {
    color: #e2e8f0;
}

body.dark-mode .select-all-container label {
    color: #cbd5e0;
}

body.dark-mode .select-all-container input[type="checkbox"] {
    accent-color: #0ea5e9;
}

body.dark-mode .calendar-section h2 i,
body.dark-mode .bets-section h2 i {
    color: #0ea5e9;
}

body.dark-mode .calendar-section h2,
body.dark-mode .bets-section h2 {
    color: #f7fafc;
}

body.dark-mode .stat-card-header h3 {
    color: #cbd5e0;
}

body.dark-mode .stat-card-header .stat-icon-wrapper {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
}

body.dark-mode .stat-card-header .stat-icon {
    color: white;
}

body.dark-mode .stat-card .stat-value {
    color: #f7fafc;
}

body.dark-mode .stat-card .stat-value.positive {
    color: #10b981;
}

body.dark-mode .stat-card .stat-value.negative {
    color: #ef4444;
}

body.dark-mode .stat-card .stat-value.zero {
    color: #94a3b8;
}

body.dark-mode .stat-card .stat-label {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-desc {
    color: #94a3b8;
}

body.dark-mode .stat-card .stat-trend {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-trend.positive {
    color: #10b981;
}

body.dark-mode .stat-card .stat-trend.negative {
    color: #ef4444;
}

body.dark-mode .stat-card .stat-trend.neutral {
    color: #94a3b8;
}

body.dark-mode .stat-card .stat-badge {
    background: #374151;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .stat-card .stat-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
}

body.dark-mode .stat-card .stat-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

body.dark-mode .stat-card .stat-badge.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-color: #94a3b8;
}

body.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .modal-content {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .modal-content h2 {
    color: #f7fafc;
}

body.dark-mode .modal-content h3 {
    color: #f7fafc;
}

body.dark-mode .modal-content p {
    color: #cbd5e0;
}

body.dark-mode .modal-content label {
    color: #cbd5e0;
}

body.dark-mode .modal-content input[type="text"],
body.dark-mode .modal-content input[type="password"],
body.dark-mode .modal-content input[type="date"],
body.dark-mode .modal-content input[type="number"],
body.dark-mode .modal-content select,
body.dark-mode .modal-content textarea {
    background: #374151;
    border-color: #4a5568;
    color: #f7fafc;
}

body.dark-mode .modal-content input[type="text"]:focus,
body.dark-mode .modal-content input[type="password"]:focus,
body.dark-mode .modal-content input[type="date"]:focus,
body.dark-mode .modal-content input[type="number"]:focus,
body.dark-mode .modal-content select:focus,
body.dark-mode .modal-content textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .modal-content input::placeholder,
body.dark-mode .modal-content textarea::placeholder {
    color: #94a3b8;
}

body.dark-mode .modal-content .close {
    color: #a0aec0;
}

body.dark-mode .modal-content .close:hover {
    color: #e2e8f0;
    background: #374151;
}

body.dark-mode .modal-content .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: white;
}

body.dark-mode .modal-content .btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

body.dark-mode .modal-content .btn-secondary {
    background: #374151;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .modal-content .btn-secondary:hover {
    background: #4a5568;
    border-color: #718096;
}

body.dark-mode .modal-content .btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

body.dark-mode .modal-content .btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

body.dark-mode .modal-content .btn-link {
    color: #0ea5e9;
}

body.dark-mode .modal-content .btn-link:hover {
    color: #38bdf8;
}

body.dark-mode .modal-content .divider {
    color: #64748b;
}

body.dark-mode .modal-content .form-group {
    color: #e2e8f0;
}

body.dark-mode .modal-content .form-group label {
    color: #cbd5e0;
}

body.dark-mode .modal-content .form-group input,
body.dark-mode .modal-content .form-group select,
body.dark-mode .modal-content .form-group textarea {
    background: #374151;
    border-color: #4a5568;
    color: #f7fafc;
}

body.dark-mode .modal-content .form-group input:focus,
body.dark-mode .modal-content .form-group select:focus,
body.dark-mode .modal-content .form-group textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .modal-content .form-group input::placeholder,
body.dark-mode .modal-content .form-group textarea::placeholder {
    color: #94a3b8;
}

body.dark-mode .modal-content .form-label-icon {
    color: #94a3b8;
}

body.dark-mode .modal-content .form-label-icon:hover {
    color: #cbd5e0;
}

body.dark-mode .modal-content .form-label-icon.active {
    color: #0ea5e9;
}

body.dark-mode .modal-content .form-label-icon.active:hover {
    color: #38bdf8;
}

body.dark-mode .modal-content .form-label-icon.inactive {
    color: #64748b;
}

body.dark-mode .modal-content .form-label-icon.inactive:hover {
    color: #94a3b8;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #f1f5f9;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.toast.success {
    background: rgba(15, 23, 42, 0.95);
    border-left: 4px solid #10b981;
    color: #10b981;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(16, 185, 129, 0.2),
        0 0 40px rgba(16, 185, 129, 0.15);
}

.toast.error {
    background: rgba(15, 23, 42, 0.95);
    border-left: 4px solid #ef4444;
    color: #ef4444;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(239, 68, 68, 0.2),
        0 0 40px rgba(239, 68, 68, 0.15);
}

.toast.warning {
    background: rgba(15, 23, 42, 0.95);
    border-left: 4px solid #f59e0b;
    color: #f59e0b;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(245, 158, 11, 0.2),
        0 0 40px rgba(245, 158, 11, 0.15);
}

.toast.info {
    background: rgba(15, 23, 42, 0.95);
    border-left: 4px solid #6366f1;
    color: #6366f1;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(99, 102, 241, 0.2),
        0 0 40px rgba(99, 102, 241, 0.15);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #0ea5e9;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 4px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

.toast.progress {
    position: relative;
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar 5s linear forwards;
}

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

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

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.slide-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Dark Mode Toast */
body.dark-mode .toast.success {
    background: #374151;
    color: #10b981;
    border-color: #10b981;
}

body.dark-mode .toast.error {
    background: #374151;
    color: #ef4444;
    border-color: #ef4444;
}

body.dark-mode .toast.warning {
    background: #374151;
    color: #f59e0b;
    border-color: #f59e0b;
}

body.dark-mode .toast.info {
    background: #374151;
    color: #0ea5e9;
    border-color: #0ea5e9;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    margin: 0;
}

body.dark-mode .loading-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: #0ea5e9;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    height: 120px;
    margin-bottom: 16px;
}

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

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

body.dark-mode .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4a5568 50%, #374151 75%);
    background-size: 200% 100%;
}


body.dark-mode .filters-bar {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}



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









body.dark-mode .filters-bar {
    background: #374151;
    border-color: #4a5568;
}

body.dark-mode .filters-bar .filter-group {
    color: #e2e8f0;
}

body.dark-mode .filters-bar .filter-group label {
    color: #cbd5e0;
}

body.dark-mode .filters-bar .filter-group select,
body.dark-mode .filters-bar .filter-group input {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
}

body.dark-mode .filters-bar .filter-group select:focus,
body.dark-mode .filters-bar .filter-group input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

body.dark-mode .filters-bar .btn-icon {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .filters-bar .btn-icon:hover {
    background: #374151;
    border-color: #718096;
}

body.dark-mode .advanced-filters {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .quick-filter-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .quick-filter-btn:hover {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

body.dark-mode .stat-card-winstreak::after {
    background: 
        radial-gradient(ellipse at center, 
            rgba(245, 158, 11, 0.5) 0%,
            rgba(217, 119, 6, 0.4) 25%,
            rgba(251, 191, 36, 0.3) 50%,
            rgba(234, 88, 12, 0.2) 75%,
            transparent 100%
        );
}

/* Dark mode fire effect - stronger for better visibility */
body.dark-mode .stat-card-winstreak::after {
    background: 
        radial-gradient(ellipse 80% 40px at 50% 100%, 
            rgba(251, 191, 36, 0.8) 0%,
            rgba(245, 158, 11, 0.6) 30%,
            rgba(217, 119, 6, 0.45) 60%,
            rgba(234, 88, 12, 0.25) 80%,
            transparent 100%
        ),
        radial-gradient(ellipse at 50% 100%, 
            rgba(245, 158, 11, 0.6) 0%,
            rgba(217, 119, 6, 0.5) 25%,
            rgba(251, 191, 36, 0.4) 50%,
            rgba(234, 88, 12, 0.3) 75%,
            transparent 100%
        );
}

body.dark-mode .categories-list {
    color: #e2e8f0;
}

body.dark-mode .category-item {
    background: #374151;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .category-item:hover {
    background: #4a5568;
    border-color: #718096;
}

body.dark-mode .category-name {
    color: #e2e8f0;
}

body.dark-mode .category-count {
    color: #cbd5e0;
}

body.dark-mode .category-actions {
    color: #e2e8f0;
}

body.dark-mode .category-actions button {
    color: #e2e8f0;
}

body.dark-mode .category-actions button:hover {
    color: #ef4444;
}

body.dark-mode .empty-state {
    color: #94a3b8;
}

body.dark-mode .empty-state p {
    color: #94a3b8;
}

body.dark-mode .empty-state h3 {
    color: #cbd5e0;
}

body.dark-mode .stat-card-header h3 {
    color: #cbd5e0;
}

body.dark-mode .stat-card-header .stat-icon-wrapper {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
}

body.dark-mode .stat-card-header .stat-icon {
    color: white;
}

body.dark-mode .stat-card .stat-value {
    color: #f7fafc;
}

body.dark-mode .stat-card .stat-value.positive {
    color: #10b981;
}

body.dark-mode .stat-card .stat-value.negative {
    color: #ef4444;
}

body.dark-mode .stat-card .stat-value.zero {
    color: #94a3b8;
}

body.dark-mode .stat-card .stat-label {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-desc {
    color: #94a3b8;
}

body.dark-mode .stat-card .stat-trend {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-trend.positive {
    color: #10b981;
}

body.dark-mode .stat-card .stat-trend.negative {
    color: #ef4444;
}

body.dark-mode .stat-card .stat-trend.neutral {
    color: #94a3b8;
}

body.dark-mode .stat-card .stat-badge {
    background: #374151;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .stat-card .stat-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
}

body.dark-mode .stat-card .stat-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

body.dark-mode .stat-card .stat-badge.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-color: #94a3b8;
}

body.dark-mode .stat-card .stat-chart {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-chart .chart-line {
    stroke: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-area {
    fill: rgba(14, 165, 233, 0.1);
}

body.dark-mode .stat-card .stat-chart .chart-grid {
    stroke: #4a5568;
}

body.dark-mode .stat-card .stat-chart .chart-label {
    fill: #94a3b8;
}

body.dark-mode .stat-card .stat-chart .chart-value {
    fill: #e2e8f0;
}

body.dark-mode .stat-card .stat-chart .chart-tooltip {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .stat-card .stat-chart .chart-tooltip::before {
    border-top-color: #2d3748;
}

body.dark-mode .stat-card .stat-chart .chart-tooltip::after {
    border-top-color: #4a5568;
}

body.dark-mode .stat-card .stat-chart .chart-legend {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-chart .chart-legend-item {
    color: #cbd5e0;
}

body.dark-mode .stat-card .stat-chart .chart-legend-item.active {
    color: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-item.inactive {
    color: #64748b;
}

body.dark-mode .stat-card .stat-chart .chart-legend-item:hover {
    color: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color {
    border-color: #4a5568;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.active {
    border-color: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.inactive {
    opacity: 0.5;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color:hover {
    border-color: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color::before {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color::after {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.active::before {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.active::after {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.inactive::before {
    background: #64748b;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.inactive::after {
    background: #64748b;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color:hover::before {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color:hover::after {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.active:hover::before {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.active:hover::after {
    background: #0ea5e9;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.inactive:hover::before {
    background: #64748b;
}

body.dark-mode .stat-card .stat-chart .chart-legend-color.inactive:hover::after {
    background: #64748b;
}

/* Easter Egg Styles */
.easter-egg-logo {
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.easter-egg-logo:hover {
    transform: scale(1.05);
}

.easter-egg-logo:active {
    transform: scale(0.95);
}

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

@keyframes emojiHit {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5) rotate(180deg);
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes emojiWrong {
    0%, 100% {
        transform: scale(1);
    }
    25%, 75% {
        transform: scale(0.8) translateX(-5px);
    }
    50% {
        transform: scale(0.8) translateX(5px);
    }
}












































