/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0612;
    --bg-secondary: #140a1f;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --pink-500: #ec4899;
    --cyan-500: #06b6d4;
    --blue-500: #3b82f6;
    --green-500: #22c55e;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --yellow-500: #eab308;
    --text-primary: #ffffff;
    --text-secondary: rgba(168, 85, 247, 0.7);
    --glass-bg: rgba(20, 10, 31, 0.6);
    --glass-border: rgba(139, 92, 246, 0.2);

    /* Legacy compatibility */
    --neon-purple: #9333ea;
    --neon-pink: #ec4899;
    --bg-dark: #0f0720;
    --bg-card: rgba(15, 7, 32, 0.6);
    --text-main: #ffffff;
    --text-muted: #d8b4fe;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}

/* ===== Background Effects ===== */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(88, 28, 135, 0.2), var(--bg-primary), var(--bg-primary));
    z-index: 0;
    pointer-events: none;
}

.particles-canvas,
.grid-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.15);
    top: 20%;
    left: -100px;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.12);
    bottom: 10%;
    right: -50px;
    animation: float-orb 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.1);
    top: 50%;
    right: 20%;
    animation: float-orb 18s ease-in-out infinite;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(50px, -30px);
    }

    50% {
        transform: translate(0, -50px);
    }

    75% {
        transform: translate(-30px, -20px);
    }
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Glassmorphism Utilities ===== */
.glass-strong {
    background: rgba(15, 7, 32, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-bg {
    position: absolute;
    inset: 0;
    background: rgba(88, 28, 135, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    filter: blur(8px);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.sparkle-icon {
    width: 20px;
    height: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: -4px;
    letter-spacing: 1px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover {
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* User Menu */
.user-menu {
    display: none;
    align-items: center;
    gap: 1rem;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(20, 10, 31, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(168, 85, 247, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    width: 16px;
    height: 16px;
    color: white;
}

.user-name {
    font-size: 0.875rem;
}

.chevron {
    width: 16px;
    height: 16px;
    color: rgba(168, 85, 247, 0.7);
    transition: transform 0.3s ease;
}

.user-btn.active .chevron {
    transform: rotate(180deg);
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
    border: none;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.logout-btn svg {
    width: 16px;
    height: 16px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(20, 10, 31, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn:hover {
    color: white;
    border-color: rgba(139, 92, 246, 0.5);
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(168, 85, 247, 0.2);
    color: white;
}

.mobile-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
    margin: 0.5rem 0;
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: rgba(239, 68, 68, 0.9);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-logout-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ===== Main Content ===== */
.main {
    position: relative;
    z-index: 10;
    padding-top: 96px;
    padding-bottom: 3rem;
}

/* ===== Welcome Banner ===== */
.welcome-banner {
    position: relative;
    margin-bottom: 2rem;
}

.banner-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 20px;
    filter: blur(12px);
    opacity: 0.5;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.banner-card {
    padding: 2rem;
}

.banner-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background:
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.5), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.5), transparent 50%);
}

.corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: rgba(168, 85, 247, 0.4);
    border-style: solid;
}

.corner-tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
    border-top-left-radius: 16px;
}

.corner-tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
    border-top-right-radius: 16px;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
    border-bottom-left-radius: 16px;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
    border-bottom-right-radius: 16px;
}

.banner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.banner-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.welcome-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    filter: blur(12px);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.welcome-icon svg {
    width: 28px;
    height: 28px;
    color: white;
    position: relative;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.welcome-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: rotate(12deg);
}

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

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

.btn-purple {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-purple:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.btn-pink {
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.btn-pink:hover {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    transform: translateY(-2px);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan-500), var(--purple-500));
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.btn-cyan:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    position: relative;
}

.card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    filter: blur(8px);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

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

.card-blue .card-glow {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.5));
}

.card-orange .card-glow {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.5), rgba(239, 68, 68, 0.5));
}

.card-green .card-glow {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(16, 185, 129, 0.5));
}

.stat-card .glass-card {
    height: 100%;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.icon-blue {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.icon-orange {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.icon-green {
    background: linear-gradient(135deg, var(--green-500), #10b981);
}

.icon-fire {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.card-date,
.card-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.card-date svg,
.card-status svg {
    width: 12px;
    height: 12px;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.cycle-count {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.cycle-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red-500);
}

.cycle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cycle-label-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.cycle-highlight {
    color: var(--red-500);
    font-weight: 700;
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.number-ball {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.number-ball.active {
    color: white;
    position: relative;
}

.number-ball.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.number-ball.blue {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.number-ball.blue::before {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.number-ball.orange {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
    animation: pulse-ball 2s ease-in-out infinite;
}

.number-ball.orange::before {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.number-ball.inactive {
    background: rgba(88, 28, 135, 0.3);
    color: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

@keyframes pulse-ball {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.card-footer svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.footer-highlight {
    font-size: 0.75rem;
    color: var(--cyan-500);
    font-family: 'Orbitron', sans-serif;
}

.footer-highlight.orange {
    color: var(--orange-500);
}

/* Expense Card */
.expense-main {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.expense-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    filter: blur(40px);
    opacity: 0.2;
}

.expense-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.expense-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.expense-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.expense-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(88, 28, 135, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.expense-stat:hover {
    background: rgba(168, 85, 247, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-purple {
    background: rgba(168, 85, 247, 0.2);
    color: var(--purple-500);
}

.stat-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--cyan-500);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== Heatmap Section ===== */
.heatmap-section {
    position: relative;
    margin-bottom: 1.5rem;
}

.heatmap-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 20px;
    filter: blur(12px);
    opacity: 0.3;
}

.heatmap-card {
    padding: 1.5rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    max-width: 320px;
    margin: 0 auto 1.5rem;
}

.heatmap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.heatmap-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.heatmap-ball::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.heatmap-ball:hover {
    transform: scale(1.1);
}

.heatmap-ball.cold {
    background: linear-gradient(135deg, #60a5fa, #4f46e5);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.heatmap-ball.cold::before {
    background: linear-gradient(135deg, #60a5fa, #4f46e5);
}

.heatmap-ball.medium {
    background: linear-gradient(135deg, #2dd4bf, var(--cyan-500));
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.heatmap-ball.medium::before {
    background: linear-gradient(135deg, #2dd4bf, var(--cyan-500));
}

.heatmap-ball.hot {
    background: linear-gradient(135deg, #4ade80, var(--green-500));
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

.heatmap-ball.hot::before {
    background: linear-gradient(135deg, #4ade80, var(--green-500));
}

.heatmap-freq {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: rgba(88, 28, 135, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 0.625rem;
    color: var(--text-secondary);
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-cold {
    background: linear-gradient(135deg, #60a5fa, #4f46e5);
}

.legend-medium {
    background: linear-gradient(135deg, #2dd4bf, var(--cyan-500));
}

.legend-hot {
    background: linear-gradient(135deg, #4ade80, var(--green-500));
}

/* ===== Quick Stats ===== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.quick-stat:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.quick-stat-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-stat:hover .quick-stat-glow {
    opacity: 0.1;
}

.quick-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-stat-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.icon-purple {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
}

.icon-yellow {
    background: linear-gradient(135deg, var(--yellow-500), var(--orange-500));
}

.icon-pink {
    background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
}

.quick-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.quick-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 10;
}

.footer-border {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.footer-logo svg {
    width: 20px;
    height: 20px;
    color: var(--purple-500);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ===== Bootstrap Overrides ===== */
.form-control,
.form-select {
    background-color: rgba(30, 20, 50, 0.5) !important;
    border: 1px solid rgba(147, 51, 234, 0.3) !important;
    color: white !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(30, 20, 50, 0.7) !important;
    border-color: var(--neon-purple) !important;
    box-shadow: 0 0 0 0.25rem rgba(147, 51, 234, 0.25) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
}

.text-gradient {
    background: linear-gradient(to right, #9333ea, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.text-muted {
    color: #e9d5ff !important;
    text-shadow: 0 0 2px rgba(147, 51, 234, 0.2);
}

.text-neon-purple {
    color: #d8b4fe !important;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.text-neon-pink {
    color: #f472b6 !important;
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.btn-glass-dark {
    background: rgba(15, 7, 32, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: white;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.4rem 1rem;
}

.btn-glass-dark:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(15, 7, 32, 0.7);
    color: white;
}

.btn-danger-gradient {
    background: linear-gradient(to right, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: white;
    transition: all 0.3s ease;
}

.btn-danger-gradient:hover {
    background: linear-gradient(to right, #ef4444, #dc2626);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    color: white;
}

.nav-link-custom {
    color: rgba(216, 180, 254, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-custom:hover {
    color: white;
    background: rgba(168, 85, 247, 0.1);
}

.nav-link-custom.active {
    background: rgba(168, 85, 247, 0.2);
    color: white;
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.no-caret::after {
    display: none !important;
}

.hover-bg-purple:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    color: white !important;
}

.hover-bg-red:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .user-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .expense-value {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple-500), var(--pink-500));
    border-radius: 3px;
}

::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

/* ===== Animations ===== */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Bootstrap Card Overrides (Glassmorphism) ===== */
.card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    color: var(--text-primary) !important;
}

.card-header {
    background: rgba(88, 28, 135, 0.2) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.card-body {
    color: var(--text-primary) !important;
}

.table {
    color: var(--text-primary) !important;
}

.table-light {
    background: rgba(88, 28, 135, 0.2) !important;
    color: var(--text-primary) !important;
}

.table-hover tbody tr:hover {
    background: rgba(168, 85, 247, 0.1) !important;
    color: white !important;
}

.badge.bg-light {
    background: rgba(88, 28, 135, 0.3) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--glass-border) !important;
}

.badge.bg-secondary {
    background: rgba(139, 92, 246, 0.3) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--green-500), #10b981) !important;
    border: none !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: rgba(168, 85, 247, 0.6) !important;
}

/* Progress bars */
.progress {
    background: rgba(88, 28, 135, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--purple-500), var(--pink-500)) !important;
}

/* Buttons in cards */
.btn-outline-primary {
    border-color: var(--purple-500) !important;
    color: var(--purple-500) !important;
}

.btn-outline-primary:hover {
    background: var(--purple-500) !important;
    color: white !important;
}

.btn-outline-secondary {
    border-color: var(--glass-border) !important;
    color: var(--text-secondary) !important;
}

.btn-outline-secondary:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    color: white !important;
}

/* Small text adjustments */
.small,
small {
    color: var(--text-secondary) !important;
}

/* Sticky headers in tables */
.sticky-top {
    background: rgba(88, 28, 135, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}


/* ===== Table Body Fix ===== */
.table tbody {
    background: transparent !important;
}

.table tbody tr {
    background: transparent !important;
    border-color: var(--glass-border) !important;
}

.table tbody td,
.table tbody th {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

.table thead th {
    background: rgba(88, 28, 135, 0.3) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

/* Table responsive wrapper */
.table-responsive {
    background: transparent !important;
}

/* Scrollbar for table */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(88, 28, 135, 0.2);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple-500), var(--pink-500));
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--pink-500), var(--purple-500));
}


/* ===== Modal Styling (Glassmorphism) ===== */
.modal-content {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.modal-header {
    background: rgba(88, 28, 135, 0.2) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

.modal-title {
    color: var(--text-primary) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.modal-body {
    background: transparent !important;
    color: var(--text-primary) !important;
}

.modal-footer {
    background: rgba(88, 28, 135, 0.1) !important;
    border-top: 1px solid var(--glass-border) !important;
}

.modal-backdrop {
    background-color: rgba(10, 6, 18, 0.8) !important;
}

.modal-backdrop.show {
    opacity: 0.9 !important;
}

/* Close button in modal */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
    opacity: 0.8 !important;
}

.btn-close:hover {
    opacity: 1 !important;
}

/* Modal dialog centering */
.modal-dialog {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
}


/* ===== Form Inputs Styling ===== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select,
.form-control,
.form-select {
    background: rgba(30, 20, 50, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    background: rgba(30, 20, 50, 0.8) !important;
    border-color: var(--purple-500) !important;
    box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.25) !important;
    color: var(--text-primary) !important;
}

/* Labels */
label,
.form-label {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

/* Input groups */
.input-group-text {
    background: rgba(88, 28, 135, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
}

/* Checkboxes and radios */
.form-check-input {
    background-color: rgba(30, 20, 50, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
}

.form-check-input:checked {
    background-color: var(--purple-500) !important;
    border-color: var(--purple-500) !important;
}

.form-check-label {
    color: var(--text-primary) !important;
}

/* Disabled inputs */
input:disabled,
select:disabled,
textarea:disabled,
.form-control:disabled,
.form-select:disabled {
    background: rgba(30, 20, 50, 0.3) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 0.6 !important;
}


/* ===== Pagination Styling ===== */
.pagination {
    margin-top: 1.5rem !important;
}

.page-link {
    background: rgba(30, 20, 50, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    margin: 0 0.25rem !important;
    transition: all 0.3s ease !important;
}

.page-link:hover {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500)) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important;
}

.page-item.disabled .page-link {
    background: rgba(30, 20, 50, 0.3) !important;
    border-color: var(--glass-border) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 0.5 !important;
}

/* ===== Full Height Content ===== */
body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.main .container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Make cards expand to fill available space */
.card.h-100 {
    display: flex;
    flex-direction: column !important;
    height: 100% !important;
}

.card-body {
    flex: 1 !important;
    overflow: auto !important;
}


/* ===== Badge Text Color Fixes ===== */
.badge {
    color: white !important;
    font-weight: 600 !important;
}

.badge.bg-success,
.badge.bg-primary,
.badge.bg-info,
.badge.bg-warning,
.badge.bg-danger,
.badge.text-bg-success,
.badge.text-bg-primary,
.badge.text-bg-info,
.badge.text-bg-warning,
.badge.text-bg-danger {
    color: white !important;
}

/* Specific badge colors with white text */
.bg-success {
    background: linear-gradient(135deg, var(--green-500), #10b981) !important;
    color: white !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500)) !important;
    color: white !important;
}

.bg-info {
    background: linear-gradient(135deg, var(--cyan-500), #0ea5e9) !important;
    color: white !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--yellow-500), var(--orange-500)) !important;
    color: white !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--red-500), #dc2626) !important;
    color: white !important;
}

/* Text utilities override */
.text-success,
.text-primary,
.text-info,
.text-warning,
.text-danger {
    color: white !important;
}

/* Button badges */
.btn .badge {
    color: white !important;
}


/* ===== Generator Page Fixes ===== */

/* Toggle buttons styling */
.btn-group .btn {
    transition: all 0.3s ease !important;
}

.btn-group .btn.active,
.btn-group .btn:active,
.btn-check:checked+.btn {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500)) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important;
}

.btn-group .btn:not(.active) {
    background: rgba(30, 20, 50, 0.6) !important;
    border-color: var(--glass-border) !important;
    color: var(--text-secondary) !important;
}

.btn-group .btn:hover:not(.active) {
    background: rgba(168, 85, 247, 0.2) !important;
    color: white !important;
}

/* Section visibility toggle */
.generator-section {
    display: none !important;
}

.generator-section.active {
    display: block !important;
}

/* Number selection grid */
.number-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.5rem !important;
}

.number-btn {
    aspect-ratio: 1 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    background: rgba(88, 28, 135, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.number-btn:hover {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.number-btn.selected,
.number-btn.active {
    background: white !important;
    border-color: white !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
    font-weight: 900 !important;
}

/* Ensure tab content visibility */
.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}


/* Fixed number buttons (small circular buttons) */
.fixed-num-btn {
    transition: all 0.3s ease !important;
    background: rgba(88, 28, 135, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
}

.fixed-num-btn:hover {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

.fixed-num-btn.selected {
    background: white !important;
    border-color: white !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
    font-weight: 900 !important;
    transform: scale(1.05) !important;
}


/* Force display override for Bootstrap utility classes */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* Volante buttons (manual mode) */
.volante-btn {
    transition: all 0.3s ease !important;
    background: rgba(88, 28, 135, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
    font-family: 'Orbitron', sans-serif !important;
}

.volante-btn:hover {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

.volante-btn.selected,
.volante-btn.active {
    background: white !important;
    border-color: white !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6) !important;
    font-weight: 900 !important;
}

/* Nav pills styling */
.nav-pills .nav-link {
    background: rgba(30, 20, 50, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
}

.nav-pills .nav-link:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    color: white !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500)) !important;
    border-color: var(--purple-500) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5) !important;
}

/* Fix: d-none should override card display */
.d-none.card,
.card.d-none {
    display: none !important;
}

.d-block.card,
.card.d-block {
    display: block !important;
}

/* Only apply flex to visible cards */
.card.h-100:not(.d-none) {
    display: flex;
    flex-direction: column !important;
}
/* ===== User Dropdown Menu Styling ===== */
.dropdown-menu {
  background: rgba(88, 28, 135, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  padding: 0.5rem !important;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease !important;
  font-weight: 500 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(168, 85, 247, 0.3) !important;
  color: white !important;
  transform: translateX(4px) !important;
}

.dropdown-item i {
  color: var(--purple-400) !important;
  margin-right: 0.5rem !important;
}

.dropdown-divider {
  border-color: rgba(168, 85, 247, 0.2) !important;
  margin: 0.5rem 0 !important;
}

/* User profile info in dropdown */
.dropdown-header {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.75rem !important;
  padding: 0.5rem 1rem !important;
}


/* ===== Fix: Black text on white selected number balls ===== */
.number-btn.selected,
.number-btn.active,
.fixed-num-btn.selected,
.volante-btn.selected,
.volante-btn.active {
  color: #000000 !important;
  font-weight: 900 !important;
}

/* Ensure generated game numbers with white background have black text */
.badge.bg-white,
.badge.border-secondary.bg-white {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Custom badge colors for generator */
.badge.bg-purple {
    background: linear-gradient(135deg, #9333ea, #a855f7) !important;
    color: white !important;
    border-color: #9333ea !important;
    font-weight: 600 !important;
}

.badge.border-purple {
    border-color: #9333ea !important;
}

.badge.bg-brown {
    background: linear-gradient(135deg, #8B4513, #A0522D) !important;
    color: white !important;
    border-color: #8B4513 !important;
    font-weight: 600 !important;
}

.badge.border-brown {
    border-color: #8B4513 !important;
}


/* ===== Fix: Prevent line breaks in table cells ===== */
.table td,
.table th {
  white-space: nowrap !important;
}

/* Allow wrapping only for the numbers column */
.table td:nth-child(2) {
  white-space: normal !important;
}

/* Ensure action buttons stay in one line */
.table .btn-group,
.table .d-flex {
  white-space: nowrap !important;
}

/* Make status column wider to prevent wrapping */
.table td:last-child {
  min-width: 150px !important;
}



/* ===== Login Page Background Effects ===== */

/* Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(139, 92, 246, 0.03) 50%,
        transparent 100%
    );
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* 3D Card Effects for Login Page */
.perspective-container {
    perspective: 1000px;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-rotate-left {
    transform: rotateY(8deg) translateZ(-20px);
}

.card-rotate-center {
    transform: rotateY(0deg) translateZ(0);
}

.card-rotate-right {
    transform: rotateY(-8deg) translateZ(-20px);
}

.card-3d:hover {
    transform: rotateY(0deg) translateZ(20px);
}

/* Feature Cards on Login Page */
.feature-card {
    background: rgba(15, 7, 32, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #9333ea, #a855f7);
}

.bg-gradient-pink {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.bg-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

/* Transition utilities */
.transition-opacity {
    transition: opacity 0.3s ease;
}

.duration-500 {
    transition-duration: 500ms;
}

.group:hover .group-hover\:opacity-10 {
    opacity: 0.1;
}

/* Blur utilities */
.blur-xl {
    filter: blur(24px);
}

/* Animation utilities */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* Gradient backgrounds */
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-purple-600 {
    --tw-gradient-from: #9333ea;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}

.via-pink-500 {
    --tw-gradient-stops: var(--tw-gradient-from), #ec4899, var(--tw-gradient-to, rgba(236, 72, 153, 0));
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}

/* Opacity utilities */
.opacity-30 {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-20 {
    opacity: 0.2;
}

/* Position utilities */
.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}
