/* ============================================
   AKADEMIA GTR — Stylesheet
   Colors: GTR Red #8D242A, Navy #1a2332, White
   Fonts: Inter (body), Space Grotesk (headings)
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #8D242A;
    --red-dark: #6d1c21;
    --red-light: #a83a41;
    --navy: #1a2332;
    --navy-light: #2a3a4e;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --transition: 0.2s ease;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.3px;
}

main { flex: 1; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVBAR === */
.navbar {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.nav-logo img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    flex-shrink: 0;
}
.nav-logo .logo-text span { color: var(--red-light); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a:not(.btn) {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--white); }

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-user-name {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

.btn-cta {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-cta:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--gray-500);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-outline-dark:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-success {
    background: #2f9e44;
    color: var(--white);
    border-color: #2f9e44;
}

/* === HERO === */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero h1 span { color: var(--red-light); }
.hero p {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* === ALERTS === */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 0.9rem;
}
.alert-success { background: #d3f9d8; color: #2b8a3e; border: 1px solid #b2f2bb; }
.alert-error { background: #ffe0e0; color: #c92a2a; border: 1px solid #ffc9c9; }
.alert-info { background: #d0ebff; color: #1864ab; border: 1px solid #a5d8ff; }

/* === COURSE GRID === */
.section-title {
    font-size: 1.5rem;
    margin: 40px 0 24px;
    color: var(--gray-900);
}

section.container > h2 {
    font-size: 1.6rem;
    margin: 40px 0 24px;
    color: var(--gray-900);
    font-family: var(--font-heading);
}

section.container {
    padding-bottom: 60px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.course-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.8;
}

.course-card-body {
    padding: 20px;
}
.course-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.course-card-body p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.course-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}
.course-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
}
.course-card-hours {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* === COURSE PAGE === */
.course-header {
    background: var(--navy);
    color: var(--white);
    padding: 40px 0;
}
.course-header h1 { font-size: 2rem; margin-bottom: 12px; }
.course-header p { color: var(--gray-400); max-width: 700px; }

.course-info-bar {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.course-info-item {
    font-size: 0.9rem;
    color: var(--gray-300);
}
.course-info-item strong {
    color: var(--white);
    display: block;
    font-size: 1.2rem;
}

.course-content {
    padding: 40px 0;
}

/* === MODULE ACCORDION === */
.module-accordion {
    margin-bottom: 32px;
}

.module-header {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 2px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    font-weight: 600;
    transition: background var(--transition);
}
.module-header:hover { background: var(--gray-100); }
.module-header .module-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
}

.lesson-list {
    list-style: none;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.lesson-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 12px 36px;
    border-top: 1px solid var(--gray-100);
    font-size: 0.9rem;
    transition: background var(--transition);
}
.lesson-item:hover { background: var(--gray-50); }
.lesson-item a { color: var(--gray-700); }
.lesson-item a:hover { color: var(--red); }

.lesson-item .lesson-duration {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.lesson-item .lesson-check {
    color: #2f9e44;
    margin-right: 8px;
}
.lesson-item .lesson-free {
    background: #d3f9d8;
    color: #2b8a3e;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* === LESSON PAGE === */
.lesson-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    min-height: calc(100vh - 60px);
}

.lesson-main {
    padding: 24px 32px;
    background: var(--white);
}
.lesson-main h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--gray-900);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.video-wrapper video,
.video-wrapper .video-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
}
.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.1rem;
}

.lesson-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.lesson-content {
    margin-top: 24px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Sidebar */
.lesson-sidebar {
    background: var(--gray-100);
    border-left: 1px solid var(--gray-200);
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}
.sidebar-header {
    padding: 16px 20px;
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}
.sidebar-module {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    background: var(--gray-200);
    border-bottom: 1px solid var(--gray-300);
}
.sidebar-lesson {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 10px 32px;
    font-size: 0.82rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition);
}
.sidebar-lesson:hover { background: var(--gray-200); }
.sidebar-lesson.active {
    background: var(--white);
    color: var(--red);
    font-weight: 600;
    border-left: 3px solid var(--red);
}
.sidebar-lesson.completed { color: #2f9e44; }

/* === QUIZ === */
.quiz-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}
.quiz-question {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.quiz-question h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gray-800);
}
.quiz-question .q-number {
    color: var(--red);
    font-weight: 700;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.9rem;
}
.quiz-option:hover { background: var(--gray-100); }
.quiz-option input[type="radio"] { accent-color: var(--red); }

.quiz-result {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.quiz-result .score {
    font-size: 3rem;
    font-weight: 700;
}
.quiz-result .score.passed { color: #2f9e44; }
.quiz-result .score.failed { color: var(--red); }

/* === CERTIFICATE === */
.certificate-display {
    max-width: 700px;
    margin: 40px auto;
    padding: 48px;
    background: var(--white);
    border: 3px solid var(--navy);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.certificate-display .cert-logo {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 8px;
}
.certificate-display .cert-title {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}
.certificate-display .cert-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.certificate-display .cert-course {
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 24px;
}
.certificate-display .cert-number {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.certificate-display .cert-date {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* === PROGRESS BAR === */
.progress-bar {
    background: var(--gray-200);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    width: 100%;
}
.progress-fill {
    background: linear-gradient(90deg, var(--red), var(--red-light));
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}
.progress-fill.complete {
    background: linear-gradient(90deg, #2f9e44, #40c057);
}
.progress-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* === FORMS === */
.form-card {
    max-width: 440px;
    margin: 40px auto;
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color var(--transition);
    font-family: var(--font);
}
.form-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(141, 36, 42, 0.1);
}
.form-input.error { border-color: #e03131; }

textarea.form-input { min-height: 100px; resize: vertical; }

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.form-error {
    color: #e03131;
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* === DASHBOARD === */
.dashboard-header {
    padding: 32px 0 16px;
}
.dashboard-header h1 {
    font-size: 1.6rem;
    color: var(--gray-900);
}
.dashboard-header p {
    color: var(--gray-600);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.dash-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.dash-card h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.dash-card .dash-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state h2 {
    color: var(--gray-700);
    margin-bottom: 8px;
}
.empty-state .btn { margin-top: 16px; }

/* === ADMIN === */
.admin-nav {
    background: var(--gray-800);
    padding: 0;
}
.admin-nav .container {
    display: flex;
    gap: 0;
}
.admin-nav a {
    color: var(--gray-400);
    padding: 10px 20px;
    font-size: 0.85rem;
    transition: all var(--transition);
}
.admin-nav a:hover,
.admin-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 4px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 16px 0;
}
.admin-table th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.8rem;
    text-align: left;
    font-weight: 600;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}
.admin-table tr:hover td { background: var(--gray-50); }

.admin-section {
    padding: 24px 0;
}
.admin-section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

/* === FOOTER === */
.footer {
    background: var(--navy);
    color: var(--gray-400);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-logo img { border-radius: 6px; }
.footer-logo-accent { color: var(--red-light); }

.footer-brand p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: 0;
}

.footer-contact {
    margin-top: 12px;
}
.footer-contact a {
    color: var(--gray-400);
    font-size: 0.82rem;
}
.footer-contact a:hover { color: var(--white); }

.footer-heading {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links-list a {
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-links-list a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid var(--navy-light);
    padding: 16px 0;
    font-size: 0.75rem;
    color: var(--gray-600);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    gap: 16px;
}
.footer-legal a {
    color: var(--gray-600);
    font-size: 0.75rem;
}
.footer-legal a:hover { color: var(--gray-400); }

/* === CHECKBOX CUSTOM === */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--red); }

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-green { background: #d3f9d8; color: #2b8a3e; }
.badge-red { background: #ffe0e0; color: #c92a2a; }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }
.badge-free { background: #d3f9d8; color: #2b8a3e; }

/* === VOLUME INFO BAR === */
.volume-info-bar {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}
.volume-info-chip {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--gray-700);
    margin: 2px 4px;
    font-weight: 500;
}

/* === CAMPAIGN BANNER === */
.campaign-banner {
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.campaign-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.campaign-timer {
    font-family: var(--font-heading);
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,0.2);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* === NAV CART === */
.nav-cart {
    position: relative;
    color: var(--gray-300) !important;
    display: flex;
    align-items: center;
    padding: 4px;
}
.nav-cart:hover { color: var(--white) !important; }
.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--red);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* === CART PAGE === */
.cart-page h1 {
    margin: 32px 0 24px;
    font-size: 1.6rem;
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    padding-bottom: 60px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}
.cart-item-info { flex: 1; }
.cart-item-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--gray-800);
}
.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}
.cart-item-remove .btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
}
.cart-item-remove .btn-icon:hover {
    color: var(--red);
    background: var(--gray-100);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}
.cart-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.summary-discount {
    color: #2f9e44;
    font-weight: 500;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px;
    margin-top: 12px;
    border-top: 2px solid var(--gray-200);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
}
.savings-badge {
    background: #d3f9d8;
    color: #2b8a3e;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

/* Coupon */
.coupon-form {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}
.coupon-input {
    flex: 1;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
    letter-spacing: 1px;
}
.coupon-applied {
    margin: 8px 0;
}
.coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d3f9d8;
    color: #2b8a3e;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}
.coupon-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #2b8a3e;
    font-size: 0.9rem;
    padding: 0 2px;
    opacity: 0.7;
}
.coupon-remove:hover { opacity: 1; }
.coupon-error {
    color: #e03131;
    font-size: 0.8rem;
    margin: 8px 0;
}

/* Volume hint */
.volume-hint {
    background: #fff3bf;
    color: #e67700;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 12px 0;
    text-align: center;
    font-weight: 500;
}

/* === CHECKOUT PAGE === */
.checkout-page h1 {
    margin: 32px 0 24px;
    font-size: 1.6rem;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
    padding-bottom: 60px;
}
.checkout-items {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.checkout-items h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-price {
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}
.checkout-summary-lines {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.checkout-form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}
.checkout-form-section h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.checkout-user-info {
    background: var(--gray-50);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.checkout-user-info p { margin-bottom: 2px; }
.checkout-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* === COURSE BUY ACTIONS === */
.course-buy-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}
.course-price-campaign {
    margin-right: 8px;
}
.price-old {
    text-decoration: line-through;
    color: var(--gray-500);
    font-size: 1rem;
    margin-right: 8px;
}
.price-new {
    color: var(--red);
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
}
.course-login-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Add to cart button animation */
.btn-add-cart.added {
    background: #2f9e44 !important;
    border-color: #2f9e44 !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
        box-shadow: var(--shadow-lg);
    }
    .navbar.open .nav-links { display: flex; }

    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }

    .course-grid { grid-template-columns: 1fr; }

    .lesson-layout {
        grid-template-columns: 1fr;
    }
    .lesson-sidebar {
        position: static;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--gray-200);
    }

    .form-card { margin: 20px; padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    .course-info-bar { flex-direction: column; gap: 8px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

    .dashboard-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }

    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-form-section { position: static; }
    .course-buy-actions { flex-direction: column; align-items: stretch; }
    .course-buy-actions .btn { text-align: center; }
}
