/* ===================================
   Casino Storage Auction - Design System
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

/* CSS Custom Properties */
:root {
    /* Colors - Premium Dark Theme */
    --color-bg-primary: #0a0e1a;
    --color-bg-secondary: #141827;
    --color-bg-tertiary: #1a1f35;

    --color-surface: rgba(26, 31, 53, 0.6);
    --color-surface-hover: rgba(26, 31, 53, 0.8);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-background: linear-gradient(180deg, #0a0e1a 0%, #1a1f35 100%);

    /* Accent Colors */
    --color-accent-purple: #667eea;
    --color-accent-pink: #f5576c;
    --color-accent-gold: #ffd700;
    --color-accent-green: #38ef7d;

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0aec0;
    --color-text-muted: #718096;

    /* Border */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-glow: rgba(102, 126, 234, 0.5);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   Layout
   =================================== */

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.balance-display {
    background: var(--color-surface);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    backdrop-filter: blur(10px);
}

.balance-label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.balance-amount {
    color: var(--color-accent-gold);
    font-size: 1.25rem;
    font-weight: 700;
}

.main-content {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px;
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    padding: var(--spacing-xl);
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: var(--spacing-sm);
}

.nav-link {
    display: block;
    padding: var(--spacing-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--color-surface-hover);
    color: var(--color-text-primary);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
}

/* Special styling for Browse Auctions button */
.nav-link[data-view="auctions"] {
    background-image: url('assets/images/auction-can-background.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border: 2px solid #d4a574;
    box-shadow: 0 1px 3px rgba(212, 165, 116, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Dark overlay over background image */
.nav-link[data-view="auctions"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.nav-link[data-view="auctions"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    /* Start off-screen to the left */
    width: 50%;
    /* Width of the shimmer effect */
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    /* Angle the shimmer */
    pointer-events: none;
    transition: none;
    /* Remove transition from base nav-link */
}

.nav-link[data-view="auctions"]:hover::before {
    animation: shimmer 1.5s infinite;
    /* Apply shimmer animation on hover */
}

@keyframes shimmer {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
        /* Move across to the right */
    }
}

.nav-link[data-view="auctions"]:hover {
    border-color: #ffd700;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.15);
    transform: translateX(5px) scale(1.02);
}

.nav-link[data-view="auctions"].active {
    background-image: url('assets/images/auction-can-background.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border-color: #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
}

.content-area {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    overflow-y: auto;
}

/* ===================================
   View Sections
   =================================== */

.view {
    display: none;
    animation: fadeIn var(--transition-base);
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    margin-bottom: var(--spacing-lg);
}

.view-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.view-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

/* ===================================
   Browse Auctions - Grid
   =================================== */

.auctions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.auction-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: pointer;
}

.auction-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-glow);
}

.auction-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.auction-info {
    padding: var(--spacing-lg);
}

.auction-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.auction-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-value.gold {
    color: var(--color-accent-gold);
}

.stat-value.green {
    color: var(--color-accent-green);
}

.stat-value.purple {
    color: var(--color-accent-purple);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--gradient-green);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: var(--gradient-secondary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

#quick-bid-btn {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    animation: quickBidPulse 2s ease-in-out infinite;
}

@keyframes quickBidPulse {

    0%,
    100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
    }
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===================================
   Auction Gameplay
   =================================== */

.gameplay-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    height: calc(100vh - 280px);
    max-height: 700px;
    min-height: 500px;
}

.garage-view {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garage-doors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    overflow: hidden;
}

.garage-door {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.garage-doors.opening .garage-door {
    animation: slideDoorUp 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDoorUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.garage-interior {
    width: 100%;
    height: 100%;
    background-image: url('assets/images/garage-interior-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* ===================================
   Game View
   =================================== */

.game-view {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
    min-height: 600px;
}

.game-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px);
    pointer-events: none;
}

.game-view::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

.items-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Spawn zone (red area) - approximately bottom 30% of garage */
.spawn-zone {
    position: absolute;
    bottom: 0;
    left: 3%;
    width: 94%;
    height: 30%;
    pointer-events: none;
}

/* Individual item/box positioning */
.garage-item {
    position: absolute;
    transition: all var(--transition-base);
    cursor: pointer;
}

.garage-item:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Cardboard boxes */
.cardboard-box {
    position: absolute;
    width: 120px;
    height: auto;
    z-index: 10;
}

.cardboard-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Valuable items */
.valuable-item {
    position: absolute;
    width: 100px;
    height: auto;
    z-index: 5;
}

.valuable-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Game Menu */
.game-menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow-y: auto;
    max-height: 100%;
}

.game-menu::-webkit-scrollbar {
    width: 6px;
}

.game-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.game-menu::-webkit-scrollbar-thumb {
    background: var(--color-accent-purple);
    border-radius: 3px;
}

.game-menu.frozen {
    pointer-events: none;
    opacity: 0.6;
}

.menu-section {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.menu-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-purple);
}

.bid-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    text-align: center;
    margin: var(--spacing-md) 0;
}

.bid-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.bid-increment-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.btn-increment {
    padding: var(--spacing-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-increment:hover {
    background: var(--color-accent-purple);
    border-color: var(--color-accent-purple);
    transform: scale(1.05);
}

.custom-bid-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
}

.custom-bid-input:focus {
    outline: none;
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.info-value {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ===================================
   Auction Timer
   =================================== */

.auction-timer {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 20;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(15px);
    border: 2px solid var(--color-border-glow);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    min-width: 200px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.7);
    }
}

.timer-phase {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--color-accent-purple);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.auction-timer.bidding .timer-phase {
    color: var(--color-accent-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timer-countdown {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.auction-timer.warning .timer-countdown {
    color: var(--color-accent-pink);
    animation: warningBlink 0.5s ease-in-out infinite;
}

@keyframes warningBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===================================
   Active Bidders Preview
   =================================== */

.bidders-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    max-height: 150px;
    overflow-y: auto;
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.bidders-preview::-webkit-scrollbar {
    width: 6px;
}

.bidders-preview::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.bidders-preview::-webkit-scrollbar-thumb {
    background: var(--color-accent-purple);
    border-radius: 3px;
}

.bidder-avatar {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: default;
}

.bidder-avatar:hover {
    background: rgba(0, 0, 0, 0.5);
}

.bidder-avatar.active-bidder {
    border-color: var(--color-accent-gold);
    background: rgba(255, 215, 0, 0.15);
    animation: bidderPulse 0.5s ease-in-out;
}

@keyframes bidderPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.bidder-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.bidder-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================================
   Notifications
   =================================== */

.notification {
    position: fixed;
    top: 100px;
    right: var(--spacing-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideInRight var(--transition-base);
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--color-accent-green);
}

.notification.error {
    border-left: 4px solid var(--color-accent-pink);
}

.notification.info {
    border-left: 4px solid var(--color-accent-purple);
}

.notification-title {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.notification-message {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

.mt-1 {
    margin-top: var(--spacing-md);
}

.mt-2 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-md);
}

.mb-2 {
    margin-bottom: var(--spacing-lg);
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Desktops (1920px+) */
@media (min-width: 1920px) {
    .gameplay-container {
        max-height: 800px;
    }

    .view-title {
        font-size: 3rem;
    }
}

/* Standard Desktops (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .gameplay-container {
        height: calc(100vh - 260px);
        max-height: 700px;
    }
}

/* Smaller Desktops (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .gameplay-container {
        height: calc(100vh - 250px);
        max-height: 650px;
    }

    .view-title {
        font-size: 2.25rem;
    }

    .menu-title {
        font-size: 1.125rem;
    }
}

/* Compact Desktops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .gameplay-container {
        height: calc(100vh - 240px);
        max-height: 600px;
    }

    .view-title {
        font-size: 2rem;
    }

    .content-area {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .bidders-preview {
        max-height: 120px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1024px) {
    .gameplay-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .garage-view {
        min-height: 500px;
    }

    .game-menu {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .auctions-grid {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu {
        display: flex;
        overflow-x: auto;
        gap: var(--spacing-sm);
    }

    .nav-item {
        margin-bottom: 0;
    }
}

/* ===================================
   Wallet / Deposit & Withdrawal Page
   =================================== */

.wallet-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1400px;
}

.wallet-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    color: var(--color-accent-gold);
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: var(--spacing-xl);
}

.methods-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.method-btn {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.method-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-purple);
    transform: translateY(-2px);
}

.method-btn.active {
    background: var(--gradient-primary);
    border-color: var(--color-accent-purple);
    box-shadow: var(--shadow-glow);
}

.method-icon {
    font-size: 1.5rem;
}

.method-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Transaction Form */
.transaction-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

/* Quick Amounts */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
}

.quick-amount-btn {
    padding: var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.quick-amount-btn:hover {
    background: var(--color-accent-purple);
    border-color: var(--color-accent-purple);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.quick-amount-btn:active {
    transform: scale(0.98);
}

/* Transaction Info */
.transaction-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.transaction-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.transaction-info strong {
    color: var(--color-text-primary);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .wallet-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .methods-grid {
        grid-template-columns: 1fr;
    }

    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Crypto Deposit Page
   =================================== */

.deposit-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Step Cards */
.deposit-step {
    display: none;
    animation: fadeIn var(--transition-base);
}

.deposit-step.active {
    display: block;
}

.step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    backdrop-filter: blur(10px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Form Groups */
.form-group-large {
    margin-bottom: var(--spacing-xl);
}

.form-group-large label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.form-input-large {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-base);
}

.form-input-large:focus {
    outline: none;
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.input-helper {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Quick Amounts */
.quick-amounts-large {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.btn-large {
    font-size: 1.125rem;
    padding: var(--spacing-lg) var(--spacing-2xl);
}

/* Chain Selection */
.chain-selection {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.chain-btn {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

.chain-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-purple);
    transform: translateX(5px);
}

.chain-btn.active {
    border-color: var(--color-accent-gold);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(246, 211, 101, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.chain-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chain-info {
    flex: 1;
}

.chain-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.chain-network {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.chain-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Step Actions */
.step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-purple);
}

/* Deposit Summary */
.deposit-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.summary-value {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Wallet Address */
.wallet-address-container {
    margin-bottom: var(--spacing-xl);
}

.wallet-address-container label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.wallet-address-box {
    position: relative;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-accent-gold);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.wallet-address-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--color-accent-gold);
    word-break: break-all;
}

.copy-btn {
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.address-warning {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 87, 108, 0.1);
    border: 1px solid rgba(255, 87, 108, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-accent-pink);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* QR Code */
.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Info Box */
.deposit-info-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.deposit-info-box p {
    margin: var(--spacing-xs) 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
    .quick-amounts-large {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-actions {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Authentication & Account Styles
   =================================== */

/* Header Auth Controls */
.auth-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-login {
    background: var(--gradient-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-account {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-account:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent-purple);
}

.account-icon {
    font-size: 1.25rem;
}

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    top: 70px;
    right: var(--spacing-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-username {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.dropdown-email {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: transparent;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.dropdown-item:hover {
    background: var(--color-surface-hover);
}

/* Login/Register Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color var(--transition-base);
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--color-border);
}

.modal-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--spacing-md);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.modal-tab.active {
    color: var(--color-accent-purple);
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.modal-tab:hover {
    color: var(--color-text-primary);
}

.modal-content {
    display: none;
}

.modal-content.active {
    display: block;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* Account Dashboard */
.account-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.dashboard-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.dashboard-card .card-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.dashboard-card .card-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Profile Card */
.profile-content {
    display: flex;
    gap: var(--spacing-lg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.profile-value {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Balance Card */
.balance-overview {
    text-align: center;
}

.balance-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.balance-main-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.balance-main-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-gold);
}

.balance-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn-small {
    font-size: 0.875rem;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Transactions Table */
.transactions-card {
    grid-column: 1 / -1;
}

.transactions-table {
    overflow-x: auto;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.tx-type {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tx-deposit {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.tx-withdrawal {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

.tx-bet {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.tx-win {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.tx-positive {
    color: #34d399;
}

.tx-negative {
    color: #ff576c;
}

/* Hoverable item in auction */
.garage-item.hoverable {
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.garage-item.hoverable:hover {
    transform: scale(1.15) rotate(0deg) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
    z-index: 100 !important;
}
/* Auction Tier Badge */
.auction-tier-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 10;
}

.auction-card {
    position: relative;
}

.auction-description {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ===================================
   6-Slot Grid Layout for Auction Items
   =================================== */

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.item-slot {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
}

.item-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 2px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.item-content:hover {
    transform: scale(1.05);
}

.item-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.2;
}

.item-value {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.item-rarity {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Rarity-based styling */
.rarity-common .item-content { border-color: #6B7280; }
.rarity-uncommon .item-content { border-color: #10B981; }
.rarity-rare .item-content { border-color: #F59E0B; }


/* ===================================
   6 Rarity Tier Styling
   =================================== */

/* Trash Rarity */
.rarity-trash .item-content {
    border-color: #6B7280;
    background: linear-gradient(145deg, #374151, #1F2937);
}
.rarity-trash .item-rarity { color: #9CA3AF; }

/* Common Rarity */
.rarity-common .item-content {
    border-color: #9CA3AF;
    background: linear-gradient(145deg, #1F2937, #111827);
}
.rarity-common .item-rarity { color: #D1D5DB; }

/* Uncommon Rarity */
.rarity-uncommon .item-content {
    border-color: #10B981;
    background: linear-gradient(145deg, #064E3B, #022C22);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.rarity-uncommon .item-rarity { color: #34D399; }

/* Rare Rarity */
.rarity-rare .item-content {
    border-color: #3B82F6;
    background: linear-gradient(145deg, #1E3A8A, #1E40AF);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.rarity-rare .item-rarity { color: #60A5FA; }

/* Epic Rarity */
.rarity-epic .item-content {
    border-color: #A855F7;
    background: linear-gradient(145deg, #581C87, #7C3AED);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    animation: epicGlow 2s ease-in-out infinite;
}
.rarity-epic .item-rarity { color: #C084FC; }

/* Legendary Rarity */
.rarity-legendary .item-content {
    border-color: #F59E0B;
    background: linear-gradient(145deg, #78350F, #B45309);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    animation: legendaryGlow 1.5s ease-in-out infinite;
}
.rarity-legendary .item-rarity { color: #FBBF24; font-weight: 800; }

@keyframes epicGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.7); }
}

@keyframes legendaryGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 45px rgba(245, 158, 11, 0.9); }
}


/* Mystery Value Messages */
.item-mystery-value {
    font-size: 0.75rem;
    font-style: italic;
    color: #A78BFA;
    text-align: center;
    padding: 4px 8px;
    min-height: 20px;
    opacity: 0.9;
}

.rarity-trash .item-mystery-value { color: #9CA3AF; }
.rarity-common .item-mystery-value { color: #D1D5DB; }
.rarity-uncommon .item-mystery-value { color: #34D399; }
.rarity-rare .item-mystery-value { color: #60A5FA; }
.rarity-epic .item-mystery-value { color: #E879F9; font-weight: 600; }
.rarity-legendary .item-mystery-value { color: #FBBF24; font-weight: 700; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }


/* ===================================
   Auction Results Popup
   =================================== */

.auction-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auction-results-overlay.visible {
    opacity: 1;
}

.auction-results-popup {
    background: linear-gradient(145deg, #1a1a3e, #0d0d2b);
    border: 2px solid #3B4F7A;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.results-header {
    text-align: center;
    margin-bottom: 20px;
}

.results-header h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.results-status {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-block;
}

.results-status.result-win {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.results-status.result-loss {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
}

.results-summary {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.results-total {
    margin-bottom: 10px;
}

.total-label {
    color: #9CA3AF;
    font-size: 1rem;
    margin-right: 8px;
}

.total-value {
    color: #FBBF24;
    font-size: 1.8rem;
    font-weight: 700;
}

.results-profit {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #D1D5DB;
}

.profit-value.positive { color: #10B981; }
.profit-value.negative { color: #EF4444; }

.results-message {
    color: #9CA3AF;
    font-style: italic;
}

.results-divider {
    color: #fff;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #3B4F7A;
}

.results-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}

.result-item-emoji {
    font-size: 1.2rem;
    margin-right: 10px;
    min-width: 30px;
}

.result-item-name {
    flex: 1;
    color: #D1D5DB;
    font-size: 0.9rem;
}

.result-item-value {
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Rarity colors for result items */
.result-item-trash { border-left: 3px solid #6B7280; }
.result-item-trash .result-item-value { color: #9CA3AF; }

.result-item-common { border-left: 3px solid #9CA3AF; }
.result-item-common .result-item-value { color: #D1D5DB; }

.result-item-uncommon { border-left: 3px solid #10B981; }
.result-item-uncommon .result-item-value { color: #34D399; }

.result-item-rare { border-left: 3px solid #3B82F6; }
.result-item-rare .result-item-value { color: #60A5FA; }

.result-item-epic { border-left: 3px solid #A855F7; background: rgba(168, 85, 247, 0.1); }
.result-item-epic .result-item-value { color: #C084FC; }

.result-item-legendary { border-left: 3px solid #F59E0B; background: rgba(245, 158, 11, 0.15); }
.result-item-legendary .result-item-value { color: #FBBF24; font-weight: 700; }

.results-close-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
}


/* ===================================
   Trezor Credits Currency
   =================================== */

.currency-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 6px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.balance-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FBBF24;
}

.balance-label {
    font-size: 0.85rem;
    color: #F59E0B;
    font-weight: 600;
}


/* ===================================
   Solana USDC Deposit Styles
   =================================== */

.chain-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chain-logo, .token-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.selected-chain {
    cursor: default;
    border: 2px solid #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.deposit-conversion-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.conversion-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

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

.conversion-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.conversion-value.highlight {
    color: #FBBF24;
}

.conversion-arrow {
    font-size: 1.5rem;
    color: #8B5CF6;
    padding: 5px 0;
}

.conversion-rate {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 10px;
    opacity: 0.7;
}

.mini-currency-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}


/* ===================================
   Deposit Status Styles
   =================================== */

.deposit-status-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.deposit-status-box .deposit-id {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.deposit-status-box .label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.deposit-status-box .value {
    font-family: monospace;
    color: var(--color-text);
    font-size: 0.85rem;
}

.deposit-status-box .deposit-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-indicator.pending {
    background: #F59E0B;
}

.status-indicator.confirmed {
    background: #10B981;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.deposit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
}

.deposit-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.deposit-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.deposit-status-badge.confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.no-deposits {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 20px;
}

