﻿:root {
    --parchment-100: #f7efdc;
    --parchment-200: #efe3c7;
    --parchment-300: #dccaa3;
    --ink-900: #2e2418;
    --ink-700: #4f3f27;
    --gold-500: #b88a2f;
    --gold-700: #8c6423;
    --olive-600: #57623f;
    --olive-800: #384126;
    --brick-600: #7b3c2f;
    --white: #ffffff;
    --danger: #9f2f2f;
    --success: #2d6a35;
    --warning: #8f6b19;
    --info: #2a5975;
    --border: #c9b084;
    --shadow-soft: 0 8px 24px rgba(36, 26, 12, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cardo', Georgia, serif;
    color: var(--ink-900);
    background: radial-gradient(circle at top right, #f8f1df, #efe3c8 42%, #e2d0ab);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.flash {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.flash-info {
    background: #e4eef5;
    color: var(--info);
    border-color: #acc7da;
}

.flash-success {
    background: #e6f3e8;
    color: var(--success);
    border-color: #b6d8b9;
}

.flash-warning {
    background: #f7f0dc;
    color: var(--warning);
    border-color: #dec590;
}

.flash-error {
    background: #fae8e8;
    color: var(--danger);
    border-color: #e7b4b4;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), #d3a64c);
    color: #2b1b0b;
    border-color: #9d6f20;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.btn-secondary {
    background: #f8f2e2;
    border-color: var(--border);
    color: var(--ink-700);
}

.btn-danger {
    background: #8f3129;
    color: #fff;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.section-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    color: var(--ink-700);
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
    margin-bottom: 10px;
}

.section-subtitle {
    margin: 0 0 22px;
    color: #5f523d;
    font-size: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(252, 247, 236, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(154, 122, 74, 0.25);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-photo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #b88a2f;
    box-shadow: var(--shadow-soft);
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(160deg, #c89a44, #8f6727);
    color: #fff;
    font-family: 'Cinzel', serif;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-soft);
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.logo-text strong {
    display: block;
    font-size: 1.02rem;
}

.main-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.94rem;
    color: #4e412d;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(194, 156, 92, 0.2);
}

.mobile-nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fef9ed;
    border-radius: 8px;
    padding: 8px 10px;
}

.hero {
    padding: 54px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    background: linear-gradient(155deg, #fff8e7 0%, #f0dfb7 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: '';
    position: absolute;
    right: -34px;
    top: -32px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(181, 131, 48, 0.18);
}

.hero-kicker {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    color: var(--brick-600);
    margin: 0 0 10px;
    font-size: 0.83rem;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.16;
    font-family: 'Cinzel', serif;
}

.hero p {
    margin: 0 0 20px;
    font-size: 1.07rem;
    color: #514737;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-badges li {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.83rem;
    background: rgba(255, 255, 255, 0.6);
}

.hero-side {
    display: grid;
    gap: 16px;
}

.side-card {
    background: linear-gradient(180deg, #f8eed7 0%, #edd8ad 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.side-card h3 {
    margin: 0 0 10px;
    font-family: 'Cinzel', serif;
}

.side-card p {
    margin: 0;
    color: #4f442f;
}

.carousel {
    margin-top: 20px;
    border: 1px solid var(--border);
    background: #fffaf0;
    border-radius: 14px;
    padding: 18px;
}

.carousel-track-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 18px;
    border: 1px dashed rgba(140, 100, 35, 0.35);
    border-radius: 10px;
    background: linear-gradient(120deg, #fbf4e5, #f4e4c0);
}

.carousel-item h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.carousel-item p {
    margin: 0;
    color: #4a3f2b;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.carousel-btn {
    border: 1px solid var(--border);
    background: #fdf8eb;
    color: var(--ink-700);
    border-radius: 8px;
    min-width: 36px;
    height: 36px;
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8b188;
    border: none;
    cursor: pointer;
}

.carousel-dot.active {
    background: #8e6628;
}

.section {
    padding: 40px 0;
}

.plans-grid,
.testimonials-grid,
.feature-grid {
    display: grid;
    gap: 16px;
}

.plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    background: linear-gradient(180deg, #fff9eb, #f3e4c4);
    box-shadow: var(--shadow-soft);
}

.plan-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-family: 'Cinzel', serif;
}

.plan-price {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #7f5b20;
    margin-bottom: 6px;
}

.plan-description {
    margin-bottom: 12px;
    color: #4c412c;
}

.plan-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 6px;
}

.plan-features li {
    border-left: 3px solid #b38941;
    padding-left: 8px;
    color: #403623;
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card {
    background: #fff8eb;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.testimonial-card p {
    color: #4d422f;
    margin-bottom: 12px;
}

.testimonial-meta {
    font-size: 0.85rem;
    color: #6a5b42;
}

.video-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: #000;
}

.video-frame iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}

.live-shell {
    margin-top: 10px;
}

.live-status {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cdb182;
    background: #f8efd9;
    color: #4a3d2a;
    font-weight: 700;
}

.live-status.is-error {
    border-color: #c87b7b;
    background: #f7e1e1;
    color: #7a2c2c;
}

.live-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 2fr 1fr;
}

.live-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #000;
    object-fit: cover;
}

.live-viewers-list {
    margin: 10px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.live-chat-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff9ec;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    min-height: 320px;
}

.live-chat-messages {
    padding: 10px;
    overflow-y: auto;
    max-height: 380px;
    background: #fffdf7;
    display: grid;
    gap: 8px;
}

.live-chat-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f2e6ca;
    border: 1px solid #dbc092;
}

.live-chat-item.me {
    background: #e7f1da;
    border-color: #b6cf92;
}

.live-chat-item .meta {
    font-size: 0.75rem;
    color: #634f2f;
    margin-bottom: 3px;
    font-weight: 700;
}

.live-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e3cfab;
}

.live-chat-form input {
    flex: 1;
}

.live-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.live-tile {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fbf2df;
}

.live-tile video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.live-tile .label {
    padding: 7px 9px;
    font-size: 0.8rem;
    color: #4d3d24;
    border-top: 1px solid #e0cba4;
}

.professor-block,
.certificate-block,
.faq-block {
    background: #fff9ec;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.professor-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.professor-photo-wrap {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8eed7 0%, #edd8ad 100%);
    box-shadow: var(--shadow-soft);
}

.professor-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.faq-item {
    margin-bottom: 14px;
}

.faq-item h4 {
    margin: 0 0 6px;
    font-family: 'Cinzel', serif;
}

.page-title {
    margin: 18px 0;
    font-family: 'Cinzel', serif;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #d0ba8f;
    border-radius: 10px;
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border-bottom: 1px solid #eee3cc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

.table th {
    background: #f6ecd4;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.course-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.course-check-card {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid #d8c299;
    border-radius: 10px;
    padding: 10px;
    background: #fffdf7;
    color: #4f412b;
    font-weight: 600;
}

.course-check-card input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.course-check-card span {
    display: grid;
    gap: 3px;
}

.course-check-card small {
    font-size: 0.77rem;
    color: #756446;
}

.input-help {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6e5d40;
}

label {
    font-size: 0.83rem;
    color: #5b4f39;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ceb58a;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fffcf4;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(194, 149, 67, 0.35);
    border-color: #9d762d;
}

.form-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer {
    margin-top: 32px;
    border-top: 1px solid #d8c299;
    background: #f8efd9;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 0;
    color: #584b34;
    font-size: 0.9rem;
}

.admin-shell,
.student-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.admin-sidebar,
.student-sidebar {
    background: linear-gradient(180deg, #3d2d1a, #2a1f13);
    color: #f6ebd2;
    padding: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar h2,
.student-sidebar h2 {
    margin-top: 0;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
}

.side-nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.side-nav a {
    padding: 10px;
    border-radius: 8px;
    color: #f6ebd2;
    font-size: 0.9rem;
}

.side-nav a:hover,
.side-nav a.active {
    background: rgba(235, 201, 136, 0.18);
}

.admin-main,
.student-main {
    padding: 20px;
    background: #f6ebd2;
}

.panel {
    background: #fff9ec;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.metric-card {
    background: linear-gradient(160deg, #fbf1dc, #ead2a4);
    border: 1px solid #c8ac79;
    border-radius: 12px;
    padding: 14px;
}

.metric-card span {
    display: block;
    font-size: 0.83rem;
    color: #5a4c35;
    margin-bottom: 5px;
}

.metric-card strong {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
}

.inline-form {
    display: inline;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-pending { background: #f5e6b4; color: #8a6a1d; }
.badge-paid { background: #c9e6cb; color: #27552c; }
.badge-processing { background: #cfe4f4; color: #2c5f80; }
.badge-canceled { background: #f2cac7; color: #7f2d28; }
.badge-refunded { background: #e1d9ef; color: #5f4b83; }

.student-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.progress-bar {
    height: 10px;
    background: #e6d8b9;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #8d6a28, #d0a44d);
}

.auth-card {
    max-width: 480px;
    margin: 72px auto;
    background: #fff8ea;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.auth-card h1 {
    margin-top: 0;
    font-family: 'Cinzel', serif;
}

@media (max-width: 940px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell,
    .student-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    .student-sidebar {
        height: auto;
        position: static;
    }

    .professor-layout {
        grid-template-columns: 1fr;
    }

    .live-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mobile-nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fef8e9;
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .main-nav.open {
        display: flex;
    }

    .form-grid,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .video-frame iframe {
        min-height: 220px;
    }
}
