:root { 
            --bg: #ffffff; 
            --body-bg: #f0f2f5;
            --text: #1a2c5b; 
            --accent: #4a90e2; 
            --green: #27ae60; 
            --red: #e74c3c; 
            --card-border: rgba(0, 0, 0, 0.08);
            --nav-bg: rgba(255, 255, 255, 0.85);
            --nav-border: rgba(0, 0, 0, 0.05);
            --option-bg: rgba(0, 0, 0, 0.02);
            --grey: #7f8c8d;
            --ad-bg: #f9f9fb;
            --input-bg: #f9f9fb;
            --card-bg: #f8fafc;
            --purple: #9b59b6;
            --gold: #f1c40f;
            --glass-bg: rgba(255, 255, 255, 0.4);
            --glass-glow: rgba(155, 89, 182, 0);
        }

        :root.dark-mode {
            --bg: #0b0f19; 
            --body-bg: #05070f;
            --text: #f1f1f7; 
            --accent: #3b82f6; 
            --green: #2ecc71; 
            --red: #e74c3c; 
            --card-border: rgba(255, 255, 255, 0.08);
            --nav-bg: rgba(18, 24, 38, 0.85);
            --nav-border: rgba(255, 255, 255, 0.05);
            --option-bg: rgba(255, 255, 255, 0.03);
            --grey: #a0a0b0;
            --ad-bg: #121826;
            --input-bg: #121826;
            --card-bg: #121826;
            --purple: #bf5af2;
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-glow: rgba(191, 90, 242, 0.15);
        }

        body { 
            font-family: '-apple-system', BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
            background: var(--body-bg); 
            margin: 0; 
            padding: 0;
            display: flex; 
            justify-content: center; 
            align-items: center; 
            min-height: 100vh; 
            min-height: 100dvh;
            transition: background 0.3s ease;
            overflow: hidden;
        }
        
        /* ⬇️ ՇՏԿՎԱԾ CONTAINER — Մեծացրել ենք բազային padding-ը, որ ամբողջ վերևի տողը միասին իջնի ցած */
        .app-container { 
            width: 100%; 
            max-width: 500px;
            height: 100vh; 
            height: 100dvh; 
            background: var(--bg); 
            position: relative; 
            padding: calc(45px + env(safe-area-inset-top)) 20px 15px 20px; 
            box-sizing: border-box; 
            overflow: hidden; 
            display: flex; 
            flex-direction: column;
            transition: background 0.3s ease;
        }

        /* 🖥️ Fallback՝ երբ հավելվածը բացվում է Telegram-ից դուրս (սովորական բրաուզերում).
           Telegram-ի "✕ VarordAi •••" native գլխամասը այնտեղ չկա, ուստի մեր սեփական
           վերևի գոտուն մի փոքր ավելի padding ենք տալիս, որ կոճակները էկրանի եզրին չկպչեն */
        html.not-telegram .app-container {
            padding-top: max(25px, env(safe-area-inset-top));
        }
        html.not-telegram .top-bar,
        html.not-telegram .quiz-header-row {
            margin-top: 10px;
        }

        .page { 
            display: none; 
            flex-direction: column; 
            height: 100%; 
            overflow-y: auto; 
            box-sizing: border-box; 
            -webkit-overflow-scrolling: touch; 
        }
        .active { display: flex; }
        
        #home, #test-menu, #fixed-exams-page, #all-tests-page, #result-page, #profile-page, #about-page {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        }
        
        #quiz {
            padding-bottom: 10px !important;
        }

        /* ⬇️ ՇՏԿՎԱԾ ԳԼԽԱՄԱՍ — Այլևս չի մեծացնում իր բարձրությունը, այլ կոճակները պահում է նույն տողում */
        .top-bar { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            width: 100%; 
            position: relative; 
            min-height: 40px; 
            padding-top: 0; 
            padding-bottom: 15px; 
            margin-top: 15px;
        }
        .back-btn { background: none; border: none; font-size: 15px; color: var(--accent); cursor: pointer; padding: 8px 0; font-weight: 600; display: flex; align-items: center; gap: 4px; }
        
        .theme-toggle {
            background: var(--option-bg); border: 1px solid var(--card-border); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; 
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
        }
        .theme-toggle:active { transform: scale(0.85) rotate(90deg); }

        .days-plan-edit-btn {
            background: var(--option-bg); border: 1px solid var(--purple); color: var(--purple);
            width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex;
            align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
            transition: transform 0.15s ease, background-color 0.3s;
        }
        .days-plan-edit-btn:active { transform: scale(0.85); }
        
        h1#home-welcome { 
            color: var(--text); 
            font-size: 24px; 
            text-align: center; 
            margin-top: 5px; 
            margin-bottom: 12px; 
            letter-spacing: -0.5px; 
            width: 100%;
            clear: both;
        }
        
        .page h2 {
            text-align: center;
            margin-top: 5px;
            margin-bottom: 20px;
            width: 100%;
            clear: both;
        }
        
        h2, h3, p { color: var(--text); }
        
        .btn { width: 100%; padding: 15px; margin: 6px 0; border: none; border-radius: 18px; background: var(--accent); color: white; font-weight: 600; cursor: pointer; text-align: center; font-size: 15px; display: block; box-sizing: border-box; transition: transform 0.1s ease, background 0.2s; }
        .btn:active { transform: scale(0.97); }

        .profile-card { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: 24px; padding: 15px; margin-bottom: 15px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; transition: all 0.5s ease; }
        .form-group { display: flex; flex-direction: column; gap: 4px; }
        .form-group label { font-size: 12px; font-weight: 600; color: var(--grey); }
        .form-control { width: 100%; padding: 10px; border: 1px solid var(--card-border); border-radius: 12px; background: var(--input-bg); color: var(--text); font-size: 14px; box-sizing: border-box; outline: none; transition: border 0.2s; }
        .form-control:focus { border-color: var(--accent); }
        
        .profile-avatar { width: 70px; height: 70px; background: linear-gradient(135deg, var(--accent), var(--purple)); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; margin: 0 auto 10px auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

        .daily-card { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--card-border); border-radius: 24px; padding: 16px; margin-bottom: 10px; box-sizing: border-box; position: relative; }

        @keyframes pulseLightning {
            0% { transform: scale(1); filter: drop-shadow(0 0 2px #f1c40f); }
            50% { transform: scale(1.18); filter: drop-shadow(0 0 8px #f1c40f); }
            100% { transform: scale(1); filter: drop-shadow(0 0 2px #f1c40f); }
        }
        .animated-flash-bolt {
            display: inline-block;
            animation: pulseLightning 1.8s infinite ease-in-out;
            cursor: pointer;
            transition: transform 0.1s;
        }
        .animated-flash-bolt:active { transform: scale(0.9); }

        .flashes-line-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 15px 0;
            padding: 10px 6px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 14px;
            border: 1px solid var(--card-border);
        }
        .flash-node { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; user-select: none; }

        .option { padding: 15px; margin: 10px 0; border: 2px solid var(--card-border); background: var(--glass-bg); color: var(--text); border-radius: 16px; cursor: pointer; transition: transform 0.1s ease, border-color 0.2s, background-color 0.2s; }
        .option:active { transform: scale(0.98); }
        .correct { border-color: var(--green) !important; background: rgba(46, 204, 113, 0.15) !important; color: var(--green) !important; font-weight: 600; }
        .wrong { border-color: var(--red) !important; background: rgba(231, 76, 60, 0.15) !important; color: var(--red) !important; font-weight: 600; }
        .selected-neutral { border-color: var(--accent) !important; background: rgba(74, 144, 226, 0.15) !important; font-weight: 600; }
        .disabled { pointer-events: none; }
        
        .progress-bar-container-top { width: 85px; margin-top: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
        .progress-bar-top-mini { width: 100%; height: 5px; border-radius: 3px; overflow: hidden; background: var(--option-bg); border: 1px solid var(--card-border); position: relative; }
        #home-progress-fill { background: linear-gradient(90deg, var(--green), #2ecc71); width: 0%; height: 100%; transition: width 0.4s ease; }
        #home-mini-percent { font-size: 9px; color: var(--grey); font-weight: bold; }

        .fixed-exams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 5px 2px; }
        .fixed-exam-item-btn { background: var(--glass-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 18px 5px; text-align: center; cursor: pointer; font-weight: bold; font-size: 12px; color: var(--text); transition: transform 0.1s, border-color 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
        .fixed-exam-item-btn:active { transform: scale(0.94); background: var(--option-bg); }
        .fixed-exam-item-btn span { font-size: 10px; color: var(--grey); font-weight: 600; }
        
        .result-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; }
        .circular-progress { position: relative; width: 130px; height: 140px; border-radius: 50%; background: conic-gradient(var(--green) 0deg, var(--card-border) 0deg); display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
        .circular-progress::before { content: ""; position: absolute; width: 104px; height: 110px; border-radius: 50%; background: var(--bg); }
        .progress-value { position: relative; font-size: 26px; font-weight: 700; color: var(--text); }

        .readiness-container { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--glass-bg); border: 1px solid var(--card-border); border-radius: 24px; padding: 16px; margin-bottom: 15px; }
        .readiness-circle { position: relative; width: 90px; height: 90px; border-radius: 50%; background: conic-gradient(var(--purple) 0deg, var(--card-border) 0deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px var(--glass-glow); transition: background 0.4s ease; }
        .readiness-circle::before { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--bg); }
        .readiness-val { position: relative; font-size: 20px; font-weight: bold; color: var(--text); }

        /* 🥇 Premium օգտատեր (Home) */
        .home-premium-badge {
            display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
            margin: 8px 0 0 0; padding: 5px 12px;
            background: linear-gradient(135deg, rgba(241,196,15,0.18), rgba(241,196,15,0.06));
            border: 1px solid var(--gold); border-radius: 14px;
            color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.2px;
            box-shadow: 0 0 10px rgba(241,196,15,0.25);
        }

        /* Premium օրերի կլոր ինդեքս (Profile) */
        .premium-days-container { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--glass-bg); border: 1px solid var(--gold); border-radius: 24px; padding: 16px; margin-bottom: 15px; }
        .premium-days-circle { position: relative; width: 90px; height: 90px; border-radius: 50%; background: conic-gradient(var(--gold) 0deg, var(--card-border) 0deg); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 12px rgba(241,196,15,0.35); transition: background 0.4s ease; }
        .premium-days-circle::before { content: ""; position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--bg); }
        .premium-days-val { position: relative; font-size: 20px; font-weight: bold; color: var(--gold); }
        
        .stats-box { width: 100%; background: var(--glass-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 12px; box-sizing: border-box; margin-bottom: 15px; }
        .stat-row { display: flex; justify-content: space-between; margin: 6px 0; font-size: 14px; font-weight: 600; color: var(--text); }

        .nav-menu { 
            position: absolute; 
            bottom: calc(15px + env(safe-area-inset-bottom)); 
            left: 15px; 
            right: 15px; 
            height: 64px; display: flex; justify-content: space-around; align-items: center; 
            border: 1px solid var(--nav-border); background: var(--nav-bg); 
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-radius: 22px; font-size: 11px; color: var(--grey);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1); z-index: 10;
        }
        .nav-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; flex: 1; position: relative; transition: color 0.2s, font-weight 0.2s; }
        .nav-item span:first-child { font-size: 18px; margin-bottom: 2px; transition: transform 0.2s; }
        .nav-item.active-nav { color: var(--accent); font-weight: bold; }
        .nav-item.active-nav span:first-child { transform: translateY(-2px) scale(1.1); }
        .nav-item.active-nav::after { content: ""; position: absolute; top: -6px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

        .about-card { background: var(--glass-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 15px; margin-bottom: 12px; text-align: left; }
        .about-title { font-size: 14px; font-weight: bold; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
        .about-text { font-size: 13px; color: var(--grey); line-height: 1.4; margin: 0; }
        
        .exam-nav-box { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; }
        .exam-nav-btn { flex: 1; padding: 14px; border: 1px solid var(--card-border); background: var(--input-bg); color: var(--text); border-radius: 14px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
        
        .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 5px; }
        .stat-card { background: var(--glass-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 12px; text-align: center; }
        .stat-card-val { font-size: 16px; font-weight: bold; color: var(--accent); margin-top: 2px; }
        
        .topic-row { display: flex; justify-content: space-between; background: var(--glass-bg); padding: 15px 16px; border: 1px solid var(--card-border); border-radius: 18px; font-weight: 600; font-size: 13px; color: var(--text); cursor: pointer; align-items: center; transition: transform 0.1s; margin-bottom: 2px; }
        .topic-row:active { transform: scale(0.98); }
        .topic-count { font-size: 11px; background: var(--option-bg); border: 1px solid var(--card-border); padding: 3px 8px; border-radius: 10px; color: var(--grey); }

        @keyframes pulse-fire {
            0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(230, 126, 34, 0)); }
            50% { transform: scale(1.06); filter: drop-shadow(0 0 6px rgba(230, 126, 34, 0.6)); }
            100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(230, 126, 34, 0)); }
        }
        .pulse-streak { animation: pulse-fire 2s infinite ease-in-out; }

        /* ⬇️ QUIZ ԷՋԻ ԳԼԽԱՄԱՍ — Զուգահեռ համապատասխանեցված է մյուս էջերին */
        .quiz-header-row { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            width: 100%; 
            margin-top: 10px; 
            margin-bottom: 12px; 
            min-height: 40px; 
            padding-top: 0; 
            padding-bottom: 15px; 
        }
        .quiz-center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; margin: 0 10px; }
        .progress-bar-container { height: 6px; width: 130px; background: var(--option-bg); border: 1px solid var(--card-border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
        .progress-bar-top { height: 100%; }
        #progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s ease; }
        
        .quiz-circle-back-btn { 
            background: var(--option-bg); 
            border: 1px solid var(--card-border); 
            width: 36px; 
            height: 36px; 
            border-radius: 50%; 
            color: var(--accent); 
            font-size: 16px; 
            font-weight: bold; 
            cursor: pointer; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            transition: background 0.2s; 
            outline: none; 
            flex-shrink: 0;
        }
        .quiz-circle-back-btn:active { background: var(--card-border); }
        .quiz-header-theme { margin: 0 !important; width: 36px !important; height: 36px !important; }

        .quiz-settings-wrapper { position: relative; }
        .quiz-settings-btn { margin: 0 !important; width: 36px !important; height: 36px !important; }
        .quiz-settings-dropdown {
            display: none;
            position: absolute;
            top: 44px;
            right: 0;
            background: var(--bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.18);
            gap: 8px;
            z-index: 50;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: 172px;
            align-items: center;
        }
        .quiz-settings-dropdown.open {
            display: flex;
            animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }
        .quiz-settings-dropdown .audio-sub-btn,
        .quiz-settings-dropdown .quiz-read-btn {
            display: inline-flex !important;
            position: static;
        }
        
        .audio-controls-wrapper {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            vertical-align: middle;
            margin-left: 8px;
            position: relative;
        }

        .quiz-read-btn { 
            background: var(--option-bg); 
            border: 1px solid var(--card-border); 
            width: 36px; 
            height: 36px; 
            border-radius: 50%; 
            color: var(--purple); 
            font-size: 15px; 
            cursor: pointer; 
            display: inline-flex; 
            align-items: center; 
            justify-content: center; 
            transition: transform 0.1s; 
            z-index: 5;
        }
        .quiz-read-btn:active { transform: scale(0.9); }

        .audio-sub-btn {
            display: none;
            background: var(--bg);
            border: 1px solid var(--card-border);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 10px;
            font-weight: bold;
            color: var(--text);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: transform 0.1s, background 0.2s, border-color 0.2s;
            animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        }
        .audio-sub-btn:active { transform: scale(0.9); }
        .audio-sub-btn.active-sub {
            background: var(--purple);
            border-color: var(--purple);
            color: white;
        }

        .audio-sub-btn#sub-ai-btn {
            display: inline-flex !important; 
            background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(74, 144, 226, 0.15));
            border: 1.5px solid var(--purple);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, box-shadow 0.3s;
            animation: aiPulseGlow 2s infinite ease-in-out !important; 
        }

        .audio-sub-btn#sub-ai-btn:active {
            transform: scale(0.9) rotate(5deg);
        }

        .audio-sub-btn#sub-ai-btn svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: var(--purple);
            stroke-width: 1.75;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        @keyframes aiPulseGlow {
            0% { box-shadow: 0 0 0 0 rgba(191, 90, 242, 0.4); transform: scale(1); }
            50% { box-shadow: 0 0 10px 4px rgba(191, 90, 242, 0.2); transform: scale(1.05); }
            100% { box-shadow: 0 0 0 0 rgba(191, 90, 242, 0); transform: scale(1); }
        }

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

        .ai-explanation-box {
            display: none;
            background: var(--option-bg);
            border-left: 3px solid var(--purple);
            border-radius: 8px;
            padding: 10px 12px;
            margin: 12px 0;
            font-size: 12px;
            line-height: 1.4;
            color: var(--text);
            animation: fadeIn 0.3s ease forwards;
        }

        .ai-result-chart-box {
            width: 100%;
            background: rgba(155, 89, 182, 0.08);
            border: 1px dashed var(--purple);
            border-radius: 20px;
            padding: 14px;
            box-sizing: border-box;
            margin-bottom: 15px;
            display: none;
        }
        .ai-chart-bar-bg {
            width: 100%;
            height: 14px;
            background: var(--option-bg);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            overflow: hidden;
            margin-top: 6px;
            position: relative;
        }
        .ai-chart-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--purple), var(--accent));
            width: 0%;
            transition: width 1s ease-in-out;
        }
        .ai-motivational-text {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.4;
            color: var(--text);
            text-align: center;
            margin-top: 10px;
            font-style: italic;
        }

        .register-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 2500; display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
        .register-modal { width: 100%; max-width: 380px; background: var(--bg); border: 2px solid var(--accent); border-radius: 26px; padding: 22px; box-sizing: border-box; box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2); animation: modalOpen 0.3s ease-out; }
        @keyframes modalOpen { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

        .auth-tabs { display: flex; background: var(--option-bg); border: 1px solid var(--card-border); border-radius: 14px; margin-bottom: 15px; overflow: hidden; }
        .auth-tab { flex: 1; padding: 10px; border: none; background: none; color: var(--text); font-weight: bold; cursor: pointer; font-size: 14px; transition: background 0.2s; }
        .auth-tab.active-tab { background: var(--accent); color: white; }

        .info-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
        .info-modal { width: 100%; max-width: 380px; background: var(--bg); border: 2px solid var(--purple); border-radius: 24px; padding: 20px; box-sizing: border-box; box-shadow: 0 10px 30px rgba(155, 89, 182, 0.3); animation: modalOpen 0.3s ease-out; text-align: center; }
        .info-modal h3 { color: var(--purple); margin-top: 0; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; }

        .premium-lock-badge {
            display: inline-flex; align-items: center; justify-content: center;
            background: var(--gold); color: #1a2c5b; font-size: 9px; font-weight: 800;
            border-radius: 8px; padding: 1px 5px; margin-left: 5px; vertical-align: middle;
            letter-spacing: 0.3px;
        }

        .icon-lock-wrap { position: relative; display: inline-flex; }
        .icon-lock-dot {
            position: absolute; top: -4px; right: -4px; background: var(--gold);
            border-radius: 50%; width: 16px; height: 16px; font-size: 9px;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 0 0 2px var(--bg); pointer-events: none;
        }

.app-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 82%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}