:root {
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --accent-primary: #10b981;
    /* Emerald 500 */
    --accent-hover: #34d399;
    /* Emerald 400 */
    --accent-danger: #ef4444;
    /* Red 500 */
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --sidebar-width: 280px;
    --header-height: 80px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'IBM Plex Sans Condensed', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 50;
    transition: var(--transition);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    height: 50px;
}

.close-sidebar-btn {
    display: none;
    /* Mobile only */
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-highlight);
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links li a:hover {
    background: var(--glass-highlight);
    color: var(--text-main);
}

.nav-links li.active a {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sidebar-footer {
    margin-top: auto;
}

.logout-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
}

.menu-btn {
    display: none;
    /* Mobile only */
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.balance-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FDE047 0%, #EAB308 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #422006;
    font-size: 0.9rem;
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-info span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.balance-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.add-money-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-money-btn:hover {
    background: var(--accent-hover);
    transform: rotate(90deg);
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Scrollbar Styling */
.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Loading & Empty States */
.loading-container,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state img {
    width: 120px;
    opacity: 0.5;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.hidden {
    display: none !important;
}

/* Grid Layout */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Slightly smaller for inventory items */
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /* Inventory items stack vertically */
    gap: 1rem;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square for pets */
    height: auto;
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pet-name,
.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.positive {
    color: var(--accent-primary);
}

.negative {
    color: var(--accent-danger);
}

/* Badges */
.pet-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.badge-n {
    background: #33d300;
}

.badge-m {
    background: #892eed;
}

.badge-f {
    background: #1a68e6;
}

.badge-r {
    background: #ff267b;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-card {
    background: #1e293b;
    width: 90%;
    max-width: 600px;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card.mini {
    max-width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.modal-header p {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

input,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.redeem-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: transparent;
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.full-width {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 100%;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .close-sidebar-btn {
        display: block;
    }

    .menu-btn {
        display: block;
    }

    .top-header {
        padding: 0 1rem;
    }

    .content-area {
        padding: 1rem;
        gap: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   LUCKY ROOM STYLES
   ========================================= */

/* Tabs */
.lucky-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.lucky-tab {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.lucky-tab:hover {
    background: var(--glass-highlight);
    color: var(--text-main);
}

.lucky-tab.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Game Sections */
.game-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-header {
    margin-bottom: 2rem;
}

.game-header h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

/* Case Roller */
.case-roller-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2px;
    background: linear-gradient(180deg, #fbbf24, #b45309);
    /* Gold border effect */
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

.case-roller-container {
    width: 100%;
    height: 200px;
    /* Taller for better view */
    background: #0f172a;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
}

/* Center Line Indicator */
.case-roller-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fbbf24;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #fbbf24;
    z-index: 30;
    opacity: 0.8;
}

.case-pointer-top {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 25px solid #fbbf24;
    z-index: 40;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.case-pointer-bottom {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 25px solid #fbbf24;
    z-index: 40;
    filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.5));
}

.case-strip {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
}

.case-item {
    min-width: 160px;
    /* Wider cards */
    height: 140px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-bottom: 6px solid #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.2s;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhancing Rarity Colors on Items */
.case-item.common {
    border-bottom-color: #94a3b8;
    box-shadow: inset 0 -20px 20px -10px rgba(148, 163, 184, 0.1);
}

.case-item.uncommon {
    border-bottom-color: #3b82f6;
    box-shadow: inset 0 -20px 20px -10px rgba(59, 130, 246, 0.15);
}

.case-item.rare {
    border-bottom-color: #10b981;
    box-shadow: inset 0 -20px 20px -10px rgba(16, 185, 129, 0.15);
}

.case-item.ultra_rare {
    border-bottom-color: #ef4444;
    box-shadow: inset 0 -20px 20px -10px rgba(239, 68, 68, 0.15);
}

.case-item.legendary {
    border-bottom-color: #fbbf24;
    box-shadow: inset 0 -20px 20px -10px rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.case-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.case-item p {
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Win Modal Specifics */
.win-card {
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 80px rgba(251, 191, 36, 0.4) !important;
    min-width: 400px;
}

.win-item-display {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.win-item-display img {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.3));
}

.win-item-display h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}



/* Wheel */
.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.wheel-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ef4444 0deg 90deg,
            #3b82f6 90deg 180deg,
            #22c55e 180deg 270deg,
            #eab308 270deg 360deg);
    border: 5px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Coinflip */
.coinflip-container {
    display: flex;
    gap: 2rem;
}

.coin-side {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.coin-side.active {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

.coin-side i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Upgrader */
.upgrader-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.upgrade-slot {
    width: 100px;
    height: 100px;
    border: 2px dashed var(--glass-border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.upgrade-chance {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

.upgrade-arrow {
    font-size: 2rem;
    color: var(--text-muted);
}

/* Plinko */
.plinko-board-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.plinko-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.plinko-row span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
}

.plinko-buckets {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bucket {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
}

.bucket.loss {
    background: var(--accent-danger);
    color: white;
}

.bucket.win {
    background: var(--accent-primary);
    color: white;
}

/* Case Selection Grid */
/* Case Selection Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    padding: 0 1rem;
}

.case-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    /* Blue-ish glow by default */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.case-card:hover::before {
    opacity: 1;
}

.case-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.case-card:hover img {
    transform: scale(1.15) rotate(5deg);
}

.case-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    z-index: 2;
}

.case-price {
    background: #0f172a;
    color: #10b981;
    /* Emerald Green */
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    z-index: 2;
}

/* Back Button */
.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-btn:hover {
    color: white;
    transform: translateY(-50%) translateX(-3px);
}

/* Odds Table */
.odds-table-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto 0;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.odds-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    /* Gap between rows */
}

.odds-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.odds-table td {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    first-child: border-top-left-radius: 8px;
    first-child: border-bottom-left-radius: 8px;
    last-child: border-top-right-radius: 8px;
    last-child: border-bottom-right-radius: 8px;
    color: #e2e8f0;
}

.odds-table tr:hover td {
    background: rgba(51, 65, 85, 0.6);
}

.percent-bar {
    display: inline-block;
    height: 8px;
    border-radius: 4px;
    margin-right: 0.8rem;
    box-shadow: 0 0 10px currentColor;
    /* Glow effect */
}

/* Specific text colors */
.text-common {
    color: #94a3b8;
}

.text-uncommon {
    color: #60a5fa;
}

.text-rare {
    color: #34d399;
}

.text-ultra_rare {
    color: #f87171;
}

.text-legendary,
.text-mythical,
.text-shadow_dragon,
.text-mega_neon {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    font-weight: 700;
}