/* ==========================================================================
   TBM STUDIO ACADEMY - MODERN DARK STUDIO DESIGN SYSTEM
   Complete Design Tokens, Components, Forms, Utilities & Mobile Optimization
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Great+Vibes&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0a0d14;
    --bg-surface: #101726;
    --bg-card: #152033;
    --bg-card-hover: #1b2840;
    --bg-input: #0c1220;
    --bg-input-focus: #111a2e;
    --bg-glass: rgba(16, 23, 38, 0.75);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(99, 102, 241, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.4);

    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

/* Background Atmosphere Glows */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(10, 13, 20, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(10, 13, 20, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.h1 {
    font-size: 42px;
}

.h2 {
    font-size: 32px;
}

.h3 {
    font-size: 26px;
}

.h4 {
    font-size: 22px;
}

.h5 {
    font-size: 18px;
}

.h6 {
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

code,
pre,
kbd,
samp {
    font-family: monospace;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.d-block {
    display: block !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-none {
    display: none !important;
}

@media (min-width: 576px) {
    .d-sm-none {
        display: none !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .d-sm-inline-block {
        display: inline-block !important;
    }

    .d-sm-flex {
        display: flex !important;
    }

    .d-sm-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-inline-block {
        display: inline-block !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .d-md-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-inline-block {
        display: inline-block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .d-lg-inline-flex {
        display: inline-flex !important;
    }
}


.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-baseline {
    align-items: baseline !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.gap-1 {
    gap: 6px !important;
}

.gap-2 {
    gap: 12px !important;
}

.gap-3 {
    gap: 20px !important;
}

.gap-4 {
    gap: 32px !important;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 6px !important;
}

.mb-2 {
    margin-bottom: 12px !important;
}

.mb-3 {
    margin-bottom: 18px !important;
}

.mb-4 {
    margin-bottom: 24px !important;
}

.mb-5 {
    margin-bottom: 40px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 6px !important;
}

.mt-2 {
    margin-top: 12px !important;
}

.mt-3 {
    margin-top: 18px !important;
}

.mt-4 {
    margin-top: 24px !important;
}

.mt-5 {
    margin-top: 40px !important;
}

.me-1 {
    margin-right: 6px !important;
}

.me-2 {
    margin-right: 12px !important;
}

.me-3 {
    margin-right: 18px !important;
}

.ms-1 {
    margin-left: 6px !important;
}

.ms-2 {
    margin-left: 12px !important;
}

.ms-3 {
    margin-left: 18px !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-2 {
    padding: 12px !important;
}

.p-3 {
    padding: 18px !important;
}

.p-4 {
    padding: 24px !important;
}

.p-5 {
    padding: 40px !important;
}

.py-1 {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.py-2 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.py-3 {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.py-4 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.px-1 {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

.px-2 {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.px-3 {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.px-4 {
    padding-left: 28px !important;
    padding-right: 28px !important;
}

.px-5 {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.pt-2 {
    padding-top: 12px !important;
}

.pt-4 {
    padding-top: 24px !important;
}

.pb-3 {
    padding-bottom: 18px !important;
}

.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

.rounded {
    border-radius: var(--radius-sm) !important;
}

/* Text Utilities */
.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.text-white {
    color: #ffffff !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-cyan {
    color: var(--cyan) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-purple {
    color: #a78bfa !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-semibold {
    font-weight: 600 !important;
}

.small {
    font-size: 12.5px !important;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #818cf8 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

/* ==========================================================================
   FORMS, INPUTS & CONTROLS (DESIGN REFINEMENT)
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13.5px;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="number"].form-control,
input[type="url"].form-control,
input[type="date"].form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    transition: var(--transition) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.form-control::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.form-control:focus,
input[type="text"].form-control:focus,
input[type="email"].form-control:focus,
input[type="password"].form-control:focus,
input[type="number"].form-control:focus,
input[type="url"].form-control:focus,
input[type="date"].form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    outline: none !important;
    background-color: var(--bg-input-focus) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

.form-control:disabled {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #64748b !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    cursor: not-allowed;
}

/* Custom Styled Select Dropdowns */
select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
    padding-right: 44px !important;
    cursor: pointer !important;
}

select.form-control option {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 12px !important;
}

textarea.form-control {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Checkbox & Radio Accents */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* Top Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    text-align: center;
    position: relative;
    z-index: 100;
    width: 100%;
    line-height: 1.4;
}

.announcement-text {
    font-size: 13px;
    word-break: break-word;
}

.announcement-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.announcement-link:hover {
    opacity: 0.85;
}

/* Main Navigation Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(10, 13, 20, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    transition: var(--transition);
}

.main-header .container {
    max-width: 1400px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 12px;
    width: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
}

.site-brand .brand-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.site-brand .brand-text {
    min-width: 0;
    line-height: 1.15;
}

.site-brand .brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.site-brand .brand-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--cyan);
    text-transform: uppercase;
    font-weight: 600;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    max-height: 44px;
}

.site-logo-img {
    max-height: 40px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.site-brand:hover .site-logo-img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text-secondary);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    flex-shrink: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    min-width: 220px;
    box-shadow: var(--shadow-card);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 101;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.nav-admin-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #0f172a !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm) !important;
    transition: var(--transition);
}

.nav-admin-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5) !important;
}

.nav-admin-btn i {
    color: #0f172a !important;
}

/* Mobile 2-Line Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}

.mobile-toggle .toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mobile-toggle:hover .toggle-line {
    background-color: var(--cyan);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
}

.mobile-drawer.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-content {
    width: 290px;
    max-width: 85%;
    height: 100%;
    background: #0f1624;
    border-right: 1px solid var(--border-subtle);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open .mobile-drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.drawer-link:hover,
.drawer-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-sm {
    padding: 7px 13px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    color: white;
}

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan) 0%, #0891b2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    color: white;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #1e1b4b;
    font-weight: 700;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.badge-live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-prerecorded {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-plugin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-pack {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan);
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}

.stat-item .stat-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.hero-media-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-media-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: brightness(0.9);
}

.floating-pill {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(16, 23, 38, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.studio-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.studio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.3), 0 0 20px rgba(6, 182, 212, 0.15);
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-card:hover .card-thumb-wrap img {
    transform: scale(1.06);
}

.card-badge-top {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.card-level-badge,
.card-version-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 13, 20, 0.82);
    backdrop-filter: blur(8px);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12.5px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.4;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--cyan);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-bottom: 16px;
    line-height: 1.55;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-schedule-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--cyan);
    margin-bottom: 14px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
}

.card-footer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-val {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.price-original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-free {
    font-size: 18px;
    font-weight: 800;
    color: var(--success);
    font-family: var(--font-heading);
}

/* Reviews / Testimonials Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
}

.stars-rating {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 12px;
}

.review-text {
    color: #e2e8f0;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 18px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.review-item-tag {
    font-size: 12px;
    color: var(--cyan);
}

/* Video Player Classroom */
.classroom-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    min-height: calc(100vh - 72px);
}

.video-main-viewport {
    background: #000000;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

.video-info-box {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.curriculum-sidebar {
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--primary) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.module-group-title {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: #0b1120;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#player-mount {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#player-mount iframe,
#player-mount video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.lesson-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.lesson-nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
    border-left: 3px solid var(--primary);
}

.lesson-nav-item.completed .lesson-title {
    color: var(--text-secondary);
}

/* Certificate Document Styling */
.certificate-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 40px;
    background: #0d131f;
    border: 8px double #d4af37;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    color: #f8fafc;
    text-align: center;
}

.cert-inner-frame {
    border: 2px solid rgba(212, 175, 55, 0.4);
    padding: 50px 40px;
    border-radius: 6px;
    position: relative;
}

.cert-header-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cert-title {
    font-family: 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 20px 0 10px 0;
}

.cert-subtitle {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.cert-student-name {
    font-family: 'Times New Roman', serif;
    font-size: 38px;
    font-weight: bold;
    color: #f59e0b;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    display: inline-block;
    padding: 0 40px 10px 40px;
    margin-bottom: 25px;
}

.cert-body-text {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.cert-course-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
}

.cert-footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-seal {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 0 auto;
}

.cert-qr-wrap img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cert-sig-col {
    text-align: right;
    min-width: 200px;
}

.cert-sig-handwritten {
    font-family: 'Alex Brush', 'Great Vibes', 'Caveat', 'Brush Script MT', cursive;
    font-size: 38px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
    letter-spacing: 1px;
    transform: rotate(-2deg);
    display: inline-block;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.cert-sig-img-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 48px;
}

.cert-sig-img-wrap img {
    max-height: 56px;
    max-width: 190px;
    object-fit: contain;
    filter: brightness(1.15);
}

.cert-sig-line {
    width: 190px;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0.3));
    margin: 4px 0 6px auto;
}

.cert-sig-label {
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cert-sig-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.cert-sig-title {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.3;
}

.cert-sig-org {
    font-size: 11.5px;
    color: #38bdf8;
    font-weight: 600;
    line-height: 1.3;
}

.cert-sig-date {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Page Layout Components */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.course-detail-layout,
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.checkout-header-card {
    border: 1px solid rgba(0, 240, 255, 0.15);
    background: linear-gradient(135deg, rgba(20, 28, 45, 0.9) 0%, rgba(13, 20, 36, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.btn-coupon-tag {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--cyan);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-coupon-tag:hover {
    background: var(--cyan);
    color: #0b1329;
}

.checkout-btn-pulse {
    transition: all 0.25s ease;
}

.checkout-btn-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    background: #141c2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    max-width: 580px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.dash-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
}

.dash-user-card {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.dash-user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: white;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    transition: var(--transition);
}

.dash-nav-link:hover,
.dash-nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.dash-nav-link.active {
    border-left: 3px solid var(--primary);
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-weight: 600;
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.main-footer {
    background: #07090e;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 24px 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.social-links-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
}

.footer-legal-links {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-secondary);
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--cyan);
}

/* Flash Messages */
.flash-alert {
    padding: 14px 22px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    animation: fadeInSlideDown 0.3s ease-out;
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.flash-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(185, 28, 28, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.flash-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(180, 83, 9, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.flash-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(2, 132, 199, 0.05) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8;
}

/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* 1. Large Tablets / Small Laptops (<= 1240px) */
@media (max-width: 1240px) {
    .nav-links {
        gap: 8px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 7px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn-sm {
        padding: 6px 9px;
        font-size: 12px;
    }
}

/* 2. Tablets in Landscape (<= 1040px) */
@media (max-width: 1040px) {
    .nav-links {
        display: none !important;
    }

    .nav-admin-btn,
    .nav-logout-btn {
        display: none !important;
    }

    .mobile-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 3. Tablets in Portrait & Medium Screens (<= 992px) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-title {
        font-size: 38px;
    }

    .course-detail-layout,
    .product-detail-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px;
    }

    .course-detail-sidebar,
    .product-detail-sidebar {
        order: -1;
        margin-bottom: 8px;
    }

    .course-detail-sidebar .glass-panel,
    .product-detail-sidebar .glass-panel,
    .checkout-sidebar .glass-panel {
        position: static !important;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .classroom-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .curriculum-sidebar {
        height: auto;
        max-height: 440px;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0;
    }

    .dash-user-card {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding-bottom: 16px;
        margin-bottom: 14px;
        min-width: 0;
        overflow: hidden;
    }

    .dash-user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0;
        flex-shrink: 0;
    }

    .dash-user-info {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .dash-user-info h2 {
        font-size: 16.5px;
        line-height: 1.25;
        word-break: break-word;
    }

    .dash-user-email {
        word-break: break-all;
        overflow-wrap: break-word;
        font-size: 12px;
    }

    .dash-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .dash-nav-link {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 10px 12px;
        font-size: 13px;
        border-left: none !important;
        background: rgba(255, 255, 255, 0.03);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-nav-link.active {
        background: var(--primary) !important;
        color: #ffffff !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 4. Large Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Global Headings Scale - Crisp & Proportional */
    h1,
    .h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    h2,
    .h2 {
        font-size: 20px !important;
        line-height: 1.28 !important;
    }

    h3,
    .h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    h4,
    .h4 {
        font-size: 16px !important;
    }

    h5,
    .h5 {
        font-size: 14.5px !important;
    }

    h6,
    .h6 {
        font-size: 13.5px !important;
    }

    .course-detail-title,
    .product-detail-title {
        font-size: 22px !important;
        line-height: 1.28 !important;
    }

    /* Layout & Spacing */
    .container {
        padding: 0 14px;
    }

    .py-5 {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    .py-4 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .mb-5 {
        margin-bottom: 24px !important;
    }

    .mb-4 {
        margin-bottom: 16px !important;
    }

    .glass-panel {
        padding: 16px 14px !important;
        border-radius: 12px !important;
    }

    .p-4,
    .p-5 {
        padding: 16px 14px !important;
    }

    /* Hero Section */
    .hero-section {
        padding: 24px 0 20px 0;
    }

    .hero-title {
        font-size: 25px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .hero-desc {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
        margin-bottom: 18px !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 13.5px !important;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 18px;
        padding: 14px 2px 0 2px;
        text-align: center;
    }

    .stat-item .stat-num {
        font-size: 18px !important;
        font-weight: 800;
    }

    .stat-item .stat-label {
        font-size: 10px !important;
        line-height: 1.3;
        margin-top: 2px;
    }

    .hero-media-card img {
        height: 180px !important;
    }

    .floating-pill {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px 10px;
    }

    .floating-pill strong {
        font-size: 11.5px !important;
    }

    .floating-pill span {
        font-size: 10px !important;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 22px;
    }

    .section-tag {
        font-size: 10px !important;
        padding: 3px 8px !important;
        margin-bottom: 6px !important;
    }

    .section-title {
        font-size: 21px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .section-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    /* Buttons */
    .btn-lg {
        padding: 10px 18px !important;
        font-size: 13.5px !important;
    }

    .btn {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    .btn-sm {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .form-control {
        padding: 9px 12px !important;
        font-size: 13.5px !important;
    }

    .form-label {
        font-size: 12.5px !important;
        margin-bottom: 4px !important;
    }

    /* Badges & Icons */
    .badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }

    .empty-state-icon {
        font-size: 2.2rem !important;
    }

    .auth-header-badge {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }

    .order-success-icon {
        width: 54px !important;
        height: 54px !important;
        font-size: 24px !important;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.2);
        color: #34d399;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Cards Grid & Studio Card */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .studio-card {
        max-width: 100%;
        margin: 0;
        width: 100%;
        border-radius: 12px !important;
    }

    .card-body {
        padding: 14px 14px !important;
    }

    .card-meta {
        font-size: 11.5px !important;
        margin-bottom: 6px !important;
    }

    .card-title {
        font-size: 15px !important;
        margin-bottom: 6px !important;
        min-height: auto !important;
        line-height: 1.35 !important;
    }

    .card-desc {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
    }

    .card-schedule-info {
        font-size: 11px !important;
        padding: 4px 8px !important;
        margin-bottom: 8px !important;
    }

    .card-footer-box {
        padding-top: 10px !important;
    }

    .price-box {
        font-size: 16px !important;
    }

    .price-original {
        font-size: 12.5px !important;
    }

    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .review-card {
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }

    .review-text {
        font-size: 12.5px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }

    .author-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .author-name {
        font-size: 13px !important;
    }

    .review-item-tag {
        font-size: 11px !important;
    }

    /* Coupon Banner */
    .coupon-banner-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .coupon-banner-left {
        gap: 10px !important;
    }

    .coupon-banner-left>div:first-child {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    .coupon-banner-left h3 {
        font-size: 14px !important;
        line-height: 1.35 !important;
        margin-bottom: 4px !important;
    }

    .coupon-banner-left p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .coupon-banner-btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        padding: 9px 14px !important;
        font-size: 12.5px !important;
    }

    /* CTA Section */
    .cta-actions,
    .about-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 8px;
    }

    .cta-actions .btn,
    .about-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 16px !important;
        font-size: 13.5px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .main-footer {
        padding: 32px 0 16px 0;
        margin-top: 36px;
    }

    .footer-col h4 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .footer-links li a {
        font-size: 12.5px !important;
    }

    .social-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    .footer-bottom {
        padding-top: 16px !important;
        font-size: 11.5px !important;
    }

    .footer-legal-links a {
        font-size: 11px !important;
    }

    /* Forms */
    .form-row-2,
    .row[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Course catalog filter form */
    .filter-search-form {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .filter-search-input-wrap,
    .filter-select-wrap,
    .filter-btn-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }

    .filter-btn-wrap .btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    /* Classroom */
    .video-main-viewport {
        padding: 12px 10px;
    }

    .video-info-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .video-action-btn-wrap,
    .lesson-complete-btn {
        width: 100% !important;
        justify-content: center;
        text-align: center;
    }

    /* Dashboard Enrolled Card */
    .enrolled-course-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    .enrolled-course-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        gap: 10px !important;
    }

    .enrolled-course-thumb {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
    }

    .progress-bar-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .enrolled-course-actions {
        width: 100% !important;
    }

    .enrolled-course-actions .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    /* Certificate View */
    .certificate-container {
        padding: 16px 12px;
        margin: 16px auto;
        border-width: 4px;
    }

    .cert-inner-frame {
        padding: 20px 10px;
    }

    .cert-header-logo {
        font-size: 17px;
    }

    .cert-title {
        font-size: 22px;
        margin: 10px 0 6px 0;
    }

    .cert-subtitle {
        font-size: 11.5px;
        margin-bottom: 14px;
    }

    .cert-student-name {
        font-size: 20px;
        padding: 0 14px 6px 14px;
        margin-bottom: 16px;
    }

    .cert-body-text {
        font-size: 12.5px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .cert-course-name {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .cert-footer-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        text-align: center;
        margin-top: 22px;
        padding-top: 16px;
    }

    .cert-qr-col,
    .cert-seal-col,
    .cert-sig-col {
        text-align: center !important;
        margin: 0 auto;
    }

    .cert-sig-line {
        margin: 4px auto 6px auto !important;
    }

    .cert-sig-img-wrap {
        justify-content: center !important;
    }

    .cert-action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 5. Standard Mobile Phones (<= 640px) */
@media (max-width: 640px) {

    /* Header Nav adjustments */
    .nav-container {
        height: 58px;
    }

    .site-brand {
        font-size: 16px;
        gap: 8px;
    }

    .brand-badge {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
    }

    .announcement-bar {
        font-size: 11px;
        padding: 5px 10px;
        line-height: 1.35;
    }

    .announcement-text {
        font-size: 11px;
    }

    .announcement-link {
        font-size: 11px;
    }
}

/* 6. Compact Mobile Phones (<= 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13.5px;
    }

    h1,
    .h1 {
        font-size: 21px !important;
    }

    h2,
    .h2 {
        font-size: 18px !important;
    }

    h3,
    .h3 {
        font-size: 16.5px !important;
    }

    h4,
    .h4 {
        font-size: 15px !important;
    }

    h5,
    .h5 {
        font-size: 13.5px !important;
    }

    .hero-title {
        font-size: 22px !important;
    }

    .section-title {
        font-size: 19px !important;
    }

    .course-detail-title,
    .product-detail-title {
        font-size: 19px !important;
    }

    .dash-nav {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    .dash-nav-link {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    .dash-user-card {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .dash-user-avatar {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .dash-user-info h2 {
        font-size: 14.5px;
    }

    .dash-user-email {
        font-size: 11px;
    }
}

/* 7. Extra-Small Mobile Screens (<= 420px) */
@media (max-width: 420px) {
    .container {
        padding: 0 12px;
    }

    .site-brand .brand-name {
        font-size: 13.5px;
    }

    .site-brand .brand-sub {
        font-size: 7.5px !important;
        letter-spacing: 0.8px !important;
    }

    .brand-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }

    .nav-dashboard-btn .nav-btn-text {
        display: none !important;
    }

    .nav-dashboard-btn {
        padding: 6px 9px !important;
        border-radius: var(--radius-sm);
    }

    .hero-title {
        font-size: 20px !important;
    }

    .hero-stats {
        gap: 3px;
    }

    .stat-item .stat-num {
        font-size: 16px !important;
    }

    .stat-item .stat-label {
        font-size: 9px !important;
    }

    .cert-student-name {
        font-size: 17px;
        padding: 0 8px 4px 8px;
    }
}