/* style.css - iSEDUC Copiloto (Gerador de Planos de Aula & Gestão) */

:root {
    --bg-base: #0a110f;
    --bg-surface: #0f1c18;
    --bg-surface-elevated: #162621;
    --bg-surface-glass: rgba(15, 28, 24, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(34, 197, 94, 0.4);
    
    --primary: #16a34a;
    --primary-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --primary-hover: #15803d;
    
    --accent-gold: #eab308;
    --accent-gold-gradient: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
    
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4);
    --shadow-primary: 0 8px 20px -4px rgba(22, 163, 74, 0.4);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* SVG VECTOR ICON SYSTEM */
.icon-svg-xxs, .icon-svg-xs, .icon-svg-sm, .icon-svg, .icon-svg-lg, .icon-svg-xl {
    display: inline-block;
    vertical-align: -0.15em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.icon-svg-xxs { width: 12px; height: 12px; }
.icon-svg-xs { width: 14px; height: 14px; }
.icon-svg-sm { width: 16px; height: 16px; }
.icon-svg { width: 18px; height: 18px; }
.icon-svg-lg { width: 22px; height: 22px; }
.icon-svg-xl { width: 34px; height: 34px; }
.icon-star { fill: currentColor; }

[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(22, 163, 74, 0.35);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.logo-icon.lg {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
}

.gradient-text {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 6px;
    margin-left: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.nav-link.active {
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-primary);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.user-role-badge {
    background: var(--accent-gold-gradient);
    color: #000;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.user-email {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* PAGE CONTAINERS */
.page-container {
    flex: 1;
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.content-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* AUTHENTICATION VIEW */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
}

.auth-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header .logo-icon {
    margin: 0 auto 16px auto;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
}

.auth-subtitle {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.quick-admin-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px dashed rgba(234, 179, 8, 0.35);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.badge-gold {
    font-size: 11px;
    font-weight: 700;
    color: #fde047;
}

.btn-gold {
    background: var(--accent-gold-gradient);
    color: #000;
    font-weight: 700;
}

/* SINGLE COLUMN WIZARD LAYOUT */
.generator-single-column {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.wizard-card-full {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* GENERATOR PREVIEW BANNER */
.generator-preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.1);
    animation: fadeInBanner 0.3s ease-out;
}

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

@media (max-width: 768px) {
    .generator-preview-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

.card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"], input[type="date"], input[type="email"], input[type="password"], textarea, select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 9px 12px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Checkbox Pill */
.checkbox-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Step 3 Target Stepper & Calculation Feedback */
.target-stepper-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.target-stepper-wrapper input[type="number"] {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    flex: 1;
}

.btn-stepper {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 6px);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-stepper:hover {
    background: rgba(22, 163, 74, 0.2);
    border-color: #16a34a;
    color: #4ade80;
    transform: translateY(-1px);
}

.btn-stepper:active {
    transform: translateY(0);
}

.step3-options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.step3-calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 11.5px;
    color: #86efac;
    transition: all 0.2s ease;
}

.step3-calc-badge.warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

/* SCHEDULE SUMMARY CARD (SECTION 3) */
.schedule-summary-card {
    background: linear-gradient(135deg, rgba(15, 28, 24, 0.85) 0%, rgba(22, 38, 33, 0.6) 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.schedule-summary-card:hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

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

.summary-class-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.summary-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.summary-quick-switch {
    min-width: 170px;
    max-width: 220px;
}

.select-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.schedule-chips-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-day-chip {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 130px;
    flex: 1 1 auto;
    transition: all 0.2s ease;
}

.schedule-day-chip:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.85);
    transform: translateY(-1px);
}

.chip-day-name {
    font-size: 11px;
    font-weight: 700;
    color: #93c5fd;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.chip-times {
    font-size: 12px;
    font-family: var(--font-mono);
    color: #f1f5f9;
    font-weight: 600;
    line-height: 1.35;
}

.chip-count {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}

.schedule-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Schedule Presets Controls */
.schedule-preset-card {
    background: rgba(15, 28, 24, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.preset-select-group {
    width: 100%;
}

.preset-name-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.preset-name-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.preset-name-input-row input {
    flex: 1;
    font-weight: 600;
}

@media (max-width: 640px) {
    .preset-name-input-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.preset-actions-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.badge-preset {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-preset.is-custom {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.btn-outline-primary:hover {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Schedule Slots Matrix */
.schedule-slots-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-slot-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
}

.schedule-slot-row.has-conflict {
    border-color: rgba(239, 68, 68, 0.75) !important;
    background: rgba(239, 68, 68, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.conflict-pill {
    font-size: 11px;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.schedule-conflict-banner {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    line-height: 1.4;
    animation: fadeInConflict 0.25s ease-in-out;
}

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

/* Methodology Checklist Chips */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.check-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.check-chip:hover {
    border-color: var(--border-hover);
    background: rgba(34, 197, 94, 0.08);
}

.check-chip input:checked + span {
    font-weight: 600;
    color: #86efac;
}

/* Passo 4 - Metodologias Expandidas & Personalizadas */
.pane-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pane-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-chip-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-chip-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-color: var(--border-hover);
}

.add-custom-methodology-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: 12px;
}

.add-custom-methodology-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.add-custom-methodology-row input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.add-custom-methodology-row input:focus {
    border-color: var(--primary);
}

.custom-chip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.custom-chip-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s;
}

.custom-chip-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Passo 6 - Painel de Conferência Integrada dos Passos 1 a 5 */
.step6-summary-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step6-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #38bdf8;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step6-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.step6-summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step6-summary-item .summary-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.step6-summary-item strong {
    font-size: 12px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Base File Dropzone */
.dropzone-area {
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.dropzone-area:hover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.06);
}

.dropzone-area.dragover {
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.15);
    transform: scale(1.01);
}

.dropzone-area.loaded {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.12);
}

/* MODAL PREVIEW CARD */
.modal-preview-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    width: 95%;
    max-width: 1240px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(34, 197, 94, 0.15);
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.preview-modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.2);
    max-height: 72vh;
}

.preview-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 600px;
}

.data-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 12px;
}

.editable-cell {
    min-width: 140px;
    max-width: 320px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

/* SUPERADMIN METRICS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon {
    font-size: 28px;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 22px;
    font-weight: 800;
    margin-top: 2px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 24px;
}

.license-key-box {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: #4ade80;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 6px;
}

/* SUPERADMIN ENHANCEMENTS */
.metric-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

.admin-actions-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.license-history-list {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.license-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 11.5px;
}

.pricing-guarantee-banner {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 20px;
    font-size: 12px;
    color: #86efac;
    margin-top: 10px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -4px rgba(22, 163, 74, 0.5);
}

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

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

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-outline-sm {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
}

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

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 11px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.gap-2 { gap: 8px; }
.text-xxs { font-size: 10px; }

/* AI CONFIGURATION & GENERATION STYLES */
.ai-config-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.badge-ai-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.badge-ai-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.link-ai-helper {
    font-size: 11px;
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link-ai-helper:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.input-with-action {
    display: flex;
    gap: 6px;
    align-items: center;
}

.input-with-action input {
    flex: 1;
}

/* BOTAO GERAR PLANO DE AULAS COM ANIMACAO VERDE PULSANTE OFICIAL */
@keyframes pulseGlowEmerald {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65), 0 4px 14px rgba(22, 163, 74, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0), 0 6px 22px rgba(34, 197, 94, 0.45);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 4px 14px rgba(22, 163, 74, 0.35);
        transform: scale(1);
    }
}

.btn-ai-gradient,
.btn-generate-pulse {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: var(--radius-md);
    padding: 14px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pulseGlowEmerald 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    cursor: pointer;
}

.btn-ai-gradient:hover,
.btn-generate-pulse:hover {
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35), 0 8px 28px rgba(34, 197, 94, 0.55);
    filter: brightness(1.1);
}

.btn-ai-gradient:active,
.btn-generate-pulse:active {
    transform: translateY(0) scale(1);
}

.btn:disabled,
.btn[disabled],
.btn-ai-gradient:disabled,
.btn-generate-pulse:disabled {
    opacity: 0.52;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    filter: grayscale(0.65);
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* AI LOADING MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 15, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ai-loading-card {
    background: var(--bg-surface, #111a16);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: var(--radius-xl, 14px);
    padding: 28px 24px;
    width: 90%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.15);
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .ai-loading-card {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 0 25px rgba(16, 185, 129, 0.08);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.ai-spinner-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 4px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-pulsing-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
    animation: aiPulse 2s infinite alternate ease-in-out;
}

[data-theme="light"] .ai-pulsing-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}

@keyframes aiPulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.9; }
}

.ai-spinner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.14);
    border-top-color: #10b981;
    border-right-color: #34d399;
    animation: aiSpin 1s linear infinite;
}

[data-theme="light"] .ai-spinner {
    border-color: rgba(16, 185, 129, 0.18);
    border-top-color: #059669;
    border-right-color: #10b981;
}

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

.ai-spinner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #10b981;
    animation: floatIcon 2s ease-in-out infinite alternate;
}

[data-theme="light"] .ai-spinner-icon {
    color: #059669;
}

@keyframes floatIcon {
    from { transform: translateY(-2px); }
    to { transform: translateY(2px); }
}

/* Barra de progresso contínua animada */
.ai-loading-progress-track {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

[data-theme="light"] .ai-loading-progress-track {
    background: rgba(0, 0, 0, 0.06);
}

.ai-loading-progress-bar {
    position: absolute;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #10b981, #34d399, transparent);
    animation: aiShimmerIndeterminate 1.4s infinite ease-in-out;
}

.ai-progress-steps {
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md, 8px);
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

[data-theme="light"] .ai-progress-steps {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.ai-step.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
    font-weight: 600;
}

[data-theme="light"] .ai-step.active {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.ai-step.completed {
    color: #10b981;
}

[data-theme="light"] .ai-step.completed {
    color: #059669;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-step.completed .step-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}

.ai-step.active .step-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* ============================================== */
/* SCHEDULE CONFIGURATION MODAL STYLES            */
/* ============================================== */
.schedule-modal-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    width: 92%;
    max-width: 680px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 197, 94, 0.15);
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 28, 24, 0.96);
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    flex-shrink: 0;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.modal-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-modal-close:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.schedule-modal-body::-webkit-scrollbar {
    width: 6px;
}

.schedule-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.schedule-info-pill {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 11.5px;
    color: #86efac;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.95);
}

.modal-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .schedule-modal-card {
        width: 96%;
        max-height: 94vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 14px 16px;
    }
    
    .schedule-slot-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .schedule-slot-row .btn-remove-slot {
        grid-column: 2;
        justify-self: end;
    }
    
    .summary-quick-switch {
        min-width: 100%;
        max-width: 100%;
    }
    
    .schedule-summary-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-summary-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================== */
/* ESTILOS: PLANOS, ASSINATURAS & CHECKOUT MP     */
/* ============================================== */

/* Auth Tabs & Trial Banner */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn:hover {
    color: #f8fafc;
}

.auth-tab-btn.active {
    color: #4ade80;
    border-bottom-color: #22c55e;
}

.trial-benefit-banner {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.trial-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.trial-text {
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0;
}

/* User Balance Pill on Navbar */
.user-balance-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    cursor: help;
}

/* ============================================== */
/* MODERN SAAS PRICING LAYOUT & CONTAINERS        */
/* ============================================== */
#page-pricing {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    width: 100%;
}

.pricing-hero-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pricing-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.pricing-hero-subtitle {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 640px;
}

.pricing-guarantee-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    font-size: 12.5px;
    color: #86efac;
    margin-top: 8px;
    line-height: 1.4;
    text-align: center;
}

.pricing-quick-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.pricing-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pricing-quick-chip:hover {
    color: #ffffff;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
}

.pricing-quick-chip.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

/* User Account Summary Card */
.pricing-user-summary-card {
    max-width: 980px;
    width: 100%;
    margin: 0 auto 36px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pricing-user-summary-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.pricing-user-summary-left {
    display: flex;
    flex-direction: column;
}

.pricing-user-summary-left .summary-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.pricing-user-summary-left h3 {
    font-size: 18px;
    font-weight: 800;
    color: #4ade80;
    margin: 4px 0 3px;
}

.pricing-user-summary-left p {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0;
}

.pricing-user-summary-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pricing-user-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
}

.pricing-user-summary-right .rollover-hint {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 5px;
}

/* Pricing Grid & Main Plan Cards */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto 44px;
    align-items: stretch;
}

.pricing-cards-grid.single-card {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto 40px;
}

.single-plan-card {
    border: 2px solid #10b981 !important;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.16) !important;
    padding: 36px 32px 32px;
}

.pricing-trial-highlight-box {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0 6px;
    text-align: left;
}

.pricing-trial-highlight-box .trial-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
    margin-bottom: 4px;
}

.pricing-trial-highlight-box .trial-text {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}

.pricing-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 26px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.pricing-card.featured {
    border: 1.5px solid #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, #0f172a 100%);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12);
}

.pricing-featured-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    background: #10b981;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-header {
    margin-bottom: 16px;
}

.pricing-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pricing-pill.pill-primary {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.pricing-name {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #f8fafc;
}

.pricing-sub {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 4px 0 0;
}

/* Preço e Custo Unitário */
.pricing-price-container {
    padding: 12px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-main-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-currency {
    font-size: 18px;
    font-weight: 700;
    color: #94a3b8;
}

.pricing-val {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.pricing-period {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.pricing-unit-rate {
    font-size: 12px;
    color: #38bdf8;
    font-weight: 600;
    margin-top: 4px;
}

/* Destaque de Carga Horária */
.pricing-workload-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 16px 0;
    font-size: 12px;
    color: #cbd5e1;
}

.pricing-workload-highlight.featured {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.15);
}

.pricing-workload-highlight strong {
    color: #f8fafc;
}

.pricing-workload-highlight span {
    color: #94a3b8;
}

/* Lista de Recursos / Benefícios */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
}

.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* CTA e Chamada para Ação */
.pricing-cta-box {
    margin-bottom: 20px;
}

.pricing-cta-box .btn {
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.pricing-cta-subtext {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
}

/* Módulo Semestral Compacto no Rodapé */
.pricing-prorata-module {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
}

.pricing-prorata-module.featured {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.25);
}

.prorata-mod-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.prorata-mod-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.prorata-mod-badge {
    font-size: 10px;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.prorata-mod-details {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11.5px;
}

.prorata-mod-desc {
    color: #64748b;
    font-size: 11px;
}

.prorata-mod-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.prorata-mod-old {
    text-decoration: line-through;
    color: #64748b;
    font-size: 10.5px;
}

.prorata-mod-cur {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

.btn-xs {
    padding: 6px 10px;
    font-size: 11.5px;
    border-radius: 6px;
    font-weight: 600;
}

/* ============================================== */
/* TABELA DE COMPARAÇÃO RÁPIDA                    */
/* ============================================== */
.pricing-comparison-section {
    max-width: 980px;
    width: 100%;
    margin: 52px auto 0;
}

.pricing-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

.pricing-comparison-table th,
.pricing-comparison-table td {
    padding: 12px 16px;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-comparison-table th {
    background: rgba(30, 41, 59, 0.8);
    color: #f8fafc;
    font-weight: 700;
    font-size: 13px;
}

.pricing-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pricing-comparison-table .highlight-col {
    background: rgba(16, 185, 129, 0.03);
    border-left: 1px solid rgba(16, 185, 129, 0.12);
    border-right: 1px solid rgba(16, 185, 129, 0.12);
}

/* ============================================== */
/* GUIA: QUAL PLANO ESCOLHER?                     */
/* ============================================== */
.pricing-profiles-section {
    max-width: 980px;
    width: 100%;
    margin: 52px auto 0;
}

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

.pricing-profile-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.pricing-profile-card.featured {
    border-color: rgba(16, 185, 129, 0.3);
}

.profile-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.profile-card-icon.featured {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.profile-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 8px;
}

.profile-card-text {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}

.profile-card-link {
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-card-link:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

/* ============================================== */
/* FAQ INTERATIVO (ACORDEÃO)                      */
/* ============================================== */
.pricing-faq-section {
    max-width: 860px;
    width: 100%;
    margin: 52px auto 0;
}

.pricing-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.faq-item.active {
    border-color: rgba(16, 185, 129, 0.35);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #f8fafc;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #34d399;
}

.faq-arrow {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #34d399;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 18px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 18px 16px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-answer p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* ============================================== */
/* SELO DE CONFIANÇA & SEGURANÇA                  */
/* ============================================== */
.pricing-trust-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto 48px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 24px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badge-item strong {
    display: block;
    font-size: 13px;
    color: #f8fafc;
}

.trust-badge-item span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    margin-top: 2px;
}

/* ============================================== */
/* PACOTES DE AULAS AVULSAS / EXTRAS              */
/* ============================================== */
.extra-lessons-section {
    max-width: 980px;
    width: 100%;
    margin: 0 auto 52px;
}

.extra-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.extra-pkg-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.extra-pkg-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.extra-pkg-card.featured-pkg {
    border-color: rgba(234, 179, 8, 0.45);
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.06) 0%, #0f172a 100%);
    box-shadow: 0 6px 24px rgba(234, 179, 8, 0.08);
}

.pkg-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: inline-block;
    align-self: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pkg-badge.pill-gold {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.extra-pkg-card h4 {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.pkg-price {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin: 10px 0 2px;
}

.pkg-rate {
    font-size: 11.5px;
    color: #64748b;
    display: block;
}

.pkg-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.35;
}

.extra-pkg-card .btn-select-extra {
    margin-top: auto;
    padding: 10px;
    font-weight: 700;
    border-radius: 8px;
}

/* ============================================================ */
/* MODERN SAAS SPLIT CHECKOUT MODAL (MERCADO PAGO)              */
/* ============================================================ */
.split-checkout-card {
    max-width: 780px !important;
    width: 95%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    padding: 0 !important;
}

.checkout-compact-header {
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-header-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-compact-header .modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.checkout-compact-header .modal-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0;
    display: block;
}

/* Split Body: 2 Colunas */
.checkout-split-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 480px;
}

/* Coluna 1: Resumo do Plano (Esquerda) */
.checkout-summary-col {
    background: rgba(15, 23, 42, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.checkout-summary-header {
    margin-bottom: 16px;
}

.checkout-summary-title {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    margin: 4px 0 6px;
}

.checkout-summary-price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.checkout-summary-price {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.checkout-summary-period {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.checkout-summary-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.checkout-summary-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.checkout-summary-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.checkout-summary-total-box {
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    margin-bottom: 12px;
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
}

.checkout-total-row strong {
    font-size: 16px;
    color: #34d399;
}

.checkout-trust-footnote {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.4;
}

.checkout-trust-footnote svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Coluna 2: Meios de Pagamento & Formulários (Direita) */
.checkout-payment-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.checkout-method-selector-wrap {
    margin-bottom: 18px;
}

.checkout-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.checkout-method-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkout-method-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.checkout-method-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.5);
}

.checkout-method-card.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.12);
}

.method-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.checkout-method-card.active .method-card-top {
    color: #34d399;
}

.method-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
}

.method-card-sub {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
    display: block;
}

.checkout-method-card.active .method-card-sub {
    color: #94a3b8;
}

/* Formulário do Cartão */
.checkout-form-modern {
    display: flex;
    flex-direction: column;
}

.checkout-form-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.checkout-sub-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.checkout-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #34d399;
    font-weight: 600;
}

.input-with-brand {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-brand input {
    width: 100%;
    padding-right: 54px !important;
}

.card-brand-badge {
    position: absolute;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    transition: all 0.2s ease;
}

.cvv-hint {
    color: #64748b;
    cursor: help;
    display: inline-flex;
}

.cvv-hint:hover {
    color: #94a3b8;
}

/* Aviso Limpo de Recorrência */
.checkout-clean-notice {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 8px;
    padding: 9px 12px;
    margin-top: 10px;
}

.clean-notice-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #f8fafc;
}

.clean-notice-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    display: block;
}

.checkout-security-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

/* Pix Container */
.pix-qr-container {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pix-qr-box {
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pix-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.pix-copy-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.pix-copy-row input {
    flex: 1;
    font-size: 11px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 6px 10px;
    border-radius: 6px;
}

.pix-status-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(18, 30, 26, 0.7);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    font-size: 11.5px;
    color: #4ade80;
}

.pix-status-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseGlow 1.5s infinite;
}

@media (max-width: 768px) {
    .checkout-split-body {
        grid-template-columns: 1fr;
    }
    .checkout-summary-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 16px;
    }
    .checkout-payment-col {
        padding: 16px;
    }
    .pix-qr-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 860px) {
    #page-pricing {
        padding: 20px 16px 40px;
    }
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
    .extra-packages-grid {
        grid-template-columns: 1fr;
    }
    .pricing-trust-banner {
        grid-template-columns: 1fr;
    }
    .pricing-profiles-grid {
        grid-template-columns: 1fr;
    }
    .pricing-user-summary-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pricing-user-summary-right {
        align-items: flex-start;
    }
}

/* ============================================================ */
/* WIZARD STEP-BY-STEP GENERATOR STYLES                         */
/* ============================================================ */
.wizard-card {
    display: flex;
    flex-direction: column;
}

.wizard-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wizard-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-steps-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

@media (max-width: 950px) {
    .wizard-steps-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 550px) {
    .wizard-steps-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.wizard-step-btn.active {
    color: #fff;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.wizard-step-btn.completed {
    color: var(--text-secondary);
}

.wizard-step-btn .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.wizard-step-btn.active .step-num {
    background: var(--primary);
    color: #022c22;
    font-weight: 800;
}

.wizard-step-btn.completed .step-num {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.wizard-step-pane {
    animation: wizardFade 0.25s ease-out;
}

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

.wizard-pane-header {
    margin-bottom: 16px;
}

.badge-step {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.wizard-step-indicator-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-wizard-next-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wizard-next-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    filter: brightness(1.08);
}

.btn-wizard-next-premium svg {
    transition: transform 0.2s ease;
}

.btn-wizard-next-premium:hover svg {
    transform: translateX(3px);
}

.ai-key-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .ai-key-selector-grid {
        grid-template-columns: 1fr;
    }
}

.ai-key-option-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-key-option-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(15, 23, 42, 0.9);
}

.ai-key-option-card.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.12);
}

.ai-key-option-card input[type="radio"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.ai-key-opt-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ============================================== */
/* GRADE HORARIA INTERATIVA & MODALIDADES SEDUC   */
/* ============================================== */
.step-target-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 20px;
    font-size: 12px;
}

.step-target-label {
    color: var(--text-muted);
}

.step-target-value {
    color: #4ade80;
    font-weight: 600;
}

.schedule-toolbar-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    backdrop-filter: blur(12px);
}

.schedule-toolbar-left,
.schedule-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
}

.select-schedule-dropdown {
    min-width: 280px;
    max-width: 380px;
}

.modality-switch {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.btn-modality {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-modality.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.auto-save-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 3px 10px;
}

.auto-save-status .icon-check-success {
    width: 14px;
    height: 14px;
    stroke: #10b981;
    stroke-width: 2.5;
    fill: none;
}

.modal-card-sm {
    max-width: 480px;
    width: 92%;
}

/* TABELA SEMANAL INTERATIVA */
.schedule-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.5);
}

.schedule-grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.schedule-grid-table th,
.schedule-grid-table td {
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 6px;
}

.schedule-grid-table thead th {
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    padding: 10px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-grid-table th.th-time {
    width: 170px;
    background: rgba(0, 0, 0, 0.45);
    text-align: left;
    padding-left: 14px;
}

.schedule-grid-table th.th-day {
    min-width: 110px;
}

.schedule-grid-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.schedule-grid-table td.td-time-label {
    background: rgba(0, 0, 0, 0.25);
    text-align: left;
    padding: 8px 12px;
    white-space: nowrap;
}

.td-time-label .tempo-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.td-time-label .tempo-hours {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* FAIXAS DE INTERVALO E ALMOÇO (IDÊNTICAS AO ISEDUC) */
.schedule-grid-table tr.tr-intervalo td {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    text-align: center;
}

.intervalo-banner {
    font-size: 11.5px;
    font-style: italic;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* CÉLULAS CLICÁVEIS DE AULAS */
.schedule-cell-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 4px;
}

.schedule-cell-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.schedule-cell-btn.selected {
    background: rgba(34, 197, 94, 0.18);
    border: 1.5px solid #22c55e;
    color: #4ade80;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.schedule-cell-btn.selected-anp {
    background: rgba(139, 92, 246, 0.22);
    border: 1.5px solid #a855f7;
    color: #c084fc;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.schedule-cell-btn .cell-status-text {
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.schedule-cell-btn .cell-time-sub {
    font-size: 9.5px;
    opacity: 0.8;
}

.schedule-cell-btn.selected .cell-status-text {
    color: #86efac;
}

.schedule-cell-btn.selected-anp .cell-status-text {
    color: #e9d5ff;
}

/* BARRA DE MARCAÇÃO DE MODALIDADE DE TEMPO (PRESENCIAL / ANP) */
.schedule-mark-type-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}

.slot-type-switch {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
}

.btn-slot-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

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

.btn-slot-type.active[data-type="presencial"] {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
    color: #4ade80;
}

.btn-slot-type.active[data-type="anp"] {
    background: rgba(147, 51, 234, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
    color: #c084fc;
}

/* EFEITO PULSANTE DE ATENÇÃO */
@keyframes pulseAttention {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        border-color: #3b82f6;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
        border-color: #60a5fa;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        border-color: #3b82f6;
    }
}

.pulse-attention {
    animation: pulseAttention 1.2s infinite ease-in-out !important;
    border-color: #3b82f6 !important;
}

.btn-delete-schedule-quick {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 4px 8px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-delete-schedule-quick:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

/* LINHA DE TOTAIS POR DIA */
.schedule-grid-table tr.tr-totais-dia td {
    background: rgba(0, 0, 0, 0.4);
    font-weight: 700;
    padding: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.schedule-grid-table tr.tr-totais-dia td.td-total-label {
    text-align: right;
    padding-right: 12px;
    text-transform: uppercase;
}

.schedule-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
}

/* MY PLANS GRID & CARDS */
.my-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.4);
}

.plan-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.flex-1 {
    flex: 1;
}

/* RESPONSIVE LAYOUT FOR GENERATOR SINGLE COLUMN */
@media (max-width: 1280px) {
    .generator-single-column {
        max-width: 100%;
    }
}

/* ============================================== */
/* CALENDARIO ESCOLAR & DATAS DE AVALIACAO (PASSO 5) */
/* ============================================== */
.calendar-section-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-lg);
    padding: 18px;
    backdrop-filter: blur(12px);
}

.calendar-card-header {
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-scope-switch {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.btn-calendar-scope {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-calendar-scope.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.cal-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .cal-scope-grid {
        grid-template-columns: 1fr;
    }
}

.cal-scope-card {
    display: block;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cal-scope-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.04);
}

.cal-scope-card.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.cal-scope-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cal-scope-opt-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.global-cal-preview-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.dropzone-sm {
    padding: 16px;
    border-radius: 8px;
}

.badge-calendar-active {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* ============================================== */
/* ANIMAÇÃO MINIMALISTA DE CARREGAMENTO POR IA   */
/* ============================================== */
.ai-minimal-loader {
    position: relative;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 6px;
    padding: 8px 12px;
    overflow: hidden;
    animation: fadeInBanner 0.25s ease-out;
}

.ai-minimal-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-minimal-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(16, 185, 129, 0.25);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: aiSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.ai-minimal-text {
    font-size: 11.5px;
    font-weight: 500;
    color: #34d399;
    letter-spacing: 0.2px;
}

.ai-minimal-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ai-minimal-bar {
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #10b981, #34d399, transparent);
    animation: aiShimmerIndeterminate 1.4s infinite ease-in-out;
}

@keyframes aiShimmerIndeterminate {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

@keyframes aiSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

.dropzone-area.ai-processing {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
    pointer-events: none;
}

.textarea-ai-loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ============================================== */
/* CARD DE AVISO: INCOMPATIBILIDADE DE PERÍODO   */
/* ============================================== */
.card-warning-period {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md, 8px);
    padding: 14px 16px;
    animation: fadeInBanner 0.25s ease-out;
}

[data-theme="light"] .card-warning-period {
    background: #fffbeb;
    border-color: #fcd34d;
}

.warning-period-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-period-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--warning, #f59e0b);
    flex-shrink: 0;
}

.warning-period-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--warning, #f59e0b);
    display: block;
}

[data-theme="light"] .warning-period-title {
    color: #b45309;
}

.warning-period-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.warning-period-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .warning-period-comparison {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.comparison-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comparison-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    font-weight: 600;
}

.comparison-configured strong {
    font-size: 12px;
    color: var(--primary, #10b981);
}

.comparison-detected strong {
    font-size: 12px;
    color: var(--warning, #f59e0b);
}

[data-theme="light"] .comparison-detected strong {
    color: #d97706;
}

.comparison-arrow {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-period-description {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #ef4444;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    color: #f87171;
}

/* ============================================== */
/* ONBOARDING & WELCOME BANNER / MODAL STYLES     */
/* ============================================== */
.onboarding-welcome-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-lg, 12px);
    padding: 18px 20px;
    margin-bottom: 22px;
    text-align: left;
}

.onboarding-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.onboarding-headline {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    margin: 0 0 6px 0;
}

.onboarding-sub {
    font-size: 12.5px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    margin: 0;
}

.onboarding-success-card {
    max-width: 620px;
    width: 92%;
    background: var(--bg-surface, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl, 16px);
    padding: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.onboarding-success-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding-success-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onboarding-bonus-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.3));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.bonus-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.bonus-amount-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bonus-amount {
    font-size: 26px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: -0.5px;
}

.bonus-amount-sub {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.onboarding-bonus-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bonus-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-main, #f8fafc);
}

.onboarding-steps-container {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 18px;
}

.onboarding-steps-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    margin: 0 0 14px 0;
}

.onboarding-step-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.onboarding-step-row:last-child {
    margin-bottom: 0;
}

.onboarding-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary, #3b82f6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.onboarding-step-content strong {
    font-size: 13px;
    color: var(--text-main, #f8fafc);
    display: block;
    margin-bottom: 2px;
}

.onboarding-step-content p {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .onboarding-bonus-card {
        flex-direction: column;
        align-items: flex-start;
    }
}






/* =========================================================================
   SUPERADMIN: STATUS PILLS & BADGES
   ========================================================================= */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.status-pill.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-pill.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill.blocked {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-plan {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-plan.superadmin {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* =========================================================================
   SUPERADMIN: CATALOGO CENTRAL DE DISCIPLINAS
   ========================================================================= */
.card-admin-disciplines-section {
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 1px 1px rgba(168, 85, 247, 0.15);
    position: relative;
    overflow: hidden;
}

.card-admin-disciplines-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #6366f1, #38bdf8);
}

.admin-disciplines-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-disciplines-icon-wrap {
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.badge-tag-cloud {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-disciplines-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.admin-disciplines-toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: end;
}

@media (max-width: 768px) {
    .admin-disciplines-toolbar {
        grid-template-columns: 1fr;
    }
}

.disciplines-tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 84px;
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.discipline-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 8px;
    padding: 6px 12px;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.discipline-tag-pill:hover {
    background: rgba(45, 55, 72, 0.95);
    border-color: rgba(168, 85, 247, 0.65);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
    transform: translateY(-1px);
}

.discipline-tag-pill .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.8);
    flex-shrink: 0;
}

.discipline-tag-pill .tag-name {
    cursor: pointer;
    user-select: none;
}

.discipline-tag-pill .tag-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 6px;
}

.discipline-tag-pill .btn-edit-tag,
.discipline-tag-pill .btn-remove-tag {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: var(--text-muted, #94a3b8);
}

.discipline-tag-pill .btn-edit-tag:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
}

.discipline-tag-pill .btn-remove-tag:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.admin-disciplines-bulk-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(24, 16, 42, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 6px 24px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.2s ease-in-out;
}

.bulk-edit-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-edit-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
    display: inline-block;
}

.btn-xxs {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 6px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.form-textarea-bulk {
    width: 100%;
    height: 180px;
    max-height: 250px;
    min-height: 140px;
    box-sizing: border-box;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    line-height: 1.6;
    background: #080c14;
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #f1f5f9;
    padding: 12px 14px;
    border-radius: 8px;
    resize: vertical;
}

.form-textarea-bulk:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    outline: none;
}

.admin-disciplines-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.admin-disciplines-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    flex-shrink: 0;
}


/* =========================================================================
   SUPERADMIN: BARRA DE SAUDE & ACOES MODERNAS
   ========================================================================= */
.admin-health-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-health-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
}

.health-dot.active {
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.health-label {
    color: var(--text-muted, #94a3b8);
}

.health-value {
    font-weight: 600;
}

.btn-whatsapp-action {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.btn-whatsapp-action:hover {
    background: rgba(34, 197, 94, 0.3) !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

.btn-email-action {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.btn-email-action:hover {
    background: rgba(56, 189, 248, 0.3) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

.btn-courtesy-action {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.btn-courtesy-action:hover {
    background: rgba(168, 85, 247, 0.3) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
}

.admin-actions-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}


/* =========================================================================
   SUPERADMIN: METRICAS AVANCADAS DE SAAS
   ========================================================================= */
.saas-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.saas-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #22c55e);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* =========================================================================
   SUPERADMIN: INDICADOR ONLINE / ULTIMO ACESSO, PLANOS E DROPDOWN DE ACOES
   ========================================================================= */
.online-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #cbd5e1;
    white-space: nowrap;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-indicator-dot.online {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25), 0 0 6px rgba(34, 197, 94, 0.7);
    animation: statusPulse 2s infinite ease-in-out;
}

.status-indicator-dot.offline {
    background-color: #64748b;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6), 0 0 4px rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0), 0 0 8px rgba(34, 197, 94, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0), 0 0 4px rgba(34, 197, 94, 0.6);
    }
}

.plans-count-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}

.plans-count-num {
    font-size: 12.5px;
    font-weight: 700;
    color: #60a5fa;
}

.plans-count-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-action-select-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 155px;
}

.admin-action-select {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border-radius: 6px;
    padding: 6px 26px 6px 10px;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.admin-action-select:hover {
    border-color: rgba(96, 165, 250, 0.5);
    background-color: rgba(30, 41, 59, 0.95);
    color: #ffffff;
}

.admin-action-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.admin-action-select option {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 8px;
}

/* ==========================================================================
   TEMA CLARO AVANÇADO (LIGHT THEME OVERRIDES) - iSEDUC COPILOTO
   Garante contraste perfeito, harmonia visual e legibilidade em todas as telas
   ========================================================================== */

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-glass: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --border-hover: rgba(22, 163, 74, 0.45);
    
    --primary: #15803d;
    --primary-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --primary-hover: #166534;
    
    --accent-gold: #b45309;
    --accent-gold-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    
    --success: #15803d;
    --danger: #dc2626;
    --warning: #d97706;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 1. Header e Navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .nav-link {
    color: #475569 !important;
}

[data-theme="light"] .nav-link:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .nav-link.active {
    background: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

[data-theme="light"] .user-badge {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] #btn-theme-toggle {
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
}

[data-theme="light"] #btn-theme-toggle:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 2. Todos os Cards e Superfícies */
[data-theme="light"] .card,
[data-theme="light"] .glass-card,
[data-theme="light"] .auth-card,
[data-theme="light"] .admin-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .profile-card,
[data-theme="light"] .wizard-card-full,
[data-theme="light"] #admin-disciplines-card,
[data-theme="light"] .card-dark {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}

/* 3. Títulos e Tipografia */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .page-title,
[data-theme="light"] .section-title,
[data-theme="light"] .modal-title,
[data-theme="light"] .summary-name,
[data-theme="light"] .pricing-hero-title,
[data-theme="light"] .pricing-name,
[data-theme="light"] .pricing-val,
[data-theme="light"] .profile-card-title,
[data-theme="light"] .faq-question,
[data-theme="light"] .checkout-summary-title,
[data-theme="light"] .checkout-summary-price,
[data-theme="light"] .method-card-title,
[data-theme="light"] .extra-pkg-card h4,
[data-theme="light"] .pkg-price,
[data-theme="light"] .prorata-mod-cur {
    color: #0f172a !important;
}

[data-theme="light"] .page-subtitle,
[data-theme="light"] .modal-subtitle,
[data-theme="light"] .text-muted,
[data-theme="light"] p.text-muted,
[data-theme="light"] span.text-muted {
    color: #64748b !important;
}

/* 4. Formulários e Controles (Inputs, Selects, Textareas) */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="date"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] textarea,
[data-theme="light"] select,
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .admin-action-select {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus,
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .admin-action-select:focus {
    border-color: #16a34a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16) !important;
}

[data-theme="light"] select option,
[data-theme="light"] .admin-action-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] label,
[data-theme="light"] .form-group label {
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* 5. Stepper e Navegação das Etapas do Wizard */
[data-theme="light"] .wizard-steps-nav,
[data-theme="light"] .wizard-steps {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .wizard-step-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .wizard-step-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .wizard-step-btn.active {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

[data-theme="light"] .wizard-step-btn.completed {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #16a34a !important;
}

[data-theme="light"] .btn-stepper {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-stepper:hover {
    background: #e2e8f0 !important;
    color: #15803d !important;
}

/* 6. Etapa 2: Grade Semanal Interativa */
[data-theme="light"] .schedule-preset-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .preset-name-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .schedule-day-chip {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .schedule-grid-table th,
[data-theme="light"] .schedule-grid-table thead th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .schedule-grid-table th.th-time {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .schedule-grid-table td {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .schedule-grid-table td.td-time-label {
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .schedule-grid-table tr.tr-intervalo td {
    background: #f8fafc !important;
    color: #64748b !important;
    border-top: 1px dashed #cbd5e1 !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

[data-theme="light"] .schedule-grid-table tr.tr-totais-dia td {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-top: 2px solid #cbd5e1 !important;
}

[data-theme="light"] .schedule-grid-table tbody tr:hover td {
    background: #f8fafc !important;
}

[data-theme="light"] .schedule-slot-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .schedule-slot-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .schedule-slot-btn.active {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

[data-theme="light"] .btn-modality {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .btn-modality.active {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* 7. Etapa 4: Metodologias (Checklist) */
[data-theme="light"] .check-chip {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .check-chip:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

[data-theme="light"] .check-chip input:checked + span,
[data-theme="light"] .check-chip.active {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    color: #15803d !important;
    font-weight: 600 !important;
}

/* 8. Etapa 5 e 6: Cards de Seleção (IA e Calendário) */
[data-theme="light"] .ai-key-option-card,
[data-theme="light"] .cal-scope-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .ai-key-option-card:hover,
[data-theme="light"] .cal-scope-card:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc !important;
}

[data-theme="light"] .ai-key-option-card.active,
[data-theme="light"] .cal-scope-card.active {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
}

[data-theme="light"] .ai-key-opt-title,
[data-theme="light"] .cal-scope-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

[data-theme="light"] .ai-key-opt-desc,
[data-theme="light"] .cal-scope-desc {
    color: #475569 !important;
}

[data-theme="light"] .step6-summary-box,
[data-theme="light"] .step6-calendar-section {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .step6-summary-box * {
    color: #0f172a !important;
}

/* 9. Tabelas: SuperAdmin Professores, Histórico e Prévia */
[data-theme="light"] .data-table,
[data-theme="light"] .users-table,
[data-theme="light"] .table-modern,
[data-theme="light"] .pricing-comparison-table {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .data-table th,
[data-theme="light"] .users-table th,
[data-theme="light"] .table-modern th,
[data-theme="light"] .pricing-comparison-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .data-table td,
[data-theme="light"] .users-table td,
[data-theme="light"] .table-modern td,
[data-theme="light"] .pricing-comparison-table td {
    background: #ffffff !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .data-table tr:hover td,
[data-theme="light"] .users-table tr:hover td,
[data-theme="light"] .table-modern tr:hover td {
    background: #f8fafc !important;
}

/* 10. Catálogo Central de Disciplinas */
[data-theme="light"] #admin-disciplines-tags {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .discipline-tag-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

[data-theme="light"] .discipline-tag-chip:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .discipline-tag-chip.active {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #15803d !important;
}

/* 11. Modals */
[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .modal-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .modal-footer {
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .btn-modal-close {
    color: #64748b !important;
}

[data-theme="light"] .btn-modal-close:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

/* 12. Botões Secundários e de Ação */
[data-theme="light"] .btn-secondary {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-outline-primary {
    border: 1.5px solid #16a34a !important;
    color: #15803d !important;
    background: transparent !important;
}

[data-theme="light"] .btn-outline-primary:hover {
    background: #f0fdf4 !important;
    color: #166534 !important;
}


/* =========================================================
   AUTH GATE & PLAN STEP COMPACT (ALIGNED WITH EXTENSION)
   ========================================================= */
.input-password-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-password-wrapper input {
    width: 100%;
    padding-right: 40px !important;
}

.btn-toggle-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.15s ease;
}

.btn-toggle-eye:hover {
    color: var(--primary, #10b981);
}

.gate-plan-card-compact {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius-md, 10px);
    padding: 16px;
    margin-top: 12px;
}

.gate-plan-compact-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 12px;
    padding: 2px 10px;
    margin-bottom: 8px;
}

.gate-plan-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gate-plan-compact-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main, #ffffff);
    margin: 0;
}

.gate-plan-compact-sub {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    display: block;
    margin-top: 2px;
}

.gate-plan-compact-price {
    text-align: right;
    line-height: 1.1;
}

.gate-plan-compact-price strong {
    font-size: 18px;
    font-weight: 800;
    color: #34d399;
}

.gate-plan-compact-price small {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    display: block;
}

.gate-realtime-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 6px;
    color: #93c5fd;
    font-size: 11.5px;
    font-weight: 500;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    flex-shrink: 0;
    animation: pulseDot 1.4s ease-in-out infinite;
}

.pulse-indicator.completed {
    animation: none !important;
    background: #22c55e !important;
    box-shadow: 0 0 6px #22c55e !important;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.auth-gate-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 11px;
    margin: 12px 0;
}

.auth-gate-separator::before,
.auth-gate-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-gate-separator span {
    padding: 0 10px;
}

.gate-alert-box {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.gate-alert-box.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.gate-alert-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.gate-alert-box.warning {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #facc15;
}
