:root {
    --tvde-primary: #1c3faa;
    --tvde-primary-dark: #142d80;
    --tvde-accent: #ffb703;
    --tvde-success: #1e8e5a;
    --tvde-danger: #d9364a;
    --tvde-bg: #f4f6fb;
    --tvde-card-radius: 14px;
}

body {
    background-color: var(--tvde-bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #212836;
}

a { text-decoration: none; }

/* ---------- NAVBAR ---------- */
.tvde-navbar {
    background: linear-gradient(90deg, var(--tvde-primary), var(--tvde-primary-dark));
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.tvde-navbar .navbar-brand {
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
.tvde-navbar .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
}
.tvde-navbar .nav-link.active,
.tvde-navbar .nav-link:hover {
    color: #fff !important;
}
.badge-premium {
    background: var(--tvde-accent);
    color: #3a2900;
    font-weight: 700;
}

/* ---------- LANDING / AUTH ---------- */
.auth-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}
.auth-card {
    border: none;
    border-radius: var(--tvde-card-radius);
    box-shadow: 0 10px 30px rgba(28,63,170,.12);
    overflow: hidden;
}
.auth-hero {
    background: linear-gradient(160deg, var(--tvde-primary), var(--tvde-primary-dark));
    color: #fff;
    padding: 3rem 2rem;
}
.auth-hero h1 { font-weight: 800; }
.auth-hero .feature-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .9rem;
}
.auth-hero .feature-item i { color: var(--tvde-accent); margin-top: .2rem; }

.nav-tabs .nav-link { font-weight: 600; color: #6b7280; }
.nav-tabs .nav-link.active { color: var(--tvde-primary); }

/* ---------- DASHBOARD CARDS ---------- */
.stat-card {
    border: none;
    border-radius: var(--tvde-card-radius);
    box-shadow: 0 6px 20px rgba(20,30,60,.06);
    padding: 1.4rem;
    height: 100%;
}
.stat-card .icon-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: .8rem;
}
.bg-icon-blue { background: var(--tvde-primary); }
.bg-icon-gold { background: var(--tvde-accent); color: #3a2900 !important; }
.bg-icon-green { background: var(--tvde-success); }
.bg-icon-red { background: var(--tvde-danger); }

.exam-mode-card {
    border: none;
    border-radius: var(--tvde-card-radius);
    box-shadow: 0 6px 20px rgba(20,30,60,.06);
    padding: 1.6rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.exam-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20,30,60,.12);
}
.exam-mode-card .icon-badge {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
}

.lock-overlay {
    position: relative;
}
.lock-overlay::after {
    content: "\f023";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px; right: 10px;
    color: var(--tvde-accent);
    font-size: 1.1rem;
}

/* ---------- EXAM SCREEN ---------- */
.exam-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #e6e9f0;
    padding: .9rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
#examTimer {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--tvde-primary);
}
.question-nav-btn {
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1px solid #d7dce6;
    background: #fff;
    font-weight: 600;
    font-size: .85rem;
}
.question-nav-btn.answered {
    background: var(--tvde-primary);
    color: #fff;
    border-color: var(--tvde-primary);
}
.question-nav-btn.current {
    outline: 3px solid var(--tvde-accent);
    outline-offset: 1px;
}
.exam-question-card {
    border: none;
    border-radius: var(--tvde-card-radius);
    box-shadow: 0 6px 20px rgba(20,30,60,.06);
}
.option-choice {
    display: block;
    border: 1px solid #dde2ec;
    border-radius: 10px;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    cursor: pointer;
    transition: all .12s ease;
}
.option-choice:hover { border-color: var(--tvde-primary); background: #f4f7ff; }
.option-choice.selected {
    border-color: var(--tvde-primary);
    background: #eaf0ff;
    font-weight: 600;
}
.option-choice.correct-answer {
    border-color: var(--tvde-success);
    background: #e8f7ef;
}
.option-choice.wrong-answer {
    border-color: var(--tvde-danger);
    background: #fbeaec;
}
.option-choice input { margin-right: .6rem; }

/* ---------- RESULT ---------- */
.score-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    background: conic-gradient(var(--tvde-primary) calc(var(--pct,0) * 1%), #e6e9f0 0);
    margin: 0 auto;
}
.score-circle .inner {
    width: 122px; height: 122px;
    border-radius: 50%;
    background: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.score-circle .inner .pct { font-size: 1.7rem; font-weight: 800; color: var(--tvde-primary); }

/* ---------- TABLES ---------- */
.table-tvde thead th {
    background: #eef1f9;
    border-bottom: none;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4a5468;
}
.table-tvde td, .table-tvde th { vertical-align: middle; }

/* ---------- TEACHER QUESTION EDITOR ---------- */
.question-row-body { max-width: 480px; }
.correct-radio-label {
    font-weight: 600;
    color: var(--tvde-success);
}

/* ---------- FOOTER ---------- */
.tvde-footer {
    padding: 2rem 0;
    color: #8892a6;
    font-size: .9rem;
    text-align: center;
}

body.tvde-loading { cursor: progress; }

/* ---------- MISC ---------- */
.cursor-pointer { cursor: pointer; }
.badge-soft-blue { background:#e7ecfb; color:var(--tvde-primary); font-weight:600; }
.badge-soft-green { background:#e2f6ec; color:var(--tvde-success); font-weight:600; }
.badge-soft-red { background:#fbe9ec; color:var(--tvde-danger); font-weight:600; }

/* ================================================================
   LANDING PAGE (index.php - onepage tanitim sitesi)
   Tum siniflar catisma olmasin diye "lp-" onekiyle ayristirilmistir.
   ================================================================ */

.lp-body { overflow-x: hidden; }

.text-gradient {
    background: linear-gradient(90deg, var(--tvde-accent), #ffd166);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Navbar ---- */
.lp-navbar {
    background: transparent;
    padding: 1.1rem 0;
    transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.lp-navbar.lp-navbar-scrolled {
    background: #fff;
    box-shadow: 0 2px 16px rgba(20,30,60,.08);
    padding: .7rem 0;
}
.lp-navbar .navbar-brand {
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
    transition: color .25s ease;
}
.lp-navbar.lp-navbar-scrolled .navbar-brand { color: var(--tvde-primary-dark); }
.lp-navbar .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 600;
    transition: color .25s ease;
}
.lp-navbar.lp-navbar-scrolled .nav-link { color: #384157; }
.lp-navbar .nav-link:hover { color: var(--tvde-accent); }
.lp-navbar .btn-outline-light.lp-login-btn { transition: all .2s ease; }
.lp-navbar.lp-navbar-scrolled .lp-login-btn {
    color: var(--tvde-primary) !important;
    border-color: var(--tvde-primary) !important;
}

/* ---- Hero ---- */
.lp-hero {
    background: linear-gradient(155deg, var(--tvde-primary) 0%, var(--tvde-primary-dark) 60%, #0f2160 100%);
    color: #fff;
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.lp-hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,183,3,.18), transparent 70%);
}
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.3rem;
}
.lp-hero h1 {
    font-weight: 800;
    font-size: 2.7rem;
    line-height: 1.18;
    margin-bottom: 1.2rem;
}
.lp-hero p.lead {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    max-width: 480px;
}
.lp-hero-stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2.5rem;
}
.lp-hero-stats .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tvde-accent);
}
.lp-hero-stats .stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
}

/* ---- Hero decorative "mock exam" card ---- */
.lp-hero-mock {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
    padding: 1.5rem;
    color: #212836;
    transform: rotate(2deg);
    max-width: 380px;
    margin-left: auto;
}
.lp-hero-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--tvde-primary);
}
.lp-hero-mock-progress {
    height: 6px;
    border-radius: 4px;
    background: #eef1f9;
    overflow: hidden;
    margin-bottom: 1rem;
}
.lp-hero-mock-progress span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--tvde-accent);
}
.lp-hero-mock-q {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.lp-hero-mock-opt {
    border: 1px solid #dde2ec;
    border-radius: 9px;
    padding: .55rem .8rem;
    margin-bottom: .5rem;
    font-size: .85rem;
}
.lp-hero-mock-opt.is-selected {
    border-color: var(--tvde-primary);
    background: #eaf0ff;
    font-weight: 600;
}
.lp-hero-mock-float {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    padding: .7rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--tvde-success);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.lp-hero-mock-float i { font-size: 1.1rem; }
.lp-hero-mock-wrap { position: relative; }

/* ---- Generic section spacing ---- */
.lp-section { padding: 5.5rem 0; scroll-margin-top: 80px; }
.lp-section-alt { background: #fff; }
.lp-section-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: .6rem;
}
.lp-section-subtitle {
    color: #6b7385;
    max-width: 560px;
    margin: 0 auto;
}
.lp-section-head { text-align: center; margin-bottom: 3rem; }

/* ---- Feature cards ---- */
.lp-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    height: 100%;
    box-shadow: 0 6px 24px rgba(20,30,60,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.lp-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(20,30,60,.12);
}
.lp-feature-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.1rem;
}

/* ---- How it works steps ---- */
.lp-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}
.lp-step-num {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tvde-primary), var(--tvde-primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 22px rgba(28,63,170,.25);
}
.lp-step h5 { font-weight: 700; }
.lp-step p { color: #6b7385; font-size: .93rem; }
.lp-step-connector {
    position: absolute;
    top: 31px; left: calc(50% + 45px);
    width: calc(100% - 90px);
    border-top: 2px dashed #d7dce6;
    display: none;
}
@media (min-width: 992px) {
    .lp-step-connector { display: block; }
}

/* ---- Pricing cards ---- */
.lp-pricing-card {
    background: #fff;
    border: 2px solid #e9ecf5;
    border-radius: 18px;
    padding: 2.2rem;
    height: 100%;
    position: relative;
}
.lp-pricing-card.lp-pricing-highlight {
    border-color: var(--tvde-accent);
    box-shadow: 0 20px 45px rgba(255,183,3,.18);
    transform: scale(1.03);
}
.lp-pricing-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--tvde-accent);
    color: #3a2900;
    font-weight: 700;
    font-size: .78rem;
    padding: .35rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}
.lp-pricing-price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--tvde-primary);
}
.lp-pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.lp-pricing-card ul li {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-bottom: .7rem;
    font-size: .93rem;
}
.lp-pricing-card ul li i { color: var(--tvde-success); margin-top: .2rem; }

/* ---- FAQ ---- */
.lp-faq .accordion-item {
    border: none;
    border-radius: 12px !important;
    margin-bottom: .8rem;
    box-shadow: 0 4px 16px rgba(20,30,60,.05);
    overflow: hidden;
}
.lp-faq .accordion-button {
    font-weight: 700;
    color: #212836;
}
.lp-faq .accordion-button:not(.collapsed) {
    background: #eaf0ff;
    color: var(--tvde-primary);
    box-shadow: none;
}
.lp-faq .accordion-button:focus { box-shadow: none; }

/* ---- Final CTA banner ---- */
.lp-cta-banner {
    background: linear-gradient(120deg, var(--tvde-primary), var(--tvde-primary-dark));
    color: #fff;
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 0 1rem;
}
.lp-cta-banner h2 { font-weight: 800; }

/* ---- Footer ---- */
.lp-footer {
    background: #0f1730;
    color: rgba(255,255,255,.65);
    padding: 3rem 0 1.5rem;
}
.lp-footer h6 { color: #fff; font-weight: 700; }
.lp-footer a { color: rgba(255,255,255,.65); }
.lp-footer a:hover { color: var(--tvde-accent); }
.lp-footer hr { border-color: rgba(255,255,255,.12); }

@media (max-width: 991px) {
    .lp-hero { padding: 7.5rem 0 4rem; text-align: center; }
    .lp-hero p.lead { max-width: 100%; margin-left: auto; margin-right: auto; }
    .lp-hero-stats { justify-content: center; }
    .lp-hero-mock { margin: 2.5rem auto 0; transform: none; }
    .lp-hero-mock-float { display: none; }
}

/* ================================================================
   LEGAL PAGES (terms.php / privacy.php)
   ================================================================ */
.legal-card {
    border: none;
    border-radius: var(--tvde-card-radius);
    box-shadow: 0 10px 30px rgba(20,30,60,.06);
}
.legal-intro {
    color: #4a5468;
    font-size: 1.02rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eef1f9;
}
.legal-section {
    margin-bottom: 1.8rem;
}
.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tvde-primary-dark);
    margin-bottom: .6rem;
}
.legal-section p {
    color: #4a5468;
    line-height: 1.75;
    margin-bottom: 0;
}
