/* ================================
   TIME ROULETTE MOBILE V3 - STYLES
   ================================ */

/* ================================
   1. IMPORTS & FONTS
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

/* ================================
   2. CSS VARIABLES & ROOT
   ================================ */
:root {
    /* Layout Variables */
    --header-height: 60px;
    --button-height: 55px;
    --title-block-height: 120px;
    --margin-vertical: 25px;
    --button-margin-bottom: 25px;
    
    /* Color Scheme */
    --primary-red: #DC143C;
    --dark-red: #8B0000;
    --metallic: #C0C0C0;
    --light-metallic: #E5E4E2;
    --background: #000000;
    --glass-bg: rgba(28, 28, 28, 0.95);
    
    /* Animation Timings */
    --spin-duration: 4s;
    --popup-transition: 0.4s;
    --fade-transition: 1s;
}

/* ================================
   3. RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    height: 100svh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

/* ================================
   4. LUXURY LOADER
   ================================ */
.luxury-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity var(--fade-transition) ease-out;
}

.luxury-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.watch-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.watch-face {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.watch-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 10;
}

.hour-marker {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
    width: 2px;
    height: 12px;
    top: 8px;
    left: 50%;
    margin-left: -1px;
    transform-origin: 1px 52px;
}

.hour-marker:nth-child(1) { transform: rotate(0deg); }
.hour-marker:nth-child(2) { transform: rotate(90deg); }
.hour-marker:nth-child(3) { transform: rotate(180deg); }
.hour-marker:nth-child(4) { transform: rotate(270deg); }

.watch-hand {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transform-origin: bottom center;
    top: 50%;
    left: 50%;
}

.hour-hand {
    width: 3px;
    height: 30px;
    margin: -30px 0 0 -1.5px;
}

.minute-hand {
    width: 2px;
    height: 40px;
    margin: -40px 0 0 -1px;
}

.loader-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ================================
   5. APP CONTAINER & INTRO
   ================================ */
.app-container {
    opacity: 0;
    transition: opacity var(--fade-transition) ease-out;
}

.app-container.loaded {
    opacity: 1;
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
    opacity: 1;
    transition: all var(--fade-transition) ease-out;
}

.intro-screen.moving-to-position {
    z-index: 1;
}

.intro-screen.final-hidden {
    z-index: -1;
    pointer-events: none;
}

.intro-content {
    position: absolute;
    height: var(--title-block-height);
    width: 100%;
    text-align: center;
    left: 0;
    top: calc(50vh - calc(var(--title-block-height) / 2));
    transition: all var(--fade-transition) ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    opacity: 1;
    transform: scale(1);
}

.intro-content.moving-to-position {
    top: calc(var(--header-height) + env(safe-area-inset-top, 0) + var(--margin-vertical));
    filter: none;
}

.intro-subtitle {
    color: var(--primary-red);
    font-size: 0.75em;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    transition: all var(--fade-transition) ease-out;
}

.intro-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.8px;
    line-height: 1.1;
    transition: all var(--fade-transition) ease-out;
}

.intro-model {
    background: linear-gradient(90deg, #71797E 0%, #71797E 30%, var(--metallic) 40%, var(--light-metallic) 50%, var(--metallic) 60%, #71797E 70%, #71797E 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: all var(--fade-transition) ease-out;
}

/* ================================
   6. BACKGROUND VIDEO
   ================================ */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fade-transition) ease-in-out;
}

.background-video.visible {
    opacity: 1;
}

.background-video.faded {
    opacity: 0.2;
}

/* ================================
   7. MAIN CONTENT & HEADER
   ================================ */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--fade-transition) ease-out;
}

.main-content.visible {
    opacity: 1;
}

.top-header {
    position: fixed;
    top: env(safe-area-inset-top, 0);
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    padding: 8px;
    border-radius: 12px;
}

.logo-section:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logo-section:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}

.back-arrow {
    font-size: 1.6em;
    color: rgba(229, 228, 226, 0.9);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.logo-section:hover .back-arrow {
    transform: translateX(-2px);
}

.logo-text {
    font-size: 1.1em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-metallic), var(--metallic));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.credits-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 6px;
}

.credits-amount {
    color: var(--metallic);
    font-size: 1.2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar:active {
    transform: scale(0.95);
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.dropdown-arrow {
    color: rgba(229, 228, 226, 0.7);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.user-avatar:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* ================================
   8. WHEEL SECTION
   ================================ */
.wheel-section {
    position: absolute;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0) + var(--margin-vertical) + var(--title-block-height) + 
        (
            (100svh - var(--header-height) - env(safe-area-inset-top, 0) - var(--margin-vertical) - var(--title-block-height) - var(--button-height) - var(--button-margin-bottom) - env(safe-area-inset-bottom, 0)) - 
            min(85vw, calc(100svh - var(--header-height) - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - var(--title-block-height) - var(--button-height) - var(--margin-vertical) - var(--button-margin-bottom) - 40px))
        ) / 2 - 14px
    );
    left: 50%;
    transform: translateX(-50%);
    width: min(85vw, calc(100svh - var(--header-height) - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - var(--title-block-height) - var(--button-height) - var(--margin-vertical) - var(--button-margin-bottom) - 40px));
    height: min(85vw, calc(100svh - var(--header-height) - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - var(--title-block-height) - var(--button-height) - var(--margin-vertical) - var(--button-margin-bottom) - 40px));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--fade-transition) ease-out;
}

.wheel-section.visible {
    opacity: 1;
}

.wheel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.wheel-svg {
    border-radius: 50%;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/* ================================
   9. SVG WHEEL STYLES
   ================================ */
.hour-wheel, .minute-wheel, .second-wheel { 
    fill: none; 
    stroke: none; 
}

.hour-text, .minute-text, .second-text { 
    font-family: 'Inter', sans-serif; 
    fill: rgba(255, 255, 255, 0.95); 
    text-anchor: middle; 
    dominant-baseline: central; 
}

.hour-text { 
    font-size: 18px; 
    font-weight: 700; 
}

.minute-text { 
    font-size: 14px; 
    font-weight: 600; 
}

.second-text { 
    font-size: 12px; 
    font-weight: 500; 
}

.arrow-pointer { 
    fill: var(--primary-red); 
    stroke: white; 
    stroke-width: 2; 
}

/* ================================
   10. MOBILE ACTIONS
   ================================ */
.mobile-actions {
    position: absolute;
    bottom: calc(var(--button-margin-bottom) + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: var(--button-height);
    opacity: 0;
    transition: opacity var(--fade-transition) ease-out;
}

.mobile-actions.bet-active {
    left: 20px;
    right: 20px;
    width: auto;
    transform: none;
    transition: none;
}

.mobile-actions.visible {
    opacity: 1;
}

.bet-button {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border: none;
    color: white;
    padding: 12px 18px;
    font-size: 1em;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 22px rgba(220, 20, 60, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-button:active {
    transform: scale(0.98);
}

.bet-button:disabled {
    background: linear-gradient(135deg, #666, #888);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bet-active-block {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, var(--glass-bg) 100%);
    border: 1px solid rgba(192, 192, 192, 0.2);
    color: white;
    padding: 12px 18px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    border-radius: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.bet-active-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.1), transparent);
    will-change: left;
}

.bet-active-text {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    font-weight: 700;
}

/* ================================
   11. BET POPUP SYSTEM
   ================================ */
.bet-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 0 20px env(safe-area-inset-bottom, 0) 20px;
    opacity: 0;
    transition: opacity var(--popup-transition) ease;
}

.bet-popup {
    background: var(--background);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 25px 25px 0 0;
    padding: 30px 25px 30px 25px;
    width: 100%;
    max-width: 420px;
    height: 520px;
    transform: translateY(100%);
    transition: transform var(--popup-transition) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bet-popup.show {
    transform: translateY(0);
}

.popup-header {
    text-align: center;
    margin-bottom: 15px;
    flex-shrink: 0;
    height: 35px;
}

.popup-title {
    color: #FFFFFF;
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ================================
   12. REWARDS PREVIEW
   ================================ */
.rewards-preview {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, var(--glass-bg) 100%);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    margin: 0 0 44px 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 120px;
}

.rewards-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.1), transparent);
    will-change: left;
}

.rewards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px 8px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 6px 4px;
}

.reward-title {
    font-size: 0.65em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    color: rgba(192, 192, 192, 0.8);
    margin-bottom: 6px;
}

.reward-value {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

/* ================================
   13. WHEEL PICKERS
   ================================ */
.pickers-section {
    flex-shrink: 0;
    height: 140px;
    margin-bottom: 25px;
    position: relative;
}

.pickers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 8px;
    position: relative;
}

.time-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8em;
    font-weight: 300;
    font-family: 'Inter', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    user-select: none;
}

.picker-labels {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 0;
}

.picker-label {
    font-size: 0.65em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(192, 192, 192, 0.8);
    line-height: 1;
}

.wheel-picker {
    flex: 1;
    height: 120px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 100% at center, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.picker-scroll {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 40px 0;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
}

.picker-scroll::-webkit-scrollbar {
    display: none;
}

.picker-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    scroll-snap-align: center;
    transition: all 0.3s ease;
    font-family: 'Inter', monospace;
    opacity: 0.2;
}

.picker-item.selected {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.4em;
    transform: scale(1.1);
    opacity: 1.0;
}

.picker-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    margin-top: -20px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 15%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0.03) 85%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.picker-indicator::before,
.picker-indicator::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 1.0) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 100%);
}

.picker-indicator::before {
    top: 0;
}

.picker-indicator::after {
    bottom: 0;
}

/* ================================
   14. CONFIRM BET BUTTON
   ================================ */
.confirm-bet-section {
    flex-shrink: 0;
    height: 50px;
    margin-top: auto;
}

.confirm-bet-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border: none;
    color: white;
    padding: 14px 25px;
    font-size: 1.05em;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    touch-action: manipulation;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 8px;
}

.confirm-bet-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.6);
}

.confirm-bet-button:hover {
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red), var(--metallic));
}

/* ================================
   15. RESULT OVERLAY SYSTEM
   ================================ */
.new-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.new-result-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, var(--glass-bg) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px 25px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.new-result-card.show {
    transform: scale(1);
}

.new-result-win {
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.3);
}

.new-result-lose {
    border-color: rgb(220 20 60 / 43%);
    border-width: 3px;
    box-shadow: 0 20px 60px rgba(244, 67, 54, 0.2);
}

.new-result-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-result-icon .material-icons {
    font-size: inherit;
}

.new-result-win .new-result-icon { color: #4CAF50; }
.new-result-lose .new-result-icon { color: var(--primary-red); }

.new-result-title {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-result-win .new-result-title { color: #4CAF50; }
.new-result-lose .new-result-title { color: var(--primary-red); }

.new-comparison-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin: 20px 0;
}

.new-comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.new-comparison-row:last-child {
    margin-bottom: 0;
}

.new-comparison-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.new-comparison-values {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 2;
    justify-content: flex-end;
}

.new-time-value {
    font-weight: 700;
    font-family: 'Inter', monospace;
    font-size: 1em;
    padding: 6px 0px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    text-align: center;
    display: inline-block;
    line-height: 1;
}

.new-time-match {
    color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

.new-time-no-match {
    color: var(--primary-red) !important;
    background: #dc143c0f !important;
    border: 1px solid rgb(220 20 60 / 40%) !important;
}

.new-explanation-section {
    margin: 20px 0;
    padding: 0 10px;
}

.new-explanation-text {
    font-size: 1em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 10px;
}

.new-close-result {
    background: linear-gradient(135deg, #2C2C2C, #1C1C1C);
    border: none;
    color: white;
    padding: 15px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    touch-action: manipulation;
}

.new-close-result:hover {
    background: linear-gradient(135deg, #3C3C3C, #2C2C2C);
    transform: translateY(-1px);
}

.new-close-result:active {
    transform: scale(0.98);
}



/* ================================
   SECTIONS NAVIGATION
   ================================ */

.sections-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.app-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.app-section.active {
    transform: translateX(0);
}

.app-section.slide-out-left {
    transform: translateX(-100%);
}

/* Section Header */
.section-header {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    padding: env(safe-area-inset-top, 0) 20px 0 20px;
    padding-top: calc(env(safe-area-inset-top, 0) + 15px);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.back-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.back-button:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.2);
}

.section-title {
    flex: 1;
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    margin: 0 15px;
}

.section-stats {
    color: var(--metallic);
    font-size: 0.9em;
    font-weight: 600;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 8px 20px 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.header-action-btn:active {
    transform: scale(0.95);
}

/* Section Content */
.section-content {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}


/* ================================
   GAME TICKET HISTORY (Modern Betting Style)
   ================================ */

.game-ticket {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

/* Ticket Header */
.ticket-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
}

.ticket-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.ticket-time {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-win {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-loss {
    background: rgba(244, 67, 54, 0.1);
    color: var(--primary-red);
    border: 1px solid #dc143c4a;
}

/* Main Content */
.ticket-content {
    padding: 16px;
}

/* Times Comparison */
.times-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.time-group {
    flex: 1;
    max-width: 45%;
}

.section-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

.time-chip {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    min-width: 32px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    font-family: 'Inter', monospace;
}

.time-chip.match {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.time-divider {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    font-size: 0.9em;
}

.vs-separator {
    color: rgba(255, 255, 255, 0.2); /* Plus transparent */
    font-weight: 700;
    font-size: 0.7em;
    text-transform: uppercase;
    flex: 0 0 auto;
    padding: 0 4px;
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center;
    align-self: flex-end; /* Aligne avec les numéros */
    margin-bottom: 8px; /* Ajuste pour être au niveau des time-chips */
}

/* Payout Section */
.payout-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.payout-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.payout-label {
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.payout-value {
    font-size: 1em;
    font-weight: 700;
    white-space: nowrap;
	color: rgba(255, 255, 255, 0.9); /* Couleur blanche par défaut */
}

.bet-value {
    color: rgba(255, 255, 255, 0.7);
}

.win-value {
    color: #4CAF50;
}

.loss-value {
    color: var(--primary-red);
}

.payout-divider {
    width: 1px;
    height: 30px;
    background: rgba(192, 192, 192, 0.1);
    flex: 0 0 1px;
}

/* Mobile Optimization */
@media (max-width: 400px) {
    .ticket-status {
        font-size: 0.6em;
        padding: 3px 8px;
    }
    
    .ticket-content {
        padding: 14px;
    }
    
    .time-chip {
        padding: 5px 6px;
        font-size: 0.85em;
        min-width: 28px;
    }
    
    .section-label {
        font-size: 0.6em;
    }
    
    .payout-value {
        font-size: 0.9em;
    }
    
    .payout-label {
        font-size: 0.55em;
    }
}

/* Very small screens */
@media (max-width: 350px) {
    .times-comparison {
        flex-direction: column;
        gap: 16px;
    }
    
    .time-group {
        max-width: 100%;
        width: 100%;
    }
    
    .vs-separator {
        display: none;
    }
    
    .time-display {
        justify-content: center;
    }
}


/* ================================
   GAME HISTORY STYLES
   ================================ */

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s;
	margin-bottom: 12px;
}

.history-card.win {
    border-color: rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, var(--glass-bg) 100%);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.history-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.85em;
}

.history-result-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.win-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.loss-badge {
    background: rgba(244, 67, 54, 0.2);
    color: var(--primary-red);
}

.history-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.history-time-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-time {
    font-family: 'Inter', monospace;
    font-size: 1.1em;
    font-weight: 700;
    color: white;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.history-bet {
    color: var(--primary-red);
    font-weight: 600;
}

.history-win {
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.1em;
}

/* ================================
   DEPOSIT TICKETS
   ================================ */

.deposit-ticket {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

/* Deposit Header */
.deposit-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
}

.deposit-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deposit-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.deposit-time {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
}

.deposit-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Deposit Content */
.deposit-content {
    padding: 16px;
}

.deposit-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.deposit-amount-section,
.deposit-type-section {
    flex: 1;
}

.deposit-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.deposit-amount {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
}

.deposit-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid;
}

.deposit-type .material-icons {
    font-size: 18px;
}

/* Type Colors */
.type-bonus {
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.type-cb {
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.type-wire {
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.type-crypto {
    background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.type-default {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Description */
.deposit-description {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.deposit-note {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Footer */
.deposit-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(192, 192, 192, 0.05);
    text-align: center;
}

.deposit-by {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary Cards (at the top of deposits page) */
.deposits-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.summary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.summary-label {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #4CAF50;
}

/* Mobile Optimization */
@media (max-width: 400px) {
    .deposit-main {
        flex-direction: column;
        gap: 16px;
    }
    
    .deposit-amount {
        font-size: 1.5em;
    }
    
    .deposit-type {
        font-size: 0.75em;
        padding: 6px 12px;
    }
    
    .deposit-type .material-icons {
        font-size: 16px;
    }
}

/* Empty State for Deposits */
#depositsEmptyState {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

#depositsEmptyState .empty-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

#depositsEmptyState .empty-text {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

#depositsEmptyState .empty-action {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}


/* ================================
   DEPOSITS STYLES
   ================================ */

.deposits-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(139, 0, 0, 0.05) 100%);
}

.summary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.summary-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.75em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.summary-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.3em;
    font-weight: 700;
    color: white;
}

.deposits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deposit-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s;
}

.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.deposit-amount {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffffff;
}

.deposit-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.deposit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

.deposit-type {
    text-transform: uppercase;
    font-weight: 600;
}

/* ================================
   PAGINATION
   ================================ */

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:active {
    transform: scale(0.9);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    font-weight: 600;
}

/* ================================
   EMPTY STATES
   ================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 200px);
    padding: 40px;
    text-align: center;
}

.empty-icon {
    font-size: 80px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.empty-text {
    color: rgba(255,255,255,0.6);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.empty-action {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* ================================
   DEPOSIT MODAL
   ================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.amount-currency {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 1.1em;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2em;
    font-weight: 700;
    color: white;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.deposit-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.deposit-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.deposit-method-btn.active {
    border-color: var(--primary-red);
    background: rgba(220, 20, 60, 0.1);
    color: white;
}

.deposit-amount-input {
    margin-bottom: 24px;
}

.deposit-amount-input label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 12px;
    padding: 12px;
}

.amount-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    outline: none;
}

.deposit-info {
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
    display: flex;
    gap: 12px;
}

.btn-secondary,
.btn-primary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

/* Loading States */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#gameSection {
    background: transparent !important;
}

/* Withdrawals styles */
.withdrawals-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(139, 0, 0, 0.05) 100%);
}

.withdrawal-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s;
}

.withdrawal-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.status-processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-cancelled {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.status-rejected {
    background: rgba(244, 67, 54, 0.2);
    color: var(--primary-red);
}

.balance-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.balance-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.withdrawal-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.withdrawal-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.withdrawal-method-btn.active {
    border-color: var(--primary-red);
    background: rgba(220, 20, 60, 0.1);
    color: white;
}

.account-details-input input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 1em;
    margin-top: 8px;
}

.withdrawal-info {
    padding: 16px;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
}

/* ================================
   WITHDRAWAL TICKETS
   ================================ */

.withdrawal-ticket {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(192, 192, 192, 0.1);
}

/* Withdrawal Header */
.withdrawal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
	margin-bottom: 12px;
}

.withdrawal-date-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.withdrawal-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.withdrawal-time {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
}

.withdrawal-status {
padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Status Colors for Withdrawals */
.status-processing {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: var(--primary-red);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Withdrawal Content */
.withdrawal-content {
    padding: 16px;
}

.withdrawal-main {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.withdrawal-amount-section,
.withdrawal-method-section {
    flex: 1;
}

.withdrawal-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.withdrawal-amount {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
}

.withdrawal-method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid;
}

.withdrawal-method .material-icons {
    font-size: 18px;
}

/* Method Colors */
.method-bank {
background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.method-paypal {
background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.method-crypto {
background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.method-wire {
background: rgb(255 255 255 / 10%);
    color: #ffffff;
    border-color: rgb(255 255 255 / 30%);
}

.method-default {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Cancel Button */
.withdrawal-actions {
    margin-bottom: 12px;
}

.cancel-withdrawal-btn {
    width: 100%;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: var(--primary-red);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancel-withdrawal-btn:active {
    transform: scale(0.98);
    background: rgba(244, 67, 54, 0.2);
}

.cancel-withdrawal-btn .material-icons {
    font-size: 18px;
}

/* Rejection Reason */
.withdrawal-rejection {
    padding: 12px;
    background: rgba(244, 67, 54, 0.05);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.rejection-text {
    font-size: 0.85em;
    color: var(--primary-red);
    line-height: 1.4;
}

/* Footer */
.withdrawal-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(192, 192, 192, 0.05);
    text-align: center;
}

.withdrawal-processed {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Summary Cards */
.withdrawals-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
}

/* Mobile Optimization */
@media (max-width: 400px) {
    .withdrawal-main {
        flex-direction: column;
        gap: 16px;
    }
    
    .withdrawal-amount {
        font-size: 1.3em;
    }
    
    .withdrawal-method {
        font-size: 0.75em;
        padding: 6px 12px;
    }
    
    .withdrawal-method .material-icons {
        font-size: 16px;
    }
}

/* Empty State */
#withdrawalsEmptyState {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

#withdrawalsEmptyState .empty-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

#withdrawalsEmptyState .empty-text {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

#withdrawalsEmptyState .empty-action {
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}


/* ================================
   PROFILE STYLES
   ================================ */

.profile-container {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}

.profile-avatar-section {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4);
    text-transform: uppercase;
}

.profile-username {
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.profile-member-since {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

/* Stats Grid */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: #b4b4b4;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.8em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Sections */
.profile-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 1em;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255,255,255,0.08);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5em;
    font-weight: 700;
    color: #4CAF50;
    padding: 14px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
}

/* Buttons */
.btn-change-password {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-change-password:active {
    transform: scale(0.98);
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.achievement {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(192, 192, 192, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
    opacity: 0.3;
}

.achievement.unlocked {
    opacity: 1;
    border-color: var(--primary-red);
    background: rgba(220, 20, 60, 0.1);
}

.achievement .material-icons {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--metallic);
}

.achievement.unlocked .material-icons {
    color: var(--primary-red);
}

.achievement span:last-child {
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.05);
}

.danger-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.btn-danger {
    width: 100%;
    background: var(--primary-red);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:active {
    transform: scale(0.98);
    background: #D32F2F;
}

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


/* ================================
   16. KEYFRAME ANIMATIONS
   ================================ */
@keyframes hourRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

@keyframes luxuryPulse {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.02); }
}

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

@keyframes spinShine {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 100%; opacity: 1; }
    90% { opacity: 1; }
    100% { left: -100%; opacity: 0; }
}

@keyframes rewardShine {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 100%; opacity: 1; }
    90% { opacity: 1; }
    100% { left: -100%; opacity: 0; }
}

/* ================================
   17. RESPONSIVE MOBILE DESIGN
   ================================ */

/* iPhone 13/14 et équivalents (390-430px) */
@media (min-width: 391px) and (max-width: 430px) {
    :root {
        --margin-vertical: 35px;
        --button-margin-bottom: 35px;
    }
}

/* Tablettes portrait et larges mobiles (431px+) */
@media (min-width: 431px) {
    :root {
        --margin-vertical: 50px;
        --button-margin-bottom: 50px;
    }
}

/* Petits mobiles (≤375px - iPhone SE, iPhone 12/13 mini) */
@media (max-width: 375px) {
    :root {
        --margin-vertical: 20px;
        --button-margin-bottom: 20px;
        --button-height: 50px;
    }
    
    .logo-text {
        display: none;
    }
    
    .mobile-actions {
        width: 280px;
    }
    
    .mobile-actions.bet-active {
        left: 15px;
        right: 15px;
        width: auto;
        transform: none;
    }
    
    .intro-title { font-size: 1.6em; }
    .intro-subtitle { font-size: 0.7em; margin-bottom: 12px; }
    .intro-model { font-size: 1em; }
    
    .hour-text { font-size: 14px; }
    .minute-text { font-size: 11px; }
    .second-text { font-size: 10px; }
    
    .bet-button { padding: 10px 16px; font-size: 0.95em; }
    .bet-active-block { 
        padding: 10px 16px; 
        font-size: 0.9em;
    }
    
    .bet-popup-overlay { padding: 0 15px env(safe-area-inset-bottom, 0) 15px; }
    .bet-popup { max-width: 380px; }
}

/* Très petits mobiles (≤320px - anciens Android) */
@media (max-width: 320px) {
    .mobile-actions {
        width: 260px;
    }
    
    .mobile-actions.bet-active {
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
    }
}

/* Écrans courts en hauteur (≤600px) */
@media (max-height: 600px) {
    :root {
        --title-block-height: 100px;
        --margin-vertical: 15px;
        --button-margin-bottom: 15px;
        --button-height: 50px;
    }
    
    .intro-title { font-size: 1.4em; }
    .intro-subtitle { font-size: 0.65em; margin-bottom: 10px; }
    .intro-model { font-size: 0.9em; }
    
    .bet-button { padding: 10px 16px; font-size: 0.95em; }
    .bet-active-block { 
        padding: 10px 16px; 
        font-size: 0.9em;
    }
    
    .hour-text { font-size: 16px; }  
    .minute-text { font-size: 12px; }
    .second-text { font-size: 11px; }
    
    .credits-amount { font-size: 1.1em; }
    .avatar-circle { width: 26px; height: 26px; font-size: 0.6em; }
}

/* Écrans très courts (≤550px - paysage) */
@media (max-height: 550px) {
    :root {
        --title-block-height: 80px;
        --margin-vertical: 10px;
        --button-margin-bottom: 10px;
        --button-height: 45px;
    }
    
    .mobile-actions {
        width: 240px;
    }
    
    .intro-title { font-size: 1.2em; }
    .intro-subtitle { font-size: 0.6em; margin-bottom: 8px; }
    .intro-model { font-size: 0.8em; }
    
    .bet-button { padding: 8px 14px; font-size: 0.9em; }
    .bet-active-block { 
        padding: 8px 14px; 
        font-size: 0.85em;
    }
    
    .hour-text { font-size: 13px; }
    .minute-text { font-size: 10px; }
    .second-text { font-size: 9px; }
    
    .bet-popup { 
        height: 520px;
        padding: 30px 25px 30px 25px;
    }
    .pickers-section { height: 120px; }
    .picker-scroll { padding: 30px 0; }
    .confirm-bet-section { height: 45px; }
    .confirm-bet-button { height: 45px; padding: 12px 20px; font-size: 1em; }
}

/* Optimisations pour les animations */
.hour-hand, .minute-hand {
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.hour-hand {
    animation-name: hourRotate;
    animation-duration: 3s;
}

.minute-hand {
    animation-name: minuteRotate;
    animation-duration: 1s;
}

.loader-text {
    animation: fadeInOut 2s ease-in-out infinite;
}

.intro-content.loading {
    animation: luxuryPulse 2s ease-in-out infinite alternate;
}

.intro-content.stop-animation {
    animation: none;
    opacity: 1;
    transform: scale(1);
}

.intro-model {
    animation: metallicFlow 8s linear infinite;
}

.bet-active-block::before {
    animation: spinShine 3s ease-in-out infinite;
    animation-fill-mode: both;
}

.rewards-preview::before {
    animation: rewardShine 4s ease-in-out infinite;
    animation-fill-mode: both;
}


/* ================================
   USER MENU DRAWER (MOBILE FIRST)
   ================================ */

.user-menu-dropdown {
    position: fixed;
    top: 0;
    right: -85%; /* Caché à droite */
    width: 85%; /* 85% de la largeur sur mobile */
    max-width: 380px;
    height: 100vh;
    height: 100svh; /* Support viewport dynamique */
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: -10px 0 40px rgba(0,0,0,0.8);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.user-menu-dropdown.active {
    right: 0; /* Slide in */
}

/* Menu Header avec gradient */
.menu-header {
    padding: env(safe-area-inset-top, 20px) 20px 20px 20px;
    padding-top: calc(env(safe-area-inset-top, 0) + 30px);
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.3) 0%, 
        rgba(139, 0, 0, 0.2) 50%,
        rgba(28, 28, 28, 0.1) 100%);
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
}

/* Bouton fermer en haut à droite */
.menu-header::after {
    content: '×';
    position: absolute;
    top: calc(env(safe-area-inset-top, 0) + 20px);
    right: 20px;
    font-size: 32px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.menu-header:active::after {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.menu-user-info {
    flex: 1;
    padding-right: 40px; /* Space for close button */
}

.menu-username {
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.menu-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--metallic);
    font-size: 16px;
    font-weight: 600;
}

.menu-balance .material-icons {
    font-size: 18px;
}

/* Menu Content Scrollable */
.menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Menu Divider */
.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
    margin: 0 20px;
}

/* Menu Navigation */
.menu-navigation {
    padding: 12px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-red);
    transition: height 0.3s;
}

.menu-item:active {
    background: rgba(255,255,255,0.08);
}

.menu-item:active::before {
    height: 60%;
}

.menu-item .material-icons:first-child {
    font-size: 24px;
    margin-right: 16px;
    color: rgba(255,255,255,0.8);
}

.menu-item span:nth-child(2) {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.menu-arrow {
    font-size: 20px !important;
    color: rgba(255,255,255,0.3) !important;
    margin-right: 0 !important;
    margin-left: 8px !important;
}

.logout-item {
    color: var(--primary-red);
}

.logout-item .material-icons {
    color: var(--primary-red) !important;
}

.logout-item:active {
    background: rgba(255, 107, 107, 0.1);
}

/* Menu Overlay avec blur */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Avatar active state */
.user-avatar.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Scrollbar personnalisée */
.user-menu-dropdown::-webkit-scrollbar {
    width: 0px;
}

/* Animation slide pour mobile */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

/* Tablettes (largeur réduite) */
@media (min-width: 768px) {
    .user-menu-dropdown {
        width: 420px;
        max-width: 420px;
        right: -420px;
    }
    
    .menu-item {
        padding: 18px 28px;
    }
    
    .menu-item:hover {
        background: rgba(255,255,255,0.05);
    }
    
    .menu-item:hover::before {
        height: 40%;
    }
}

/* Desktop (encore plus étroit) */
@media (min-width: 1024px) {
    .user-menu-dropdown {
        width: 380px;
        max-width: 380px;
        right: -380px;
    }
}

/* Très petits écrans */
@media (max-width: 320px) {
    .user-menu-dropdown {
        width: 90%;
        right: -90%;
    }
    
    .menu-item {
        padding: 14px 20px;
    }
    
    .menu-item span:nth-child(2) {
        font-size: 15px;
    }
}

/* Support iOS safe areas */
@supports (padding: max(0px)) {
    .menu-header {
        padding-top: max(30px, env(safe-area-inset-top, 0) + 30px);
    }
    
    .menu-content {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Reduce motion pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    .user-menu-dropdown,
    .menu-overlay {
        transition: none;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .user-menu-dropdown {
        background: rgba(15, 15, 30, 0.98);
    }
}


/* Fin du fichier CSS */