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

:root {
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Theme colors (Deep luxurious dark theme) */
    --bg-main: #0B0F19;
    --bg-card: #131A2E;
    --bg-card-hover: #1B2541;
    --border-color: #233258;
    --border-color-glow: #3E5A9B;

    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Accent & Domain colors */
    --primary: #8B5CF6; /* Violet */
    --primary-light: #A78BFA;
    --success: #10B981; /* Emerald */
    --success-light: #34D399;
    --warning: #F59E0B; /* Amber */
    --error: #EF4444; /* Rose */

    /* Pillar Accent Colors */
    --color-literal: #3B82F6;     /* Blue */
    --color-inferential: #8B5CF6; /* Violet */
    --color-evaluative: #EC4899;  /* Pink */
    --color-sequence: #F59E0B;    /* Amber */
    --color-main-idea: #10B981;   /* Emerald */
    --color-vocab-context: #06B6D4; /* Cyan */

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-glow);
}

/* Typography & Layout Utility classes */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

header {
    background: linear-gradient(180deg, rgba(19, 26, 46, 0.8) 0%, rgba(11, 15, 25, 0) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--color-vocab-context));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.engine-status-badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--primary); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

main {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    height: calc(100vh - 85px);
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.right-panel {
    min-height: 0; /* fix */
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* Card components */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ingestion panel styles */
textarea {
    width: 100%;
    min-height: 240px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition);
    outline: none;
}

textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.template-selector-container {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

select {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

select:focus {
    border-color: var(--primary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7C3AED);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    filter: grayscale(0.5);
}

/* Tab controls */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

.tab {
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.03);
}

/* Right panel tabs content */
.tab-content {
    min-height: 0;
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Question Grid */
.questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.question-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.question-card[data-pillar="LITERAL"] { border-left-color: var(--color-literal); }
.question-card[data-pillar="INFERENTIAL"] { border-left-color: var(--color-inferential); }
.question-card[data-pillar="EVALUATIVE"] { border-left-color: var(--color-evaluative); }
.question-card[data-pillar="SEQUENCE"] { border-left-color: var(--color-sequence); }
.question-card[data-pillar="MAIN_IDEA"] { border-left-color: var(--color-main-idea); }
.question-card[data-pillar="VOCAB_CONTEXT"] { border-left-color: var(--color-vocab-context); }

.pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.pill-literal { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.pill-inferential { background: rgba(139, 92, 246, 0.15); color: #C084FC; }
.pill-evaluative { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.pill-sequence { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.pill-main-idea { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.pill-vocab-context { background: rgba(6, 182, 212, 0.15); color: #22D3EE; }

.question-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.options-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.option-item {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-letter {
    font-weight: 700;
    color: var(--text-secondary);
}

.option-item.correct {
    border-color: rgba(16, 185, 129, 0.4);
    background-color: rgba(16, 185, 129, 0.05);
}

.option-item.correct .option-letter {
    color: var(--success-light);
}

.rationale-box {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.question-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Edit Mode styling within Cards */
.edit-form-field {
    margin-bottom: 0.75rem;
}

.edit-input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
}

.edit-input:focus {
    border-color: var(--primary-light);
}

/* Student view elements */
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--color-vocab-context));
    width: 0%;
    transition: var(--transition);
}

.quiz-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-option-btn {
    width: 100%;
    text-align: left;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-option-btn:hover {
    border-color: var(--border-color-glow);
    background-color: var(--bg-card-hover);
}

.student-option-btn.selected {
    border-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.05);
}

.student-option-btn.correct-choice {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.08);
}

.student-option-btn.incorrect-choice {
    border-color: var(--error);
    background-color: rgba(239, 68, 68, 0.08);
}

/* JSON Export panel */
.code-container {
    position: relative;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    max-height: 550px;
    white-space: pre-wrap;
    color: #34D399; /* Green hue for nice code display */
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    height: 100%;
    gap: 1rem;
    padding: 3rem;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
}

/* Loading HUD overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 15, 25, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

.score-screen {
    text-align: center;
    padding: 3rem 1.5rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--color-vocab-context));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
        height: auto;
    }
    .left-panel {
        overflow-y: visible;
        padding-right: 0;
    }
    .right-panel {
        min-height: 600px;
    }
}

/* Student Workspace Layout */
.student-preview-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.passage-reading-card {
    margin-bottom: 0;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid var(--border-color);
}

.passage-display {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: pre-line;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 0.5rem;
    padding-top: 2.5rem;
}

/* Scaffolding Highlighting & Tooltips */
.scaffold-highlight {
    position: relative;
    cursor: pointer;
    display: inline-block;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.scaffold-highlight.vocab, .scaffold-highlight.vocab-highlight {
    background-color: rgba(6, 182, 212, 0.2);
    color: var(--color-vocab-context);
}
.scaffold-highlight.vocab:hover, .scaffold-highlight.vocab-highlight:hover {
    background-color: rgba(6, 182, 212, 0.35);
}

.scaffold-highlight.pronoun, .scaffold-highlight.pronoun-highlight {
    background-color: rgba(59, 130, 246, 0.25);
    color: #60A5FA;
}
.scaffold-highlight.pronoun:hover, .scaffold-highlight.pronoun-highlight:hover {
    background-color: rgba(59, 130, 246, 0.4);
}

/* Tooltips moved to JS global-tooltip */

@media (max-width: 1024px) {
    .student-preview-workspace {
        grid-template-columns: 1fr;
    }
}

/* Teacher Insights CSS Styles */
.mastery-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.85rem;
}

.mastery-table th, .mastery-table td {
    padding: 0.65rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mastery-table th:nth-child(1),
.mastery-table td:nth-child(1) {
    width: 24%;
    text-align: left;
}
.mastery-table th:nth-child(2),
.mastery-table td:nth-child(2) {
    width: 18%;
    text-align: center;
}
.mastery-table th:nth-child(3),
.mastery-table td:nth-child(3) {
    width: 14%;
    text-align: center;
}
.mastery-table th:nth-child(4),
.mastery-table td:nth-child(4) {
    width: 20%;
    text-align: right;
}
.mastery-table th:nth-child(5),
.mastery-table td:nth-child(5) {
    width: 24%;
    text-align: right;
}

.mastery-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Status colors mapping */
.status-pill {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-Excellent {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success-light);
}
.status-Stable {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}
.status-At-Risk {
    background-color: rgba(245, 158, 11, 0.15);
    color: #FBBF24;
}
.status-Critical {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* Behavioral Matrix Grid */
.behavior-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.quadrant-panel {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.quadrant-panel:hover {
    border-color: var(--border-color-glow);
}

.quadrant-panel[data-quadrant="masters"] {
    border-left: 3px solid var(--success);
}
.quadrant-panel[data-quadrant="guessing"] {
    border-left: 3px solid var(--warning);
}
.quadrant-panel[data-quadrant="strugglers"] {
    border-left: 3px solid #3B82F6;
}
.quadrant-panel[data-quadrant="blind"] {
    border-left: 3px solid var(--error);
}

.quadrant-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.quadrant-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.quadrant-students {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
}

.student-tag {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Metric HUD Cards */
.metric-hud-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.hud-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hud-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-top: 0.25rem;
}

/* Insight Alert Card */
.insight-alert-card {
    background-color: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.insight-icon {
    font-size: 1.1rem;
}

/* --- STUDENT PORTAL EXTRA STYLES --- */

.portal-btn:hover {
    color: var(--text-primary) !important;
}
.portal-btn.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

main.student-mode-active {
    grid-template-columns: 1fr;
}
main.student-mode-active .left-panel {
    display: none;
}
/* Student & Teacher Auth View — independent of tab-content system */
.student-auth-view,
.teacher-auth-view {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
    background: var(--bg-card);
}
.student-auth-view.visible,
.teacher-auth-view.visible {
    display: flex;
}

/* Auth Cards styling */
.auth-card {
    background: rgba(19, 26, 46, 0.6);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    margin: auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.auth-tab:hover {
    color: var(--text-primary);
}
.auth-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.auth-title {
    font-size: 1.5rem;
    color: #FFF;
    text-align: center;
}
.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -0.75rem;
    margin-bottom: 0.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group input,
.form-group select {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}
.auth-error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--error);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
}

/* Student Dashboard View layout */
.student-dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .student-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Gamified Badges */
.badge-glowing-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--color-vocab-context));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    position: relative;
}
.badge-glowing-ring::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.5);
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.8; }
}
.badge-level-label {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFF;
}
.tutor-advice-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

/* Skill Pillars meters */
.skill-meter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.skill-meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
}
.skill-meter-bar {
    height: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.skill-meter-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Passage list items styling */
.passage-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.passage-list-item:hover {
    border-color: var(--border-color-glow);
    background-color: var(--bg-card-hover);
    transform: translateX(4px);
}
.passage-item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Kebab context menu — Passage Library */
.kebab-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.kebab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.kebab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.kebab-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    min-width: 170px;
    padding: 0.3rem 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.92) translateY(-4px);
    transform-origin: top right;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.kebab-menu.open {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.kebab-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.kebab-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.kebab-menu-item.kebab-danger {
    color: #ef4444;
}

.kebab-menu-item.kebab-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* Active quiz confidence rating selection */
.confidence-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}
.confidence-label-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 0.5rem;
}
.confidence-btn {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.confidence-btn:hover {
    border-color: var(--border-color-glow);
    color: var(--text-primary);
}
.confidence-btn.active[data-conf="high"] {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--success-light);
}
.confidence-btn.active[data-conf="medium"] {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    color: #FBBF24;
}
.confidence-btn.active[data-conf="low"] {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--error);
    color: var(--error);
}
.clue-revealer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}
.clue-btn {
    background: transparent;
    border: 1px dashed var(--primary);
    color: var(--primary-light);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}
.clue-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    border-style: solid;
}

/* --- LANDING PAGE (INDEX.HTML) STYLES --- */
.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
    height: auto; /* override main height constraint */
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0 3rem;
    position: relative;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 560px;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
    text-align: left;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 580px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color-glow);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.1);
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.hero-image:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.2);
}

.hero-image-glow {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 75%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: heroGlowPulse 4s ease-in-out infinite;
}

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

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-title,
    .hero-subtitle {
        text-align: center;
        max-width: 100%;
    }
    .hero-image {
        max-width: 100%;
    }
}

.cta-group {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-large.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6D28D9 100%);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-large.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-large.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-glow);
    transform: translateY(-2px);
}

.landing-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 50%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .landing-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .landing-pillars-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.25rem;
    }
}

.landing-pillar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.landing-pillar-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
}

.landing-pillar-card.card-literal::after { background-color: var(--color-literal); }
.landing-pillar-card.card-inferential::after { background-color: var(--color-inferential); }
.landing-pillar-card.card-evaluative::after { background-color: var(--color-evaluative); }
.landing-pillar-card.card-sequence::after { background-color: var(--color-sequence); }
.landing-pillar-card.card-main-idea::after { background-color: var(--color-main-idea); }
.landing-pillar-card.card-vocab-context::after { background-color: var(--color-vocab-context); }

.landing-pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-lg), 0 10px 20px rgba(0,0,0,0.2);
}

.landing-pillar-card .pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
}

.landing-pillar-card .pillar-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

@media (max-width: 900px) {
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.showcase-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.showcase-title {
    font-size: 1.85rem;
    color: #FFF;
}

.showcase-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.showcase-preview-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-glow);
}

.showcase-highlight-demo {
    line-height: 1.8;
    font-size: 0.95rem;
}

.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(19, 26, 46, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.landing-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* =============================================
   PREVIEW LAUNCHPAD MODULE STYLES
   ============================================= */

/* Container wrapper for the entire launchpad flow */
#student-preview-launchpad {
    animation: fadeIn 0.4s ease;
}

/* Step pane base — slides up when activated */
.preview-step-pane {
    animation: slideInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Step 1: Schema Activation ---- */
#preview-step-1 textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    outline: none;
}

/* ---- Step 2: Vocabulary Flashcards ---- */
.flashcard-grid {
    perspective: 1000px;
}

/* Individual flashcard item */
.flashcard-item {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    cursor: pointer;
}

/* Hover lift on un-flipped cards */
.flashcard-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-glow) !important;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

/* Card back face — revealed on flip */
.card-back {
    animation: cardFlipReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardFlipReveal {
    0% {
        opacity: 0;
        transform: rotateX(-12deg) scale(0.97);
    }
    60% {
        transform: rotateX(3deg) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg) scale(1);
    }
}

/* ---- Step 3: Mission Statement Box ---- */
.mission-box {
    position: relative;
    overflow: hidden;
}

/* Animated glow behind the mission box */
.mission-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.35) 0%,
        rgba(6, 182, 212, 0.35) 50%,
        rgba(139, 92, 246, 0.35) 100%
    );
    z-index: -1;
    animation: missionGlow 3s ease-in-out infinite alternate;
    filter: blur(14px);
}

@keyframes missionGlow {
    0%   { opacity: 0.35; transform: scale(0.97); }
    100% { opacity: 0.85; transform: scale(1.03); }
}

/* ---- Preview Start Button polish ---- */
#preview-start-mission-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#preview-start-mission-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%);
    transition: transform 0.55s ease;
}

#preview-start-mission-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55) !important;
}

#preview-start-mission-btn:hover::after {
    transform: translateX(100%);
}

#preview-start-mission-btn:active {
    transform: translateY(-1px) scale(0.99);
}

/* ---- Step Progress Dots ---- */
.preview-step-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.preview-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: var(--transition);
}

.preview-step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.65);
    transform: scale(1.35);
}

.preview-step-dot.done {
    background: var(--success);
}

/* ---- Launchpad Responsive ---- */
@media (max-width: 640px) {
    #student-preview-launchpad {
        padding: 1rem 0;
    }
}

/* ---- Gated Preview Launchpad Custom Interactive Styles ---- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
.shake {
    animation: shake 0.4s ease-in-out !important;
    border-color: var(--error) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
}

.vocab-matching-btn {
    width: 100%;
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vocab-matching-btn:hover:not(.matched):not(.selected) {
    border-color: var(--border-color-glow);
    background-color: var(--bg-card-hover);
}

.vocab-matching-btn.selected {
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid var(--color-vocab-context);
    color: #FFF;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.vocab-matching-btn.matched {
    cursor: default;
    pointer-events: none;
    transition: var(--transition);
}

.vocab-matching-btn.matched-pair-0 {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid #34d399 !important;
    color: #6ee7b7 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}

.vocab-matching-btn.matched-pair-1 {
    background: rgba(6, 182, 212, 0.16) !important;
    border: 1px solid #22d3ee !important;
    color: #67e8f9 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25) !important;
}

.vocab-matching-btn.matched-pair-2 {
    background: rgba(168, 85, 247, 0.16) !important;
    border: 1px solid #c084fc !important;
    color: #d8b4fe !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25) !important;
}

.vocab-matching-btn.matched-pair-3 {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid #fbbf24 !important;
    color: #fde68a !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25) !important;
}

.vocab-matching-btn.matched-pair-4 {
    background: rgba(244, 63, 94, 0.16) !important;
    border: 1px solid #fb7185 !important;
    color: #fda4af !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25) !important;
}

.matched-pair-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

.matched-pair-0 .matched-pair-badge {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid #34d399;
    color: #34d399;
}

.matched-pair-1 .matched-pair-badge {
    background: rgba(6, 182, 212, 0.25);
    border: 1px solid #22d3ee;
    color: #22d3ee;
}

.matched-pair-2 .matched-pair-badge {
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid #c084fc;
    color: #c084fc;
}

.matched-pair-3 .matched-pair-badge {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid #fbbf24;
    color: #fbbf24;
}

.matched-pair-4 .matched-pair-badge {
    background: rgba(244, 63, 94, 0.25);
    border: 1px solid #fb7185;
    color: #fb7185;
}

.schema-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.schema-choice-btn:hover:not(.selected) {
    border-color: var(--border-color-glow);
    background-color: var(--bg-card-hover);
}

.schema-choice-btn.selected {
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid var(--primary);
    color: #FFF;
}

/* Custom Publish Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-title {
    font-size: 1.4rem;
    color: #FFF;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Premium Layout for Large Modal & Deployed Passages */
.modal-card.modal-large {
    max-width: 760px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.deployed-passage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.deployed-passage-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
}

.deployed-passage-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.deployed-passage-item button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Teacher Dashboard Responsive Grids */
.dashboard-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.student-profile-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.student-profile-grid > div:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1366px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .dashboard-top-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .student-profile-grid > div:nth-child(2) {
        grid-template-columns: 1fr;
    }
}

/* Sandbox Warning Tooltip style */
.sandbox-warning-tooltip {
    position: relative;
    cursor: pointer;
    display: inline-block;
}
.sandbox-warning-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: #1e1b4b; /* dark indigo background */
    border: 1px solid #f59e0b; /* orange warning border */
    color: #fef3c7; /* light orange text */
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: normal; /* wrap if long */
    width: 220px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 100;
}
.sandbox-warning-tooltip::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #f59e0b transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.sandbox-warning-tooltip:hover::after,
.sandbox-warning-tooltip:focus::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}
.sandbox-warning-tooltip:hover::before,
.sandbox-warning-tooltip:focus::before {
    opacity: 1;
}


/* ==========================================================================
   Profile Widget Styles
   ========================================================================== */
.profile-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: var(--text-primary);
    max-width: 42rem;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background-color: var(--color-vocab-context);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.profile-header-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.2rem;
}

.profile-header-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.profile-header-text span {
    font-family: var(--font-mono, monospace);
    color: var(--primary-light);
}

.profile-section-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 0.5rem;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-info-box {
    background-color: rgba(0,0,0,0.2);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.profile-badge {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.profile-badge.verified {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-badge.unverified {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.profile-badge.stripe-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.profile-badge.stripe-hybrid {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.profile-badge.stripe-sandbox {
    background-color: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.btn-teal {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    background-color: var(--color-vocab-context);
    color: var(--bg-main);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-teal:hover {
    filter: brightness(1.1);
}

.btn-cancel {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

#profile-feedback {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}
#profile-feedback.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
#profile-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}


/* CLASSROOM MANAGEMENT DASHBOARD CSS */
.class-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.class-card.tier-sandbox {
    border-left: 4px solid var(--warning);
}
.class-card.tier-sandbox:hover {
    border-color: var(--warning);
}
.class-card.tier-subscribed {
    border-left: 4px solid var(--primary);
}
.class-card.tier-subscribed:hover {
    border-color: var(--primary-light);
}

.class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.class-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}
.class-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-sandbox {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.badge-premium {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-paused {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.class-card-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.metric-value {
    font-weight: 600;
    color: var(--text-main);
}
.metric-value.alert {
    color: var(--danger);
}

.class-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.class-action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.class-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.class-action-btn.icon-only {
    padding: 0.35rem;
}
.class-action-btn.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}


/* Differentiated Learning: Reading Only Mode */
.reading-only-mode .quiz-card {
    display: none !important;
}

.reading-only-mode .passage-reading-card {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

#student-start-quiz-btn {
    display: none;
    margin-top: 2rem;
    align-self: center;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.reading-only-mode #student-start-quiz-btn {
    display: inline-flex;
}

.quiz-only-mode .passage-reading-card {
    display: none !important;
}

.quiz-only-mode .quiz-card {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}


/* ==========================================================================
   IMMERSIVE READING VIEW (Premium UI)
   ========================================================================== */

.immersive-reading-view {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.reading-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.immersive-content-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
}

.premium-typography {
    flex: 1;
    font-family: 'Georgia', 'Merriweather', serif; /* Premium Serif */
    font-size: 1.25rem;
    line-height: 2;
    color: #e2e8f0;
    max-width: 800px;
    letter-spacing: 0.01em;
}

/* Drop Cap for first letter */
.premium-typography > p:first-of-type::first-letter {
    font-size: 4.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    color: var(--primary-light, #c084fc);
    font-weight: bold;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.premium-typography p {
    margin-bottom: 1.8rem;
}

/* Glassmorphism Sidebar */
.glass-sidebar {
    position: sticky;
    top: 2rem;
    width: 260px;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    font-weight: 700;
}

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

.sidebar-tool {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md, 12px);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.sidebar-tool:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.1);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tool-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tool-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
}

.tool-status {
    font-size: 0.7rem;
    color: var(--success, #10b981);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.premium-btn {
    margin-top: 3rem !important;
    padding: 1rem 3rem !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary, #8b5cf6) 0%, #6d28d9 100%) !important;
    box-shadow: 0 10px 25px rgba(139,92,246,0.3) !important;
    border: none !important;
}

/* Hover highlights for scaffolded text */
.passage-display .vocab-highlight, .passage-display .pronoun-highlight {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.passage-display .vocab-highlight:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}

.passage-display .pronoun-highlight:hover {
    background: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

/* Horizontal Glass Sidebar modifier */
.glass-sidebar.horizontal {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 1.5rem;
    gap: 1rem;
    border-radius: var(--radius-lg, 12px);
    background: rgba(30, 30, 46, 0.4);
}

.glass-sidebar.horizontal .sidebar-tools {
    flex-direction: row;
    gap: 1rem;
}

.glass-sidebar.horizontal .sidebar-tool {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
}

.glass-sidebar.horizontal .tool-icon {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.glass-sidebar.horizontal .tool-details {
    gap: 0.1rem;
}

.glass-sidebar.horizontal .tool-name {
    font-size: 0.8rem;
}

.glass-sidebar.horizontal .tool-status {
    font-size: 0.6rem;
}

/* Fix sticky header bleed by removing top padding from scroll container */
#student-quiz-tab { padding-top: 0 !important; }
#student-quiz-empty { padding-top: 2rem; }

/* UI Forms */
.styled-input {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #1f2937;
    border-radius: var(--radius-sm);
    padding: 0.625rem;
    color: #f3f4f6;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* --- Demographic Themes --- */
body.theme-academic {
    /* A more muted, professional palette for High School / Adult / Academic audiences */
    --primary: #3B82F6; /* Professional Blue */
    --primary-light: #60A5FA;
    --bg-main: #0F172A; /* Dark Slate instead of deep purple-blue */
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --border-color: #334155;
    --border-color-glow: #475569;
    --shadow-glow: none; /* Remove childish glowing effects */
    --font-heading: 'Inter', sans-serif; /* Use standard sans instead of rounded Outfit */
}

body.theme-academic .pill {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-radius: 4px; /* sharper corners */
}

body.theme-academic .card {
    border-radius: 8px; /* sharper corners */
    box-shadow: var(--shadow-sm);
}

body.theme-academic .btn {
    border-radius: 6px;
    text-transform: none;
    letter-spacing: normal;
}

body.theme-academic .score-circle {
    box-shadow: none;
    border: 2px solid var(--border-color);
    background: transparent;
}

/* --- Premium Report Dashboard Overhaul --- */

/* Deep Radial Gradient Background */
body.report-dashboard {
    background: radial-gradient(circle at top left, #1e1b4b, #0B0F19 50%), 
                radial-gradient(circle at bottom right, #0f172a, #0B0F19 50%);
    background-attachment: fixed;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: rgba(19, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Typography Gradients */
.text-gradient {
    background: linear-gradient(to right, #A78BFA, #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Neon Floating Borders for Metric/Action Cards */
.neon-border {
    position: relative;
    border: 1px solid transparent;
    background-color: rgba(11, 15, 25, 0.85); /* Dark background to hide the center of the gradient */
    background-clip: padding-box;
    border-radius: 12px;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(to right, #8B5CF6, #3B82F6);
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.2), 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Glowing Icons */
.glow-icon {
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
    margin-right: 8px;
}

/* Premium Custom Modal Dialogs */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-card {
    background: rgba(19, 26, 46, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.custom-modal-overlay.active .custom-modal-card {
    transform: scale(1);
}

.custom-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #8b5cf6, #3b82f6);
}

.custom-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.custom-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.custom-modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.custom-modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-modal-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.custom-modal-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.custom-modal-feature-icon {
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.custom-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.custom-modal-actions .btn {
    padding: 0.85rem;
}

