/* ============================================================
   1. CSS KINTAMIEJI
   ============================================================ */
:root {
    /* Pagrindinės spalvos */
    --primary:       #5d5fef;
    --primary-dark:  #4f46e5;
    --primary-light: #f8f9ff;
    --accent:        #7c3aed;
    --accent-light:  #ede9fe;

    /* Tekstas */
    --text:          #1f2937;
    --text-dark:     #333;
    --text-gray:     #666;
    --text-muted:    #999;

    /* Fonas */
    --white:         #ffffff;
    --bg:            #ffffff;
    --bg-page:       #f0f2f5;
    --gray-light:    #f9fafb;

    /* Šešėliai */
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.05);
    --shadow-md:     0 4px 15px rgba(0,0,0,0.05);
    --shadow-lg:     0 8px 30px rgba(0,0,0,0.08);

    /* Kampai */
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     15px;
    --radius-xl:     20px;
}


/* ============================================================
   2. BAZINIAI STILIAI
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}


/* ============================================================
   3. NAVIGACIJA
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 1.5rem; font-weight: 800; cursor: pointer; }
.logo span { color: var(--primary); }
.logo-link { text-decoration: none; color: inherit; display: block; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.premium-badge { color: var(--primary); font-weight: 700; }


/* ============================================================
   4. HERO SEKCIJA
   ============================================================ */
.hero {
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background: radial-gradient(circle at top right, #eef2ff, #ffffff);
    min-height: 80vh;
}

.hero-content { flex: 1; }
.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.highlight { color: var(--primary); }
.hero-btns { display: flex; gap: 15px; margin-top: 30px; }

.hero-image { flex: 1; display: flex; justify-content: center; }
.mockup-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    width: 300px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.mockup-text { margin-top: 20px; }
.progress-bar { background: #eee; border-radius: 10px; height: 10px; margin-top: 15px; }
.fill { background: var(--primary); width: 65%; height: 100%; border-radius: 10px; }


/* ============================================================
   5. FUNKCIJŲ SEKCIJA
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 80px 8%;
    background: white;
}

.feature { text-align: center; padding: 20px; }
.feature i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.feature h3 { margin-bottom: 10px; }


/* ============================================================
   6. KAINŲ SEKCIJA
   ============================================================ */
.pricing {
    padding: 80px 8%;
    text-align: center;
    background: var(--gray-light);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.price-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    width: 320px;
    border: 1px solid #eee;
    position: relative;
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.price { font-size: 2.5rem; font-weight: 800; margin: 20px 0; }
.price span { font-size: 1rem; color: #666; }

.price-card ul { list-style: none; text-align: left; margin-bottom: 30px; }
.price-card li { margin-bottom: 10px; }
.disabled { color: #ccc; text-decoration: line-through; }

.popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}


/* ============================================================
   7. AUTENTIFIKACIJA (login, register)
   ============================================================ */
.auth-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container { width: 100%; max-width: 450px; padding: 20px; }

.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h2 { margin-top: 15px; font-size: 1.8rem; color: var(--text); }
.auth-header p { color: #666; font-size: 0.95rem; }

.auth-footer { text-align: center; margin-top: 25px; font-size: 0.9rem; color: #666; }
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }

.input-group { margin-bottom: 20px; }
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.input-group label { font-weight: 600; font-size: 0.9rem; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 15px; color: #9ca3af; }
.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.forgot-pw { font-size: 0.85rem; color: var(--primary); text-decoration: none; }

.divider { text-align: center; margin: 25px 0; position: relative; }
.divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}
.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}
.google-btn:hover { background-color: #f8f9fa; }
.google-btn img { width: 18px; height: 18px; }


/* ============================================================
   8. DASHBOARD IŠDĖSTYMAS
   ============================================================ */
.dashboard-bg { background: var(--bg-page); }
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar-nav {
    width: 250px;
    background: white;
    padding: 30px 20px;
    border-right: 1px solid #e5e7eb;
}

.sidebar-nav nav { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }

.sidebar-nav a {
    text-decoration: none;
    color: #4b5563;
    padding: 12px 15px;
    border-radius: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-nav a.active,
.sidebar-nav a:hover { background: #eef2ff; color: var(--primary); }
.sidebar-nav a.logout { margin-top: 20px; color: #ef4444; }

.dashboard-main { flex: 1; padding: 40px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.page-header h2 { margin: 0; }
.page-header p { margin: 5px 0 0; color: var(--text-gray); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}
.stat-card i { font-size: 1.5rem; color: var(--primary); }
.stat-card.highlight { border: 2px solid var(--accent-light); }

.dash-ad {
    margin-top: 40px;
    background: #e5e7eb;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    border: 2px dashed #9ca3af;
    color: #6b7280;
}

.user-header-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: box-shadow 0.3s;
    border: 1px solid #eee;
    text-decoration: none;
}
.user-header-pill:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.user-header-pill .pill-name { font-weight: bold; color: var(--text-dark); font-size: 14px; line-height: 1.2; text-align: right; }
.user-header-pill .pill-xp { color: var(--primary); font-size: 11px; font-weight: 600; display: block; }
.user-header-pill img {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--primary-light);
    object-fit: cover;
}


/* ============================================================
   9. BENDRI KOMPONENTAI
   ============================================================ */

/* --- Mygtukai ---
   .btn-primary  – pagrindinis (violetinis fono)
   .btn-outline  – kontūrinis
   .btn-back     – grįžimo nuoroda
   .btn-danger   – trynimo/pavojaus veiksmas
   .btn-edit-item / .btn-delete-item – admin lentelių eilutės mygtukai
   .btn-next-q, .btn-start-practice  – gradientiniai praktiakos mygtukai
   Modifikatoriai: .btn-full, .btn-lg
*/

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Atbuliniai vardai – nukreipia į btn-primary */
.btn-save, .btn-update { composes: btn-primary; }
.btn-save {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
}
.btn-save:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Spalvų variantai išsaugojimo mygtukui */
.btn-save-vbe  { background: var(--accent); }
.btn-save-vbe:hover  { background: #6b21d4; }
.btn-save-exam { background: #27ae60; }
.btn-save-exam:hover { background: #1e8449; }

.btn-update {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-update:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-update:active { transform: translateY(0); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-outline:hover { background: var(--primary-light); }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--accent-light);
    transition: background 0.2s;
}
.btn-back:hover { background: var(--accent-light); }

.back-link { text-decoration: none; color: var(--primary); font-weight: 600; }
.back-link:hover { text-decoration: underline; }

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #555;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-cancel:hover { background: #ddd; }

/* Dydžio modifikatoriai */
.btn-full { width: 100%; }
.btn-lg   { font-size: 1.1rem; padding: 16px 32px; }

/* Admin lentelių eilutės mygtukai */
.btn-edit       { color: #4a90e2; cursor: pointer; margin-right: 10px; }
.btn-delete     { color: #e74c3c; cursor: pointer; }
.btn-edit-item  { background: #f39c12; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-delete-item { background: #ff4757; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }

/* Gradientiniai praktikos mygtukai */
.btn-next-q,
.btn-start-practice {
    display: none;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(93,95,239,0.3);
    transition: transform 0.2s;
}
.btn-next-q { margin-top: 10px; }
.btn-start-practice { margin-bottom: 30px; }
.btn-next-q:hover,
.btn-start-practice:hover { transform: translateY(-2px); }


/* --- Kortelės ---
   .card           – universali balta kortelė (pakeitė content-card, list-card, admin-card)
   .course-item    – eilutės kortelė sąrašuose (temos, testai, dashboard)
   Modifikatoriai: .card--border-accent, .card--border-green
*/

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    border: 1px solid #eee;
}

/* Spalvoti kairiojo krašto akcentai admin kortelėms */
.card--border-accent { border-left: 4px solid var(--accent); }
.card--border-green  { border-left: 4px solid #27ae60; }

/* Atbuliniai vardai (senasis kodas vis dar veiks) */
.content-card { background: white; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.admin-card   { background: white; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-top: 30px; }
.admin-card-vbe { border-left: 4px solid var(--accent); }

.course-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.course-item:hover {
    box-shadow: 0 5px 15px rgba(93,95,239,0.1);
    border-color: var(--primary);
}

.course-list  { display: flex; flex-direction: column; gap: 15px; }
.items-list   { display: flex; flex-direction: column; gap: 15px; }


/* --- Formos --- */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Vienodas stilius visiems formos valdikliams */
.form-select,
.form-input,
.form-textarea {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}
.form-select  { padding: 10px 15px; min-width: 150px; cursor: pointer; }
.form-textarea { resize: vertical; }

.form-select:focus,
.form-input:focus,
.form-textarea:focus { border-color: var(--primary); }

/* filter-bar select naudoja tuos pačius stilius per .form-select */
.filter-bar select { padding: 10px 15px; border-radius: var(--radius-sm); border: 1px solid #ddd; outline: none; min-width: 150px; cursor: pointer; font-size: 14px; font-family: inherit; background: white; transition: border-color 0.2s; }
.filter-bar select:focus { border-color: var(--primary); }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text-dark); }

.form-row   { display: grid; gap: 15px; margin-bottom: 15px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.form-actions { display: flex; gap: 10px; margin-top: 10px; }


/* --- Paieška --- */
.search-wrap {
    flex: 1;
    min-width: 250px;
    position: relative;
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}
.search-input { padding-left: 40px !important; }


/* --- Progreso juostos --- */
.progress-bar-wrap { background: #f0f0f0; border-radius: 10px; height: 8px; overflow: hidden; }
.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 8px;
    border-radius: 10px;
    transition: width 0.4s;
}

.progress-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}
.progress-panel-bar { flex: 1; }
.progress-panel-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-gray);
}
.progress-label { font-weight: 600; color: var(--primary); }


/* --- Ženkleliai --- */
.category-badge {
    background: var(--gray-light);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Klausimo tipo ženkleliai */
.q-badge-test { background: var(--accent-light); color: var(--primary); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.q-badge-open { background: #fff3cd; color: #856404; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }

/* Rezultatų ženkleliai */
.score-badge { display: flex; gap: 15px; font-size: 14px; font-weight: 600; }
.score-badge .correct { color: #27ae60; }
.score-badge .wrong   { color: #e74c3c; }

/* XP juosta */
.xp-banner {
    margin: 20px 0;
    padding: 14px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 1px dashed var(--primary);
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}


/* --- Kiti bendri komponentai --- */
.results-count { margin: 10px 0 20px; color: var(--text-gray); font-size: 15px; }
.section-title { margin-bottom: 15px; color: #444; font-size: 16px; }

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 120px;
    color: var(--text-muted);
    font-size: 15px;
}
.loading-state i { font-size: 30px; }

.empty-state { margin-top: 50px; text-align: center; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 15px; opacity: 0.3; display: block; }
.empty-state p { font-size: 16px; }

.result-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quiz-submit-wrap { margin-top: 30px; text-align: center; }
.quiz-result-box  { margin-top: 20px; display: none; }

.session-summary { text-align: center; padding: 20px 0; }
.session-summary i { font-size: 60px; margin-bottom: 20px; display: block; }
.session-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 25px; }


/* ============================================================
   10. KLAUSIMŲ KOMPONENTAI
   ============================================================ */

/* Praktikos konteineris */
.practice-container { max-width: 800px; margin: 0 auto; }

/* Klausimo kortelė */
.question-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    min-height: 450px;
    position: relative;
}

/* Klausimo metaduomenys
   Naudoti .question-meta visur (senasis .q-meta yra atbulinė vardas) */
.question-meta,
.q-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Klausimo tekstas */
.question-text {
    margin: 0 0 28px 0;
    color: var(--text-dark);
    line-height: 1.45;
    font-size: 20px;
}

/* Atsakymų pasirinkimas */
.option-item {
    padding: 16px 20px;
    border: 2px solid #eee;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
}
.option-item:hover { border-color: var(--primary); background: var(--primary-light); }

.option-item .opt-letter {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
    color: #888;
}

/* Teisingas atsakymas */
.option-item.option-correct,
.option-item.correct-ans {
    border-color: #27ae60 !important;
    background: #eafaf1 !important;
    color: #1e8449 !important;
    pointer-events: none;
}
.option-item.option-correct .opt-letter,
.option-item.correct-ans .opt-letter { background: #27ae60; color: white; }

/* Neteisingas atsakymas */
.option-item.option-wrong,
.option-item.wrong-ans {
    border-color: #e74c3c !important;
    background: #fdedec !important;
    color: #a93226 !important;
    pointer-events: none;
}
.option-item.option-wrong .opt-letter,
.option-item.wrong-ans .opt-letter { background: #e74c3c; color: white; }

/* Grįžtamojo ryšio blokai */
.feedback-area { margin-top: 18px; min-height: 36px; font-weight: 600; font-size: 15px; }

.feedback-correct { display: flex; align-items: center; gap: 8px; color: #27ae60; font-weight: 600; }
.feedback-wrong   { display: flex; align-items: center; gap: 8px; color: #e74c3c; font-weight: 600; }

/* Paaiškinimo blokas */
.explanation-block {
    margin-top: 10px;
    padding: 12px 16px;
    background: #fff8e6;
    border-left: 3px solid #f39c12;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #7d6608;
}

/* Egzamino overlay */
.exam-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    overflow-y: auto;
}
.exam-window {
    max-width: 700px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.exam-close-btn {
    position: absolute;
    right: 25px; top: 20px;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
    transition: color 0.2s;
}
.exam-close-btn:hover { color: #555; }


/* ============================================================
   11. PAMOKOS TURINYS
   ============================================================ */
.lesson-content {
    line-height: 1.9;
    font-size: 16px;
    padding: 35px 40px;
}
.lesson-content h3 { margin: 25px 0 10px; color: var(--text-dark); }
.lesson-content p  { margin-bottom: 14px; }
.lesson-content ul,
.lesson-content ol { margin: 10px 0 14px 20px; }


/* ============================================================
   12. PROFILIO SLAPTAŽODŽIO KEITIMAS
   ============================================================ */
.password-change-section { margin-top: 20px; }

.password-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}
.password-card h3 { color: #333; margin-bottom: 15px; font-size: 1.2rem; }

.password-input-group { display: flex; gap: 10px; justify-content: center; }
.password-input-group input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.3s;
    flex: 1;
}
.password-input-group input:focus { border-color: var(--primary); }


/* ============================================================
   13. APVALUS PROCENTŲ INDIKATORIUS
   ============================================================ */
.percent-circle {
    --p: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--p) * 1%), #eee 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    margin: 0 auto 10px;
}
.percent-circle::before {
    content: '';
    position: absolute;
    width: 60px; height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
}
.percent-circle span {
    position: relative;
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}


/* ============================================================
   14. ANALITIKA
   ============================================================ */
.analytics-main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    margin-top: 25px;
}

.filter-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
}
.filter-section h3 { margin-bottom: 20px; font-size: 16px; }

.chart-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.chart-section h3 { margin-bottom: 20px; font-size: 16px; }


/* ============================================================
   15. ADMIN PANELĖ
   ============================================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.admin-table th { background-color: #f8f9fa; font-weight: 600; color: #333; }
.admin-table tr:hover { background-color: #f1f4f9; }


/* ============================================================
   16. AI CHATBOT
   ============================================================ */
#sb-chat-bubble {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(93, 95, 239, 0.45);
    z-index: 9999;
    transition: transform 0.25s, box-shadow 0.25s;
}
#sb-chat-bubble:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 10px 28px rgba(93, 95, 239, 0.55); }
#sb-chat-bubble.sb-active { background: linear-gradient(135deg, #ef4444, #dc2626); }

#sb-chat-window {
    position: fixed;
    bottom: 100px; right: 28px;
    width: 370px; height: 520px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    transition: opacity 0.25s, transform 0.25s;
    transform-origin: bottom right;
}
#sb-chat-window.sb-hidden { opacity: 0; transform: scale(0.92) translateY(10px); pointer-events: none; }

.sb-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 16px 18px;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.sb-avatar {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.sb-close-btn {
    background: rgba(255,255,255,0.15);
    border: none; color: white;
    width: 30px; height: 30px;
    border-radius: 50%; font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.sb-close-btn:hover { background: rgba(255,255,255,0.3); }

#sb-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex; flex-direction: column;
    gap: 10px;
    background: #f8f9ff;
}
#sb-messages::-webkit-scrollbar { width: 4px; }
#sb-messages::-webkit-scrollbar-track { background: transparent; }
#sb-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.sb-msg {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 82%;
    font-size: 14px; line-height: 1.5;
    word-wrap: break-word;
    animation: sb-pop 0.18s ease-out;
}
@keyframes sb-pop {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sb-bot  { background: white; color: #333; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.sb-user { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

.sb-typing { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.sb-typing span { width: 7px; height: 7px; background: #aaa; border-radius: 50%; animation: sb-bounce 1.1s infinite; }
.sb-typing span:nth-child(2) { animation-delay: 0.18s; }
.sb-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes sb-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.sb-input-row {
    display: flex; gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #eee;
    background: white; flex-shrink: 0;
}
#sb-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 14px; outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
#sb-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(93,95,239,0.08); }

#sb-send-btn {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none;
    border-radius: var(--radius-md);
    cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
#sb-send-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(93,95,239,0.35); }

#sb-paywall { flex: 1; display: flex; align-items: center; justify-content: center; background: #f8f9ff; }
.sb-paywall-inner { text-align: center; padding: 30px 25px; }
.sb-premium-btn {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; text-decoration: none;
    border-radius: 10px; font-weight: 700; font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sb-premium-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(93,95,239,0.4); }

/*Footeris*/.site-footer {
    background: #1a1d2e;
    border-top: 1px solid rgba(93, 95, 239, 0.15);
    padding: 20px 0 0;
    margin-top: 60px;
    font-family: 'Inter', sans-serif;
}
 
.site-footer .f-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}
 
/* ── Viršus ── */
.site-footer .f-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
 
/* ── Brand ── */
.site-footer .f-brand .logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    display: block;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-footer .f-brand .logo span { color: var(--primary); }
 
.site-footer .f-brand p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 0 10px;
}
 
/* ── Socialiniai ── */
.site-footer .f-social {
    display: flex;
    gap: 10px;
}
.site-footer .f-social a {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.site-footer .f-social a:hover {
    background: rgba(93, 95, 239, 0.2);
    border-color: var(--primary);
    color: #fff;
}
 
/* ── Dešinė pusė ── */
.site-footer .f-right {
    flex-shrink: 0;
}
 
.site-footer .f-col-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0 10px;
}
 
.site-footer .f-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.site-footer .f-info-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer .f-info-list li i {
    font-size: 13px;
    color: var(--primary);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.site-footer .f-info-list a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer .f-info-list a:hover { color: #fff; }
 
/* ── Apatinė juosta ── */
.site-footer .f-bottom {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
 
.site-footer .f-copy {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.28);
}
 
.site-footer .f-legal {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .f-legal a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer .f-legal a:hover { color: rgba(255, 255, 255, 0.7); }
 
/* ── Responsive ── */
@media (max-width: 768px) {
    .site-footer .f-top {
        flex-direction: column;
        gap: 32px;
    }
    .site-footer .f-inner {
        padding: 0 20px;
    }
    .site-footer {
        padding-top: 40px;
    }
    .site-footer .f-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* ============================================================
   17. MOBILIEJI (responsive)
   ============================================================ */
@media (max-width: 768px) {
    .hero { flex-direction: column; padding: 40px 5%; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { justify-content: center; flex-wrap: wrap; }
    .hero-image { display: none; }

    .navbar { padding: 15px 5%; }
    .nav-links { display: none; }

    .dashboard-layout { flex-direction: column; }
    .sidebar-nav { width: 100%; border-right: none; border-bottom: 1px solid #e5e7eb; padding: 15px; }
    .sidebar-nav nav { flex-direction: row; flex-wrap: wrap; margin-top: 10px; gap: 5px; }
    .dashboard-main { padding: 20px; }

    .analytics-main { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .price-card.featured { transform: scale(1); }
}

@media (max-width: 480px) {
    #sb-chat-window { width: calc(100vw - 20px); right: 10px; bottom: 90px; }
}


/* ============================================================
   18. PAPILDOMOS KLASĖS (pakeičia inline stilius)
   ============================================================ */

/* --- Admin sąrašo eilutė (topics, quizzes, exam, vbe sąrašai) --- */
.admin-list-row {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.admin-list-row .row-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-list-row .row-meta  { font-size: 12px; color: var(--primary); font-weight: 600; }
.admin-list-row .row-text  { margin: 5px 0; font-weight: 500; }
.admin-list-row .row-hint  { font-size: 12px; color: var(--text-muted); }

/* Admin redaguoti/trinti mygtukai – spalvų variantai */
.btn-edit-item  { background: #f39c12; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-delete-item { background: #ff4757; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-warn-item  { background: #f39c12; color: white; border: none; padding: 2px 10px; font-size: 12px; border-radius: 6px; cursor: pointer; }
.btn-danger-item { background: #ff4757; color: white; border: none; padding: 2px 10px; font-size: 12px; border-radius: 6px; cursor: pointer; }

/* Klausimo blokas admin formoje */
.question-block {
    display: block;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
}
.question-block input {
    width: 100%;
    margin-bottom: 6px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
}

/* --- Profilio puslapis --- */
.profile-card {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.profile-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: var(--primary-light);
    object-fit: cover;
    margin-bottom: 20px;
}
.profile-name { margin: 0; color: var(--text-dark); font-size: 24px; }
.profile-email { color: var(--text-muted); font-size: 14px; margin: 5px 0 25px; }
.profile-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.profile-stat {
    flex: 1;
    background: var(--primary-light);
    padding: 15px;
    border-radius: var(--radius-md);
}
.profile-stat h3 { margin: 0; font-size: 20px; }
.profile-stat p  { margin: 0; font-size: 10px; font-weight: bold; color: var(--text-muted); text-transform: uppercase; }
.profile-section {
    text-align: left;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 0;
}
.profile-section h4 { margin-bottom: 15px; font-size: 16px; color: var(--text-dark); }
.avatar-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* --- Premium blokas (subscription.js blockPage) --- */
.paywall-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}
.paywall-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(93,95,239,0.12);
    border: 1px solid var(--accent-light);
}
.paywall-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px; color: white;
}
.paywall-title { margin: 0 0 12px; color: var(--text); font-size: 1.6rem; }
.paywall-desc  { color: #6b7280; margin-bottom: 30px; line-height: 1.6; }
.paywall-features {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}
.paywall-features strong { font-weight: 700; display: block; margin-bottom: 12px; color: var(--primary); }
.paywall-features-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #374151; }
.paywall-price { margin-bottom: 16px; }
.paywall-price .amount { font-size: 2rem; font-weight: 800; color: var(--primary); }
.paywall-price .period { color: var(--text-muted); font-size: 14px; }
.btn-checkout {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(93,95,239,0.35); }
.paywall-back { color: var(--text-muted); font-size: 13px; text-decoration: none; }

/* --- VBE praktikos progreso juosta (progress-panel pakartotinis naudojimas) --- */
.score-counters { display: flex; gap: 15px; font-size: 14px; }
.score-counters .ok   { color: #27ae60; font-weight: 600; }
.score-counters .fail { color: #e74c3c; font-weight: 600; }
