/* 
   Mapa do Cérebro de Bolso - Estilos Customizados
   Aesthetics: Futuristic Glassmorphism, Neon Glows & Fluid Animations
*/

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

:root {
    --bg-color: #030712;
    --card-bg: rgba(10, 15, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Neon Palettes */
    --neon-blue: #0072ff;
    --neon-cyan: #00f2fe;
    --neon-green: #00ff87;
    --neon-yellow: #f9d423;
    --neon-orange: #ff4e50;
    --neon-purple: #bd00ff;
    --neon-red: #ff0844;
    
    /* Glows */
    --glow-blue: 0 0 15px rgba(0, 114, 255, 0.5);
    --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.5);
    --glow-green: 0 0 15px rgba(0, 255, 135, 0.5);
    --glow-yellow: 0 0 15px rgba(249, 212, 35, 0.5);
    --glow-orange: 0 0 15px rgba(255, 78, 80, 0.5);
    --glow-purple: 0 0 15px rgba(189, 0, 255, 0.5);
    --glow-red: 0 0 15px rgba(255, 8, 68, 0.5);
    
    /* System Font stacks */
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background canvas stretching */
#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* GRID SETUP */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* CARD BASE */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.02);
}

/* Badge overlay numbers */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-weight: 700;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Headings */
.card-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: -0.75rem;
}

/* Highlight elements */
.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
    font-weight: 600;
}

.highlight-red {
    color: var(--neon-orange);
    text-shadow: 0 0 8px rgba(255, 78, 80, 0.3);
    font-weight: 600;
}

/* ---------------------------------------------------- */
/* PANEL 1: HERO CARD */
/* ---------------------------------------------------- */
.card-hero {
    grid-column: span 1;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.8) 0%, rgba(9, 14, 26, 0.95) 100%);
    border-color: rgba(0, 114, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 580px;
}

.card-hero:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}

.hero-content {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--neon-yellow) 0%, var(--neon-orange) 50%, var(--neon-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(249, 212, 35, 0.2));
}

.hero-tag {
    background: var(--neon-blue);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    width: fit-content;
    margin-top: 0.5rem;
    box-shadow: var(--glow-blue);
}

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

#hero-brain-canvas {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-icon {
    color: var(--neon-cyan);
    filter: drop-shadow(var(--glow-cyan));
    display: flex;
    align-items: center;
}

.brand-name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.hero-quote {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    line-height: 1.6;
}

/* ---------------------------------------------------- */
/* PANEL 2: SISTEMA DO CÓDIGO DO CÉREBRO */
/* ---------------------------------------------------- */
.system-steps {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.system-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    position: relative;
    transition: all var(--transition-fast);
}

.system-step:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Step color-specific themes */
.system-step[data-step="1"] { border-left: 3px solid var(--neon-cyan); }
.system-step[data-step="2"] { border-left: 3px solid var(--neon-green); }
.system-step[data-step="3"] { border-left: 3px solid var(--neon-yellow); }
.system-step[data-step="4"] { border-left: 3px solid var(--neon-purple); }
.system-step[data-step="5"] { border-left: 3px solid var(--neon-orange); }
.system-step[data-step="6"] { border-left: 3px solid var(--neon-blue); }

.step-num-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 1.25rem;
}

.step-icon {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

/* Active system step states */
.system-step.active {
    background: rgba(255, 255, 255, 0.06);
}
.system-step[data-step="1"].active .step-icon { color: var(--neon-cyan); filter: drop-shadow(var(--glow-cyan)); }
.system-step[data-step="2"].active .step-icon { color: var(--neon-green); filter: drop-shadow(var(--glow-green)); }
.system-step[data-step="3"].active .step-icon { color: var(--neon-yellow); filter: drop-shadow(var(--glow-yellow)); }
.system-step[data-step="4"].active .step-icon { color: var(--neon-purple); filter: drop-shadow(var(--glow-purple)); }
.system-step[data-step="5"].active .step-icon { color: var(--neon-orange); filter: drop-shadow(var(--glow-orange)); }
.system-step[data-step="6"].active .step-icon { color: var(--neon-blue); filter: drop-shadow(var(--glow-blue)); }

.system-step.active .step-number {
    color: var(--text-primary);
}

.step-info {
    flex: 1;
}

.step-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.step-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.step-checkbox-wrapper {
    display: flex;
    align-items: center;
}

/* Connectors */
.step-connector {
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 2.25rem;
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.2);
}

.custom-checkbox:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 6px rgba(0, 242, 254, 0.3);
}

.custom-checkbox:checked {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.custom-checkbox:checked::after {
    content: "✓";
    color: #030712;
    font-weight: 900;
    font-size: 0.75rem;
}

/* Specific step checked color syncs */
.system-step[data-step="2"] .custom-checkbox:checked { background: var(--neon-green); border-color: var(--neon-green); box-shadow: var(--glow-green); }
.system-step[data-step="3"] .custom-checkbox:checked { background: var(--neon-yellow); border-color: var(--neon-yellow); box-shadow: var(--glow-yellow); }
.system-step[data-step="4"] .custom-checkbox:checked { background: var(--neon-purple); border-color: var(--neon-purple); box-shadow: var(--glow-purple); }
.system-step[data-step="5"] .custom-checkbox:checked { background: var(--neon-orange); border-color: var(--neon-orange); box-shadow: var(--glow-orange); }
.system-step[data-step="6"] .custom-checkbox:checked { background: var(--neon-blue); border-color: var(--neon-blue); box-shadow: var(--glow-blue); }

.system-step.checked .step-title {
    text-decoration: line-through;
    color: var(--text-muted);
}
.system-step.checked .step-desc {
    color: var(--text-muted);
}

/* Destination Step */
.destination-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.95) 100%);
    border: 1px dashed var(--neon-cyan);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.05);
}

.dest-icon {
    color: var(--neon-cyan);
    filter: drop-shadow(var(--glow-cyan));
    display: flex;
    align-items: center;
}

.dest-info h4 {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dest-info p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.step-footer-tip {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

/* ---------------------------------------------------- */
/* PANEL 3: ANTES DE ESTUDAR */
/* ---------------------------------------------------- */
.objective-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.objective-box label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.objective-box input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition-fast);
}

.objective-box input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 114, 255, 0.3);
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.checklist-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    margin-top: 0.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checklist-checkbox:checked {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.checklist-checkbox:checked::after {
    content: "✓";
    color: #030712;
    font-size: 0.75rem;
    font-weight: 800;
}

.checklist-icon {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checklist-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Strikethrough completed checklist items */
.checklist-item:has(.checklist-checkbox:checked) {
    background: rgba(255, 255, 255, 0.01);
    opacity: 0.6;
}

.checklist-item:has(.checklist-checkbox:checked) .checklist-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-item:has(.checklist-checkbox:checked) .checklist-icon {
    color: var(--text-muted);
}

.mini-brain-reading {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

#mini-brain-canvas {
    width: 100%;
    height: 100%;
}

/* Progress bar mental readiness */
.progress-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.progress-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
    box-shadow: var(--glow-cyan);
    border-radius: 9999px;
    transition: width var(--transition-normal);
}

/* Callout Boxes */
.callout-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
}

.callout-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.callout-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.info-callout {
    background: rgba(249, 212, 35, 0.04);
    border-color: rgba(249, 212, 35, 0.1);
}

.blue-callout {
    background: rgba(0, 114, 255, 0.04);
    border-color: rgba(0, 114, 255, 0.1);
}

.dark-callout {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

/* ---------------------------------------------------- */
/* PANEL 4: DURANTE O ESTUDO (POMODORO) */
/* ---------------------------------------------------- */
.timer-widget {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timer-modes {
    display: flex;
    width: 100%;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    padding: 0.2rem;
}

.timer-mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4rem 0.2rem;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timer-mode-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.timer-mode-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mode-specific active states for timer button indicators */
.timer-mode-btn[data-mode="focus"].active { color: var(--neon-orange); }
.timer-mode-btn[data-mode="shortBreak"].active { color: var(--neon-green); }
.timer-mode-btn[data-mode="longBreak"].active { color: var(--neon-blue); }

.timer-display-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8;
}

.timer-circle-progress {
    fill: none;
    stroke: var(--neon-orange);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 439.8; /* 2 * PI * r (r=70) */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear, stroke var(--transition-normal);
    filter: drop-shadow(0 0 4px rgba(255, 78, 80, 0.3));
}

.timer-center-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-clock {
    font-family: var(--font-title);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.timer-mode-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

/* Button UI system */
.btn {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    outline: none;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
    color: #fff;
    box-shadow: var(--glow-blue);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: rgba(255, 8, 68, 0.15);
    border-color: rgba(255, 8, 68, 0.2);
    color: var(--neon-red);
}

.btn-danger:hover:not(:disabled) {
    background: var(--neon-red);
    color: #fff;
    box-shadow: var(--glow-red);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-sm {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
}

/* Audio toggle */
.sound-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 1.15rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 0.75rem;
    width: 0.75rem;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.toggle-switch input:checked + .slider {
    background-color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(13px);
}

/* Cycle counts */
.pomodoro-cycles {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.cycle-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.cycle-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.dot.filled {
    background: var(--neon-orange);
    border-color: var(--neon-orange);
    box-shadow: var(--glow-orange);
}

.cycle-tip {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

/* Conditional list displays */
.checklist-conditional {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-section-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-orange);
    letter-spacing: 0.05em;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.green-accent {
    color: var(--neon-green) !important;
}

.pomodoro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pomodoro-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.check-bullet {
    color: var(--neon-green);
    flex-shrink: 0;
}

.cross-bullet {
    color: var(--neon-red);
    flex-shrink: 0;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ---------------------------------------------------- */
/* PANEL 5: DEPOIS DE ESTUDAR */
/* ---------------------------------------------------- */
.post-study-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-block {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.block-badge {
    background: var(--neon-blue);
    color: #fff;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.7rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-block-header h3 {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.block-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

#recall-notes {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.65rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: all var(--transition-fast);
}

#recall-notes:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 114, 255, 0.2);
}

.recall-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Scheduler */
.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.date-selector input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    outline: none;
}

.revision-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.revision-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.35rem;
    font-size: 0.75rem;
}

.revision-label {
    font-weight: 600;
    color: var(--text-primary);
}

.revision-date {
    color: var(--neon-cyan);
    font-family: var(--font-title);
    font-weight: 500;
}

/* Voice Explainer Box */
.speech-recorder-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.speech-controls {
    display: flex;
    gap: 0.5rem;
}

.speech-controls button {
    flex: 1;
}

.speech-visualizer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 8, 68, 0.05);
    border: 1px dashed rgba(255, 8, 68, 0.2);
    border-radius: 0.5rem;
}

.visualizer-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.visualizer-bars .bar {
    width: 3px;
    height: 100%;
    background: var(--neon-red);
    border-radius: 1px;
    animation: bounce 0.8s ease-in-out infinite;
}

.visualizer-bars .bar:nth-child(2) { animation-delay: 0.15s; }
.visualizer-bars .bar:nth-child(3) { animation-delay: 0.3s; }
.visualizer-bars .bar:nth-child(4) { animation-delay: 0.45s; }
.visualizer-bars .bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

.timer-countdown {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-red);
}

.transcription-output {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.65rem;
}

.transcription-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.transcription-text {
    font-size: 0.75rem;
    color: var(--text-primary);
    max-height: 80px;
    overflow-y: auto;
    font-style: italic;
    line-height: 1.4;
}

/* Toast alert system */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--neon-blue);
    box-shadow: var(--glow-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------- */
/* PANEL 6: O CICLO DA APRENDIZAGEM */
/* ---------------------------------------------------- */
.cycle-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

.cycle-svg {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.cycle-node {
    transition: transform var(--transition-fast);
}

.cycle-node:hover {
    transform: scale(1.12) translate(-3px, -3px); /* Offset correction dynamic */
}

/* Position adjustments for translation matrix inside cycle nodes */
#node-acao:hover { transform: translate(150px, 70px) scale(1.12); }
#node-recompensa:hover { transform: translate(219px, 110px) scale(1.12); }
#node-vitoria:hover { transform: translate(219px, 190px) scale(1.12); }
#node-motivacao:hover { transform: translate(150px, 230px) scale(1.12); }
#node-habito:hover { transform: translate(81px, 190px) scale(1.12); }
#node-resultado:hover { transform: translate(81px, 110px) scale(1.12); }

.node-circle {
    transition: fill var(--transition-fast), stroke-width var(--transition-fast);
}

.cycle-node:hover .node-circle {
    fill: rgba(255, 255, 255, 0.05);
    stroke-width: 3px;
}

.node-text {
    font-family: var(--font-title);
    font-size: 8px;
    font-weight: 700;
    fill: var(--text-secondary);
    letter-spacing: 0.05em;
    pointer-events: none;
}

.cycle-node:hover .node-text {
    fill: #fff;
}

.cycle-path {
    transition: stroke var(--transition-normal), stroke-width var(--transition-normal);
}

.cycle-path.active {
    stroke: var(--neon-cyan);
    stroke-width: 4px;
}

.center-node {
    animation: rotateBrain 12s linear infinite;
    transform-origin: 150px 150px;
}

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

.cycle-info-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    padding: 0.85rem;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#cycle-detail-title {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

#cycle-detail-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cursor-pointer {
    cursor: pointer;
}

/* ---------------------------------------------------- */
/* PANEL 7: AS 7 REGRAS */
/* ---------------------------------------------------- */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rule-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.rule-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    user-select: none;
}

.rule-num {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-yellow);
    flex-shrink: 0;
}

/* Make each rule number cycle colors matches original logo colors */
.rule-item:nth-child(1) .rule-num { color: var(--neon-blue); }
.rule-item:nth-child(2) .rule-num { color: var(--neon-green); }
.rule-item:nth-child(3) .rule-num { color: var(--neon-yellow); }
.rule-item:nth-child(4) .rule-num { color: var(--neon-purple); }
.rule-item:nth-child(5) .rule-num { color: var(--neon-orange); }
.rule-item:nth-child(6) .rule-num { color: var(--neon-cyan); }
.rule-item:nth-child(7) .rule-num { color: var(--neon-red); }

.rule-header h3 {
    font-size: 0.8rem;
    font-weight: 600;
    flex: 1;
    color: var(--text-primary);
}

.rule-toggle-icon {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0.85rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
}

/* Rule active toggled state */
.rule-item.active {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.rule-item.active .rule-content {
    max-height: 120px;
    padding: 0.25rem 0.85rem 0.85rem 2.85rem;
}

.rule-item.active .rule-toggle-icon {
    transform: rotate(45deg);
    color: #fff;
}

/* ---------------------------------------------------- */
/* PANEL 8: O CÓDIGO */
/* ---------------------------------------------------- */
.brain-optimizer-widget {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.optimizer-graphics {
    width: 100%;
    display: flex;
    justify-content: center;
}

.optimizer-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

#optimizer-brain-canvas {
    width: 100%;
    height: 100%;
}

.optimizer-state-label {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-family: var(--font-title);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    color: var(--text-secondary);
}

.optimizer-slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: var(--glow-blue);
    border: 2px solid #fff;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-percentage {
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-blue);
}

/* Anchored checklist items list */
.anchor-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.anchor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.anchor-bullet {
    font-size: 1rem;
    flex-shrink: 0;
}

.anchor-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.border-glow-blue {
    border: 1px dashed var(--neon-blue) !important;
    box-shadow: inset 0 0 10px rgba(0, 114, 255, 0.05);
}

/* ---------------------------------------------------- */
/* FOOTER BANNER */
/* ---------------------------------------------------- */
.footer-banner {
    grid-column: span 4;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.95) 0%, rgba(9, 14, 26, 0.8) 100%);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
    gap: 2rem;
}

.footer-banner:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.12);
}

.footer-neural-container {
    width: 320px;
    height: 150px;
    flex-shrink: 0;
    position: relative;
}

#footer-brain-canvas {
    width: 100%;
    height: 100%;
}

.footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
    text-align: right;
}

.footer-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    color: var(--neon-cyan);
    filter: drop-shadow(var(--glow-cyan));
}

.footer-brand-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.footer-brand-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------------------------------------------------- */
/* RESPONSIVENESS AND MEDIA QUERIES */
/* ---------------------------------------------------- */

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-banner {
        grid-column: span 2;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .footer-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-neural-container {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .footer-banner {
        grid-column: span 1;
    }
    
    .container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .card-hero {
        min-height: auto;
    }
    
    .footer-quote {
        font-size: 0.95rem;
    }
}
