/* ============================================================
   PARIKSHA PARIKRAMA — SHARED DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --deep-maroon: #6B1E1E;
    --navy-blue: #14213D;
    --warm-gold: #E9B949;
    --soft-cream: #FAF4E8;
    --light-gray: #f8f9fa;
    --dark-text: #2D3748;
    --medium-gray: #718096;
    --white: #FFFFFF;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    --border: rgba(233, 185, 73, 0.15);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background: var(--soft-cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 46px;
    white-space: nowrap;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--deep-maroon), #8B2C2C);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(107,30,30,0.28);
}
.btn-secondary {
    background: transparent;
    color: var(--deep-maroon);
    border: 2px solid var(--deep-maroon);
}
.btn-secondary:hover { background: var(--deep-maroon); color: var(--white); }
.btn-gold {
    background: linear-gradient(135deg, var(--warm-gold), #F4C23B);
    color: var(--navy-blue);
    box-shadow: 0 6px 18px rgba(233,185,73,0.3);
}
.btn-navy {
    background: linear-gradient(135deg, var(--navy-blue), #1a2d52);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(20,33,61,0.3);
}
.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--white);
}
.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 36px; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; min-height: 54px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; pointer-events: none; }

/* --- Section Base --- */
section { padding: 80px 0; position: relative; }

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 56px;
}
.section-title h2 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--navy-blue), var(--deep-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 580px;
    margin: 0 auto;
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--warm-gold), var(--deep-maroon));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- Card Base --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-gold { background: rgba(233,185,73,0.15); color: #92650a; }
.badge-maroon { background: rgba(107,30,30,0.12); color: var(--deep-maroon); }
.badge-navy { background: rgba(20,33,61,0.12); color: var(--navy-blue); }
.badge-success { background: rgba(34,197,94,0.12); color: #15803d; }
.badge-error { background: rgba(239,68,68,0.12); color: #b91c1c; }
.badge-warning { background: rgba(245,158,11,0.12); color: #b45309; }

/* --- Form Elements --- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-text);
    margin-bottom: 8px;
}
.form-label span.required { color: var(--error); margin-left: 2px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--dark-text);
    background: var(--white);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input:focus {
    border-color: var(--deep-maroon);
    box-shadow: 0 0 0 3px rgba(107,30,30,0.1);
}
.form-input.error { border-color: var(--error); }
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--dark-text);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.25s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-select:focus { border-color: var(--deep-maroon); outline: none; }
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--dark-text);
    background: var(--white);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.25s;
}
.form-textarea:focus { border-color: var(--deep-maroon); box-shadow: 0 0 0 3px rgba(107,30,30,0.1); }
.form-error { font-size: 0.82rem; color: var(--error); margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 0.82rem; color: var(--medium-gray); margin-top: 6px; }

/* --- Input with Icon --- */
.input-group { position: relative; }
.input-group .input-icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1rem;
    pointer-events: none;
}
.input-group .form-input { padding-left: 42px; }
.input-group .input-icon-right {
    position: absolute;
    right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1rem;
    cursor: pointer;
}

/* --- Alert / Toast --- */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.92rem;
    font-weight: 500;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #15803d; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #b91c1c; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #b45309; }
.alert-info { background: rgba(20,33,61,0.08); border: 1px solid rgba(20,33,61,0.2); color: var(--navy-blue); }

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 360px;
}
.toast-success { background: #16a34a; color: white; }
.toast-error { background: #dc2626; color: white; }
.toast-info { background: var(--navy-blue); color: white; }

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(20px);
    transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-size: 1.4rem; color: var(--navy-blue); }
.modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--medium-gray);
    font-size: 0.9rem;
    border: none;
}
.modal-close:hover { background: #fee2e2; color: var(--error); }
.modal-body { padding: 24px 28px; }
.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* --- Table --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}
thead tr { background: linear-gradient(135deg, var(--navy-blue), #1e2d52); }
thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
tbody tr:hover { background: var(--soft-cream); }
tbody td {
    padding: 14px 18px;
    font-size: 0.92rem;
    color: var(--dark-text);
}
.table-actions { display: flex; gap: 8px; align-items: center; }

/* --- Stats Strip --- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stat-card .stat-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--navy-blue), var(--deep-maroon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-top: 4px;
    font-weight: 500;
}

/* --- Header (Shared) --- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(250,244,232,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: padding 0.3s;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--deep-maroon), var(--navy-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.site-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}
.site-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-text);
    transition: color 0.25s;
    position: relative;
    padding-bottom: 4px;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--warm-gold), var(--deep-maroon));
    transition: width 0.3s;
}
.site-nav a:hover { color: var(--deep-maroon); }
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--deep-maroon); }

.header-actions { display: flex; gap: 12px; align-items: center; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    padding: 80px 28px 32px;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    overflow-y: auto;
}
.mobile-nav.open { right: 0; display: block; }
.mobile-nav ul { flex-direction: column; gap: 0; }
.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text);
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover { color: var(--deep-maroon); padding-left: 8px; }
.mobile-nav-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--medium-gray);
    font-size: 0.9rem;
}
.mobile-nav-close:hover { background: #fee2e2; color: var(--error); }

/* --- Footer (Shared) --- */
.site-footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}
.footer-brand .footer-logo span { color: var(--warm-gold); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 14px; margin-top: 20px; }
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--warm-gold); color: var(--navy-blue); transform: translateY(-2px); }
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--warm-gold);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a:hover { color: var(--white); transform: translateX(4px); }
.footer-col ul li a i { font-size: 0.75rem; color: var(--warm-gold); }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}
.footer-contact-item i { color: var(--warm-gold); width: 16px; margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.84rem;
}

/* --- Dashboard Layout --- */
.dash-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
    background: #f0f2f5;
}
.dash-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy-blue);
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    z-index: 500;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.dash-sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-sidebar-logo .logo-text {
    font-size: 18px;
    color: var(--white);
    -webkit-text-fill-color: unset;
    background: none;
    display: block;
    margin-bottom: 4px;
}
.dash-sidebar-logo span { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.dash-nav { padding: 16px 0; flex: 1; }
.dash-nav-label {
    padding: 12px 20px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
}
.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin: 2px 0;
}
.dash-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.dash-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); border-left-color: rgba(233,185,73,0.5); }
.dash-nav a.active { color: var(--white); background: rgba(233,185,73,0.12); border-left-color: var(--warm-gold); }
.dash-nav a.active i { color: var(--warm-gold); }
.dash-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.dash-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    transition: color 0.2s;
    padding: 8px 0;
}
.dash-sidebar-footer a:hover { color: #ef4444; }

.dash-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.dash-topbar {
    background: var(--white);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.dash-topbar-left { display: flex; align-items: center; gap: 16px; }
.dash-topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--navy-blue); font-family: 'Inter', sans-serif; }
.dash-topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--deep-maroon), var(--navy-blue));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}
.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px 8px;
}
.dash-content { padding: 28px; flex: 1; }
.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.dash-section-header h2 {
    font-size: 1.5rem;
    color: var(--navy-blue);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* --- Search Bar --- */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.25s;
    max-width: 320px;
    width: 100%;
}
.search-bar:focus-within { border-color: var(--deep-maroon); }
.search-bar i { padding: 0 14px; color: var(--medium-gray); font-size: 0.95rem; flex-shrink: 0; }
.search-bar input {
    border: none;
    padding: 10px 12px 10px 0;
    flex: 1;
    font-size: 0.9rem;
    background: transparent;
    color: var(--dark-text);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--medium-gray);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; display: block; }
.empty-state h3 { font-size: 1.2rem; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 8px; color: var(--dark-text); }
.empty-state p { font-size: 0.9rem; }

/* --- Loading Spinner --- */
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--deep-maroon);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 40px auto;
}
.loading-state { text-align: center; padding: 40px; color: var(--medium-gray); }

/* --- Course Card (Public) --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-card-banner {
    height: 160px;
    background: linear-gradient(135deg, var(--navy-blue), var(--deep-maroon));
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.course-card-banner::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 120px; height: 120px;
    background: rgba(233,185,73,0.15);
    border-radius: 50%;
    transform: translate(30%, 30%);
}
.course-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--deep-maroon);
    margin-bottom: 10px;
}
.course-card-body h3 { font-size: 1.25rem; color: var(--navy-blue); margin-bottom: 10px; }
.course-card-body p { font-size: 0.9rem; color: var(--medium-gray); flex: 1; margin-bottom: 20px; line-height: 1.6; }
.course-meta { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.course-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--medium-gray); }
.course-meta-item i { color: var(--warm-gold); }

/* --- Video Player with Watermark --- */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.video-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    user-select: none;
    transition: all 4s ease-in-out;
    text-align: center;
    background: rgba(0,0,0,0.18);
    padding: 6px 14px;
    border-radius: 6px;
}
.video-watermark p {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

/* --- Announcement Card --- */
.announcement-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--warm-gold);
    margin-bottom: 16px;
    transition: var(--transition);
}
.announcement-card:hover { box-shadow: var(--shadow-md); }
.announcement-card.urgent { border-left-color: var(--error); }
.announcement-card.info { border-left-color: var(--navy-blue); }
.announcement-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.announcement-header h4 { font-size: 1rem; color: var(--navy-blue); font-family: 'Inter', sans-serif; font-weight: 700; }
.announcement-date { font-size: 0.78rem; color: var(--medium-gray); white-space: nowrap; }
.announcement-body { font-size: 0.9rem; color: var(--medium-gray); line-height: 1.6; }

/* --- Lecture List --- */
.lecture-list { display: flex; flex-direction: column; gap: 12px; }
.lecture-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.lecture-item:hover { box-shadow: var(--shadow-md); border-color: var(--deep-maroon); transform: translateX(4px); }
.lecture-item.active { border-color: var(--deep-maroon); background: rgba(107,30,30,0.04); }
.lecture-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-blue), var(--deep-maroon));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.lecture-info { flex: 1; }
.lecture-info h4 { font-size: 0.95rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--dark-text); margin-bottom: 2px; }
.lecture-info span { font-size: 0.8rem; color: var(--medium-gray); }
.lecture-play-icon { color: var(--medium-gray); transition: color 0.2s; }
.lecture-item:hover .lecture-play-icon { color: var(--deep-maroon); }

/* --- Coupon Input --- */
.coupon-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-cream) 0%, #F0EDE5 100%);
    padding: 24px;
}
.coupon-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border);
}
.coupon-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm-gold), #F4C23B);
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--navy-blue);
    box-shadow: 0 8px 24px rgba(233,185,73,0.35);
}
.coupon-card h2 { font-size: 1.8rem; color: var(--navy-blue); margin-bottom: 12px; }
.coupon-card p { font-size: 0.95rem; color: var(--medium-gray); margin-bottom: 32px; line-height: 1.6; }
.coupon-input-wrap { position: relative; margin-bottom: 20px; }
.coupon-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    transition: border-color 0.25s;
}
.coupon-input:focus { border-color: var(--deep-maroon); box-shadow: 0 0 0 3px rgba(107,30,30,0.1); }

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes float-3d {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(5deg); }
    66% { transform: translateY(5px) rotate(-5deg); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes watermarkMove {
    0% { opacity: 0.25; }
    50% { opacity: 0.35; }
    100% { opacity: 0.25; }
}

.animate-in {
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}

/* --- Responsive Utilities --- */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none !important; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.fw-600 { font-weight: 600; }
.text-muted { color: var(--medium-gray); font-size: 0.88rem; }
.text-success { color: #16a34a; }
.text-error { color: #dc2626; }

/* --- Responsive Dashboard --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .dash-sidebar { transform: translateX(-100%); z-index: 1005; }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-main { margin-left: 0; }
    .sidebar-toggle-btn { display: block; }
    .dash-content { padding: 20px 16px; }
}
@media (max-width: 768px) {
    .section-title h2 { font-size: 1.9rem; }
    section { padding: 60px 0; }
    .hamburger { display: flex; }
    .site-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .course-grid { grid-template-columns: 1fr; }
    .modal { margin: 16px; }
    .dash-topbar { padding: 0 16px; }
    .dash-section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .btn-lg { padding: 14px 24px; font-size: 1rem; }
    .coupon-card { padding: 36px 24px; }
}
