/* ============================================
   PROMPTING ACADEMY - COMPLETE STYLING
   Color Scheme: Neon Gold, Dark Red, White, Orange, Yellow
   ============================================ */

/* CSS Variables */
:root {
    --color-gold: #FFD700;
    --color-gold-neon: #FFED4E;
    --color-red: #8B0000;
    --color-red-neon: #FF1744;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-orange: #FF8C00;
    --color-orange-neon: #FFA500;
    --color-yellow: #FFD700;
    --color-yellow-neon: #FFFF00;

    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --border-color: #333333;

    --shadow-sm: 0 2px 8px rgba(255, 215, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 215, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(255, 23, 68, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A0000 50%, #0A0A0A 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-gold-neon), var(--color-orange-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-gold-neon);
    text-shadow: 0 0 10px rgba(255, 237, 74, 0.3);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-orange-neon);
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(255, 165, 0, 0.65);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold-neon), var(--color-orange-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-gold-neon);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-neon);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(5, 5, 5, 0.7), rgba(10, 10, 10, 0.9)),
        url('../images/banner.png') center / cover no-repeat;
    border-bottom: 2px solid rgba(255, 165, 0, 0.35);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.1), transparent);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold-neon);
    text-shadow: 0 0 10px rgba(255, 237, 74, 0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-neon), var(--color-orange-neon));
    color: var(--color-black);
    box-shadow: 0 0 20px rgba(255, 237, 74, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 237, 74, 0.6), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 215, 0, 0.1);
    color: var(--color-gold-neon);
    border: 2px solid var(--color-gold-neon);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: rgba(139, 0, 0, 0.05);
    border-top: 2px solid rgba(255, 23, 68, 0.2);
    border-bottom: 2px solid rgba(255, 23, 68, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 215, 0, 0.02);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 237, 74, 0.4);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Curriculum Preview */
.curriculum-preview {
    padding: 4rem 0;
}

.curriculum-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.level-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 237, 74, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.level-card:hover {
    border-color: var(--color-gold-neon);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.level-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.level-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.level-card ul {
    list-style: none;
}

.level-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.level-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold-neon);
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: rgba(139, 0, 0, 0.05);
}

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid var(--color-gold-neon);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(255, 237, 74, 0.2);
    text-align: center;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--color-gold-neon);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-gold-neon);
    text-shadow: 0 0 10px rgba(255, 237, 74, 0.3);
}

.period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Login Section */
.login-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(139, 0, 0, 0.1));
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-form-wrapper {
    background: rgba(255, 215, 0, 0.02);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-emblem {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 0 24px rgba(255, 165, 0, 0.55);
}

.login-form-wrapper h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-form-wrapper > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--color-gold-neon);
    border-bottom-color: var(--color-gold-neon);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gold-neon);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold-neon);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 0 10px rgba(255, 237, 74, 0.2);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.subscription-note {
    background: rgba(255, 23, 68, 0.1);
    border-left: 4px solid var(--color-red-neon);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.subscription-note strong {
    color: var(--color-gold-neon);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer a {
    color: var(--color-gold-neon);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   APP DASHBOARD STYLES
   ============================================ */

.app-container {
    display: flex;
    height: 100vh;
    background: var(--bg-dark);
}

.app-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1A0000, #0A0A0A);
    border-right: 2px solid rgba(255, 215, 0, 0.1);
    padding: 1.5rem 0;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    z-index: 200;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.6);
}

.sidebar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gold-neon);
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid transparent;
    margin-left: -4px;
}

.nav-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-left-color: var(--color-orange-neon);
    color: var(--color-gold-neon);
}

.nav-item.active {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--color-gold-neon);
    color: var(--color-gold-neon);
}

.nav-item .icon {
    font-size: 1.3rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.1);
    margin-top: auto;
}

.btn-logout {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 23, 68, 0.1);
    border: 2px solid var(--color-red-neon);
    color: var(--color-red-neon);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 23, 68, 0.2);
}

.app-main {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    overflow: hidden;
}

.app-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#page-title {
    font-size: 1.8rem;
    margin: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-gold-neon);
    font-size: 1.5rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#user-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold-neon), var(--color-orange-neon));
}

/* Content Sections */
.app-main > div:not(.app-header) {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 23, 68, 0.08));
    border-color: rgba(255, 237, 74, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h2, .card h3, .card h4 {
    color: var(--color-gold-neon);
    margin-bottom: 1rem;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.02);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gold-neon);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--color-gold-neon);
    border-radius: 20px;
    color: var(--color-gold-neon);
    font-weight: 600;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold-neon), var(--color-orange-neon));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 237, 74, 0.4);
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-card:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 23, 68, 0.1));
    border-color: var(--color-gold-neon);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.module-number {
    font-size: 0.85rem;
    color: var(--color-orange-neon);
    font-weight: 600;
}

.module-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.module-lessons {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.module-progress {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.module-lock {
    color: var(--color-red-neon);
    font-size: 1.5rem;
}

/* Lesson Interface */
.lesson-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lesson-header {
    margin-bottom: 2rem;
}

.lesson-header h2 {
    margin-bottom: 0.5rem;
}

.lesson-module {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lesson-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    flex: 1;
    overflow: hidden;
}

.lesson-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lesson-body {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.lesson-body h3 {
    margin: 1.5rem 0 1rem 0;
    color: var(--color-gold-neon);
}

.lesson-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lesson-body ol, .lesson-body ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.lesson-body li {
    margin-bottom: 0.5rem;
}

.lesson-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.lesson-nav button {
    flex: 1;
}

.lesson-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* AI Agent Widget in Lesson */
.lesson-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-agent-widget {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
    background: rgba(255, 215, 0, 0.02);
}

.agent-avatar {
    font-size: 2rem;
}

.agent-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-gold-neon);
}

.agent-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    max-width: 90%;
}

.agent-message {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--color-gold-neon);
    align-self: flex-start;
}

.user-message {
    background: rgba(255, 215, 0, 0.2);
    border-left: 3px solid var(--color-orange-neon);
    align-self: flex-end;
}

.message p {
    margin: 0;
    font-size: 0.9rem;
}

.chat-input-wrapper {
    padding: 1rem;
    border-top: 2px solid rgba(255, 215, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    resize: none;
    max-height: 80px;
    transition: var(--transition);
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-gold-neon);
    background: rgba(255, 215, 0, 0.05);
}

.agent-feedback {
    background: rgba(255, 23, 68, 0.1);
    border-top: 2px solid var(--color-red-neon);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.agent-feedback h4 {
    margin: 0 0 0.5rem 0;
    color: var(--color-orange-neon);
    font-size: 0.95rem;
}

#feedback-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Customer Service Widget */
.customer-service-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 999;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.cs-header {
    background: linear-gradient(135deg, var(--color-gold-neon), var(--color-orange-neon));
    color: var(--color-black);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    user-select: none;
}

.cs-toggle {
    transition: transform 0.3s ease;
}

.cs-header:hover {
    opacity: 0.9;
}

.cs-content {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: rgba(10, 10, 10, 0.95);
}

.cs-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-message {
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 85%;
    font-size: 0.9rem;
}

.cs-message.agent {
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--color-gold-neon);
    align-self: flex-start;
    color: var(--text-secondary);
}

.cs-message.user {
    background: rgba(255, 215, 0, 0.2);
    border-left: 3px solid var(--color-orange-neon);
    align-self: flex-end;
    color: var(--text-primary);
}

.cs-message p {
    margin: 0;
    line-height: 1.4;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.cs-input-wrapper {
    padding: 1rem;
    border-top: 2px solid rgba(255, 215, 0, 0.1);
    display: flex;
    gap: 0.5rem;
}

.cs-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.cs-input:focus {
    outline: none;
    border-color: var(--color-gold-neon);
    background: rgba(255, 215, 0, 0.05);
}

.btn-send {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-gold-neon), var(--color-orange-neon));
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 237, 74, 0.4);
}

/* Progress Views */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.large-progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.levels-progress {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.level-progress-card {
    background: rgba(255, 215, 0, 0.02);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.level-progress-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-orange-neon);
}

.modules-list {
    background: rgba(255, 215, 0, 0.02);
    border: 2px solid rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.modules-list h3 {
    margin-bottom: 1rem;
}

.modules-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.module-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    font-size: 0.95rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon.completed {
    background: var(--color-gold-neon);
    color: var(--color-black);
}

/* Certificate */
.certificate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.certificate-status {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 23, 68, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certificate-preview {
    width: 100%;
}

.certificate {
    background: linear-gradient(135deg, #FFF8DC, #FFFACD);
    color: #333;
    padding: 4rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-gold-neon);
    margin: 2rem 0;
}

.certificate-inner h2 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.certificate-inner h3 {
    color: var(--color-red);
    font-size: 1.8rem;
    margin: 1rem 0;
}

.certificate-inner h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 1rem 0;
}

.certificate-inner p {
    color: #666;
    margin: 0.5rem 0;
}

.cert-signature {
    margin-top: 2rem;
    font-weight: bold;
    color: var(--color-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .lesson-content-wrapper {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .navbar-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .app-sidebar.active {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta button {
        width: 100%;
    }

    .customer-service-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .progress-stats {
        grid-template-columns: 1fr;
    }

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}
