/* ----------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
   ---------------------------------------------------- */
:root {
    /* Color Palette - Light Mode Default */
    --primary-h: 256;
    --primary-s: 70%;
    --primary-l: 50%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 8%));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #3b82f6;
    --info-light: #eff6ff;

    --bg-main: hsl(210, 40%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-header: rgba(255, 255, 255, 0.85);
    
    --border-color: hsl(214, 32%, 91%);
    --border-hover: hsl(214, 32%, 80%);
    
    --text-primary: hsl(222, 47%, 11%);
    --text-secondary: hsl(215, 16%, 47%);
    --text-muted: hsl(215, 16%, 70%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);

    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --border-radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body.dark-mode {
    --bg-main: hsl(222, 47%, 8%);
    --bg-card: hsl(222, 47%, 12%);
    --bg-header: rgba(15, 23, 42, 0.85);
    
    --border-color: hsl(222, 47%, 18%);
    --border-hover: hsl(222, 47%, 24%);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 16%, 50%);
    
    --primary-l: 63%;
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-premium: 0 20px 25px -5px rgba(99, 102, 241, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.hidden {
    display: none !important;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* ----------------------------------------------------
   2. TYPOGRAPHY & BUTTONS
   ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    text-align: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #dc2626;
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}
.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary);
}
.btn-white:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.form-link-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0;
}
.form-link-btn:hover {
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-student { background-color: var(--primary-light); color: var(--primary); }
.badge-admin { background-color: var(--warning-light); color: var(--warning); }
.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); }
.badge-info { background-color: var(--info-light); color: var(--info); }

/* ----------------------------------------------------
   3. HEADER & NAVIGATION
   ---------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    color: #ffffff;
}
.logo-icon i {
    width: 22px;
    height: 22px;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}
.logo-accent {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}
.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
    border-color: var(--primary);
}

body.light-mode .light-icon { display: none; }
body.dark-mode .dark-icon { display: none; }

.auth-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Profile Dropdown */
.user-profile-menu {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast);
}
.profile-trigger:hover {
    background-color: var(--primary-light);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, #a5b4fc 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.profile-info-mini {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.profile-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}
.profile-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.chevron-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.75rem;
    display: none;
    animation: slideDown 0.2s ease forwards;
    z-index: 110;
}

.dropdown-panel.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
}
.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}
.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}
.logout-btn:hover {
    background-color: var(--danger-light) !important;
    color: var(--danger) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ----------------------------------------------------
   4. PUBLIC HOMEPAGE DESIGN
   ---------------------------------------------------- */
.app-view {
    padding-top: 80px; /* Account for header */
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: var(--border-radius-full);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}
.shape-1 {
    top: -10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
}
.shape-2 {
    bottom: -10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: #818cf8;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-badge {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    max-width: 540px;
    margin-bottom: 3rem;
}
.hero-search-bar .search-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    margin: 0 1rem;
}
.hero-search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}
.hero-search-bar .btn {
    padding: 0.75rem 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}
.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Image wrapper */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--border-radius-lg);
    overflow: visible;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    display: block;
    object-fit: cover;
    z-index: 2;
    position: relative;
}
.hero-card-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    border-radius: calc(var(--border-radius-lg) + 4px);
    z-index: 1;
    opacity: 0.15;
}

.floating-badge {
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
}
.badge-top {
    top: 15%;
    left: -10%;
    animation: floatUp 3s ease-in-out infinite;
}
.badge-bottom {
    bottom: 10%;
    right: -10%;
    animation: floatDown 3s ease-in-out infinite 0.5s;
}
.badge-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.badge-icon.award-icon { color: var(--warning); }
.badge-details {
    display: flex;
    flex-direction: column;
}
.badge-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
}
.badge-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ----------------------------------------------------
   BENEFITS SECTION
   ---------------------------------------------------- */
.benefits-section {
    padding: 5rem 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}
.section-tagline {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.benefit-icon-wrapper i {
    width: 28px;
    height: 28px;
}
.benefit-icon-wrapper.color-1 { background-color: var(--primary-light); color: var(--primary); }
.benefit-icon-wrapper.color-2 { background-color: var(--success-light); color: var(--success); }
.benefit-icon-wrapper.color-3 { background-color: var(--warning-light); color: var(--warning); }
.benefit-icon-wrapper.color-4 { background-color: var(--info-light); color: var(--info); }

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ----------------------------------------------------
   COURSES CATALOG SECTION
   ---------------------------------------------------- */
.courses-section {
    padding: 6rem 0;
}
.courses-section .section-header {
    text-align: left;
    max-width: none;
    margin: 0 0 3rem 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.courses-filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.dynamic-categories-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Course Card UI */
.course-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.course-card-image-box {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.course-card:hover .course-card-img {
    transform: scale(1.05);
}

.course-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    backdrop-filter: blur(4px);
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.course-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}
.meta-icon-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.meta-icon-item i {
    width: 16px;
    height: 16px;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}
.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* ----------------------------------------------------
   INSTRUCTOR PROFILE SECTION
   ---------------------------------------------------- */
.instructor-section {
    padding: 6rem 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.instructor-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 5rem;
}

.instructor-image-side {
    display: flex;
    justify-content: center;
}
.instructor-image-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}
.instructor-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}
.instructor-exp-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}
.exp-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}
.exp-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.instructor-content-side .section-title {
    margin-bottom: 0.25rem;
}
.instructor-subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.instructor-bio {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.instructor-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.skill-tag {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ----------------------------------------------------
   TESTIMONIALS SECTION
   ---------------------------------------------------- */
.testimonials-section {
    padding: 6rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.testimonial-stars {
    color: var(--warning);
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.25rem;
}
.testimonial-stars i {
    width: 18px;
    height: 18px;
}
.testimonial-quote {
    color: var(--text-primary);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.author-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
}
.author-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------- */
.faq-section {
    padding: 6rem 0;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}
.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}
.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}
.faq-item.active .faq-answer {
    display: block;
}

/* ----------------------------------------------------
   CALL TO ACTION SECTION
   ---------------------------------------------------- */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.cta-bg-shapes .cta-shape {
    position: absolute;
    border-radius: var(--border-radius-full);
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}
.cta-shape-1 {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-color: #a5b4fc;
}
.cta-shape-2 {
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-color: #818cf8;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}
.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ----------------------------------------------------
   5. DASHBOARD LAYOUT & SIDEPANELS
   ---------------------------------------------------- */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}
.sidebar-avatar.admin-avatar {
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 100%);
}

.sidebar-meta h4 {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.sidebar-nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

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

.admin-theme .sidebar-nav-link.active {
    background-color: var(--warning);
    color: #ffffff;
}
.admin-theme .sidebar-nav-link:hover {
    color: var(--warning);
    background-color: var(--warning-light);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Dashboard Main */
.dashboard-main {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
}

.dashboard-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.dashboard-tab-panel.active {
    display: block;
}

.dashboard-header-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.dashboard-header-block-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.db-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.db-subtitle {
    color: var(--text-secondary);
}

/* Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card-glow-student::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
}
.card-glow-admin::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--warning);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.metric-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.metric-icon-box.success-theme { background-color: var(--success-light); color: var(--success); }
.metric-icon-box.warning-theme { background-color: var(--warning-light); color: var(--warning); }
.metric-icon-box.student-theme { background-color: var(--primary-light); color: var(--primary); }
.metric-icon-box.admin-theme { background-color: var(--warning-light); color: var(--warning); }
.metric-icon-box.info-theme { background-color: var(--info-light); color: var(--info); }
.metric-icon-box i { width: 18px; height: 18px; }

.metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.metric-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-bar-mini {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    margin-top: 0.75rem;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #818cf8 100%);
    border-radius: var(--border-radius-full);
    transition: width var(--transition-normal);
}
.admin-theme .progress-bar-fill {
    background: linear-gradient(90deg, var(--warning) 0%, #f97316 100%);
}

/* ----------------------------------------------------
   STUDENT OVERVIEW SCREEN SPECIAL CONTENT
   ---------------------------------------------------- */
.student-overview-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.continue-learning-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, var(--bg-card) 60%, var(--primary-light) 100%);
}
.cl-details {
    flex: 1;
}
.cl-course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.cl-lesson-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.section-subtitle-small {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.recent-announcements-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.announcements-mini-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.mini-announcement-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.mini-announcement-item:last-child {
    border: none;
    padding: 0;
}
.mini-ann-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.mini-ann-title {
    font-weight: 700;
    font-size: 0.9375rem;
}
.mini-ann-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.mini-ann-content {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Full Announcement list */
.announcements-large-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.large-ann-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.large-ann-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}
.large-ann-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.large-ann-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.large-ann-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Profile Form */
.profile-settings-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    max-width: 800px;
}
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}
.form-group input, .form-group textarea, .form-group select {
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
}
.disabled-input {
    background-color: var(--border-color) !important;
    cursor: not-allowed;
}
.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* ----------------------------------------------------
   6. CUSTOM LESSON PLAYER LAYOUT
   ---------------------------------------------------- */
.player-layout {
    display: flex;
    height: calc(100vh - 80px);
}

.player-sidebar {
    width: 320px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.player-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.back-to-db-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}
.back-to-db-btn:hover {
    color: var(--primary);
}
.player-course-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.player-progress-container {
    display: flex;
    flex-direction: column;
}
.player-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.player-curriculum-list {
    flex: 1;
    overflow-y: auto;
}

.curriculum-module-block {
    border-bottom: 1px solid var(--border-color);
}

.module-header-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--bg-main);
    border: none;
    cursor: pointer;
    text-align: left;
}
.module-header-title-box {
    display: flex;
    flex-direction: column;
}
.module-number-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}
.module-title-h5 {
    font-size: 0.9375rem;
    font-weight: 700;
}

.module-lessons-container {
    background-color: var(--bg-card);
}

.lesson-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    transition: all var(--transition-fast);
}
.lesson-nav-item:hover {
    background-color: var(--primary-light);
}
.lesson-nav-item.active {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}
.lesson-nav-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.lesson-status-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}
.lesson-nav-item.completed .lesson-status-icon {
    color: var(--success);
}
.lesson-nav-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.lesson-nav-item.active .lesson-nav-title {
    color: var(--primary);
    font-weight: 600;
}
.lesson-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Player Content Area */
.player-main {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-main);
    display: flex;
    justify-content: center;
}

.lesson-content-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 3rem 2rem;
}

.lesson-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
}
.module-title-tag {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}
.lesson-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.lesson-actions-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Custom check button styling */
.lesson-complete-checkbox-label input {
    display: none;
}
.custom-chk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.custom-chk-btn i {
    width: 16px;
    height: 16px;
    display: none;
}
.lesson-complete-checkbox-label input:checked + .custom-chk-btn {
    background-color: var(--success);
    border-color: var(--success);
    color: #ffffff;
}
.lesson-complete-checkbox-label input:checked + .custom-chk-btn i {
    display: block;
}

.btn-bookmark.active {
    background-color: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning);
}
.btn-bookmark.active i {
    fill: var(--warning);
}

/* Video Frame */
.video-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}
.custom-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.video-overlay-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(222, 47%, 10%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}
.play-overlay-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

/* Tabs */
.lesson-tabs-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}
.tab-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.15rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.tab-link:hover {
    color: var(--primary);
}
.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--bg-card);
}

.tabs-content {
    padding: 2.25rem;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}
.tab-pane.active {
    display: block;
}

.prose-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}
.prose-content p {
    margin-bottom: 1.25rem;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}
.resource-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.resource-details i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.resource-details span {
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Personal Notes */
.notes-editor-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.notes-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.notes-editor-box textarea {
    width: 100%;
    height: 180px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    resize: none;
    font-family: inherit;
    line-height: 1.5;
}
.notes-editor-box textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
}
.notes-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.save-status-indicator {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.save-status-indicator.visible {
    opacity: 1;
}

/* Discussion Board */
.discussion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.discussion-form {
    display: flex;
    gap: 1rem;
}
.discussion-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-main);
}
.discussion-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 350px;
    overflow-y: auto;
}
.comment-card {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-main);
}
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.comment-author-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}
.comment-name {
    font-weight: 700;
    font-size: 0.8125rem;
}
.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.comment-body {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Bottom Navigation */
.lesson-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ----------------------------------------------------
   7. ADMIN DASHBOARD METRICS & FORMS
   ---------------------------------------------------- */
.admin-charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.admin-chart-box, .admin-logs-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-logs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 220px;
    overflow-y: auto;
}
.log-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8125rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}
.log-item:last-child {
    border: none;
    padding: 0;
}
.log-icon-bullet {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}
.log-meta {
    flex: 1;
}
.log-time {
    color: var(--text-muted);
}
.log-user {
    font-weight: 700;
}

/* Controls */
.student-manager-controls {
    margin-bottom: 1.5rem;
}
.search-bar-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.25rem 1rem;
    max-width: 400px;
}
.search-bar-wrapper .search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.search-bar-wrapper input {
    border: none;
    background: none;
    padding: 0.5rem;
    width: 100%;
}

/* Data Tables */
.admin-table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 1.25rem 1.5rem;
}
.data-table th {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}
.data-table td {
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover {
    background-color: var(--primary-light);
}

.admin-table-thumbnail {
    width: 50px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

/* Actions in cell */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-access-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.access-grant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.8125rem;
}

/* ----------------------------------------------------
   8. MODALS & FORMS
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease forwards;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-modal-card {
    max-width: 700px;
}

.course-preview-card {
    max-width: 850px;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.modal-close-btn:hover {
    color: var(--danger);
    background-color: var(--danger-light);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Auth Tabs styling inside modal */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}
.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-pane {
    display: none;
}
.auth-pane.active {
    display: block;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}



.label-row-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.checkbox-label input {
    margin-top: 3px;
}

.auth-forgot-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.verification-code-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}
.code-input {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.verification-resend-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Course Preview Layout */
.course-preview-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}
.preview-thumbnail {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}
.preview-meta-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
}
.preview-bullet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.preview-bullet i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.preview-right-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.preview-price-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.1);
}
.preview-price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Curriculum Builder list */
.curriculum-builder-section {
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.modules-builder-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.module-builder-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
}
.module-builder-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.module-builder-head input {
    flex: 1;
    background-color: var(--bg-card) !important;
}

.lessons-builder-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 1.5rem;
    border-left: 2px dashed var(--border-color);
    padding-left: 1rem;
}
.lesson-builder-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
}
.lesson-builder-item input {
    background-color: var(--bg-card) !important;
    padding: 0.5rem !important;
    font-size: 0.8125rem;
}

.form-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* ----------------------------------------------------
   9. FOOTER SECTION
   ---------------------------------------------------- */
.main-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 0 0;
    border-top: 1px solid #1e293b;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}
.footer-brand .logo-text {
    color: #ffffff;
}
.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-full);
    background-color: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.footer-socials a:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}
.footer-socials i {
    width: 18px;
    height: 18px;
}

.footer-links-column h4, .footer-newsletter h4 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.footer-links-column a:hover {
    color: #ffffff;
}

.footer-newsletter p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.newsletter-form input {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    color: #ffffff;
}
.newsletter-form input::placeholder {
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ----------------------------------------------------
   10. CERTIFICATE VIEWING & DOWNLOAD
   ---------------------------------------------------- */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.certificate-card-ui {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--success);
}
.certificate-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    background-color: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.certificate-card-icon i {
    width: 28px;
    height: 28px;
}
.certificate-card-ui h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.certificate-card-ui p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Hidden canvas for certificate render */
#canvas-certificate-renderer {
    display: none;
}

/* ----------------------------------------------------
    11. KEYFRAME ANIMATIONS
    ---------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ----------------------------------------------------
   12. MOBILE RESPONSIVENESS MEDIA QUERIES
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-search-bar {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .instructor-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .instructor-image-side {
        order: 2;
    }
    .instructor-content-side {
        order: 1;
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-layout {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .sidebar-user-info {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        width: 100%;
    }
    .sidebar-nav-link {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .dashboard-main {
        padding: 2rem 1.5rem;
    }
    .player-layout {
        flex-direction: column;
        height: auto;
    }
    .player-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .player-curriculum-list {
        max-height: 250px;
    }
    .admin-charts-section {
        grid-template-columns: 1fr;
    }
}

.wizard-preview-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .course-preview-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row-two {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .lesson-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .lesson-actions-right {
        width: 100%;
        justify-content: space-between;
    }
    .discussion-form {
        flex-direction: column;
    }
    .lesson-builder-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .lesson-builder-item button {
        align-self: flex-end;
    }
    .modal-card {
        padding: 1.5rem;
    }
    .wizard-steps-indicator {
        gap: 0.5rem !important;
        padding: 1rem !important;
    }
    .wizard-step span:not(.step-num) {
        display: none !important;
    }
    .wizard-step-line {
        max-width: 40px !important;
    }
    .wizard-preview-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .dashboard-header-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .dashboard-header-block-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    .db-title {
        font-size: 1.625rem !important;
        line-height: 1.2;
    }
    .db-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.4;
    }
    .student-overview-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .continue-learning-card {
        padding: 1.5rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .recent-announcements-card {
        padding: 1.5rem !important;
    }
    .profile-settings-card {
        padding: 1.5rem !important;
    }
    .lesson-content-wrapper {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.15rem !important;
    }
    .header-container {
        padding: 0 1rem !important;
    }
    .portal-glass-card {
        padding: 2rem 1.25rem !important;
    }
    .db-title {
        font-size: 1.375rem !important;
    }
    .db-subtitle {
        font-size: 0.8rem !important;
    }
    .metric-value {
        font-size: 1.75rem !important;
    }
    .metric-card {
        padding: 1.25rem !important;
    }
    .metrics-grid {
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
    .dashboard-main {
        padding: 1.5rem 1rem !important;
    }
    .profile-settings-card {
        padding: 1.25rem 1rem !important;
    }
}

/* ----------------------------------------------------
   UDEMY/TUTOR LMS STYLE CURRICULUM BUILDER
   ---------------------------------------------------- */
.module-builder-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}
.module-builder-card:hover {
    box-shadow: var(--shadow-md);
}

.module-builder-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.module-builder-head input {
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.5rem 1rem !important;
    font-weight: 700;
    font-size: 1rem;
}

.lessons-builder-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-builder-item {
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-md) !important;
    padding: 1rem !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lesson-builder-item:hover {
    border-color: var(--primary) !important;
}

/* Row-1: Header info of lesson card */
.lesson-builder-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.lesson-builder-title-input {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-card) !important;
}

/* Row-2: Form inputs (collapsible details) */
.lesson-builder-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

/* Styled Segmented Tabs for Video source type */
.video-source-selector-bar {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-card);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.video-source-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.video-source-tab-btn:last-child {
    border-right: none;
}
.video-source-tab-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}
.video-source-tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
}

.builder-action-btns-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ----------------------------------------------------
   FULL-PAGE STEP-BY-STEP COURSE BUILDER WIZARD
   ---------------------------------------------------- */
.wizard-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.wizard-step.active {
    color: var(--primary);
}

.wizard-step.completed {
    color: var(--success);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.wizard-step.active .step-num {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.wizard-step.completed .step-num {
    border-color: var(--success);
    background-color: var(--success);
    color: #ffffff;
}

.wizard-step-line {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background-color: var(--border-color);
    border-radius: var(--border-radius-full);
}

.wizard-pane {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.wizard-pane.active {
    display: block;
}

.wizard-footer-nav {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------
   PREMIUM LANDING AUTH PORTAL (GLASSMORPHISM)
   ---------------------------------------------------- */
.portal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--bg-main), var(--bg-main) 30%, rgba(99, 102, 241, 0.03) 100%);
    padding: 120px 2rem 4rem 2rem;
    box-sizing: border-box;
}

body.dark-mode .portal-container {
    background: radial-gradient(circle at 50% 50%, #0c0f1d, #02040a 100%);
}

.portal-bg-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.portal-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

body.light-mode .portal-blob {
    opacity: 0.07;
    mix-blend-mode: multiply;
    filter: blur(100px);
}

.blob-1 {
    width: 450px;
    height: 450px;
    background-color: var(--primary);
    top: -10%;
    left: 10%;
}

.blob-2 {
    width: 550px;
    height: 550px;
    background-color: #06b6d4; /* Cyan/Teal glow */
    bottom: -15%;
    right: 10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 380px;
    height: 380px;
    background-color: var(--warning);
    top: 40%;
    left: 55%;
    animation-delay: -10s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    33% { transform: scale(1.15) translate(50px, -40px) rotate(120deg); }
    66% { transform: scale(0.9) translate(-30px, 60px) rotate(240deg); }
    100% { transform: scale(1.05) translate(20px, -15px) rotate(360deg); }
}

.portal-card-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 480px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portal-glass-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 3rem 2.75rem;
    transition: all var(--transition-normal);
}

body.dark-mode .portal-glass-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.portal-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark-mode .portal-glass-card:hover {
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.portal-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portal-brand .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    color: #ffffff;
    border-radius: var(--border-radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.portal-brand .brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.portal-brand .brand-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

body.dark-mode .portal-brand .brand-tagline {
    color: var(--text-muted);
}

.portal-tabs {
    display: flex;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-md);
    padding: 0.25rem;
    margin-bottom: 2.25rem;
}

body.dark-mode .portal-tabs {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.portal-tab-btn:hover {
    color: var(--text-primary);
}

.portal-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}

.portal-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.portal-pane.active {
    display: block;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrapper .field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-icon-wrapper input {
    width: 100% !important;
    padding-left: 44px !important;
    height: 46px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

body.dark-mode .input-icon-wrapper input {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-icon-wrapper input:focus {
    background: var(--bg-card) !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

body.dark-mode .input-icon-wrapper input:focus {
    background: #0b0e17 !important;
}

.input-icon-wrapper input:focus + .field-icon {
    color: var(--primary);
}

#home-view.app-view {
    padding-top: 0 !important;
}

/* Header overlays support */
.main-header.transparent-header {
    background-color: transparent !important;
    backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}



