/* Variables globales */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-medium: #1e293b;
    --bg-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Shop SOON Section */
.shop-soon-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shop-soon-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.shop-icon-mega {
    font-size: 8rem;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.shop-soon-title {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 1rem;
    text-shadow: 0 0 80px rgba(102, 126, 234, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

.shop-soon-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.shop-soon-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    animation: fadeIn 1s ease-out 0.5s both;
}

.shop-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-medium);
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.shop-feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.shop-feature-item .feature-icon {
    font-size: 2.5rem;
}

.shop-feature-item span:last-child {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.shop-soon-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulsate 3s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes pulsate {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Responsive Shop */
@media (max-width: 768px) {
    .shop-icon-mega {
        font-size: 5rem;
    }
    
    .shop-soon-title {
        font-size: 3.5rem;
        letter-spacing: 0.5rem;
    }
    
    .shop-soon-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .shop-soon-features {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .pulse-ring {
        width: 200px;
        height: 200px;
    }
}

/* Random Events Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-modal.active {
    opacity: 1;
}

.event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.event-modal-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.event-modal.active .event-modal-content {
    transform: scale(1) translateY(0);
}

.event-card {
    background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.bonus-card {
    border-color: var(--success-color);
}

.bonus-card::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.malus-card {
    border-color: var(--danger-color);
}

.malus-card::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.choice-card {
    border-color: var(--warning-color);
}

.choice-card::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.random-card {
    border-color: var(--primary-color);
}

.random-card::before {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.event-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.event-card-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.event-card-body {
    margin-bottom: 2rem;
}

.event-card-body p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.event-card-footer {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.event-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.event-btn-accept {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.event-btn-accept:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.event-btn-refuse {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.event-btn-refuse:hover {
    background: var(--bg-medium);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Animation d'apparition */
@keyframes cardFlip {
    from {
        transform: rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.event-modal.active .event-card {
    animation: cardFlip 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .event-card {
        padding: 1.5rem;
    }
    
    .event-card-header h2 {
        font-size: 1.4rem;
    }
    
    .event-card-body p {
        font-size: 1rem;
    }
    
    .event-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Version Update Notification */
.version-update-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 100000;
    min-width: 350px;
    max-width: 90vw;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.version-update-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.version-update-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
}

.version-update-icon {
    font-size: 2.5rem;
    animation: rocketBounce 0.6s ease-in-out infinite alternate;
}

@keyframes rocketBounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-8px);
    }
}

.version-update-text {
    flex: 1;
}

.version-update-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.version-update-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.version-update-text small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

.countdown-number {
    display: inline-block;
    color: #10b981;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    min-width: 1.5rem;
    text-align: center;
}

.version-update-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.version-update-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    animation: progressBar 60s linear forwards;
}

@keyframes progressBar {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
    animation-duration: 60s;
}

/* Pages */
.page {
    display: none;
    flex: 1; /* Prend tout l'espace disponible */
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* Page de connexion */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.login-card {
    background: var(--bg-medium);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.login-card h2 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2rem;
}

.login-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-google {
    width: 100%;
    padding: 1rem;
    background: white;
    color: #333;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    background: var(--bg-medium);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.nav-brand h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burger Menu (caché par défaut sur desktop) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation du burger quand actif */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sur desktop, l'user-info reste visible normalement */
@media (min-width: 769px) {
    .nav-menu .user-info {
        display: flex;
        margin-left: auto;
    }
}

.balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

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

.balance-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    background: var(--primary-color);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #dc2626;
}

/* Sections */
.section {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    flex: 1; /* Prend l'espace disponible */
}

.section.active {
    display: block;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Marché */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.market-header h2 {
    font-size: 2rem;
}

.market-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-medium);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Bandeau création de crypto */
.create-crypto-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.banner-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.banner-content {
    flex: 1;
}

.banner-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.banner-content p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.banner-price {
    color: var(--warning-color) !important;
    font-weight: 600;
    font-size: 1rem !important;
    margin-top: 0.5rem !important;
}

.banner-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.banner-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.banner-button:active {
    transform: translateY(0);
}

/* Sélecteur de langue flottant */
.language-selector-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector-float.hidden {
    display: none;
}

.language-btn-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.language-btn-float:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.language-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-close-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.flag-display {
    font-size: 2rem;
    line-height: 1;
}

.language-dropdown-float {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 160px;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.2s ease-out;
}

.language-dropdown-float.active {
    display: flex;
}

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

.language-option {
    background: transparent;
    border: none;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    transition: all 0.2s;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
}

.language-option:hover {
    background: var(--bg-light);
    transform: translateX(3px);
}

.language-option.active {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--primary-color);
    padding-left: calc(0.875rem - 3px);
}

.language-option .flag {
    font-size: 1.35rem;
}

/* Footer */
.app-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1rem;
    margin-top: auto; /* Pousse le footer en bas */
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.footer-link:hover {
    background: var(--bg-medium);
    transform: translateX(5px);
}

.footer-icon {
    font-size: 1.5rem;
}

.footer-language-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-language-btn {
    flex: 1;
    min-width: 120px;
    background: var(--bg-medium);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s;
    font-weight: 500;
}

.footer-language-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-language-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.footer-language-btn .flag {
    font-size: 1.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Page Changelog */
.changelog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.changelog-header h2 {
    margin-bottom: 0.5rem;
}

.changelog-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.changelog-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.changelog-item {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
}

.changelog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.changelog-version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.changelog-version {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.changelog-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.changelog-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-icon {
    font-size: 1.2rem;
}

.changelog-section-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changelog-list-items {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.changelog-list-items li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
}

.changelog-list-items li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.changelog-text {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0.75rem 0;
}

.changelog-text code,
.changelog-list-items code {
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-color);
}

.changelog-text strong,
.changelog-list-items strong {
    color: var(--primary-color);
    font-weight: 600;
}

.changelog-text a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.changelog-text a:hover {
    color: var(--primary-color);
}

.changelog-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ====================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ==================================== */

/* Large Desktop (> 1200px) - Optimisation pour grands écrans */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .crypto-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .changelog-list {
        max-width: 1000px;
    }

    /* DeFi Pools en 3 colonnes sur grand écran */
    .defi-pools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Leaderboard optimisé */
    .leaderboard-header,
    .leaderboard-row {
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* Footer responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .app-footer {
        padding: 2rem 1.5rem 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-language-selector {
        flex-direction: column;
    }
    
    .footer-language-btn {
        width: 100%;
    }
}

/* Changelog responsive */
@media (max-width: 768px) {
    .changelog-header h2 {
        font-size: 1.75rem;
    }
    
    .changelog-header p {
        font-size: 1rem;
    }
    
    .changelog-item {
        padding: 1.5rem;
    }
    
    .changelog-version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .changelog-version {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .changelog-list {
        gap: 1.5rem;
    }
    
    .changelog-item {
        padding: 1rem;
    }
    
    .changelog-version {
        font-size: 1.3rem;
    }
    
    .changelog-section-title {
        font-size: 1.1rem;
    }
    
    .changelog-list-items li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
}

/* Sélecteur de langue flottant responsive */
@media (max-width: 640px) {
    .language-selector-float {
        bottom: 15px;
        left: 15px;
    }
    
    .language-btn-float {
        width: 50px;
        height: 50px;
    }
    
    .language-close-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .language-dropdown-float {
        bottom: 60px;
        left: 0;
    }
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 1.5rem;
}

/* Adaptation fluide de la grille crypto */
@media (min-width: 769px) and (max-width: 1024px) {
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

.crypto-card {
    background: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crypto-icon {
    font-size: 2.5rem;
}

.crypto-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

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

.crypto-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.crypto-change {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.crypto-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.crypto-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.crypto-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.crypto-stat {
    display: flex;
    flex-direction: column;
}

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

.crypto-stat-value {
    font-weight: 600;
}

.btn-trade {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-trade:hover {
    background: var(--primary-dark);
}

/* Portefeuille */
.portfolio-header {
    margin-bottom: 2rem;
}

.portfolio-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
}

.holdings-list {
    background: var(--bg-medium);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.holding-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    gap: 1rem;
}

.holding-item:last-child {
    border-bottom: none;
}

.holding-item:hover {
    background: var(--bg-light);
}

.holding-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.holding-info {
    flex: 1;
}

.holding-name {
    font-weight: 600;
    font-size: 1.1rem;
}

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

.holding-value {
    text-align: right;
}

.holding-price {
    font-weight: 700;
    font-size: 1.2rem;
}

.holding-pnl {
    font-size: 0.9rem;
    font-weight: 600;
}

.holding-pnl.positive {
    color: var(--success-color);
}

.holding-pnl.negative {
    color: var(--danger-color);
}

.holding-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-quick-trade {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-quick-trade.buy {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.btn-quick-trade.buy:hover {
    background: linear-gradient(135deg, #059669, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.btn-quick-trade.sell {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.btn-quick-trade.sell:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.btn-quick-trade:active {
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 0.5rem;
}

/* Compte à rebours du reset */
.reset-countdown {
    text-align: center;
    padding: 1rem;
    background: var(--bg-medium);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--warning-color);
    border: 1px solid var(--border-color);
}

/* Classement */
.leaderboard-table {
    background: var(--bg-medium);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 200px 200px;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 200px 200px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: all 0.3s ease;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: var(--bg-light);
}

.leaderboard-row.current-user {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary-color);
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
}

.rank.top1 {
    color: #fbbf24;
}

.rank.top2 {
    color: #94a3b8;
}

.rank.top3 {
    color: #cd7f32;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    background: var(--primary-color);
    border: 2px solid var(--border-color);
}

.player-name {
    font-weight: 600;
}

.player-capital {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.player-change {
    font-weight: 600;
}

.player-change.positive {
    color: var(--success-color);
}

.player-change.negative {
    color: var(--danger-color);
}

/* Profil */
.profile-card {
    background: var(--bg-medium);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.profile-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.5rem;
    color: white;
    background: var(--primary-color);
}

.profile-details {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.input-text {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-text:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.profile-stats h3 {
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

/* Sélecteur de couleur */
.color-picker-group {
    margin-bottom: 1rem;
}

.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: var(--text-primary);
}

.color-option.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--bg-medium);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-medium);
    border-radius: 1rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

.trade-info {
    margin-bottom: 2rem;
}

.crypto-price {
    text-align: center;
    margin-bottom: 1rem;
}

.price-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.holding-info-modal {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 3px solid var(--secondary-color);
}

.holding-info-modal p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.holding-info-modal strong {
    color: var(--text-secondary);
}

.chart-container {
    height: 250px;
    margin-bottom: 2rem;
}

.trade-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.trade-tab {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trade-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.trade-summary {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Bandeau d'annonces */
.news-ticker {
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ticker-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ticker-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Section Premium */
.premium-info {
    margin-bottom: 3rem;
}

.premium-card {
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.premium-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.premium-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.premium-features .feature {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 0.5rem;
    font-weight: 500;
}

.premium-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning-color);
    margin-bottom: 2rem;
}

.btn-premium {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.my-cryptos {
    margin-top: 3rem;
}

.my-cryptos h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cryptos-list {
    display: grid;
    gap: 1rem;
}

.my-crypto-item {
    background: var(--bg-medium);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.my-crypto-item .crypto-icon {
    font-size: 3rem;
}

.my-crypto-item .crypto-info {
    flex: 1;
}

.my-crypto-item .crypto-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.my-crypto-item .crypto-symbol {
    color: var(--text-secondary);
}

.my-crypto-item .crypto-stats {
    text-align: right;
}

.my-crypto-item .stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.crypto-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-stats-crypto {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-stats-crypto:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: scale(1.05);
}

.btn-delete-crypto {
    padding: 0.5rem 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-delete-crypto:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Emoji Picker */
.emoji-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.emoji-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.emoji-option:hover {
    background: var(--bg-medium);
    transform: scale(1.1);
}

.emoji-option.selected {
    background: var(--primary-color);
    border-color: var(--text-primary);
}

/* Prévisualisation crypto */
.crypto-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.crypto-preview h4 {
    margin-bottom: 1rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-medium);
    border-radius: 0.5rem;
}

.preview-icon {
    font-size: 3rem;
}

.preview-info {
    flex: 1;
}

.preview-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.preview-symbol {
    color: var(--text-secondary);
}

.preview-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* Laptop / Petit Desktop (1024px - 1200px) */
@media (min-width: 1025px) and (max-width: 1199px) {
    .container {
        max-width: 1000px;
        padding: 2rem 1.5rem;
    }

    .crypto-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }
}

/* Tablette & Laptop 1024px exact */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .modal-content {
        width: 92%;
        max-width: 700px;
        margin: 1.5rem auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .premium-card {
        padding: 1.75rem;
    }

    /* Leaderboard sur tablette */
    .leaderboard-header,
    .leaderboard-row {
        padding: 1.25rem 1rem;
        font-size: 0.95rem;
    }

    /* Portfolio sur tablette */
    .portfolio-tabs {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .portfolio-tab {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 150px;
    }

    .holding-item {
        padding: 1.5rem;
    }

    /* DeFi Pools sur tablette */
    .defi-pools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Footer sur tablette - 2 colonnes */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-section {
        text-align: left;
    }

    /* Changelog sur tablette */
    .changelog-item {
        padding: 2rem 1.5rem;
    }

    .changelog-list {
        padding: 0 1rem;
    }

    /* Burger menu caché sur tablette */
    .burger-menu {
        display: none;
    }

    /* Navigation normale sur tablette */
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        box-shadow: none;
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
    /* Navigation avec burger menu */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
        flex-wrap: nowrap;
    }

    .nav-brand {
        order: 1;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    /* Afficher le burger menu */
    .burger-menu {
        display: flex;
        order: 2;
    }

    /* Menu caché par défaut sur mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark);
        padding: 5rem 1.5rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        order: 3;
    }

    /* Menu ouvert */
    .nav-menu.active {
        right: 0;
    }

    /* Overlay quand le menu est ouvert */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .nav-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-width: auto;
        justify-content: flex-start;
        text-align: left;
        border-radius: 0.5rem;
    }

    .nav-btn span {
        display: inline;
        margin-right: 0.5rem;
        font-size: 1.3rem;
    }

    .nav-btn:hover {
        background: var(--bg-light);
    }

    .nav-btn.active {
        background: var(--primary-color);
    }

    /* User info dans le menu burger */
    .nav-menu .user-info {
        width: 100%;
        padding: 1rem;
        background: var(--bg-medium);
        border-radius: 0.5rem;
        margin-top: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
    }

    .nav-menu .balance {
        width: 100%;
        align-items: flex-start;
    }

    .nav-menu .balance-amount {
        font-size: 1.5rem;
    }

    .nav-menu .user-avatar {
        display: none; /* Caché dans le burger pour gagner de la place */
    }

    .nav-menu .btn-logout {
        width: 100%;
    }

    .user-balance {
        font-size: 1.2rem;
    }

    /* Bandeau d'annonces */
    .news-ticker {
        padding: 0.5rem 1rem;
    }
    
    .ticker-text {
        font-size: 0.85rem;
    }
    
    .ticker-icon {
        font-size: 1.2rem;
    }

    /* Container */
    .container {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    /* Crypto Grid */
    .crypto-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .crypto-card {
        padding: 1rem;
    }

    .crypto-name {
        font-size: 1rem;
    }

    .crypto-symbol {
        font-size: 0.75rem;
    }

    .crypto-price {
        font-size: 1.1rem;
    }

    /* Market Header */
    .market-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .search-bar {
        width: 100%;
    }

    /* Sélecteur de langue flottant sur mobile */
    .language-selector-float {
        bottom: 80px; /* Au-dessus du menu burger si présent */
        left: 15px;
    }

    .language-btn-float {
        width: 55px;
        height: 55px;
    }

    .language-close-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .flag-display {
        font-size: 1.75rem;
    }

    /* Footer responsive */
    .app-footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-language-selector {
        flex-direction: column;
    }

    .footer-language-btn {
        min-width: 100%;
    }

    /* Bandeau création crypto responsive */
    .create-crypto-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .banner-icon {
        font-size: 2.5rem;
    }

    .banner-content h3 {
        font-size: 1.25rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .banner-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Portfolio tabs responsive */
    .portfolio-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .portfolio-tab {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 140px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* DeFi Pools responsive */
    .defi-pools-grid {
        grid-template-columns: 1fr;
    }

    .pool-card {
        padding: 1rem;
    }

    .pool-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Leaderboard */
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 100px;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .player-change {
        display: none;
    }

    .player-rank {
        font-size: 1rem;
    }

    .player-name {
        font-size: 0.9rem;
    }

    .player-capital {
        font-size: 1rem;
    }

    /* Portfolio */
    .holding-item {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .holding-info {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .holding-stats {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .holding-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-quick-trade {
        flex: 1;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Profile */
    .profile-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-form {
        width: 100%;
    }

    .color-options {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Premium / Create Crypto */
    .premium-card {
        padding: 1.5rem;
    }

    .premium-features {
        gap: 0.5rem;
    }

    .my-crypto-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-delete-crypto {
        width: 100%;
    }

    /* Modales */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .trade-tabs {
        gap: 0.5rem;
    }

    .trade-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .chart-container {
        height: 200px;
        margin-bottom: 1rem;
    }

    .trade-form {
        gap: 1rem;
    }

    .trade-summary {
        padding: 1rem;
        margin-top: 1rem;
    }

    .trade-summary-item {
        font-size: 0.9rem;
    }

    .btn-confirm-trade {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Input groups responsive */
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-group input {
        width: 100%;
    }

    .input-group button {
        width: 100%;
    }

    /* Emoji Picker */
    .emoji-picker {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
        max-height: 200px;
    }

    .emoji-option {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    /* Crypto Preview */
    .crypto-preview {
        padding: 1rem;
    }

    .preview-card {
        padding: 1rem;
    }

    /* Boutons */
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Mobile Medium (375px - 425px) */
@media (max-width: 425px) and (min-width: 376px) {
    .container {
        padding: 1rem 0.85rem;
    }

    .crypto-card {
        padding: 1rem;
    }

    .crypto-icon {
        font-size: 2rem;
    }

    .crypto-price {
        font-size: 1.3rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 0;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .navbar {
        padding: 0.875rem 1rem;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .footer-content {
        padding: 0 0.75rem;
    }

    .changelog-item {
        padding: 1rem 0.85rem;
    }
}

/* Mobile Small (320px - 375px) */
@media (max-width: 375px) {
    /* Navigation ultra compact */
    .navbar {
        padding: 0.65rem 0.75rem;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .burger-menu {
        padding: 0.25rem;
    }

    .burger-menu span {
        width: 20px;
        height: 2.5px;
    }

    /* Menu burger plus étroit sur petit écran */
    .nav-menu {
        width: 85vw;
        max-width: 280px;
        padding: 4rem 0.85rem 1rem;
    }

    .nav-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .nav-btn span {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .user-balance {
        font-size: 0.95rem;
    }

    .nav-menu .balance-amount {
        font-size: 1.3rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Bandeau très compact */
    .news-ticker {
        padding: 0.4rem 0.5rem;
    }

    .ticker-text {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .ticker-icon {
        font-size: 0.95rem;
    }

    /* Container minimal */
    .container {
        padding: 0.65rem;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Stats ultra compacts */
    .stat-card {
        padding: 0.65rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    /* Crypto cards compacts */
    .crypto-card {
        padding: 0.75rem 0.65rem;
    }

    .crypto-header {
        gap: 0.65rem;
        margin-bottom: 0.75rem;
    }

    .crypto-icon {
        font-size: 1.75rem;
    }

    .crypto-info h3 {
        font-size: 1rem;
    }

    .crypto-name {
        font-size: 0.85rem;
    }

    .crypto-symbol {
        font-size: 0.7rem;
    }

    .crypto-price {
        font-size: 1.1rem;
    }

    .crypto-change {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .crypto-stats {
        gap: 0.4rem;
        padding-top: 0.75rem;
    }

    .crypto-stat-label {
        font-size: 0.7rem;
    }

    .crypto-stat-value {
        font-size: 0.85rem;
    }

    .btn-trade {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    /* Leaderboard compact */
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 35px 1fr 85px;
        gap: 0.4rem;
        padding: 0.5rem 0.4rem;
        font-size: 0.85rem;
    }

    .player-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .player-rank {
        font-size: 0.85rem;
    }

    .player-name {
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .player-capital {
        font-size: 0.8rem;
    }

    /* Portfolio compact */
    .holding-item {
        padding: 0.65rem;
    }

    .holding-crypto-info {
        gap: 0.5rem;
    }

    .holding-icon {
        font-size: 1.5rem;
    }

    .holding-stats {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .holding-stat-label {
        font-size: 0.7rem;
    }

    .holding-stat-value {
        font-size: 0.85rem;
    }

    .btn-quick-trade {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Portfolio tabs ultra compact */
    .portfolio-tabs {
        gap: 0.3rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .portfolio-tab {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Color picker */
    .color-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .color-option {
        width: 40px;
        height: 40px;
    }

    /* Modales plein écran sur très petit mobile */
    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .modal-close {
        font-size: 1.8rem;
        padding: 0.75rem;
    }

    .modal-header {
        padding: 0.75rem 0.65rem;
        position: sticky;
        top: 0;
        background: var(--bg-medium);
        z-index: 10;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 0.75rem 0.65rem;
    }

    .emoji-picker {
        grid-template-columns: repeat(5, 1fr);
        max-height: 140px;
        gap: 0.35rem;
    }

    .emoji-option {
        font-size: 1.3rem;
        padding: 0.35rem;
    }

    /* Forms ultra compacts */
    .form-group {
        margin-bottom: 0.85rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .form-group small {
        font-size: 0.75rem;
    }

    /* Footer ultra compact */
    .app-footer {
        padding: 1.25rem 0.65rem 0.65rem;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }

    .footer-section p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer-link {
        padding: 0.35rem;
        font-size: 0.85rem;
    }

    .footer-link span:not(.footer-icon) {
        font-size: 0.85rem;
    }

    .footer-icon {
        font-size: 1.2rem;
    }

    .footer-language-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }

    .footer-language-btn .flag {
        font-size: 1.2rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
        padding-top: 1.25rem;
        line-height: 1.4;
    }

    .footer-bottom p {
        margin: 0;
    }

    /* Portfolio tabs plus compacts */
    .portfolio-tab {
        flex: 1 1 100%;
        font-size: 0.85rem;
        padding: 0.6rem 0.85rem;
    }

    /* DeFi Pools ultra compact */
    .pool-card {
        padding: 0.75rem;
    }

    .pool-header h3 {
        font-size: 1rem;
    }

    .pool-apy {
        font-size: 1.3rem;
    }

    /* Changelog ultra compact */
    .changelog-header {
        margin-bottom: 1.5rem;
    }

    .changelog-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .changelog-header p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .changelog-list {
        gap: 1rem;
    }

    .changelog-item {
        padding: 0.65rem;
    }

    .changelog-version-header {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .changelog-version {
        font-size: 1rem;
    }

    .changelog-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    .changelog-date {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .date-icon {
        font-size: 1rem;
    }

    .changelog-section-title {
        font-size: 0.95rem;
        margin-top: 1rem;
        margin-bottom: 0.65rem;
    }

    .changelog-list-items {
        margin: 0.65rem 0;
    }

    .changelog-list-items li {
        font-size: 0.8rem;
        padding: 0.5rem 0 0.5rem 1.2rem;
        line-height: 1.5;
    }

    .changelog-list-items li:before {
        font-size: 1rem;
    }

    .changelog-text {
        font-size: 0.85rem;
        line-height: 1.6;
        margin: 0.5rem 0;
    }

    /* Page de connexion responsive */
    .login-container {
        padding: 1rem;
        min-height: 100vh;
    }

    .login-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }

    .logo-section h1 {
        font-size: 2rem;
    }

    .logo-section .logo-icon {
        font-size: 4rem;
    }

    /* Bandeau création crypto ultra compact */
    .create-crypto-banner {
        padding: 1rem;
    }

    .banner-icon {
        font-size: 2rem;
    }

    .banner-content h3 {
        font-size: 1.1rem;
    }

    .banner-content p,
    .banner-price {
        font-size: 0.8rem;
    }

    .banner-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Formulaires */
    .form-group label {
        font-size: 0.9rem;
    }

    .input-text {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Boutons compacts */
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Premium section */
    .premium-card {
        padding: 1rem;
    }

    .premium-price {
        font-size: 1.1rem;
    }
}

/* ============================================
   CASINO STYLES
   ============================================ */

.casino-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.casino-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.casino-game {
    background: var(--bg-medium);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.game-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.game-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.game-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Coin Flip */
.coin-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 1rem;
    min-height: 200px;
    justify-content: center;
}

.coin {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--bg-light);
    border-radius: 50%;
    border: 4px solid var(--border-color);
    transition: all 0.3s ease;
}

.coin.spinning {
    animation: spin 2s linear infinite;
}

.coin.result-red {
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.coin.result-black {
    background: #1f2937;
    border-color: #111827;
    box-shadow: 0 0 30px rgba(31, 41, 55, 0.5);
}

.coin.result-green {
    background: #10b981;
    border-color: #059669;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    animation: shake 0.5s ease;
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(1080deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.coin-result, .dice-result {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-result.win, .dice-result.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.coin-result.lose, .dice-result.lose {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.dice-result.jackpot {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border-color: #f59e0b;
    color: #f59e0b;
    animation: pulse 1s infinite;
}

/* High or Low */
.highlow-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 1rem;
    min-height: 200px;
    justify-content: center;
    position: relative;
}

.number-card {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    background: var(--bg-light);
    border-radius: 1rem;
    border: 4px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.number-card.rolling {
    animation: bounce 0.1s ease infinite;
}

.number-card.result {
    transform: scale(1.1);
}

.number-card.result-low {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.number-card.result-high {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.number-card.exact-50 {
    background: #f59e0b;
    color: white;
    border-color: #d97706;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    animation: shake 0.5s ease;
}

.target-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.target-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.highlow-result {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlow-result.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.highlow-result.lose {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.highlow-result.lose.special {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Betting Controls */
.betting-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.color-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.bet-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.bet-red {
    background: #ef4444;
    color: white;
}

.bet-red:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.bet-black {
    background: #1f2937;
    color: white;
}

.bet-black:hover {
    background: #111827;
    transform: scale(1.05);
}

.bet-low {
    background: #3b82f6;
    color: white;
}

.bet-low:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.bet-high {
    background: #ef4444;
    color: white;
}

.bet-high:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.bet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Casino Stats */
.casino-stats {
    background: var(--bg-medium);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid var(--border-color);
}

.casino-stats h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* ============================================
   ANNOUNCEMENT MODAL (SPECTACULAIRE)
   ============================================ */

.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: modalFadeIn 0.5s ease;
}

.announcement-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: overlayFadeIn 0.5s ease;
}

.announcement-content {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 3px solid var(--primary-color);
    border-radius: 2rem;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.3);
    animation: modalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.announcement-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: iconRotate 1s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.announcement-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: titlePulse 1.5s ease infinite;
}

.announcement-message {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.announcement-creator {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.announcement-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.announcement-confetti::before,
.announcement-confetti::after {
    content: '🎉 ✨ 🚀 💎 ⭐';
    position: absolute;
    font-size: 2rem;
    animation: confettiFall 3s linear infinite;
    opacity: 0.8;
}

.announcement-confetti::before {
    left: 20%;
    animation-delay: 0.5s;
}

.announcement-confetti::after {
    right: 20%;
    animation-delay: 1s;
}

.announcement-close {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-close:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #059669, var(--secondary-color));
}

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

/* Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes confettiFall {
    0% {
        top: -10%;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Responsive Announcement Modal */
@media (max-width: 768px) {
    .announcement-content {
        padding: 2rem;
        max-width: 90%;
    }
    
    .announcement-icon {
        font-size: 4rem;
    }
    
    .announcement-title {
        font-size: 1.8rem;
    }
    
    .announcement-message {
        font-size: 1.3rem;
    }
    
    .announcement-creator {
        font-size: 1rem;
    }
    
    .announcement-close {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .announcement-content {
        padding: 1.5rem;
    }
    
    .announcement-icon {
        font-size: 3rem;
    }
    
    .announcement-title {
        font-size: 1.4rem;
    }
    
    .announcement-message {
        font-size: 1.1rem;
    }
}

/* Quick Amount Buttons */
.input-with-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.btn-quick-amount {
    padding: 0.5rem;
    background: var(--bg-medium);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-amount:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-quick-amount:active {
    transform: translateY(0);
}

.btn-quick-amount[data-percent="100"] {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-quick-amount[data-percent="100"]:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* Responsive Quick Amount Buttons */
@media (max-width: 768px) {
    .quick-amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-quick-amount {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Responsive Casino */
@media (max-width: 768px) {
    .casino-games {
        grid-template-columns: 1fr;
    }
    
    .casino-game {
        padding: 1.5rem;
    }
    
    .coin {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }
    
    .number-card {
        width: 110px;
        height: 110px;
        font-size: 3rem;
    }
    
    .color-choice {
        grid-template-columns: 1fr;
    }
    
    .bet-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .casino-game {
        padding: 1rem;
    }
    
    .coin {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .number-card {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    .coin-display, .highlow-display {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .game-header h3 {
        font-size: 1.4rem;
    }
}

/* Landscape mobile (orientation paysage) */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .chart-container {
        height: 150px;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .news-ticker {
        padding: 0.3rem 1rem;
    }
}

/* Snackbar / Notifications */
.snackbar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: var(--bg-medium);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--bg-light);
}

.snackbar-show {
    bottom: 30px;
}

.snackbar-hide {
    bottom: -100px;
    opacity: 0;
}

.snackbar-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.snackbar-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.snackbar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.snackbar-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* Types de snackbar */
.snackbar-success {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.snackbar-error {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.snackbar-warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.snackbar-info {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-medium) 0%, rgba(99, 102, 241, 0.1) 100%);
}

/* Snackbar de confirmation */
.snackbar-confirm {
    min-width: 400px;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    border-color: #f59e0b;
    padding: 1.5rem;
}

.snackbar-confirm .snackbar-message {
    text-align: center;
    margin: 0.5rem 0;
}

.snackbar-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.snackbar-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.snackbar-btn-cancel {
    background: var(--bg-light);
    color: var(--text-primary);
}

.snackbar-btn-cancel:hover {
    background: var(--bg-dark);
}

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

.snackbar-btn-confirm:hover {
    background: #5558e3;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .snackbar {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .snackbar-show {
        bottom: 20px;
    }
    
    .snackbar-confirm {
        min-width: auto;
    }
}

/* ===== SYSTÈME DE FEEDBACK ===== */

/* Bouton flottant */
.feedback-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.feedback-float-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

.feedback-float-btn:active {
    transform: scale(0.95);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Modal de feedback */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.feedback-modal-content {
    background: var(--bg-medium);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.feedback-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.feedback-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.feedback-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.feedback-modal-body {
    padding: 1.5rem;
}

.feedback-modal-body > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .feedback-float-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .feedback-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .feedback-modal-header {
        padding: 1rem;
    }
    
    .feedback-modal-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .feedback-float-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

/* Vue admin dans la modal */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 0.5rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.admin-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.admin-filter-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.admin-feedback-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-feedback-item {
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.admin-feedback-item.type-bug {
    border-left-color: var(--danger-color);
}

.admin-feedback-item.type-suggestion {
    border-left-color: var(--success-color);
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feedback-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-suggestion {
    background: var(--success-color);
    color: white;
}

.badge-bug {
    background: var(--danger-color);
    color: white;
}

.badge-autre {
    background: var(--primary-color);
    color: white;
}

.feedback-user-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feedback-item-message {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.feedback-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feedback-actions {
    display: flex;
    gap: 0.5rem;
}

.feedback-action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-validate {
    background: var(--success-color);
    color: white;
}

.btn-validate:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-reject {
    background: var(--warning-color);
    color: white;
}

.btn-reject:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-delete-feedback {
    background: var(--danger-color);
    color: white;
}

.btn-delete-feedback:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.loading-text {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.empty-feedback {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.empty-feedback-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Responsive admin view */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feedback-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feedback-item-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feedback-actions {
        width: 100%;
    }
    
    .feedback-action-btn {
        flex: 1;
    }
    
    /* Version update responsive */
    .version-update-notification {
        min-width: unset;
        width: calc(100% - 2rem);
        top: 10px;
    }
    
    .version-update-content {
        padding: 1rem;
    }
    
    .version-update-icon {
        font-size: 2rem;
    }
    
    .version-update-text strong {
        font-size: 1rem;
    }
    
    .version-update-text p {
        font-size: 0.85rem;
    }
}

/* ===================================
   WIDGET EFFETS ACTIFS
   =================================== */

.active-effects-widget {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 320px;
    background: rgba(30, 41, 59, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 12px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.effects-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.effect-item {
    background: rgba(51, 65, 85, 0.8);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease-out;
}

.effect-item.boost {
    border-left-color: var(--secondary-color);
}

.effect-item.defense {
    border-left-color: #3b82f6;
}

.effect-item.debuff {
    border-left-color: var(--danger-color);
}

.effect-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.effect-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.effect-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.effect-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.effect-progress {
    width: 100%;
    height: 4px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.effect-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s linear;
    border-radius: 2px;
}

.effect-item.boost .effect-progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), #34d399);
}

.effect-item.defense .effect-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.effect-item.debuff .effect-progress-bar {
    background: linear-gradient(90deg, var(--danger-color), #fca5a5);
}

/* Responsive */
@media (max-width: 768px) {
    .active-effects-widget {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .effect-name {
        font-size: 13px;
    }
    
    .effect-time {
        font-size: 11px;
    }
}

/* ===================================
   BADGES JOUEURS
   =================================== */

.player-badge {
    display: inline-block;
    font-size: 18px;
    margin-left: 6px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.profile-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 28px;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===================================
   SKINS / THÈMES
   =================================== */

/* Skin Gold */
body.skin-gold {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d00 100%);
}

body.skin-gold .nav-container,
body.skin-gold .crypto-card,
body.skin-gold .section,
body.skin-gold .leaderboard-row,
body.skin-gold .portfolio-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border-color: #ffd700;
}

body.skin-gold .btn-primary,
body.skin-gold .trade-tab.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

body.skin-gold .crypto-icon,
body.skin-gold .stat-icon {
    filter: drop-shadow(0 0 10px #ffd700);
}

/* Skin Ultra Dark */
body.skin-ultra-dark {
    background: #000000;
}

body.skin-ultra-dark .nav-container,
body.skin-ultra-dark .crypto-card,
body.skin-ultra-dark .section,
body.skin-ultra-dark .leaderboard-row,
body.skin-ultra-dark .portfolio-item {
    background: rgba(20, 20, 20, 0.9);
    border-color: #1a1a1a;
}

body.skin-ultra-dark .btn-primary {
    background: #1a1a1a;
    border: 1px solid #333;
}

body.skin-ultra-dark .text-primary {
    color: #666;
}

/* Skin Rainbow */
body.skin-rainbow {
    animation: rainbowBG 10s linear infinite;
}

@keyframes rainbowBG {
    0% { background: linear-gradient(135deg, #ff0000 0%, #ff7f00 100%); }
    14% { background: linear-gradient(135deg, #ff7f00 0%, #ffff00 100%); }
    28% { background: linear-gradient(135deg, #ffff00 0%, #00ff00 100%); }
    42% { background: linear-gradient(135deg, #00ff00 0%, #0000ff 100%); }
    57% { background: linear-gradient(135deg, #0000ff 0%, #4b0082 100%); }
    71% { background: linear-gradient(135deg, #4b0082 0%, #9400d3 100%); }
    85% { background: linear-gradient(135deg, #9400d3 0%, #ff0000 100%); }
    100% { background: linear-gradient(135deg, #ff0000 0%, #ff7f00 100%); }
}

body.skin-rainbow .crypto-card,
body.skin-rainbow .leaderboard-row,
body.skin-rainbow .portfolio-item {
    animation: rainbowBorder 3s linear infinite;
    border-width: 2px;
}

@keyframes rainbowBorder {
    0% { border-color: #ff0000; }
    14% { border-color: #ff7f00; }
    28% { border-color: #ffff00; }
    42% { border-color: #00ff00; }
    57% { border-color: #0000ff; }
    71% { border-color: #4b0082; }
    85% { border-color: #9400d3; }
    100% { border-color: #ff0000; }
}

body.skin-rainbow .crypto-icon,
body.skin-rainbow .stat-icon {
    animation: rainbowRotate 2s linear infinite;
}

@keyframes rainbowRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ===================================
   EFFET GLITCH UI
   =================================== */

body.ui-glitched {
    animation: glitchShake 0.3s infinite;
}

@keyframes glitchShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(2px, -1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-2px, -1px); }
    60% { transform: translate(2px, 1px); }
    70% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 2px); }
    90% { transform: translate(-2px, -2px); }
}

body.ui-glitched * {
    animation: glitchText 0.5s infinite;
}

@keyframes glitchText {
    0%, 100% { text-shadow: none; }
    25% { text-shadow: -2px 0 red, 2px 0 blue; }
    50% { text-shadow: 2px 0 red, -2px 0 blue; }
    75% { text-shadow: -2px 0 blue, 2px 0 red; }
}

body.ui-glitched .crypto-card,
body.ui-glitched .leaderboard-row {
    filter: hue-rotate(180deg) contrast(1.5);
}

/* ===================================
   SCREAMER OVERLAY
   =================================== */

.screamer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: screamerFlash 0.1s infinite;
}

@keyframes screamerFlash {
    0%, 100% { background: #000; }
    50% { background: #f00; }
}

.screamer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: screamerZoom 0.3s ease-out;
}

@keyframes screamerZoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

