* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            /* Palette sophistiquée */
            --primary-bg: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 50%, #16213e 100%);
            --glass-bg: rgba(15, 15, 30, 0.85);
            --glass-border: rgba(255, 255, 255, 0.08);
            --accent-primary: #6366f1;
            --accent-secondary: #8b5cf6;
            --accent-tertiary: #06b6d4;
            --accent-success: #10b981;
            --accent-warning: #f59e0b;
            --accent-danger: #ef4444;
            --text-primary: #f8fafc;
            --text-secondary: #cbd5e1;
            --text-muted: #64748b;
            
            /* Ombres sophistiquées */
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
            --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.25);
            --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.35);
            --shadow-xl: 0 35px 70px rgba(0, 0, 0, 0.45);
            
            /* Glow effects */
            --glow-primary: 0 0 20px rgba(99, 102, 241, 0.3);
            --glow-secondary: 0 0 20px rgba(139, 92, 246, 0.3);
            --glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
            --glow-danger: 0 0 20px rgba(239, 68, 68, 0.3);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--primary-bg);
            min-height: 100vh;
            color: var(--text-primary);
            padding: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
        }

        .container {
            max-width: 440px;
            width: 100%;
            background: var(--glass-bg);
            backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            overflow: hidden;
            position: relative;
        }

        /* Gradient overlay subtil */
        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(99,102,241,0.02) 100%);
            pointer-events: none;
            border-radius: 24px;
        }

        /* Header premium */
        .header {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 16px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
        }

        .header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 24px;
            right: 24px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
        }

        .logo-section {
            order: 2;
            display: flex;
            align-items: center;
        }

        .main-logo {
            max-height: 42px;
            width: auto;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .main-logo:hover {
            filter: drop-shadow(0 6px 12px rgba(99,102,241,0.4));
            transform: scale(1.05);
        }

        .connect-section {
            order: 1;
        }

        .wallet-connect {
            background: linear-gradient(135deg, var(--accent-success) 0%, #059669 100%);
            border: none;
            color: white;
            padding: 10px 18px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            box-shadow: var(--shadow-md), var(--glow-success);
            position: relative;
            overflow: hidden;
        }

        .wallet-connect::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s ease;
        }

        .wallet-connect:hover::before {
            left: 100%;
        }

        .wallet-connect:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-lg), var(--glow-success);
        }

        .wallet-connect.connected {
            background: linear-gradient(135deg, var(--accent-warning) 0%, #d97706 100%);
            box-shadow: var(--shadow-md), 0 0 20px rgba(245, 158, 11, 0.3);
        }

        .network-label {
            font-size: 9px;
            font-weight: 500;
            opacity: 0.7;
            margin-top: 4px;
            color: var(--text-secondary);
            letter-spacing: 0.3px;
        }

        /* Main Content */
        .main-content {
            padding: 20px 24px 16px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        /* Cards HUD futuristes */
        .sf-card {
            position: relative;
            padding: 20px 24px;
            color: var(--text-primary);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 12px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(16px);
            overflow: hidden;
        }

        /* Bordures HUD dynamiques */
        .sf-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border-radius: 12px;
            background: linear-gradient(45deg, 
                rgba(0,255,255,0.3) 0%, 
                rgba(255,255,255,0.1) 25%, 
                rgba(0,255,150,0.3) 50%, 
                rgba(255,255,255,0.1) 75%, 
                rgba(0,255,255,0.3) 100%);
            z-index: -1;
            animation: borderGlow 3s ease-in-out infinite;
        }

        @keyframes borderGlow {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.7; }
        }

        /* Coins techniques */
        .corner-tech {
            position: absolute;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(0,255,255,0.6);
        }

        .corner-tech.tl {
            top: 8px;
            left: 8px;
            border-right: none;
            border-bottom: none;
            border-radius: 3px 0 0 0;
        }

        .corner-tech.tr {
            top: 8px;
            right: 8px;
            border-left: none;
            border-bottom: none;
            border-radius: 0 3px 0 0;
        }

        .corner-tech.bl {
            bottom: 8px;
            left: 8px;
            border-right: none;
            border-top: none;
            border-radius: 0 0 0 3px;
        }

        .corner-tech.br {
            bottom: 8px;
            right: 8px;
            border-left: none;
            border-top: none;
            border-radius: 0 0 3px 0;
        }

        /* Lignes de scan HUD - Animation par défaut pour SOL et YRM */
        .scan-line {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(0,255,255,0.8) 50%, 
                transparent 100%);
            animation: scanDeeper 4s ease-in-out infinite;
            opacity: 0;
        }

        @keyframes scanDeeper {
            0%, 90%, 100% { 
                opacity: 0; 
                transform: translateY(0);
            }
            45% { 
                opacity: 1; 
                transform: translateY(120px); /* Plus profond pour SOL et YRM */
            }
        }

        /* Animation scan désactivée pour la card claimable */
        .sf-card.claimable-card .scan-line {
            animation: none;
            opacity: 0;
        }

        /* Status indicators */
        .status-dot {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00ff88;
            box-shadow: 
                0 0 10px #00ff88,
                0 0 20px rgba(0,255,136,0.5),
                inset 0 1px 0 rgba(255,255,255,0.3);
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { 
                opacity: 1; 
                transform: scale(1);
            }
            50% { 
                opacity: 0.7; 
                transform: scale(1.3);
            }
        }

        /* Grille de données subtile */
        .data-grid {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(90deg, rgba(0,255,255,0.02) 0%, transparent 1%),
                linear-gradient(0deg, rgba(0,255,255,0.02) 0%, transparent 1%);
            background-size: 20px 20px;
            opacity: 0.3;
            pointer-events: none;
        }

        .sf-card:hover {
            transform: translateY(-3px) scale(1.02);
            border-color: rgba(0,255,255,0.4);
        }

        /* Animation scan plus rapide au hover pour SOL et YRM uniquement */
        .sf-card:not(.claimable-card):hover .scan-line {
            animation-duration: 2s;
        }

        /* Couleurs spécialisées HUD */
        .sf-card.sol-card::before {
            background: linear-gradient(45deg, 
                rgba(99,102,241,0.4) 0%, 
                rgba(255,255,255,0.1) 25%, 
                rgba(99,102,241,0.6) 50%, 
                rgba(255,255,255,0.1) 75%, 
                rgba(99,102,241,0.4) 100%);
        }

        .sf-card.sol-card {
            background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(79,70,229,0.1) 100%);
            box-shadow: var(--shadow-md), var(--glow-primary);
        }

        .sf-card.sol-card .status-dot {
            background: #6366f1;
            box-shadow: 0 0 10px #6366f1, 0 0 20px rgba(99,102,241,0.5);
        }

        .sf-card.sol-card .corner-tech {
            border-color: rgba(99,102,241,0.8);
        }

        .sf-card.sol-card .scan-line {
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(99,102,241,0.9) 50%, 
                transparent 100%);
        }

        .sf-card.yrm-card::before {
            background: linear-gradient(45deg, 
                rgba(139,92,246,0.4) 0%, 
                rgba(255,255,255,0.1) 25%, 
                rgba(139,92,246,0.6) 50%, 
                rgba(255,255,255,0.1) 75%, 
                rgba(139,92,246,0.4) 100%);
        }

        .sf-card.yrm-card {
            background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(168,85,247,0.1) 100%);
            box-shadow: var(--shadow-md), var(--glow-secondary);
        }

        .sf-card.yrm-card .status-dot {
            background: #8b5cf6;
            box-shadow: 0 0 10px #8b5cf6, 0 0 20px rgba(139,92,246,0.5);
        }

        .sf-card.yrm-card .corner-tech {
            border-color: rgba(139,92,246,0.8);
        }

        .sf-card.yrm-card .scan-line {
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(139,92,246,0.9) 50%, 
                transparent 100%);
        }

        .sf-card.claimable-card::before {
            background: linear-gradient(45deg, 
                rgba(6,182,212,0.4) 0%, 
                rgba(255,255,255,0.1) 25%, 
                rgba(6,182,212,0.6) 50%, 
                rgba(255,255,255,0.1) 75%, 
                rgba(6,182,212,0.4) 100%);
        }

        .sf-card.claimable-card {
            background: linear-gradient(135deg, rgba(6,182,212,0.15) 0%, rgba(14,165,233,0.1) 100%);
            box-shadow: var(--shadow-md), 0 0 20px rgba(6, 182, 212, 0.2);
        }

        .sf-card.claimable-card .status-dot {
            background: #06b6d4;
            box-shadow: 0 0 10px #06b6d4, 0 0 20px rgba(6,182,212,0.5);
        }

        .sf-card.claimable-card .corner-tech {
            border-color: rgba(6,182,212,0.8);
        }

        /* Typographie HUD */
        .currency-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
            position: relative;
            z-index: 2;
        }

        .currency-label {
            font-size: 18px;
            font-weight: 800;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
            letter-spacing: 1.2px;
            text-transform: uppercase;
            color: var(--text-primary);
            position: relative;
        }

        .currency-label::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, #00ff88, transparent);
        }

        /* Boutons HUD */
        .sf-btn {
            border: 2px solid rgba(255, 255, 255, 0.2);
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
        }

        .sf-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s ease;
        }

        .sf-btn:hover::before {
            left: 100%;
        }

        .sf-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(0,255,255,0.6);
            box-shadow: 0 4px 12px rgba(0,255,255,0.3);
        }

        .sf-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none !important;
        }

        /* BOUTON BURN ROUGE QUAND CONNECTÉ/ENABLED */
        .sf-btn:not(:disabled):not(.simulate-btn):not(.claim-btn) {
            background: linear-gradient(135deg, var(--accent-danger) 0%, #dc2626 100%);
            border-color: rgba(239,68,68,0.6);
            color: white;
            box-shadow: var(--shadow-sm), var(--glow-danger);
        }

        .sf-btn:not(:disabled):not(.simulate-btn):not(.claim-btn):hover {
            box-shadow: var(--shadow-md), var(--glow-danger);
            border-color: rgba(239,68,68,0.8);
        }

        .sf-btn.simulate-btn {
            background: linear-gradient(135deg, var(--accent-tertiary) 0%, #0891b2 100%);
            border-color: rgba(6,182,212,0.6);
            color: white;
        }

        .sf-btn.claim-btn {
            background: linear-gradient(135deg, var(--accent-success) 0%, #059669 100%);
            border-color: rgba(16,185,129,0.6);
            color: white;
        }

        .balance-amount {
            font-size: 24px;
            font-weight: 900;
            margin-bottom: 4px;
            line-height: 1.1;
            text-shadow: 0 2px 8px rgba(0,0,0,0.4);
            color: var(--text-primary);
            position: relative;
            z-index: 2;
        }

        .claimable-title {
            font-size: 14px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 14px;
            text-shadow: 0 2px 8px rgba(0,0,0,0.4);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #06b6d4;
            position: relative;
            z-index: 2;
        }

        .claimable-title::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 1px;
            background: linear-gradient(90deg, transparent, #06b6d4, transparent);
        }

        /* Section info HUD */
        .user-info-section {
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(12px);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 14px;
            position: relative;
            overflow: hidden;
        }

        .user-info-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(0,255,255,0.6) 50%, 
                transparent 100%);
        }

        .user-info-section::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 8px;
            width: 6px;
            height: 6px;
            background: #00ff88;
            border-radius: 50%;
            box-shadow: 0 0 8px #00ff88;
            animation: pulse 2s ease-in-out infinite;
        }

        .user-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 16px;
            font-size: 9px;
            font-weight: 600;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .info-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            position: relative;
        }

        .info-item::after {
            content: '';
            width: 24px;
            height: 2px;
            background: linear-gradient(90deg, #00ff88, #06b6d4);
            border-radius: 1px;
            margin-top: 3px;
        }

        .info-label {
            color: #f59e0b;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 500;
            font-size: 10px;
        }

        .info-value {
            font-weight: 700;
            color: var(--text-primary);
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
            font-size: 10px;
        }

        /* Contrôles simulateur */
        .simulator-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 14px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        /* Input HUD */
        .sf-input {
            flex: 1;
            background: rgba(255, 255, 255, 0.06);
            border: 2px solid rgba(255, 255, 255, 0.15);
            color: var(--text-primary);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 500;
            backdrop-filter: blur(12px);
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.3px;
        }

        .sf-input::placeholder {
            color: var(--text-muted);
            font-weight: 400;
        }

        .sf-input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(6, 182, 212, 0.6);
            box-shadow: 
                0 0 0 2px rgba(6, 182, 212, 0.2), 
                0 0 15px rgba(6, 182, 212, 0.3);
        }

        /* Résultat HUD */
        .claimable-result {
            background: rgba(6, 182, 212, 0.1);
            border: 2px solid rgba(6, 182, 212, 0.3);
            border-radius: 10px;
            padding: 14px;
            text-align: center;
            font-size: 16px;
            font-weight: 800;
            backdrop-filter: blur(16px);
            text-shadow: 0 2px 8px rgba(0,0,0,0.4);
            position: relative;
            color: var(--text-primary);
            margin-bottom: 14px;
            overflow: hidden;
            z-index: 2;
        }

        /* Data stream */
        .claimable-result::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(6,182,212,0.2) 50%, 
                transparent 100%);
            animation: dataStream 3s ease-in-out infinite;
        }

        @keyframes dataStream {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Sections du bas */
        .info-section {
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.02);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            position: relative;
        }

        .info-section::before {
            content: '';
            position: absolute;
            left: 24px;
            right: 24px;
            top: 50%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
            transform: translateY(-50%);
        }

        .info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
            background: rgba(15, 15, 30, 0.9);
            padding: 0 12px;
            border-radius: 6px;
        }

        .nav-buttons {
            padding: 12px 24px;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: center;
            gap: 8px;
        }

        .nav-btn {
            background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 8px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            box-shadow: var(--shadow-sm), var(--glow-primary);
            position: relative;
            overflow: hidden;
        }

        .nav-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.15);
            transition: left 0.6s ease;
        }

        .nav-btn:hover::before {
            left: 100%;
        }

        .nav-btn:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md), var(--glow-primary);
        }

        .token-address {
            background: rgba(0, 0, 0, 0.5);
            color: var(--text-muted);
            padding: 8px 24px;
            text-align: center;
            font-size: 7px;
            font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .token-address span {
            color: var(--text-secondary);
            font-weight: 600;
        }

        /* MODAL BURN HUD FUTURISTE */
        .burn-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(16px);
        }

        .burn-popup.active {
            display: flex;
            animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes fadeIn {
            from { 
                opacity: 0;
                backdrop-filter: blur(0);
            }
            to { 
                opacity: 1;
                backdrop-filter: blur(16px);
            }
        }

        .burn-popup-content {
            background: var(--glass-bg);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 32px;
            text-align: center;
            max-width: 420px;
            width: 90%;
            position: relative;
            backdrop-filter: blur(24px);
            box-shadow: var(--shadow-xl);
            animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            color: var(--text-primary);
            overflow: hidden;
        }

        /* Bordures HUD animées pour le modal */
        .burn-popup-content::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border-radius: 20px;
            background: linear-gradient(45deg, 
                rgba(250,112,154,0.4) 0%, 
                rgba(255,255,255,0.1) 25%, 
                rgba(254,225,64,0.4) 50%, 
                rgba(255,255,255,0.1) 75%, 
                rgba(250,112,154,0.4) 100%);
            z-index: -1;
            animation: modalBorderGlow 2s ease-in-out infinite;
        }

        @keyframes modalBorderGlow {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* Coins techniques du modal */
        .burn-popup-content .modal-corner {
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(250,112,154,0.8);
        }

        .burn-popup-content .modal-corner.tl {
            top: 12px;
            left: 12px;
            border-right: none;
            border-bottom: none;
            border-radius: 4px 0 0 0;
        }

        .burn-popup-content .modal-corner.tr {
            top: 12px;
            right: 12px;
            border-left: none;
            border-bottom: none;
            border-radius: 0 4px 0 0;
        }

        .burn-popup-content .modal-corner.bl {
            bottom: 12px;
            left: 12px;
            border-right: none;
            border-top: none;
            border-radius: 0 0 0 4px;
        }

        .burn-popup-content .modal-corner.br {
            bottom: 12px;
            right: 12px;
            border-left: none;
            border-top: none;
            border-radius: 0 0 4px 0;
        }

        /* Scan line du modal */
        .burn-popup-content .modal-scan {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(250,112,154,0.9) 50%, 
                transparent 100%);
            animation: modalScan 3s ease-in-out infinite;
            opacity: 0;
        }

        @keyframes modalScan {
            0%, 90%, 100% { 
                opacity: 0; 
                transform: translateY(0);
            }
            45% { 
                opacity: 1; 
                transform: translateY(300px);
            }
        }

        /* Status dot du modal */
        .burn-popup-content .modal-status {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #fa709a;
            box-shadow: 
                0 0 10px #fa709a,
                0 0 20px rgba(250,112,154,0.5);
            animation: pulse 2s ease-in-out infinite;
        }

        /* Grille de données du modal */
        .burn-popup-content .modal-grid {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(90deg, rgba(250,112,154,0.02) 0%, transparent 1%),
                linear-gradient(0deg, rgba(250,112,154,0.02) 0%, transparent 1%);
            background-size: 15px 15px;
            opacity: 0.4;
            pointer-events: none;
            border-radius: 20px;
        }

        @keyframes slideUp {
            from { 
                transform: translateY(20px);
                opacity: 0;
            }
            to { 
                transform: translateY(0);
                opacity: 1;
            }
        }

        .burn-popup-content h3 {
            font-size: 1.5em;
            margin-bottom: 24px;
            background: linear-gradient(135deg, #fa709a, #fee140);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 800;
            letter-spacing: 0.5px;
            position: relative;
            z-index: 1;
        }

        .amount-input-container {
            margin: 24px 0;
            position: relative;
            z-index: 1;
        }

        .amount-input {
            padding: 14px;
            font-size: 1.2em;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.06);
            border: 2px solid rgba(250, 112, 154, 0.3);
            color: var(--text-primary);
            border-radius: 12px;
            text-align: center;
            width: 140px;
            margin: 0 auto;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px);
        }

        .amount-input:focus {
            outline: none;
            border-color: rgba(250, 112, 154, 0.6);
            box-shadow: 0 0 0 4px rgba(250, 112, 154, 0.1);
        }

        .tax-container {
            margin: 28px 0;
            padding: 20px;
            background: rgba(250, 112, 154, 0.06);
            border-radius: 16px;
            border: 1px solid rgba(250, 112, 154, 0.15);
            backdrop-filter: blur(12px);
            position: relative;
            z-index: 1;
        }

        .tax-label {
            color: #fa709a;
            font-size: 1em;
            margin-bottom: 16px;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .tax-slider-container {
            position: relative;
            margin: 16px 0;
        }

        .tax-slider {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(to right, #4facfe 0%, #feca57 50%, #fa709a 100%);
            outline: none;
            appearance: none;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

        .tax-slider::-webkit-slider-thumb {
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            border: 2px solid #fa709a;
            box-shadow: 0 3px 8px rgba(250, 112, 154, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .tax-slider::-webkit-slider-thumb:hover {
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(250, 112, 154, 0.6);
        }

        .tax-display {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
        }

        .tax-value {
            font-size: 1.2em;
            background: linear-gradient(135deg, #fa709a, #fee140);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 800;
        }

        .tax-info {
            font-size: 0.8em;
            color: var(--text-muted);
            font-weight: 500;
        }

        .burn-preview {
            background: rgba(79, 172, 254, 0.06);
            border: 1px solid rgba(79, 172, 254, 0.15);
            border-radius: 12px;
            padding: 18px;
            margin: 24px 0;
            backdrop-filter: blur(12px);
            position: relative;
            z-index: 1;
        }

        .burn-preview-title {
            color: #4facfe;
            font-size: 0.9em;
            font-weight: 600;
            margin-bottom: 14px;
            letter-spacing: 0.3px;
        }

        .burn-calculation {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            font-size: 0.85em;
        }

        .burn-calculation .value {
            font-weight: 700;
            background: linear-gradient(135deg, #feca57, #ff9ff3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .popup-buttons {
            display: flex;
            gap: 16px;
            margin-top: 28px;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .popup-buttons button {
            padding: 14px 28px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.9em;
            min-width: 120px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            letter-spacing: 0.3px;
            position: relative;
            overflow: hidden;
        }

        .popup-buttons button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s ease;
        }

        .popup-buttons button:hover::before {
            left: 100%;
        }

        .btn-confirm {
            background: linear-gradient(135deg, #fa709a, #fee140);
            color: white;
            box-shadow: var(--shadow-md);
        }

        .btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .btn-cancel {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(12px);
        }

        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

/* Styles pour le modal PDF */
.thesis-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.thesis-popup.show {
    display: flex;
}

.thesis-popup-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(0, 255, 136, 0.3),
        inset 0 0 50px rgba(0, 255, 136, 0.1);
}

/* Éléments HUD pour le modal PDF */
.thesis-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.thesis-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #8b5cf6;
    z-index: 3;
}

.thesis-corner.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.thesis-corner.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.thesis-corner.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.thesis-corner.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

@keyframes scanMove {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(400px); opacity: 1; }
}

.thesis-status {
    position: absolute;
    top: 15px;
    right: 50px;
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 3;
}

.thesis-header {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    z-index: 4;
}

.thesis-title {
    color: #00ff88;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.thesis-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.thesis-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.thesis-btn:hover {
    background: linear-gradient(45deg, #00cc6a, #00ff88);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.thesis-btn.close-btn {
    background: linear-gradient(45deg, #ff4444, #cc0000);
    color: white;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.thesis-btn.close-btn:hover {
    background: linear-gradient(45deg, #cc0000, #ff4444);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
}

.thesis-content {
    position: relative;
    width: 100%;
    height: calc(100% - 80px);
    z-index: 2;
}

.thesis-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.thesis-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff88;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    z-index: 5;
}

/* Mobile text content */
.thesis-text-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px;
    color: #cccccc;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    z-index: 5;
    display: none;
}

.thesis-text-content h1 {
    color: #00ff88;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.thesis-text-content h2 {
    color: #00ff88;
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    padding-bottom: 5px;
}

.thesis-text-content h3 {
    color: #00cc6a;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.thesis-text-content p {
    margin: 0 0 15px 0;
    text-align: justify;
}

.thesis-text-content .author {
    text-align: center;
    color: #00ff88;
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 5px 0;
}

.thesis-text-content .date {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 0 0 30px 0;
}

.thesis-text-content .extract {
    background: rgba(0, 255, 136, 0.1);
    border-left: 3px solid #00ff88;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 4px;
}

.thesis-text-content .keywords {
    background: rgba(0, 255, 136, 0.05);
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 12px;
}

.thesis-text-content .keywords strong {
    color: #00ff88;
}

.thesis-text-content .toc {
    background: rgba(0, 255, 136, 0.05);
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.thesis-text-content .toc h3 {
    margin-top: 0;
    color: #00ff88;
}

.thesis-text-content .toc ul {
    margin: 0;
    padding-left: 20px;
}

.thesis-text-content .toc li {
    margin: 5px 0;
    color: #cccccc;
}

.thesis-text-content .formula {
    background: rgba(0, 255, 136, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    text-align: center;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #00ff88;
}

/* General text content styles */
h1, h2, h3 {
    color: #111;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

hr {
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

th {
    background: #eee;
}

em {
    color: #555;
}

/* Header styles */
.header h1 {
    color: #00ff88;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header .subtitle {
    color: #ecf0f1;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.4;
}

.header .subtitle strong {
    color: #00ff88;
    font-weight: 600;
}

.header .author {
    color: #00cc6a;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.header .status {
    color: #95a5a6;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.header a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header a:hover {
    color: #00cc6a;
    text-decoration: underline;
}

/* Content sections */
.content {
    padding: 20px;
}

.questions-section {
    margin: 20px 0;
}

.question {
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid #00ff88;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.resume {
    margin: 20px 0;
}

.contribution {
    background: rgba(0, 255, 136, 0.05);
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.highlight {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.bibliography {
    margin: 30px 0;
}

.biblio-section {
    margin: 20px 0;
}

.biblio-item {
    margin: 5px 0;
    padding-left: 15px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .thesis-popup-content {
        width: 95%;
        height: 95%;
    }

    .thesis-title {
        font-size: 18px;
    }

    .thesis-controls {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }

    .thesis-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .thesis-header {
        text-align: center;
    }

    .thesis-text-content {
        font-size: 13px;
        padding: 15px;
    }

    .thesis-text-content h1 {
        font-size: 20px;
    }

    .thesis-text-content h2 {
        font-size: 18px;
    }
}