/* ========================
   CSS Variables & Reset
======================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    --gold: #ffd700;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb700 50%, #ff9500 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 60px rgba(99, 102, 241, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-2);
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================
   Navbar
======================== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-brand i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: var(--text-light);
    background: rgba(99, 102, 241, 0.2);
}

/* ========================
   Main Content
======================== */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
}

/* ========================
   Login Page
======================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: spin 4s linear infinite;
}

.login-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    margin-bottom: 1rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    margin-top: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--dark);
    border: 2px solid var(--dark-lighter);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--dark-light);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.3);
}

.error-message {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========================
   Dashboard - Enhanced
======================== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.dashboard-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-title {
    margin-bottom: 0.5rem;
}

.hero-title .greeting {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.hero-title .username {
    display: block;
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
}

.hero-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-width: 100px;
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating Icons */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 10%;
    right: 10%;
    color: #ffd700;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 60%;
    right: 20%;
    color: #ff6b6b;
    animation-delay: 1.5s;
}

.floating-icon.icon-3 {
    top: 20%;
    right: 35%;
    color: #4ecdc4;
    animation-delay: 3s;
}

.floating-icon.icon-4 {
    top: 70%;
    right: 5%;
    color: #f7dc6f;
    animation-delay: 4.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.section-header h2 i {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Enhanced Store Cards */
.stores-grid.enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.store-card.enhanced {
    background: rgba(20, 30, 48, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.store-card.enhanced .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(60px);
}

.store-card.enhanced:hover .card-glow {
    opacity: 0.15;
}

.store-card.enhanced .card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.store-card.enhanced .store-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--card-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.store-card.enhanced .store-icon.enhanced {
    width: 90px;
    height: 90px;
    background: var(--card-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.25rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.store-card.enhanced:hover .store-icon.enhanced {
    transform: scale(1.1) rotate(-5deg);
}

.store-card.enhanced h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.store-card.enhanced .store-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.store-card.enhanced .store-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.store-card.enhanced .meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.store-card.enhanced .meta-item i {
    color: var(--card-color);
}

.store-card.enhanced .card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.store-card.enhanced:hover .card-shine {
    left: 150%;
}

.store-card.enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--card-color);
}

/* Quick Actions */
.quick-actions {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-actions h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions h3 i {
    color: var(--gold);
}

.quick-actions-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Legacy page header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Legacy stores grid */
.stores-grid:not(.enhanced) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.store-card:not(.enhanced) {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.store-card:not(.enhanced)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.store-card:not(.enhanced):hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.store-card:not(.enhanced):hover::before {
    transform: scaleX(1);
}

.store-icon:not(.enhanced) {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.store-card:not(.enhanced) h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.store-card:not(.enhanced) p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .nav-brand {
        justify-content: center;
    }

    .nav-links {
        overflow-x: auto;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 0.5rem;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE 10+ */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .nav-links a {
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.05);
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-title .username {
        font-size: 2rem;
    }

    .hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid */
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        min-width: 0;
        /* Prevention flex blow-out */
    }

    /* Make the last card full width if odd number */
    .stat-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .quick-actions-grid {
        justify-content: center;
    }
}

/* ========================
   Store Page Actions
======================== */
.store-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--primary);
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.action-card.view-spins {
    border-left: 4px solid var(--primary);
}

.action-card.add-bills {
    border-left: 4px solid var(--success);
}

.action-card.run-spin {
    border-left: 4px solid var(--accent);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.view-spins .action-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.add-bills .action-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.run-spin .action-icon {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent);
}

.action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================
   Forms & Cards
======================== */
.form-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-card h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Prize Inputs - Dynamic */
.prize-inputs {
    display: grid;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.prize-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prize-input .position {
    width: 36px;
    height: 36px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.prize-input input {
    flex: 1;
}

.btn-add-prize {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-add-prize:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-remove-prize {
    background: var(--accent);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-remove-prize:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.prize-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.spin-launch-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ========================
   Spin Modal - Fullscreen
======================== */
.spin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spin-modal.active {
    display: flex;
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.spin-modal-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 1rem;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spin-modal-header {
    margin-bottom: 0.5rem;
}

.spin-modal-header h1 {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.spin-modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Wheel Container - Responsive */
.wheel-container {
    position: relative;
    width: min(350px, 50vh);
    height: min(350px, 50vh);
    margin: 1rem auto;
}

.wheel-outer-ring {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            #ffd700, #ff6b6b, #4ecdc4, #45b7d1, #96e6a1,
            #dda0dd, #f7dc6f, #bb8fce, #85c1e9, #f8b500,
            #ffd700);
    animation: ringRotate 10s linear infinite;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wheel-wrapper {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 35px solid var(--gold);
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(255, 215, 0, 0.5));
    animation: pointerBounce 0.5s ease infinite;
}

@keyframes pointerBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

#spinCanvas {
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.wheel-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    z-index: 5;
}

.wheel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Spin Status */
.spin-status {
    margin: 1.5rem 0;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    animation: statusPulse 1.5s ease infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.btn-spin-action {
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-size: 1.5rem;
    padding: 1.25rem 4rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-spin-action:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.6);
}

.btn-spin-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================
   Winners Modal
======================== */
.winners-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    z-index: 10001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
}

.winners-modal.active {
    display: flex;
    animation: modalFadeIn 0.5s ease;
}

.winners-modal-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
    position: relative;
    margin: auto;
    padding: 2rem 0;
}

.celebration-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.winners-title {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: titlePop 0.5s ease;
}

@keyframes titlePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.winners-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.winners-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.winner-card {
    background: rgba(30, 41, 59, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s ease;
}

.winner-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.winner-card.first-place {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(30, 41, 59, 0.95) 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.winner-card.second-place {
    border-color: #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.winner-card.third-place {
    border-color: #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.winner-rank {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.winner-rank.gold {
    background: var(--gradient-gold);
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.winner-rank.silver {
    background: linear-gradient(135deg, #e8e8e8, #b8b8b8);
    color: #1a1a1a;
}

.winner-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: white;
}

.winner-rank.normal {
    background: var(--gradient-1);
    color: white;
}

.winner-details {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.winner-bill {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.winner-prize-text {
    color: var(--gold);
    font-size: 1rem;
    margin-top: 0.25rem;
    word-wrap: break-word;
}

.winner-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.winners-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.winners-actions .btn {
    padding: 1rem 2rem;
    min-width: 200px;
}

/* ========================
   Table Styles
======================== */
.table-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
}

th {
    background: var(--dark);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* ========================
   Confetti
======================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 4s linear forwards;
    z-index: 99999;
}

@keyframes confettiFall {
    to {
        top: 100vh;
        transform: rotate(720deg);
    }
}

/* Sparkles */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    animation: sparkle 1s ease forwards;
}

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* ========================
   Footer
======================== */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stores-grid {
        grid-template-columns: 1fr;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    th,
    td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .wheel-container {
        width: 300px;
        height: 300px;
    }

    #spinCanvas {
        width: 280px !important;
        height: 280px !important;
    }

    .spin-modal-header h1 {
        font-size: 1.75rem;
    }

    .winners-title {
        font-size: 2rem;
    }

    .winner-card {
        flex-direction: column;
        text-align: center;
    }

    .winner-details {
        text-align: center;
    }
}

/* ========================
   Spin History Page - Enhanced
======================== */
.history-container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-header {
    margin-bottom: 1.5rem;
}

.back-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.back-btn-enhanced:hover {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-light);
    transform: translateX(-5px);
}

.back-btn-enhanced i {
    font-size: 0.9rem;
}

/* Title Section */
.history-title-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.title-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.title-icon {
    width: 70px;
    height: 70px;
    background: var(--theme-gradient, var(--gradient-1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.title-text h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.title-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.title-stats {
    display: flex;
    gap: 1.5rem;
}

.title-stat {
    text-align: center;
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.title-stat:first-child {
    border-left: none;
}

.title-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--theme-gradient, var(--gradient-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    opacity: 0.8;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Spin History Grid */
.spin-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Spin Card */
.spin-history-card {
    background: rgba(20, 30, 48, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: var(--transition);
    animation: cardSlideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spin-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Card Header */
.spin-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spin-date-badge {
    width: 55px;
    height: 55px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spin-date-badge .date-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.spin-date-badge .date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.spin-info {
    flex: 1;
}

.spin-info .spin-month {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.spin-info .spin-time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spin-info .spin-time i {
    margin-right: 0.25rem;
}

.spin-range-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 500;
}

/* Winners Section */
.spin-winners-section {
    padding: 1.25rem;
}

.winners-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.winners-title-row>span:first-child {
    font-weight: 600;
    color: var(--gold);
}

.winners-title-row>span:first-child i {
    margin-right: 0.4rem;
}

.winner-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.winner-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.winner-item.gold {
    border-left-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.winner-item.silver {
    border-left-color: #c0c0c0;
    background: rgba(192, 192, 192, 0.05);
}

.winner-item.bronze {
    border-left-color: #cd7f32;
    background: rgba(205, 127, 50, 0.05);
}

.winner-position {
    font-size: 1.25rem;
    width: 35px;
    text-align: center;
}

.winner-info {
    flex: 1;
}

.winner-bill {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.winner-prize {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.no-winners {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    font-size: 0.9rem;
}

/* Excluded Bills */
.spin-excluded {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(244, 63, 94, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spin-excluded i {
    color: var(--accent);
    opacity: 0.7;
}

/* Run New Spin Button */
.history-action {
    text-align: center;
    margin-top: 1rem;
}

.btn-run-new-spin {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.btn-run-new-spin:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-run-new-spin i {
    animation: spin 3s linear infinite;
}

@media (max-width: 768px) {
    .history-title-section {
        flex-direction: column;
        text-align: center;
    }

    .title-content {
        flex-direction: column;
    }

    .title-stats {
        justify-content: center;
    }

    .spin-history-grid {
        grid-template-columns: 1fr;
    }

    .spin-card-header {
        flex-wrap: wrap;
    }

    .spin-range-badge {
        margin-left: auto;
    }
}

/* ========================
   Store Page - Enhanced
======================== */
.store-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.store-nav {
    margin-bottom: 1.5rem;
}

/* Store Hero */
.store-hero {
    background: var(--store-light, rgba(99, 102, 241, 0.1));
    border-radius: 28px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--store-gradient);
    opacity: 0.05;
}

.store-hero-content {
    position: relative;
    z-index: 2;
}

.store-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.store-icon-large {
    width: 90px;
    height: 90px;
    background: var(--store-gradient);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.store-info {
    flex: 1;
}

.store-badge-number {
    display: inline-block;
    background: var(--store-gradient);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-info h1 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.store-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

.store-stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.store-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    min-width: 160px;
}

.store-stat .stat-icon {
    width: 45px;
    height: 45px;
    background: var(--store-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.store-stat .stat-data {
    display: flex;
    flex-direction: column;
}

.store-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.store-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Decorative Elements */
.store-hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--store-gradient);
    opacity: 0.08;
}

.deco-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.deco-circle.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: 100px;
}

.deco-circle.circle-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 250px;
}

/* Section Title */
.section-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: var(--gold);
}

/* Enhanced Action Cards */
.store-actions-section {
    margin-bottom: 2rem;
}

.action-cards-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card-enhanced {
    background: rgba(20, 30, 48, 0.9);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-card-enhanced .card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.action-card-enhanced.history-card .card-decoration {
    background: linear-gradient(180deg, #6366f1, #818cf8);
}

.action-card-enhanced.bills-card .card-decoration {
    background: linear-gradient(180deg, #10b981, #34d399);
}

.action-card-enhanced.spin-card .card-decoration {
    background: linear-gradient(180deg, #f43f5e, #fb7185);
}

.action-card-enhanced:hover .card-decoration {
    width: 8px;
}

.action-card-enhanced:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-icon-wrapper {
    position: relative;
}

.action-card-enhanced .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.action-card-enhanced.history-card .card-icon {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.action-card-enhanced.bills-card .card-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.action-card-enhanced.spin-card .card-icon {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
}

.action-card-enhanced:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.card-content {
    flex: 1;
}

.action-card-enhanced h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.action-card-enhanced p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.action-card-enhanced:hover .card-arrow {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* Featured Spin Card */
.action-card-enhanced.featured {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(251, 113, 133, 0.1) 100%);
    border-color: rgba(244, 63, 94, 0.3);
}

.action-card-enhanced.featured .featured-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 60%);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.action-card-enhanced .card-icon.spinning i {
    animation: slowSpin 8s linear infinite;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid rgba(244, 63, 94, 0.4);
    border-radius: 16px;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.action-card-enhanced.featured:hover .card-arrow {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
}

/* Recent Activity Section */
.recent-activity-section {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-spins-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.recent-spin-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: var(--transition);
}

.recent-spin-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.spin-date-mini {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spin-date-mini .day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.spin-date-mini .month {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.spin-details {
    flex: 1;
}

.spin-details .spin-period {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.spin-details .spin-range {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spin-winners-mini .winner-count {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-light);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .store-identity {
        flex-direction: column;
        text-align: center;
    }

    .store-info h1 {
        font-size: 1.75rem;
    }

    .store-stats-row {
        justify-content: center;
    }

    .action-cards-enhanced {
        grid-template-columns: 1fr;
    }
}