/* ─────────────────────────────────────────────────────────────
   CourseForge — Modern Light SaaS Design System
   Inspired by top SaaS platforms
───────────────────────────────────────────────────────────── */

:root {
    /* Backgrounds */
    --bg:         #F4F2FF;
    --bg-sidebar: #FFFFFF;
    --bg-card:    #FFFFFF;
    --bg-input:   #F8F7FE;

    /* Borders */
    --border:        #EAE6FF;
    --border-medium: #D0C8F7;
    --border-focus:  rgba(123,92,248,0.45);

    /* Brand */
    --primary:       #7B5CF8;
    --primary-light: #9B7DFF;
    --primary-dark:  #5A3ECC;
    --primary-glow:  rgba(123,92,248,0.15);
    --primary-dim:   #F0EDFF;

    /* Semantic */
    --green:        #10B981;
    --green-bg:     #ECFDF5;
    --green-border: #A7F3D0;
    --red:          #EF4444;
    --red-bg:       #FEF2F2;
    --red-border:   #FECACA;
    --gold:         #F59E0B;

    /* Text */
    --text:       #1E1B4B;
    --text-dim:   #4B5563;
    --text-muted: #9CA3AF;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(123,92,248,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.1);

    /* Layout */
    --sidebar-width: 248px;
    --radius:    12px;
    --radius-sm:  8px;
    --radius-xs:  6px;
    --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ─── SIDEBAR ─── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    box-shadow: 2px 0 12px rgba(0,0,0,0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}

.logo-icon-wrap {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}
.logo-icon-wrap svg { width: 15px; height: 15px; stroke-width: 2.2; }

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
}
.logo-text strong { color: var(--primary); font-weight: 800; }

.logo-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    padding-left: 42px;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}

.nav-icon { 
    width: 16px; height: 16px;
    flex-shrink: 0;
    stroke-width: 1.8;
    display: flex; align-items: center; justify-content: center;
}
.nav-icon svg { width: 16px; height: 16px; }

.nav-item:hover {
    background: var(--primary-dim);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-dim);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulseDot 2.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* ─── MAIN CONTENT ─── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 36px 40px;
    max-width: calc(100vw - var(--sidebar-width));
    min-height: 100vh;
}

/* ─── VIEWS ─── */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.25s ease; }

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

.view-header { margin-bottom: 28px; }

.view-header h1 {
    font-size: 23px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.view-header p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ─── CARDS ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

/* ─── FORM ─── */
.form-card { max-width: 660px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-group label svg { width: 12px; height: 12px; stroke-width: 2; color: var(--primary); }
.required { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: white;
}

.form-group input::placeholder { color: var(--text-muted); font-size: 14px; }

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239CA3AF'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-color: var(--bg-input);
    padding-right: 36px;
}

.form-group select option { background: white; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ─── TEMPLATES ─── */
.templates-section { margin-bottom: 18px; }

.templates-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.templates-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-chip {
    padding: 5px 13px;
    border-radius: 50px;
    border: 1.5px solid var(--border-medium);
    background: white;
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.template-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ─── GENERATE BUTTON ─── */
.btn-generate {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--primary-glow);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
}

.btn-generate svg { width: 17px; height: 17px; stroke-width: 2; }

.btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(123,92,248,0.3);
}

.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── PROGRESS ─── */
.progress-card { max-width: 1080px; }

.prog-header-card { margin-bottom: 12px; }

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    gap: 12px;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-title h2 { font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--text); }

.prog-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.prog-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.progress-percent {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.progress-bar-wrap {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 60%, var(--green) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer { to { transform: translateX(300%); } }

/* ─── TWO-COLUMN LAYOUT ─── */
.progress-layout {
    display: grid;
    grid-template-columns: 288px 1fr;
    gap: 12px;
    align-items: start;
}

/* ─── AGENTS COLUMN ─── */
.agents-column {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.agents-column-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #FAFAFE;
    display: flex;
    align-items: center;
    gap: 6px;
}
.agents-column-title svg { width: 12px; height: 12px; color: var(--primary); }

/* Individual stage */
.agent-stage {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    background: transparent;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
}
.agent-stage:last-child { border-bottom: none; }

.stage-connector { display: none; }

/* Icon */
.stage-icon-wrap {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.35s ease;
    color: var(--text-muted);
}
.stage-icon-wrap svg { width: 14px; height: 14px; stroke-width: 1.8; }

/* Body */
.stage-body { flex: 1; min-width: 0; }

.stage-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    transition: color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-desc {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 1px;
    line-height: 1.4;
}

/* Sub-tasks */
.stage-tasks {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stage-task-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    padding: 2px 5px;
    border-radius: 3px;
    background: var(--bg-input);
    animation: taskSlideIn 0.22s ease;
}

@keyframes taskSlideIn {
    from { opacity: 0; transform: translateX(-5px); }
    to   { opacity: 1; transform: translateX(0); }
}

.task-bullet {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--border-medium);
    flex-shrink: 0;
    transition: background 0.3s;
}

/* Badge */
.stage-status-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    transition: all 0.3s ease;
}

/* ── STAGE STATES ── */

/* ACTIVE */
.agent-stage.active {
    background: var(--primary-dim);
    border-left-color: var(--primary);
}

.agent-stage.active .stage-icon-wrap {
    background: var(--primary-dim);
    border-color: var(--border-medium);
    color: var(--primary);
    animation: iconPulse 2s ease-in-out infinite;
}

.agent-stage.active .stage-name { color: var(--primary); }
.agent-stage.active .stage-desc  { color: var(--primary-light); }

.agent-stage.active .stage-status-badge {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.agent-stage.active .task-bullet { background: var(--primary-light); }
.agent-stage.active .stage-task-item { background: white; }

@keyframes iconPulse {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 10px var(--primary-glow); }
}

/* COMPLETE */
.agent-stage.complete {
    background: var(--green-bg);
    border-left-color: var(--green);
}

.agent-stage.complete .stage-icon-wrap {
    background: var(--green-bg);
    border-color: var(--green-border);
    color: var(--green);
}

.agent-stage.complete .stage-name { color: #059669; }

.agent-stage.complete .stage-status-badge {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-border);
}

.agent-stage.complete .task-bullet { background: var(--green); }
.agent-stage.complete .stage-task-item { background: var(--green-bg); }

/* ERROR */
.agent-stage.error {
    background: var(--red-bg);
    border-left-color: var(--red);
}

.agent-stage.error .stage-icon-wrap { color: var(--red); border-color: var(--red-border); background: var(--red-bg); }
.agent-stage.error .stage-name { color: var(--red); }
.agent-stage.error .stage-status-badge {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red-border);
}

/* ─── LOGS COLUMN ─── */
.logs-column {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.logs-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #FAFAFE;
}

.logs-column-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.logs-column-title svg { width: 12px; height: 12px; color: var(--primary); }

.log-count {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-input);
    padding: 1px 7px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.progress-log {
    flex: 1;
    padding: 8px 10px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #FDFDFF;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11.5px;
    padding: 4px 7px;
    border-radius: 5px;
    animation: logSlideIn 0.2s ease;
    transition: background var(--transition);
}
.log-entry:hover { background: var(--bg-input); }

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

.log-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--border-medium);
    flex-shrink: 0;
    margin-top: 4px;
    transition: background 0.3s;
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 10.5px;
    margin-top: 1px;
    min-width: 52px;
}

.log-msg {
    color: var(--text-dim);
    line-height: 1.5;
    word-break: break-word;
}

/* Log level colors */
.log-entry.log-curriculum  .log-dot { background: #7C3AED; }
.log-entry.log-curriculum  .log-msg { color: #5B21B6; }
.log-entry.log-content     .log-dot { background: #2563EB; }
.log-entry.log-content     .log-msg { color: #1D4ED8; }
.log-entry.log-assessments .log-dot { background: #D97706; }
.log-entry.log-assessments .log-msg { color: #B45309; }
.log-entry.log-resources   .log-dot { background: #059669; }
.log-entry.log-resources   .log-msg { color: #047857; }
.log-entry.log-landing     .log-dot { background: #DC2626; }
.log-entry.log-landing     .log-msg { color: #B91C1C; }
.log-entry.log-complete    .log-dot { background: var(--green); }
.log-entry.log-complete    .log-msg { color: #047857; font-weight: 600; }
.log-entry.log-init { opacity: 0.45; }

/* Log footer */
.log-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-top: 1px solid var(--border);
    background: #FAFAFE;
}

.log-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--red);
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: livePulse 1s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ─── STOP BUTTON & CANCEL MODAL ─── */
.btn-stop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--red-border);
    background: var(--red-bg);
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-stop svg { width: 12px; height: 12px; stroke-width: 2; }

.btn-stop:hover {
    background: #FECACA;
    border-color: var(--red);
    box-shadow: 0 2px 8px rgba(239,68,68,0.15);
}

.btn-stop:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger {
    padding: 10px 22px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
}
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.25); }

/* Cancel overlay */
.cancel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,27,75,0.35);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.18s ease;
}

.cancel-modal {
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.cancel-modal-icon {
    width: 52px; height: 52px;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--red);
}
.cancel-modal-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

.cancel-modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.cancel-modal p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; margin-bottom: 24px; }

.cancel-actions { display: flex; gap: 10px; justify-content: center; }

/* Cancelled banner */
.cancelled-banner {
    border-color: var(--red-border);
    background: var(--red-bg);
    margin-top: 0;
    animation: fadeIn 0.4s ease;
}

/* ─── SPINNER ─── */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border-medium);
    border-top-color: var(--primary);
    border-right-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SUCCESS ─── */
.success-card {
    max-width: 660px;
    text-align: center;
    border-color: var(--green-border);
    background: var(--green-bg);
}

.success-icon {
    width: 60px; height: 60px;
    background: white;
    border: 2px solid var(--green-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    color: var(--green);
}
.success-icon svg { width: 28px; height: 28px; stroke-width: 2.5; }

.success-card h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.success-card > p { color: var(--text-dim); margin-bottom: 20px; font-size: 14px; }

.success-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: white;
    border: 1px solid var(--green-border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
}

.stat-num { font-size: 24px; font-weight: 800; color: var(--primary); display: block; }
.stat-lbl { font-size: 10.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── ERROR ─── */
.error-card {
    max-width: 660px;
    border-color: var(--red-border);
    background: var(--red-bg);
    text-align: center;
}

.error-icon {
    width: 52px; height: 52px;
    background: white;
    border: 2px solid var(--red-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    color: var(--red);
}
.error-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

.error-card h2 { margin-bottom: 10px; color: var(--red); font-size: 17px; font-weight: 800; }
.error-card pre {
    background: white;
    border: 1px solid var(--red-border);
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    text-align: left;
    overflow-x: auto;
    color: var(--text-dim);
    margin-bottom: 16px;
    max-height: 180px;
    overflow-y: auto;
}

/* ─── BUTTONS ─── */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary svg { width: 14px; height: 14px; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--primary-glow); }

.btn-secondary {
    padding: 10px 18px;
    background: white;
    color: var(--text-dim);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary svg { width: 14px; height: 14px; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
    padding: 9px 15px;
    background: transparent;
    color: var(--text-dim);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    display: inline-flex; align-items: center; gap: 5px;
}
.btn-ghost svg { width: 13px; height: 13px; }
.btn-ghost:hover { color: var(--text); border-color: var(--border-medium); background: var(--bg-input); }
.btn-ghost.small { padding: 5px 11px; font-size: 11.5px; }

/* ─── COURSES GRID ─── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 13px;
}

.course-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.course-card-title    { font-size: 15px; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.course-card-subtitle { font-size: 12.5px; color: var(--text-dim); }
.course-card-meta     { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-muted); margin-top: 12px; }
.course-card-meta span { display: flex; align-items: center; gap: 4px; }
.course-card-meta span svg { width: 12px; height: 12px; stroke-width: 2.2; flex-shrink: 0; }
.course-card-actions  { display: flex; gap: 7px; margin-top: 13px; }

/* ─── EMPTY STATE ─── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 52px 20px;
    color: var(--text-dim);
}
.empty-icon {
    width: 54px; height: 54px;
    background: var(--primary-dim);
    border: 1.5px solid var(--border-medium);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    color: var(--primary);
}
.empty-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
.empty-state p { margin-bottom: 16px; font-size: 14px; }

/* ─── FILES EXPLORER ─── */
.files-card { max-width: 880px; }
.files-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.files-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.files-layout { display: grid; grid-template-columns: 240px 1fr; gap: 12px; min-height: 380px; }

.files-tree {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px;
    overflow-y: auto;
    max-height: 440px;
}

.file-item {
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
}
.file-item svg { width: 12px; height: 12px; flex-shrink: 0; }
.file-item:hover { background: white; color: var(--text); }
.file-item.active { background: var(--primary-dim); color: var(--primary); }

.file-preview {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px;
    overflow-y: auto;
    max-height: 440px;
    font-size: 12.5px;
    line-height: 1.6;
}

.preview-placeholder { color: var(--text-muted); font-style: italic; padding: 14px; font-size: 13px; }

.preview-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    white-space: pre-wrap;
    color: var(--text-dim);
}

/* ─── ABOUT ─── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 13px;
    margin-bottom: 14px;
}

.agent-card { text-align: center; transition: all var(--transition); }
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.agent-icon {
    width: 46px; height: 46px;
    background: var(--primary-dim);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 11px;
    color: var(--primary);
    transition: all var(--transition);
}
.agent-card:hover .agent-icon { background: var(--primary); color: white; box-shadow: 0 4px 16px var(--primary-glow); }
.agent-icon svg { width: 20px; height: 20px; stroke-width: 1.7; }
.agent-card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.agent-card p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.tech-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
.tech-card h3 svg { width: 16px; height: 16px; color: var(--primary); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 9px; }

.tech-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: 13px;
    color: var(--text-dim);
}
.tech-item strong { display: block; color: var(--primary); font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }

/* ─── UTILITIES ─── */
.hidden { display: none !important; }

/* ─── RESPONSIVE ─── */
/* ─── BODY OVERRIDES FOR LANDING ─── */
body.landing-active .sidebar {
    display: none !important;
}
body.landing-active .main-content {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ─── PRODUCT LANDING PAGE STYLING ─── */
:root {
    --pl-primary: #2563EB; /* Deep Royal Blue */
    --pl-primary-light: #3B82F6;
    --pl-primary-dark: #1D4ED8;
    --pl-primary-glow: rgba(37, 99, 235, 0.05);
    --pl-accent: #7C3AED; /* Purple Accent */
    --pl-bg: #F8FAFC; /* Slate-50 off-white background */
    --pl-border: rgba(37, 99, 235, 0.08);
    --pl-text-main: #0F172A; /* Slate-900 */
    --pl-text-muted: #64748B; /* Slate-500 */
    --pl-card-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    --pl-card-shadow-hover: 0 30px 60px rgba(15, 23, 42, 0.08);
}


/* ═══════════════════════════════════════════════════════
   KURSIA LANDING — DESIGN SYSTEM v4 "ULTRA-PREMIUM"
   Dotted Canvas · Mouse Spotlight · Multi-Agent Simulator · Interactive Previewer
   ═══════════════════════════════════════════════════════ */

/* ─── BASE & DYNAMIC LIGHTING ─── */
.pl-landing-wrapper {
    background: radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(139, 92, 246, 0.14) 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%), #030307;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ─── DOTTED MATRIX GRID ─── */
.pl-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ─── AURORA FLOATING LIGHTS ─── */
.pl-aurora {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
}
.pl-aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: auroraRotate 20s linear infinite;
}
.pl-aurora-blob.a1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.pl-aurora-blob.a2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    bottom: -150px; left: -100px;
}
.pl-aurora-blob.a3 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    top: 40%; left: 20%;
}
.pl-aurora-blob.a4 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    bottom: 20%; right: 15%;
}
@keyframes auroraRotate {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(50px, 40px) rotate(180deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.pl-grain {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ─── NAVBAR (GLASSMORPHIC) ─── */
.pl-nav {
    position: sticky; top: 0; z-index: 200;
    padding: 18px 8%;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(3, 3, 7, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pl-nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 24px; font-weight: 900;
    color: #fff; text-decoration: none;
    letter-spacing: -0.5px;
}
.pl-nav-logo svg {
    width: 22px; height: 22px;
    color: #8b5cf6;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}
.pl-nav-logo span {
    color: #8b5cf6;
}
.pl-nav-links { display: flex; gap: 36px; }
.pl-nav-links a {
    text-decoration: none; font-size: 14.5px; font-weight: 500;
    color: #94a3b8; transition: all 0.2s;
}
.pl-nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.pl-nav-cta {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none; padding: 10px 24px;
    border-radius: 50px; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.pl-nav-cta:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #a78bfa, #f472b6);
}

/* ─── HERO SPLIT GRID ─── */
.pl-hero {
    position: relative; z-index: 10;
    padding: 100px 8% 80px;
    min-height: 90vh;
    display: flex; align-items: center;
}
.pl-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    width: 100%;
    align-items: center;
}

/* Hero Content */
.pl-hero-content {
    max-width: 680px;
}
.pl-hero-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    color: #c084fc;
    padding: 6px 16px; border-radius: 50px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.pl-chip-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 10px #10b981;
    animation: chipPulse 1.8s ease-in-out infinite;
}
@keyframes chipPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.5; transform:scale(1.5); }
}

.pl-hero-h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 28px;
}
.pl-hero-h1 span {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f43f5e 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}
.pl-hero-sub {
    font-size: 18px; color: #94a3b8; line-height: 1.8;
    max-width: 580px; margin-bottom: 44px;
}
.pl-hero-sub strong { color: #fff; font-weight: 600; }

.pl-hero-actions {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    margin-bottom: 56px;
}
.pl-btn-primary {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
    color: #fff; border: none;
    padding: 16px 36px; border-radius: 14px;
    font-size: 16px; font-weight: 700;
    cursor: pointer; transition: all 0.25s ease;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 30px rgba(109,40,217,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    text-decoration: none;
}
.pl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(109,40,217,0.6);
}
.pl-btn-primary svg { transition: transform 0.2s; }
.pl-btn-primary:hover svg { transform: translateX(4px); }

.pl-btn-secondary {
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 32px; border-radius: 14px;
    font-size: 16px; font-weight: 600;
    text-decoration: none;
    cursor: pointer; transition: all 0.2s ease;
    display: inline-flex; align-items: center;
}
.pl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.pl-hero-proof {
    display: flex; align-items: center; gap: 16px;
}
.pl-avatar-row {
    display: flex; align-items: center;
}
.pl-avatar-row img {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid #030307;
    margin-left: -10px; object-fit: cover;
}
.pl-avatar-row img:first-child { margin-left: 0; }
.pl-stars-row { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.pl-proof-txt { font-size: 13px; color: #64748b; font-weight: 500; }

/* ─── LIVE AGENT SIMULATOR CARD ─── */
.pl-hero-visual {
    display: flex; justify-content: center;
}
.pl-hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pl-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    filter: brightness(0.85) contrast(1.05);
}
.pl-simulator-card {
    width: 100%;
    max-width: 480px;
    background: rgba(13, 15, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}
.pl-simulator-card.floating-simulator {
    position: absolute;
    bottom: -15px;
    left: -25px;
    width: 90%;
    max-width: 400px;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.pl-sim-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.pl-sim-dots {
    display: flex; gap: 6px;
}
.pl-sim-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.pl-sim-dots .dot-r { background: #ef4444; }
.pl-sim-dots .dot-y { background: #f59e0b; }
.pl-sim-dots .dot-g { background: #10b981; }
.pl-sim-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: #64748b;
}
.pl-sim-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
    text-transform: uppercase;
}

/* Simulator Graph Map */
.pl-sim-map {
    display: flex; justify-content: space-around;
    padding: 20px;
    background: rgba(255,255,255,0.01);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.pl-map-node {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    font-size: 10px; font-weight: 600; color: #475569;
    position: relative; z-index: 2;
    transition: all 0.3s;
}
.pl-map-node::before {
    content: ''; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
#node-planner::before { content: '🛠️'; }
#node-researcher::before { content: '🔍'; }
#node-writer::before { content: '✍️'; }
#node-slides::before { content: '📊'; }
#node-voice::before { content: '🎙️'; }

.pl-map-node.active {
    color: #a78bfa;
}
.pl-map-node.active::before {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.node-pulse {
    display: none;
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid #8b5cf6;
    animation: nodePulseAnim 1.5s ease-out infinite;
}
.pl-map-node.active .node-pulse { display: block; }
@keyframes nodePulseAnim {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, 0) scale(1.6); opacity: 0; }
}

.pl-sim-body {
    padding: 20px;
    height: 160px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; line-height: 1.7;
    display: flex; flex-direction: column; gap: 4px;
}
.pl-log-line {
    transition: opacity 0.3s;
}
.pl-log-line.text-mute { color: #475569; }
.pl-log-line.text-accent { color: #a78bfa; }
.pl-log-line.text-success { color: #34d399; }
.pl-log-line.text-warn { color: #fbbf24; }

.pl-sim-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.pl-sim-progress-wrap {
    flex: 1; margin-right: 24px;
}
.pl-sim-progress-text {
    font-size: 11px; color: #94a3b8; display: block; margin-bottom: 6px;
}
.pl-sim-progressbar {
    height: 5px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden;
}
.pl-sim-progressfill {
    width: 15%; height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.pl-sim-action-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 700;
    color: #94a3b8;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 12px; border-radius: 6px;
    cursor: pointer; transition: all 0.2s;
}
.pl-sim-action-btn:hover {
    color: #fff; background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}

/* ─── STATS STRIP ─── */
.pl-stats-strip {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap;
    padding: 44px 8%;
    background: rgba(13, 15, 28, 0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
.pl-stat { text-align: center; min-width: 140px; }
.pl-stat-n {
    font-family: 'Outfit', sans-serif;
    font-size: 40px; font-weight: 900;
    background: linear-gradient(135deg, #a78bfa, #db2777);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.pl-stat-u { font-size: 20px; font-weight: 800; color: #a78bfa; }
.pl-stat-l { font-size: 13px; color: #64748b; font-weight: 600; margin-top: 4px; }
.pl-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,0.06); }

/* ─── SECTIONS ─── */
.pl-section {
    position: relative; z-index: 10;
    padding: 110px 8%;
}
.pl-section-alt {
    background: rgba(8, 9, 16, 0.5);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pl-container { max-width: 1200px; margin: 0 auto; }
.pl-section-head { margin-bottom: 64px; }
.pl-section-head.text-center { text-align: center; }
.pl-s-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 4.5vw, 50px);
    font-weight: 900; line-height: 1.15; letter-spacing: -1.5px;
    color: #fff; margin-top: 14px;
}
.pl-s-title em {
    font-style: normal;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pl-section-sub {
    font-size: 16px; color: #64748b; margin-top: 12px;
}

/* ─── PROCESS GRID ─── */
.pl-process-grid {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
}
.pl-process-step {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px; padding: 40px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.pl-process-step:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    background: rgba(255,255,255,0.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.pl-process-step.highlighted {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.03) 100%);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.12);
}
.step-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 40px; font-weight: 900;
    color: rgba(255,255,255,0.05);
}
.pl-process-step:hover .step-num {
    color: rgba(139, 92, 246, 0.2);
}
.step-icon {
    font-size: 32px;
}
.pl-process-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px; font-weight: 800; color: #fff;
    margin-bottom: 12px;
}
.pl-process-step p {
    font-size: 14.5px; color: #64748b; line-height: 1.7;
}
.pl-process-connector {
    color: #475569;
}

/* ─── INTERACTIVE SHOWCASE WIDGET ─── */
.pl-gallery-widget {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    background: rgba(10, 11, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

/* File Tree Browser */
.pl-gallery-tree {
    background: rgba(3, 3, 7, 0.4);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #94a3b8;
    user-select: none;
}
.tree-header {
    font-weight: 700; color: #fff; margin-bottom: 20px;
}
.tree-folder {
    margin-bottom: 14px;
}
.folder-toggle {
    color: #475569; font-size: 10px; margin-right: 4px;
}
.tree-items {
    margin-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tree-file {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.tree-file:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}
.tree-file.active {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-weight: 600;
}
.file-premium-badge {
    font-size: 9px; font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: #fff;
    padding: 1px 6px; border-radius: 4px;
    text-transform: uppercase;
}

/* Preview Panel */
.pl-gallery-preview {
    background: rgba(3, 3, 7, 0.2);
    padding: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}
.preview-state {
    display: none;
    flex-direction: column;
    height: 100%;
}
.preview-state.active {
    display: flex;
    animation: fadeInPreview 0.4s ease both;
}
@keyframes fadeInPreview {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.preview-state-header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 16px; margin-bottom: 24px;
}
.preview-state-header span {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #64748b;
}
.format-badge {
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase;
}
.format-badge.markdown { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.format-badge.pptx { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.format-badge.pdf { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.format-badge.audio { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.format-badge.landing { background: rgba(16, 185, 129, 0.15); color: #34d399; }

/* Viewport Contents */
.preview-state-body {
    flex: 1;
}

/* Markdown Preview Styling */
.markdown-body h3 { font-family: 'Outfit', sans-serif; font-size: 22px; color: #fff; margin-bottom: 6px; }
.markdown-body h4 { font-family: 'Outfit', sans-serif; font-size: 18px; color: #c084fc; margin-bottom: 16px; }
.markdown-body p { font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 20px; }
.highlight-box {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid #8b5cf6;
    padding: 16px; border-radius: 0 12px 12px 0;
    font-size: 14.5px; line-height: 1.6; color: #e2e8f0; margin-bottom: 24px;
}
.markdown-body h5 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.markdown-body pre {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 16px; overflow-x: auto;
}
.markdown-body code { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #c084fc; }

/* PowerPoint Preview Widescreen */
.pptx-body {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.pptx-slide {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}
.pptx-slide-content {
    position: absolute; inset: 0;
    padding: 32px 48px;
    display: flex; flex-direction: column;
}
.pptx-header {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px; margin-bottom: 18px;
}
.pptx-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px; font-weight: 900; color: #2563eb;
    margin-bottom: 16px;
}
.pptx-bullets {
    margin: 0; padding-left: 20px;
    display: flex; flex-direction: column; gap: 8px;
}
.pptx-bullets li {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; color: #1e293b; line-height: 1.6;
}
.pptx-bullets li strong { color: #0f172a; }
.pptx-footer {
    margin-top: auto; border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 10px; display: flex; justify-content: space-between;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; color: #94a3b8;
}

.pptx-actions-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 11, 22, 0.9);
    border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px; text-align: center;
    backdrop-filter: blur(4px);
}
.pptx-glow-tag {
    font-size: 10px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    color: #fff; padding: 4px 12px; border-radius: 30px;
    text-transform: uppercase; margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}
.pptx-actions-overlay p {
    font-size: 14.5px; color: #94a3b8; max-width: 360px; margin-bottom: 24px; line-height: 1.6;
}

/* PDF Manual Preview */
.pdf-body {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
}
.pdf-page {
    width: 85%;
    aspect-ratio: 1 / 1.35;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}
.pdf-cover {
    position: absolute; inset: 0;
    padding: 44px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border: 12px solid #2563eb;
    text-align: center;
}
.pdf-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 800; color: #2563eb;
    margin-bottom: 24px;
}
.pdf-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px; font-weight: 900; color: #0f172a;
    line-height: 1.15; margin-bottom: 12px;
}
.pdf-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; color: #64748b; margin-bottom: 36px;
    max-width: 240px;
}
.pdf-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9px; font-weight: 700; color: #fff;
    background: #0f172a; padding: 4px 12px; border-radius: 30px;
}

/* Audio MP3 Player */
.audio-body {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%;
}
.audio-player-mock {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.audio-track-info {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
}
.audio-icon {
    font-size: 32px;
    background: rgba(168, 85, 247, 0.15);
    width: 54px; height: 54px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.audio-track-info strong { display: block; font-size: 15px; color: #fff; }
.audio-track-info span { font-size: 12px; color: #64748b; }

.audio-waveforms {
    display: flex; align-items: center; justify-content: space-between;
    height: 48px; gap: 4px; margin-bottom: 24px;
}
.wave-bar {
    flex: 1; height: 30%; background: rgba(255,255,255,0.1); border-radius: 4px;
    transition: height 0.15s ease;
}
.audio-waveforms.playing .wave-bar {
    animation: barJump 1s ease-in-out infinite alternate;
}
.audio-waveforms.playing .wave-bar:nth-child(2n) { animation-delay: 0.15s; }
.audio-waveforms.playing .wave-bar:nth-child(3n) { animation-delay: 0.3s; }
.audio-waveforms.playing .wave-bar:nth-child(4n) { animation-delay: 0.45s; }
@keyframes barJump {
    from { height: 15%; background: #a855f7; }
    to { height: 100%; background: #ec4899; }
}

.audio-controls {
    display: flex; align-items: center; justify-content: space-between;
}
.audio-play-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px; font-weight: 700;
    background: #fff; color: #030307;
    border: none; padding: 8px 18px; border-radius: 30px;
    cursor: pointer; transition: all 0.2s;
}
.audio-play-btn:hover { background: #e2e8f0; }
.audio-duration {
    font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #64748b;
}

/* Landing Preview inside browser viewport */
.landing-preview-body {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
}
.mock-browser {
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.mock-browser-bar {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 10px 16px; display: flex; align-items: center; gap: 6px;
}
.b-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mock-browser-url {
    margin-left: 12px; font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: #475569;
    background: rgba(0,0,0,0.2); padding: 2px 14px; border-radius: 4px;
    flex: 1; max-width: 280px;
}
.mock-browser-content {
    padding: 24px;
    background: #080710;
}
.mini-hero { text-align: center; margin-bottom: 24px; }
.mini-hero h5 { font-family: 'Outfit', sans-serif; font-size: 16px; color: #fff; margin-bottom: 6px; }
.mini-hero p { font-size: 11px; color: #64748b; margin-bottom: 12px; }
.mini-btn {
    font-family: 'Outfit', sans-serif; font-size: 9px; font-weight: 700;
    background: #8b5cf6; color: #fff; border: none; padding: 6px 14px; border-radius: 30px;
}
.mini-curriculum h6 { font-family: 'Outfit', sans-serif; font-size: 11px; color: #c084fc; margin-bottom: 6px; }
.mini-curriculum ul { margin: 0; padding-left: 16px; }
.mini-curriculum li { font-size: 10px; color: #94a3b8; margin-bottom: 4px; }


/* ─── FEATURES / AGENTS GRID ─── */
.pl-agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pl-agent-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px; padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.pl-agent-card:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.pl-agent-card::before {
    content: ''; position: absolute;
    top: -1px; left: 0; right: 0; height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.pl-agent-card:hover::before { opacity: 1; }

.agent-avatar {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}
.agent-avatar.purple { background: rgba(168, 85, 247, 0.1); }
.agent-avatar.blue { background: rgba(59, 130, 246, 0.1); }
.agent-avatar.pink { background: rgba(236, 72, 153, 0.1); }
.agent-avatar.orange { background: rgba(249, 115, 22, 0.1); }
.agent-avatar.emerald { background: rgba(16, 185, 129, 0.1); }
.agent-avatar.red { background: rgba(239, 68, 68, 0.1); }

.pl-agent-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.pl-agent-card p {
    font-size: 14px; color: #64748b; line-height: 1.65; margin-bottom: 20px;
}
.agent-status {
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: #8b5cf6;
}

/* ─── PRICING & CREDIT SaaS PANEL ─── */
.pl-pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    margin-top: 56px;
    align-items: center;
}

.pl-pricing-cost-card {
    background: rgba(10, 11, 22, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px; padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.pl-pricing-cost-card h3 {
    font-family: 'Outfit', sans-serif; font-size: 22px; color: #fff; margin-bottom: 28px;
}
.cost-table-rows {
    display: flex; flex-direction: column; gap: 18px;
}
.cost-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 24px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cost-item {
    font-size: 14px; color: #94a3b8; flex: 1;
}
.cost-item small { display: block; font-size: 11.5px; color: #475569; margin-top: 4px; line-height: 1.5; }
.cost-val {
    font-family: 'Outfit', sans-serif; font-size: 15px; color: #fff; font-weight: 700;
    flex-shrink: 0; text-align: right; margin-top: 2px;
}
.cost-row.highlight {
    border-bottom: none; padding-bottom: 0; padding-top: 8px;
}
.cost-row.highlight .cost-item { color: #fff; font-weight: 700; }
.cost-row.highlight .cost-item small { color: #a78bfa; font-weight: 600; }
.cost-row.highlight .cost-val {
    font-size: 18px; color: #c084fc;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

/* Purchase Packs Grid */
.pl-pricing-packs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pricing-pack-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px; padding: 32px 20px;
    text-align: center;
    position: relative; overflow: hidden;
    transition: all 0.3s;
}
.pricing-pack-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.03);
}
.pricing-pack-card.popular {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
}
.pack-glow-border {
    position: absolute; top: -1px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #ec4899, transparent);
}
.pack-badge {
    font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
    color: #64748b; background: rgba(255,255,255,0.04);
    padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.pack-badge.popular {
    color: #c084fc; background: rgba(139, 92, 246, 0.15);
}
.pack-title {
    font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; color: #fff;
    margin: 18px 0 8px;
}
.pack-price {
    font-family: 'Outfit', sans-serif; font-size: 38px; font-weight: 900; color: #fff;
    margin-bottom: 8px;
}
.pack-price span { font-size: 14px; font-weight: 600; color: #64748b; margin-left: 2px; }
.pack-desc {
    font-size: 12.5px; color: #64748b; line-height: 1.5; margin-bottom: 24px;
    min-height: 38px;
}
.pricing-pack-card .pl-btn-secondary,
.pricing-pack-card .pl-btn-primary {
    width: 100%; justify-content: center;
    padding: 10px 16px; font-size: 13.5px; border-radius: 10px;
}

/* ─── FAQ ─── */
.pl-faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.pl-faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; overflow: hidden;
    transition: all 0.25s;
}
.pl-faq-item:hover { border-color: rgba(255,255,255,0.12); }
.pl-faq-item.open { border-color: rgba(139, 92, 246, 0.4); background: rgba(255,255,255,0.03); }
.pl-faq-question {
    padding: 22px 26px; font-size: 15.5px; font-weight: 700;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-family: 'Outfit', sans-serif;
    transition: color 0.2s;
}
.pl-faq-question:hover { color: #c084fc; }
.pl-faq-icon { font-size: 22px; font-weight: 300; color: #475569; transition: transform 0.3s; }
.pl-faq-item.open .pl-faq-icon { transform: rotate(45deg); color: #c084fc; }
.pl-faq-answer {
    max-height: 0; overflow: hidden; padding: 0 26px;
    color: #64748b; font-size: 14.5px; line-height: 1.75;
    transition: all 0.35s ease;
}
.pl-faq-item.open .pl-faq-answer { max-height: 200px; padding: 0 26px 22px; }

/* ─── BIG CTA BANNER ─── */
.pl-bigcta {
    position: relative; z-index: 10;
    padding: 60px 8% 100px;
}
.pl-bigcta-inner {
    max-width: 960px; margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.18) 0%, rgba(219, 39, 119, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 32px; padding: 76px 60px;
    position: relative; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.pl-bigcta-glow {
    position: absolute; top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.28) 0%, transparent 60%);
    pointer-events: none;
}
.pl-bigcta-h {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 900; letter-spacing: -2px; line-height: 1.15;
    color: #fff; margin: 16px 0 20px;
}
.pl-bigcta-h em {
    font-style: normal;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pl-bigcta-inner > p { font-size: 17px; color: #94a3b8; margin-bottom: 38px; max-width: 560px; margin-left: auto; margin-right: auto; }
.pl-bigcta-pills {
    margin-top: 28px; display: flex; gap: 28px;
    justify-content: center; flex-wrap: wrap;
    font-size: 13px; color: #475569; font-weight: 600;
}
.pl-bigcta-pills span { color: #94a3b8; }

/* ─── FOOTER ─── */
.pl-footer {
    position: relative; z-index: 10;
    text-align: center; padding: 40px 8%;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 13.5px; color: #475569;
}
.pl-footer strong { color: #64748b; }

/* ─── RESPONSIVE MEDIA QUERIES ─── */
@media (max-width: 1024px) {
    .pl-hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .pl-hero-inner { margin: 0 auto; }
    .pl-hero-sub { margin-left: auto; margin-right: auto; }
    .pl-hero-actions { justify-content: center; }
    .pl-hero-proof { justify-content: center; }
    .pl-process-grid { flex-direction: column; }
    .pl-process-connector { transform: rotate(90deg); margin: 8px 0; }
    .pl-gallery-widget { grid-template-columns: 1fr; }
    .pl-gallery-tree { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .pl-agents-grid { grid-template-columns: 1fr 1fr; }
    .pl-pricing-layout { grid-template-columns: 1fr; gap: 32px; }
    .pl-hero-visual-wrapper { aspect-ratio: auto; flex-direction: column; gap: 24px; }
    .pl-simulator-card.floating-simulator { position: relative; bottom: 0; left: 0; width: 100%; max-width: 480px; }
}
@media (max-width: 768px) {
    .pl-agents-grid { grid-template-columns: 1fr; }
    .pl-pricing-packs { grid-template-columns: 1fr; gap: 16px; }
    .pl-nav-links { display: none; }
    .pl-bigcta-inner { padding: 48px 24px; }
}


/* ─── LIGHT THEME OVERRIDES ─── */
.pl-landing-wrapper.light-theme {
    background: radial-gradient(circle 800px at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(123, 92, 248, 0.08) 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%), #f8fafc;
    color: #1e293b;
}

/* Dotted grid */
.pl-landing-wrapper.light-theme .pl-grid-overlay {
    background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* Floating lights */
.pl-landing-wrapper.light-theme .pl-aurora-blob.a1 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}
.pl-landing-wrapper.light-theme .pl-aurora-blob.a2 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}
.pl-landing-wrapper.light-theme .pl-aurora-blob.a3 {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, transparent 70%);
}
.pl-landing-wrapper.light-theme .pl-aurora-blob.a4 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
}

/* Navbar */
.pl-landing-wrapper.light-theme .pl-nav {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.pl-landing-wrapper.light-theme .pl-nav-logo {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-nav-links a {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-nav-links a:hover {
    color: #0f172a;
    text-shadow: none;
}

/* Theme Toggle styles */
.pl-theme-toggle {
    background: none; border: none; color: #94a3b8;
    cursor: pointer; padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    margin-right: 16px;
}
.pl-theme-toggle:hover {
    color: #fff; background: rgba(255,255,255,0.06);
}
.pl-theme-toggle svg { width: 18px; height: 18px; }
.pl-landing-wrapper .sun-icon { display: none; }
.pl-landing-wrapper .moon-icon { display: block; }

.pl-landing-wrapper.light-theme .sun-icon { display: block; }
.pl-landing-wrapper.light-theme .moon-icon { display: none; }
.pl-landing-wrapper.light-theme .pl-theme-toggle { color: #475569; }
.pl-landing-wrapper.light-theme .pl-theme-toggle:hover { color: #000; background: rgba(0,0,0,0.04); }

/* Typography */
.pl-landing-wrapper.light-theme .pl-hero-h1 {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-hero-sub {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-hero-sub strong {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.pl-landing-wrapper.light-theme .pl-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}
.pl-landing-wrapper.light-theme .pl-proof-txt {
    color: #64748b;
}

/* Simulator Card */
.pl-landing-wrapper.light-theme .pl-simulator-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
.pl-landing-wrapper.light-theme .pl-simulator-card.floating-simulator {
    border-color: rgba(0, 0, 0, 0.08);
}
.pl-landing-wrapper.light-theme .pl-sim-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-sim-title {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-sim-body {
    background: rgba(255, 255, 255, 0.4);
}
.pl-landing-wrapper.light-theme .pl-log-line.text-mute {
    color: #64748b;
}
.pl-landing-wrapper.light-theme .pl-log-line.text-accent {
    color: #6d28d9;
}
.pl-landing-wrapper.light-theme .pl-sim-footer {
    border-top-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-sim-progress-text {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-sim-progressbar {
    background: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-sim-action-btn {
    color: #475569;
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.08);
}
.pl-landing-wrapper.light-theme .pl-sim-action-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.04);
}

/* Stats strip */
.pl-landing-wrapper.light-theme .pl-stats-strip {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-stat-l {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-stat-div {
    background: rgba(0, 0, 0, 0.06);
}

/* Sections */
.pl-landing-wrapper.light-theme .pl-s-title {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-section-sub {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-section-alt {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 0, 0, 0.03);
}

/* Process steps */
.pl-landing-wrapper.light-theme .pl-process-step {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-process-step:hover {
    background: #fff;
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}
.pl-landing-wrapper.light-theme .pl-process-step.highlighted {
    border-color: rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(236, 72, 153, 0.01) 100%);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.06);
}
.pl-landing-wrapper.light-theme .pl-process-step h3 {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-process-step p {
    color: #475569;
}
.pl-landing-wrapper.light-theme .step-num {
    color: rgba(0, 0, 0, 0.03);
}
.pl-landing-wrapper.light-theme .pl-process-connector {
    color: #94a3b8;
}

/* Gallery showcase widget */
.pl-landing-wrapper.light-theme .pl-gallery-widget {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.04);
}
.pl-landing-wrapper.light-theme .pl-gallery-tree {
    background: rgba(0, 0, 0, 0.01);
    border-right-color: rgba(0, 0, 0, 0.05);
    color: #475569;
}
.pl-landing-wrapper.light-theme .tree-header {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .tree-file {
    color: #475569;
}
.pl-landing-wrapper.light-theme .tree-file:hover {
    background: rgba(0, 0, 0, 0.02);
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .tree-file.active {
    background: rgba(139, 92, 246, 0.1);
    color: #6d28d9;
    border-color: rgba(139, 92, 246, 0.2);
}
.pl-landing-wrapper.light-theme .pl-gallery-preview {
    background: rgba(255, 255, 255, 0.4);
}
.pl-landing-wrapper.light-theme .preview-state-header {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .preview-state-header span {
    color: #64748b;
}

/* Markdown preview */
.pl-landing-wrapper.light-theme .markdown-body h3 { color: #0f172a; }
.pl-landing-wrapper.light-theme .markdown-body h4 { color: #6d28d9; }
.pl-landing-wrapper.light-theme .markdown-body p { color: #475569; }
.pl-landing-wrapper.light-theme .highlight-box {
    background: rgba(139, 92, 246, 0.04);
    border-left-color: #8b5cf6;
    color: #334155;
}
.pl-landing-wrapper.light-theme .markdown-body h5 { color: #0f172a; }
.pl-landing-wrapper.light-theme .markdown-body pre {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .markdown-body code {
    color: #b5179e;
}

/* Slides and PDF previews */
.pl-landing-wrapper.light-theme .pptx-slide {
    border: 1px solid rgba(0,0,0,0.06);
}
.pl-landing-wrapper.light-theme .pptx-actions-overlay {
    background: rgba(255, 255, 255, 0.95);
}
.pl-landing-wrapper.light-theme .pptx-actions-overlay p {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pdf-page {
    border: 1px solid rgba(0,0,0,0.06);
}

/* Audio Player */
.pl-landing-wrapper.light-theme .audio-player-mock {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}
.pl-landing-wrapper.light-theme .audio-track-info strong {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .audio-track-info span {
    color: #64748b;
}
.pl-landing-wrapper.light-theme .wave-bar {
    background: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .audio-play-btn {
    background: #0f172a;
    color: #fff;
}
.pl-landing-wrapper.light-theme .audio-play-btn:hover {
    background: #1e293b;
}

/* Browser Mockup */
.pl-landing-wrapper.light-theme .mock-browser {
    background: #f1f5f9;
    border-color: rgba(0,0,0,0.06);
}
.pl-landing-wrapper.light-theme .mock-browser-bar {
    background: rgba(0,0,0,0.02);
    border-bottom-color: rgba(0,0,0,0.05);
}
.pl-landing-wrapper.light-theme .mock-browser-url {
    background: #fff;
    color: #64748b;
    border: 1px solid rgba(0,0,0,0.04);
}
.pl-landing-wrapper.light-theme .mock-browser-content {
    background: #fff;
}
.pl-landing-wrapper.light-theme .mini-hero h5 {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .mini-hero p {
    color: #64748b;
}
.pl-landing-wrapper.light-theme .mini-curriculum h6 {
    color: #8b5cf6;
}
.pl-landing-wrapper.light-theme .mini-curriculum li {
    color: #475569;
}

/* Agents Section */
.pl-landing-wrapper.light-theme .pl-agent-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-agent-card:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}
.pl-landing-wrapper.light-theme .pl-agent-card h3 {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-agent-card p {
    color: #475569;
}
.pl-landing-wrapper.light-theme .agent-status {
    color: #7c3aed;
}

/* Pricing Section */
.pl-landing-wrapper.light-theme .pl-pricing-cost-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-pricing-cost-card h3 {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .cost-row {
    border-bottom-color: rgba(0,0,0,0.04);
}
.pl-landing-wrapper.light-theme .cost-item {
    color: #475569;
}
.pl-landing-wrapper.light-theme .cost-val {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .cost-row.highlight .cost-item {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .cost-row.highlight .cost-val {
    color: #6d28d9;
    text-shadow: none;
}

/* Packs Tiers */
.pl-landing-wrapper.light-theme .pricing-pack-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pricing-pack-card:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}
.pl-landing-wrapper.light-theme .pricing-pack-card.popular {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.04);
}
.pl-landing-wrapper.light-theme .pack-badge {
    color: #64748b;
    background: rgba(0,0,0,0.03);
}
.pl-landing-wrapper.light-theme .pack-badge.popular {
    color: #6d28d9;
    background: rgba(139, 92, 246, 0.1);
}
.pl-landing-wrapper.light-theme .pack-title {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pack-price {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pack-price span {
    color: #64748b;
}
.pl-landing-wrapper.light-theme .pack-desc {
    color: #64748b;
}

/* FAQ */
.pl-landing-wrapper.light-theme .pl-faq-item {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}
.pl-landing-wrapper.light-theme .pl-faq-item:hover {
    border-color: rgba(0, 0, 0, 0.08);
}
.pl-landing-wrapper.light-theme .pl-faq-item.open {
    background: #fff;
    border-color: rgba(139, 92, 246, 0.25);
}
.pl-landing-wrapper.light-theme .pl-faq-question {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-faq-question:hover {
    color: #6d28d9;
}
.pl-landing-wrapper.light-theme .pl-faq-icon {
    color: #94a3b8;
}
.pl-landing-wrapper.light-theme .pl-faq-item.open .pl-faq-icon {
    color: #6d28d9;
}
.pl-landing-wrapper.light-theme .pl-faq-answer {
    color: #475569;
}

/* Big CTA */
.pl-landing-wrapper.light-theme .pl-bigcta-inner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.07) 0%, rgba(236, 72, 153, 0.03) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.05);
}
.pl-landing-wrapper.light-theme .pl-bigcta-glow {
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
}
.pl-landing-wrapper.light-theme .pl-bigcta-h {
    color: #0f172a;
}
.pl-landing-wrapper.light-theme .pl-bigcta-inner > p {
    color: #475569;
}
.pl-landing-wrapper.light-theme .pl-bigcta-pills span {
    color: #475569;
}

/* Footer */
.pl-landing-wrapper.light-theme .pl-footer {
    border-top-color: rgba(0, 0, 0, 0.04);
    color: #64748b;
}
.pl-landing-wrapper.light-theme .pl-footer strong {
    color: #475569;
}

/* ─── CREATE VIEW TWO-COLUMN LAYOUT ─── */
.create-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}
@media (max-width: 1024px) {
    .create-grid {
        grid-template-columns: 1fr;
    }
}

.estimator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 24px;
    box-shadow: var(--shadow);
}

.estimator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.estimator-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.estimator-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}
.estimator-pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary);
    border-radius: 50%;
    animation: est-pulse-ring 1.8s infinite ease-in-out;
}
@keyframes est-pulse-ring {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

.estimator-group {
    margin-bottom: 20px;
}
.estimator-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 6px;
}
.estimator-val {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
}
.estimator-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.est-item {
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity var(--transition);
}
.est-item.disabled {
    opacity: 0.35;
    text-decoration: line-through;
}
.estimator-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
}
.estimator-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}
.estimator-total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.estimator-total {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* Checkbox Reset to prevent appearance:none hiding checkboxes */
.checkbox-container input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    accent-color: var(--primary) !important;
}

/* ─── SUPABASE AUTH MODAL & PROFILE STYLES ─── */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-overlay.hidden {
    display: none !important;
}
.auth-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 420px;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: auth-modal-fade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes auth-modal-fade {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-close-btn {
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: none;
    color: var(--text-dim);
    cursor: pointer;
    transition: color var(--transition);
}
.auth-close-btn:hover {
    color: var(--text);
}
.auth-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 12px;
    gap: 12px;
}
.auth-tab-btn {
    flex: 1;
    padding: 10px 0;
    background: none; border: none;
    color: var(--text-dim);
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: all var(--transition);
    font-family: inherit;
}
.auth-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.auth-tab-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px; font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}
.auth-tab-content p {
    font-size: 13px; color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Nav dropdown and credits displays */
.nav-profile-dropdown:hover .profile-dropdown-content {
    display: block !important;
}
.profile-dropdown-content button:hover {
    background: rgba(124, 58, 237, 0.05) !important;
}
.nav-auth-group.hidden {
    display: none !important;
}

/* ─── HISTORIAL DE CURSOS GENERADOS ─── */
.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}
.history-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}
.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}
.history-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.badge-level {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.history-card-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 14px;
    line-height: 1.4;
    flex-grow: 1;
}
.history-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.history-view-link {
    color: var(--primary);
    font-weight: 600;
}
