:root {
    --brand-1: #6366f1;
    --brand-2: #22d3ee;
    --brand-3: #a855f7;
    --surface: #0f1320;
    --surface-2: #151a2b;
    --line: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1100px 520px at 12% -12%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(900px 480px at 88% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
        var(--surface);
    color: #e8ecf7;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    color: #b9c4e0;
}

.display-hero {
    font-size: clamp(2.2rem, 4.6vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.06;
}

.text-gradient {
    background: linear-gradient(92deg, var(--brand-2), var(--brand-1) 52%, var(--brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead-muted {
    color: #a8b3cf;
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    background: linear-gradient(92deg, var(--brand-1), #4f7cf7);
    border: 0;
    box-shadow: 0 12px 30px -12px rgba(99, 102, 241, 0.85);
}

.btn-brand:hover {
    filter: brightness(1.07);
}

.btn-ghost {
    --bs-btn-color: #dbe3f7;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.2);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.08);
}

.navbar-glass {
    background: rgba(15, 19, 32, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 10px 24px -12px rgba(34, 211, 238, 0.9);
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: 1.15rem;
}

.stat {
    text-align: center;
    padding: 1.15rem 0.75rem;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: #98a4c2;
}

.program-card {
    height: 100%;
    border-radius: 1.15rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 26px 50px -30px rgba(99, 102, 241, 0.9);
}

.program-card.is-featured {
    border-color: rgba(99, 102, 241, 0.5);
}

.program-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-1), var(--brand-3));
}

.price {
    font-size: 1.55rem;
    font-weight: 800;
}

.price-old {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: #8b97b4;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
    color: #c4cde4;
    font-size: 0.94rem;
}

.feature-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: -1px;
    color: #34d399;
}

.icon-tile {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-number {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b1020;
    background: linear-gradient(135deg, var(--brand-2), #a5f3fc);
}

.quote {
    height: 100%;
    border-radius: 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 1.5rem;
}

.avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(140deg, #4f7cf7, #a855f7);
}

.accordion {
    --bs-accordion-bg: rgba(255, 255, 255, 0.035);
    --bs-accordion-color: #e8ecf7;
    --bs-accordion-border-color: var(--line);
    --bs-accordion-btn-color: #fff;
    --bs-accordion-active-color: #fff;
    --bs-accordion-active-bg: rgba(99, 102, 241, 0.16);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
    --bs-accordion-body-color: #c4cde4;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: #e8ecf7;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.7);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-control::placeholder {
    color: #7c88a6;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(9, 12, 22, 0.6);
    padding: 3rem 0 2rem;
    color: #9aa6c4;
}

/* ---- admin ---- */
.admin-body {
    background: #f4f6fb;
    color: #1e2637;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #101527;
    color: #cbd5f0;
    min-height: 100vh;
}

.admin-sidebar a {
    color: #aeb9d8;
    border-radius: 0.6rem;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-sidebar a.active {
    background: linear-gradient(92deg, rgba(99, 102, 241, 0.95), rgba(34, 211, 238, 0.65));
    color: #fff;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
}

.stat-card {
    border: 1px solid #e5e9f2;
    border-radius: 1rem;
    background: #fff;
}

.table > :not(caption) > * > * {
    padding: 0.85rem 1rem;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }

    .admin-shell {
        flex-direction: column;
    }
}

/* ---- demo preview ---- */
.demo-frame {
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    overflow: hidden;
    background: #0b1020;
    box-shadow: 0 40px 90px -55px rgba(99, 102, 241, 0.85);
}

.demo-chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--line);
}

.demo-dots {
    display: flex;
    gap: 0.35rem;
}

.demo-dots span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.demo-dots span:first-child { background: #f87171; }
.demo-dots span:nth-child(2) { background: #fbbf24; }
.demo-dots span:nth-child(3) { background: #34d399; }

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    vertical-align: -0.1em;
}

.admin-main .lang-flag {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.demo-address {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    color: #9aa6c4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.22rem 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-body {
    position: relative;
    min-height: 340px;
}

.demo-body iframe {
    display: block;
    width: 100%;
    height: 470px;
    border: 0;
    background: #fff;
}

.demo-mock {
    display: flex;
    min-height: 340px;
}

.demo-mock-side {
    width: 200px;
    flex: 0 0 200px;
    border-right: 1px solid var(--line);
    padding: 1rem;
    display: none;
}

@media (min-width: 768px) {
    .demo-mock-side { display: block; }
}

.demo-mock-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-mock-logo {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.9rem;
    background: linear-gradient(140deg, var(--brand-1), var(--brand-3));
}

.demo-mock-nav {
    display: grid;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #9aa6c4;
}

.demo-mock-nav span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-mock-nav span.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.25);
}

.demo-mock-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.demo-mock-pill {
    font-size: 0.7rem;
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.demo-mock-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.demo-mock-card {
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
}

.demo-mock-card-label {
    font-size: 0.68rem;
    color: #98a4c2;
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.demo-mock-card-value {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.15rem 0 0.4rem;
}

.demo-mock-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.demo-mock-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-2), var(--brand-1));
}

.demo-mock-table {
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    overflow: hidden;
    font-size: 0.76rem;
}

.demo-mock-tr {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1.6fr) 3rem 3.5rem;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-top: 1px solid var(--line);
}

.demo-mock-tr:first-child { border-top: 0; }

.demo-mock-th {
    background: rgba(255, 255, 255, 0.05);
    color: #98a4c2;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.demo-mock-status {
    font-size: 0.65rem;
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    padding: 0 0.4rem;
}

.demo-mock-foot {
    font-size: 0.72rem;
    color: #7f8baa;
    margin-top: auto;
}

.demo-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.demo-link .demo-mock {
    transition: filter 0.18s ease;
}

.demo-link:hover .demo-mock,
.demo-link:focus-visible .demo-mock {
    filter: brightness(0.7);
}

.demo-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(8, 11, 20, 0.55), rgba(8, 11, 20, 0) 48%);
}

.demo-play i {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    background: linear-gradient(140deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 20px 45px -18px rgba(34, 211, 238, 0.95);
    transition: transform 0.18s ease;
}

.demo-link:hover .demo-play i {
    transform: scale(1.06);
}

/* ---- tema: gündüz / gecə ---- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    flex: 0 0 auto;
}

html[data-bs-theme="light"] body {
    background:
        radial-gradient(1100px 520px at 12% -12%, rgba(99, 102, 241, 0.12), transparent 60%),
        radial-gradient(900px 480px at 88% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        #f5f7fc;
    color: #1b2333;
}

html[data-bs-theme="light"] .eyebrow {
    background: #fff;
    color: #475569;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-bs-theme="light"] .lead-muted { color: #52607a; }
html[data-bs-theme="light"] .stat-label { color: #64748b; }
html[data-bs-theme="light"] .price-old { color: #64748b; }
html[data-bs-theme="light"] .feature-list li { color: #3f4a60; }

html[data-bs-theme="light"] .btn-ghost {
    --bs-btn-color: #334155;
    --bs-btn-hover-color: #0f172a;
    --bs-btn-hover-bg: rgba(15, 23, 42, 0.06);
    --bs-btn-border-color: rgba(15, 23, 42, 0.14);
    --bs-btn-hover-border-color: rgba(15, 23, 42, 0.24);
    --bs-btn-active-color: #0f172a;
    --bs-btn-active-bg: rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] .navbar-glass { background: rgba(255, 255, 255, 0.85); }

html[data-bs-theme="light"] .panel,
html[data-bs-theme="light"] .program-card,
html[data-bs-theme="light"] .quote {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-bs-theme="light"] .icon-tile {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.25);
}

html[data-bs-theme="light"] .site-footer {
    background: #eef2f9;
    color: #52607a;
    border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-bs-theme="light"] .site-footer .text-white { color: #0f172a !important; }

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select {
    background-color: #fff;
    color: #1f2937;
    border-color: rgba(15, 23, 42, 0.15);
}

html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] .form-select:focus {
    background-color: #fff;
    color: #0f172a;
}

html[data-bs-theme="light"] .form-control::placeholder { color: #94a3b8; }

html[data-bs-theme="light"] .accordion {
    --bs-accordion-bg: #fff;
    --bs-accordion-color: #1b2333;
    --bs-accordion-btn-color: #1b2333;
    --bs-accordion-active-color: #1b2333;
    --bs-accordion-body-color: #334155;
    --bs-accordion-border-color: rgba(15, 23, 42, 0.1);
}

html[data-bs-theme="light"] .demo-frame {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 30px 70px -50px rgba(15, 23, 42, 0.45);
}

html[data-bs-theme="light"] .demo-chrome { background: #f1f5f9; }
html[data-bs-theme="light"] .demo-address { background: #fff; color: #475569; }
html[data-bs-theme="light"] .demo-dots span { background: rgba(15, 23, 42, 0.15); }
html[data-bs-theme="light"] .demo-mock-nav,
html[data-bs-theme="light"] .demo-mock-card-label,
html[data-bs-theme="light"] .demo-mock-foot { color: #64748b; }
html[data-bs-theme="light"] .demo-mock-card { background: #f8fafc; }
html[data-bs-theme="light"] .demo-mock-bar { background: rgba(15, 23, 42, 0.1); }
html[data-bs-theme="light"] .demo-mock-th { background: #f1f5f9; color: #64748b; }

/* Admin: gecə rejimi */
html[data-bs-theme="dark"] .admin-body { background: #0f1320; color: #e8ecf7; }
html[data-bs-theme="dark"] .admin-sidebar { background: #151a2b; border-right: 1px solid var(--line); }
html[data-bs-theme="dark"] .stat-card { background: #151a2b; border-color: var(--line); }

/* Admin: gündüz rejimi */
html[data-bs-theme="light"] .admin-body { background: #f4f6fb; color: #1e2637; }

/* Gecə rejimində cədvəl başlığı və ikincili mətnlər */
html[data-bs-theme="dark"] .text-secondary { color: #9aa6c4 !important; }
html[data-bs-theme="dark"] .table-light {
    --bs-table-bg: rgba(255, 255, 255, 0.04);
    --bs-table-color: #cbd5e1;
    --bs-table-border-color: var(--line);
}
