        :root {
            --bg-gradient: linear-gradient(135deg, #050505 0%, #111111 100%);
            --card-bg: #111111;
            --text-main: #E5E5E5;
            --text-muted: #9ca3af;
            --border-color: #222222;
            --input-bg: #000000;
            --header-bg: rgba(5, 5, 5, 0.95);
            --gold-primary: #D4AF37;
            --tag-border: rgba(212, 175, 55, 0.4);
            --tag-text: #D4AF37;
            --label-accent: #D4AF37; 
            --modal-desc: #9ca3af;
        }

        body.light-theme {
            --bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
            --card-bg: #F1F5F9; 
            --text-main: #020617; 
            --text-muted: #0f172a; 
            --border-color: #cbd5e1;
            --input-bg: #E2E8F0; 
            --header-bg: rgba(255, 255, 255, 0.95);
            --gold-primary: #7c2d12; 
            --tag-border: #7c2d12; 
            --tag-text: #7c2d12;   
            --label-accent: #7c2d12; 
            --modal-desc: #f97316; 
        }

        body { 
            background: var(--bg-gradient);
            color: var(--text-main); 
            font-family: 'Plus Jakarta Sans', sans-serif;
            -webkit-font-smoothing: antialiased;
            transition: all 0.4s ease;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .gold-gradient {
            background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }

        body.light-theme h1.gold-gradient {
            background: none !important;
            -webkit-text-fill-color: var(--gold-primary) !important;
            color: var(--gold-primary);
        }

        .orange-header { color: var(--label-accent) !important; transition: color 0.4s ease; }

        body.light-theme label, 
        body.light-theme .theme-text-muted,
        body.light-theme p[id$="-note"],
        body.light-theme p[id$="-output"],
        body.light-theme #label-btn-howto,
        body.light-theme h3 {
            color: var(--gold-primary) !important;
            font-weight: 800;
        }

        body.light-theme .modal-step-title { color: var(--gold-primary) !important; }
        body.light-theme .modal-step-desc { color: var(--modal-desc) !important; font-weight: 700; }

        #label-ok {
            background: var(--gold-primary);
            color: white !important;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(124, 45, 18, 0.3);
        }

        .gold-button {
            background: linear-gradient(135deg, #D4AF37 0%, #996515 100%);
            color: black; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        body.light-theme .gold-button { color: white; background: linear-gradient(135deg, #854d0e 0%, #713f12 100%); }

        .card-luxury {
            background-color: var(--card-bg); 
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative; padding-top: 4rem !important; z-index: 1;
        }

        .step-tag {
            position: absolute; top: 0; left: 0;
            background: linear-gradient(135deg, #D4AF37 0%, #996515 100%);
            color: black; font-weight: 800; font-size: 10px;
            padding: 8px 20px; border-bottom-right-radius: 20px;
            text-transform: uppercase; letter-spacing: 0.15em;
            box-shadow: 4px 4px 15px rgba(0,0,0,0.2); z-index: 10;
        }

        .header-ctrl-box {
            height: 40px; background: var(--input-bg); border: 1px solid var(--border-color);
            border-radius: 20px; display: flex; align-items: center; justify-content: center; 
            color: var(--gold-primary);
            transition: all 0.3s ease;
        }

        .lang-btn {
            flex: 1; height: 100%; border-radius: 18px; font-weight: 800; font-size: 10px; transition: all 0.3s ease;
            color: var(--gold-primary);
        }
        .lang-btn.active {
            background-color: #D4AF37; color: black !important; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
        }

        input, select {
            background-color: var(--input-bg) !important;
            color: var(--text-main) !important;
            border: 1px solid var(--border-color) !important;
            outline: none; font-weight: 600;
        }

        .loader {
            border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid #D4AF37;
            border-radius: 50%; width: 18px; height: 18px; animation: spin 1s linear infinite;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        .master-tag {
            display: inline-block; font-size: 8px; border: 1px solid var(--tag-border);
            padding: 2px 10px; border-radius: 9999px; color: var(--tag-text);
            font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 15px;
        }

        .debug-box {
            background: rgba(0,0,0,0.4); border: 1px solid var(--border-color);
            border-radius: 1rem; padding: 1rem; margin-top: 1.5rem; text-align: left; font-size: 11px;
        }
        .debug-label { color: var(--gold-primary); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
        .debug-content { color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
