/* Reset e Variáveis - Design escuro (Hub de Estudos) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tema escuro (exemplo) */
    --bg-start: #0f172a;
    --bg-end: #020617;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-green: #22c55e;
    --accent-blue: #38bdf8;
    --accent-purple: #a78bfa;
    --accent-yellow: #eab308;
    /* Compatibilidade com páginas existentes */
    --primary-color: #22c55e;
    --primary-hover: #16a34a;
    --secondary-color: rgba(255, 255, 255, 0.08);
    --glass-bg: var(--card-bg);
    --glass-border: var(--card-border);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --blur-amount: 12px;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
    background: var(--bg-start);
}

/* Background - gradiente escuro fixo (evitar 100vw para não criar listra branca com scrollbar) */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
    z-index: -1;
}

/* Container Principal */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

/* Glass Card (Glassmorphism) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.icon-btn {
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

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

/* Indicador de Modo */
.mode-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.mode-indicator span {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

/* Timer Container */
.timer-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    min-height: 200px;
}

.timer-display {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: -2px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timer-pulse {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(34, 197, 94, 0.3) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.timer-pulse.active {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Indicador de Ciclos */
.cycles-indicator {
    text-align: center;
    margin: 30px 0;
}

.cycles-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.cycles-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cycle-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.cycle-dot.completed {
    background: var(--primary-color);
    border-color: var(--primary-hover);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.cycles-count {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Controles */
.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.btn {
    padding: 12px 24px;
    min-height: 44px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-hover);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

/* Estatísticas */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

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

.modal {
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.setting-group input {
    padding: 12px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.setting-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-footer .btn {
    flex: 1;
}

/* ========== Modal reutilizável (sucesso / erro / aviso) ========== */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.app-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.app-modal-box {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 24px 28px;
    max-width: 400px;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.app-modal-overlay.is-open .app-modal-box {
    transform: scale(1);
}

.app-modal-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.app-modal-icon-wrap.success {
    background: rgba(34, 197, 94, 0.2);
}

.app-modal-icon-wrap.error {
    background: rgba(239, 68, 68, 0.2);
}

.app-modal-icon-wrap.warning {
    background: rgba(234, 179, 8, 0.2);
}

.app-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.app-modal-message {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.app-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    .app-modal-actions {
        flex-direction: row;
    }
}

.app-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    border: none;
    font-family: inherit;
}

.app-modal-btn:hover {
    opacity: 0.9;
}

.app-modal-btn:active {
    transform: scale(0.98);
}

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

.app-modal-btn--primary {
    background: var(--accent-green);
    color: #0f172a;
}

.app-modal-box.error .app-modal-btn--primary {
    background: #ef4444;
    color: #fff;
}

.app-modal-box.warning .app-modal-btn--primary {
    background: var(--accent-yellow);
    color: #0f172a;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.toast-content {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 24px;
    box-shadow: 0 8px 32px var(--shadow-medium);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    min-width: 200px;
    text-align: center;
}

/* Responsividade */
@media (max-width: 600px) {
    .top-bar {
        padding: 10px 12px;
        min-height: 44px;
    }

    body.has-top-bar {
        padding-top: 64px;
    }

    .method-page .container {
        min-height: calc(100vh - 64px);
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .glass-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .timer-display {
        font-size: 56px;
    }

    .timer-pulse {
        width: 180px;
        height: 180px;
    }

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

    .app-title {
        font-size: 24px;
    }

    .modal {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .timer-display {
        font-size: 48px;
    }

    .timer-pulse {
        width: 160px;
        height: 160px;
    }
}

/* ========== Hub de Métodos de Estudo (novo design) ========== */
.hub-page {
    width: 100%;
    min-height: 100vh;
    padding: 40px 24px 100px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .hub-page { padding: 48px 32px 120px; }
}
@media (min-width: 1024px) {
    .hub-page { padding: 56px 40px 120px; }
}

.hub-page .hub-inner {
    max-width: 896px;
    width: 100%;
    margin: 0 auto;
}

/* Header do Hub */
.hub-header {
    margin-bottom: 40px;
}

.hub-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hub-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.hub-breadcrumb a:hover {
    color: var(--accent-green);
}

.hub-breadcrumb svg {
    width: 16px;
    height: 16px;
}

.hub-title-wrap {
    text-align: center;
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .hub-title-wrap { text-align: left; }
}

.hub-page .hub-main-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
@media (min-width: 768px) {
    .hub-page .hub-main-title { font-size: 1.875rem; }
}

.hub-page .hub-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}
@media (min-width: 768px) {
    .hub-page .hub-subtitle { font-size: 1.125rem; }
}

.hub-header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
@media (min-width: 768px) {
    .hub-header-actions { justify-content: flex-end; margin-top: -48px; }
}

/* Stats bar: mesma largura do grid de cards */
.hub-stats-bar {
    margin-bottom: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hub-stats-bar.glass-card {
    max-width: none;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
}
@media (min-width: 768px) {
    .hub-stats-bar.glass-card { justify-content: flex-start; }
}

.hub-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hub-stat-icon.streak { background: rgba(34, 197, 94, 0.2); }
.hub-stat-icon.today { background: rgba(56, 189, 248, 0.2); }
.hub-stat-icon.cards { background: rgba(167, 139, 250, 0.2); }

.hub-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hub-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.hub-stat-value.streak { color: var(--accent-green); }
.hub-stat-value.today { color: var(--accent-blue); }
.hub-stat-value.cards { color: var(--accent-purple); }

.hub-stats-hint {
    margin: -16px 0 24px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.hub-first-visit-hint {
    margin-top: 4px;
}

/* Acesso rápido: Backup e Apoie (visível sem scroll) */
.hub-quick-access {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    justify-content: center;
}

.hub-quick-access-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
}

.hub-quick-backup {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.hub-quick-backup:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.hub-quick-support {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.hub-quick-support:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.hub-quick-icon {
    font-size: 1.1rem;
}

/* Grid de métodos */
.hub-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .hub-methods-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .hub-methods-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.method-card {
    display: block;
    text-align: left;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.method-card:active {
    transform: translateY(-2px);
}

.method-card .icon-container {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.method-card:hover .icon-container {
    transform: scale(1.1);
}

.method-card .icon-container.green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.1) 100%); }
.method-card .icon-container.blue { background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.1) 100%); }
.method-card .icon-container.purple { background: linear-gradient(135deg, rgba(167, 139, 250, 0.3) 0%, rgba(167, 139, 250, 0.1) 100%); }
.method-card .icon-container.yellow { background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(234, 179, 8, 0.1) 100%); }

.method-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.method-card .method-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.method-card .method-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.method-card .method-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.method-card .method-status .dot.pulse {
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Animações de entrada */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }
.stagger-9 { animation-delay: 0.45s; }

/* Botão de ação rápida (Iniciar) */
.quick-action-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    background: var(--accent-green);
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 50;
    border: none;
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.5);
}

.quick-action-btn:active {
    transform: scale(0.98);
}

.quick-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Backup no Hub */
.hub-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--card-border);
}

/* Backup & Segurança: destaque visual, hierarquia clara */
.hub-backup {
    margin-top: 40px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.06);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.hub-backup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-backup-icon {
    font-size: 1.25rem;
}

.hub-backup-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.hub-backup-bullets li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.hub-backup-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

.hub-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.hub-disclaimer {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--accent-blue);
    padding: 14px 16px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 20px 0;
}

.hub-list {
    list-style: none;
    padding-left: 0;
    color: var(--text-secondary);
}

.hub-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.hub-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

.hub-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hub-backup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hub-backup-buttons .btn {
    flex: 1;
    min-width: 140px;
}

/* Botão danger: resetar sistema */
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Guias / Conteúdos na home */
.hub-guias-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.guia-link-card {
    display: inline-block;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.guia-link-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-blue);
}

/* Apoie o projeto: hierarquia elevada, separação clara */
.hub-support {
    margin-top: 40px;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.hub-support-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.hub-support-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.hub-support-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hub-support-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    min-width: 0;
}

.hub-support-pix {
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.06);
}

.hub-support-copy.copied {
    background: var(--accent-green);
    color: #0f172a;
    border-color: var(--accent-green);
}

.hub-support-label {
    font-size: 13px;
    color: var(--text-secondary);
    width: 100%;
}

.hub-support-value {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.hub-support-copy {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
}

.hub-support-paypal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #0070ba 0%, #003087 100%);
    border: none;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 112, 186, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hub-support-paypal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.5);
    color: #fff;
    opacity: 0.95;
}

.hub-support-paypal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.5);
}

.hub-support-paypal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hub-support-security {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hub-support-security-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.hub-support-security-text strong {
    color: var(--accent-green);
    font-weight: 600;
}

/* Compatibilidade: cards antigos ainda usados em outras views */
.hub-container {
    align-items: flex-start;
    padding: 20px;
    min-height: 100vh;
}

.hub-card {
    max-width: 800px;
}

/* Seletor de idioma (bandeira) */
.lang-select {
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.8)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.lang-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.lang-select option {
    background: #2d2d3a;
    color: #fff;
}

/* Barra superior (Pomodoro global + breadcrumb + idioma) */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--card-border);
    min-height: 48px;
}

body.has-top-bar {
    padding-top: 72px;
}

/* Bloco Pomodoro global (dentro da top-bar ou barra própria) */
.pomodoro-global-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pomodoro-global-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--card-border);
    min-height: 44px;
}

.pomodoro-global-bar .pomodoro-global-block {
    width: 100%;
    max-width: 320px;
    justify-content: space-between;
}

body.has-pomodoro-bar:not(.has-top-bar) {
    padding-top: 56px;
}

.pomodoro-global-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.pomodoro-global-link:hover {
    color: var(--accent-green);
}

.pomodoro-global-icon {
    font-size: 1.2rem;
}

.pomodoro-global-time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    min-width: 3.5em;
}

.pomodoro-global-mode {
    color: var(--text-secondary);
    font-size: 13px;
}

.pomodoro-global-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.pomodoro-global-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-green);
}

/* Status do Pomodoro nos cards de estudo */
.card-pomodoro-status {
    margin-bottom: 12px;
    min-height: 0;
}

.card-pomodoro-status:empty {
    display: none;
}

.card-pomodoro-status-link {
    display: inline-block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.card-pomodoro-status-link:hover {
    color: var(--accent-green);
}

/* Rich Text Editor */
.rte-wrapper {
    margin-bottom: 16px;
}

.rte-wrapper-no-toolbar .rte-toolbar {
    display: none;
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: var(--secondary-color);
    border: 1px solid var(--card-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.rte-toolbar-btn {
    width: 36px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rte-toolbar-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--card-border);
}

.rte-toolbar-btn:focus {
    outline: none;
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rte-editor {
    width: 100%;
    padding: 12px 14px;
    min-height: 120px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0 0 12px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    overflow-y: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rte-editor:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.rte-editor[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: var(--text-secondary);
}

.rte-editor h1 { font-size: 1.35em; margin: 0.5em 0; font-weight: 700; }
.rte-editor h2 { font-size: 1.2em; margin: 0.4em 0; font-weight: 600; }
.rte-editor ul, .rte-editor ol { margin: 0.5em 0; padding-left: 1.5em; }
.rte-editor p { margin: 0.4em 0; }
.rte-editor b, .rte-editor strong { font-weight: 600; }
.rte-editor i, .rte-editor em { font-style: italic; }
.rte-editor u { text-decoration: underline; }

.rte-content-display h1 { font-size: 1.2em; margin: 0.4em 0; font-weight: 700; }
.rte-content-display h2 { font-size: 1.1em; margin: 0.35em 0; font-weight: 600; }
.rte-content-display ul, .rte-content-display ol { margin: 0.4em 0; padding-left: 1.4em; }
.rte-content-display p { margin: 0.35em 0; }
.rte-content-display b, .rte-content-display strong { font-weight: 600; }
.rte-content-display i, .rte-content-display em { font-style: italic; }
.rte-content-display u { text-decoration: underline; }

.rte-toolbar-wrap .rte-toolbar {
    border-radius: 12px;
    border-bottom: 1px solid var(--card-border);
}

.task-list .task-desc.rte-editor {
    min-height: 56px;
    font-size: 14px;
}

/* Breadcrumb no canto superior esquerdo */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent-green);
}

.breadcrumb-separator {
    color: var(--text-secondary);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Páginas de método (layout comum) */
.method-page .glass-card {
    max-width: 600px;
}

.method-page .container {
    min-height: calc(100vh - 72px);
    padding-top: 32px;
    padding-bottom: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.method-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.method-page .back-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.guia-page-wrap .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 24px;
    padding: 10px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(var(--blur-amount));
    transition: all 0.2s ease;
}

.guia-page-wrap .back-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mindmap-sidebar-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0;
    padding: 10px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mindmap-sidebar-header .back-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========== Dashboard full-screen ========== */
.dashboard-page-wrap {
    min-height: calc(100vh - 72px);
    width: 100%;
    padding: 32px 24px 48px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .dashboard-page-wrap {
        min-height: calc(100vh - 64px);
        padding: 24px 16px 40px;
    }
}

.dashboard-inner {
    max-width: 960px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header .back-link {
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

@media (min-width: 768px) {
    .dashboard-title { font-size: 2rem; }
}

.dashboard-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

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

@media (min-width: 768px) {
    .dashboard-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .dashboard-metrics {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

.dashboard-metric {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100px;
    justify-content: center;
}

.dashboard-metric-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dashboard-metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .dashboard-metric-value { font-size: 2rem; }
}

.dashboard-metric-unit {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-pomodoro-status {
    margin-bottom: 32px;
}

.dashboard-pomodoro-content {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 20px;
}

.dashboard-pomodoro-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
}

.dashboard-pomodoro-link:hover {
    color: var(--accent-green);
}

.dashboard-pomodoro-link #dashboardPomodoroTime {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.dashboard-pomodoro-cycle {
    color: var(--text-secondary);
    font-size: 14px;
}

.dashboard-chart-section {
    margin-bottom: 40px;
}

.dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.dashboard-chart-content {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
}

.dashboard-chart {
    min-height: 180px;
}

.dashboard-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4px;
    height: 160px;
    padding-bottom: 28px;
}

.dashboard-chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.dashboard-chart-bar {
    width: 100%;
    max-width: 28px;
    min-height: 6px;
    margin-top: auto;
    border-radius: 6px 6px 0 0;
    background: var(--card-border);
    transition: height 0.25s ease, background 0.2s ease;
}

.dashboard-chart-bar.active {
    background: linear-gradient(180deg, var(--accent-green) 0%, #16a34a 100%);
}

.dashboard-chart-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dashboard-footer {
    margin-top: 32px;
}

.dashboard-footer .btn {
    min-width: 160px;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 8px;
}

.task-list li.done {
    opacity: 0.7;
}

.task-list li.done .task-name,
.task-list li.done .task-desc {
    text-decoration: line-through;
}

.task-list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.task-list .task-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-list .task-name {
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 0;
    width: 100%;
}

.task-list .task-name:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.task-list .task-desc {
    font-size: 13px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    resize: vertical;
    min-height: 20px;
    padding: 0;
    width: 100%;
    line-height: 1.4;
}

.task-list .task-desc:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.task-list .task-desc::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.task-list .task-text {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
}

.task-list .task-text:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Ivy Lee: formulário de nova tarefa */
.ivy-add-form {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.ivy-add-form .setting-group {
    margin-bottom: 12px;
}

.ivy-add-form .setting-group:last-of-type {
    margin-bottom: 16px;
}

.ivy-desc-input {
    resize: vertical;
    min-height: 48px;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== Mapa Mental ========== */
.mindmap-page {
    overflow: hidden;
    height: 100vh;
}

.mindmap-page .top-bar {
    flex-shrink: 0;
}

.mindmap-layout {
    display: flex;
    height: calc(100vh - 48px);
    min-height: 0;
}

/* Oculto visualmente, mantido para leitores de tela e SEO (h1 mapa mental) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Links contextuais SEO (interlinking interno), não intrusivos */
.seo-outros-links {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 1.25rem;
    margin-bottom: 0;
}
.seo-outros-links a {
    color: var(--accent-blue);
    text-decoration: none;
}
.seo-outros-links a:hover {
    text-decoration: underline;
}

/* Sidebar fixa */
.mindmap-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-right: 1px solid var(--glass-border);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.mindmap-sidebar-header {
    margin-bottom: 8px;
}

.mindmap-sidebar .mindmap-seo-links {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.mindmap-sidebar .mindmap-seo-links a {
    color: var(--accent-blue);
    text-decoration: none;
}

.mindmap-sidebar .mindmap-seo-links a:hover {
    text-decoration: underline;
}


.mindmap-not-saved-banner {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    margin-bottom: 16px;
}

.mindmap-not-saved-icon {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.mindmap-not-saved-text {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    color: var(--accent-yellow);
    font-weight: 500;
}

.mindmap-not-saved-sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.mindmap-btn-download {
    background: var(--accent-blue);
    color: var(--bg-start);
    border-color: var(--accent-blue);
}

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

.mindmap-icon-download {
    border: none;
    background: transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid currentColor;
    width: 0;
    height: 0;
    margin-top: 4px;
}

.mindmap-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mindmap-sidebar-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mindmap-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mindmap-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.mindmap-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.mindmap-sidebar-btn.active {
    background: var(--accent-green);
    color: var(--bg-start);
    border-color: var(--accent-green);
}

.mindmap-sidebar-btn.mindmap-btn-delete.active,
.mindmap-sidebar-btn[data-action="remove"]:focus {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.mindmap-btn-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.mindmap-icon-circle {
    border-radius: 50%;
}

.mindmap-icon-diamond {
    transform: rotate(45deg);
}

.mindmap-icon-select {
    background: linear-gradient(135deg, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%);
    border: none;
    width: 18px;
    height: 18px;
}

.mindmap-icon-node {
    border: 2px solid currentColor;
    background: var(--card-bg);
}

.mindmap-icon-link {
    border: none;
    background: repeating-linear-gradient(90deg, currentColor 0, currentColor 2px, transparent 2px, transparent 8px);
    height: 2px;
    width: 18px;
}

.mindmap-icon-delete {
    position: relative;
}

.mindmap-icon-delete::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mindmap-btn-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Canvas fullscreen */
.mindmap-canvas-wrap {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: var(--secondary-color);
    cursor: default;
}

.mindmap-canvas-wrap.panning {
    cursor: grabbing;
}

.mindmap-canvas-wrap.pan-cursor {
    cursor: grab;
}

.mindmap-svg {
    display: block;
    width: 100%;
    height: 100%;
    cursor: inherit;
}

.mindmap-svg .mindmap-node {
    cursor: grab;
    /* Hit-area 100%: clique em qualquer área do nó (corpo, texto) inicia ligação/seleção */
    pointer-events: bounding-box;
}

.mindmap-svg .mindmap-node:active {
    cursor: grabbing;
}

.mindmap-node-shape {
    fill: var(--card-bg);
    stroke: var(--accent-green);
    stroke-width: 2;
    transition: stroke 0.15s, filter 0.15s;
    pointer-events: none;
}

.mindmap-node.selected .mindmap-node-shape {
    stroke: var(--accent-blue);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

/* Nó selecionado como origem da ligação (modo Criar Ligação) */
.mindmap-node.link-source .mindmap-node-shape {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7)) drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

/* Área de clique em toda a superfície do nó (corpo, texto); não depender da borda */
.mindmap-node-hit {
    pointer-events: all;
}

/* Modo Criar Ligação: cursor indica que o próximo clique cria a ligação */
.mindmap-canvas-wrap.mindmap-mode-addEdge .mindmap-svg .mindmap-node {
    cursor: crosshair;
}

.mindmap-node-text {
    fill: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    pointer-events: none;
    user-select: none;
}

.mindmap-node-edit-wrap {
    overflow: hidden;
}

.mindmap-node-edit {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 24px;
    margin: 0;
    padding: 4px 6px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    outline: none;
    border: none;
    resize: none;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
    overflow: auto;
    cursor: text;
    pointer-events: all;
}

.mindmap-node-edit:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4);
}

.mindmap-node-edit:empty::before {
    content: attr(data-placeholder);
    color: var(--text-secondary);
}

.mindmap-resize-handle {
    fill: var(--accent-blue);
    stroke: var(--text-primary);
    stroke-width: 1;
    cursor: nwse-resize;
    pointer-events: all;
}

.mindmap-resize-handle[data-handle="sw"],
.mindmap-resize-handle[data-handle="ne"] {
    cursor: nesw-resize;
}

.mindmap-resize-handle[data-handle="nw"],
.mindmap-resize-handle[data-handle="se"] {
    cursor: nwse-resize;
}

.mindmap-edge-line {
    stroke: var(--text-secondary);
    stroke-width: 2;
    fill: none;
    pointer-events: none;
    transition: stroke 0.15s;
}

.mindmap-edges .mindmap-edge.selected + .mindmap-edge-line {
    stroke: var(--accent-blue);
    stroke-width: 3;
}

.mindmap-edge {
    cursor: pointer;
}

/* Páginas de conteúdo / guias (SEO-first) */
.guia-page-wrap {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

.guia-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guia-breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.guia-breadcrumb a:hover {
    text-decoration: underline;
}

.guia-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 24px;
    padding: 10px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(var(--blur-amount));
    transition: all 0.2s ease;
}

.guia-back-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.guia-section {
    margin-bottom: 32px;
}

.guia-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.guia-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: var(--text-primary);
}

.guia-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: var(--text-primary);
}

.guia-section p {
    line-height: 1.75;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.guia-section ul,
.guia-section ol {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.guia-section li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.guia-highlight {
    background: rgba(56, 189, 248, 0.1);
    border-left: 4px solid var(--accent-blue);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.guia-highlight p {
    margin: 0;
    color: var(--text-primary);
}

.guia-cta-box {
    margin-top: 32px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
}

.guia-cta-box p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.guia-cta-box .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guia-cta-box .btn-primary {
    background: var(--accent-green);
    color: #0f172a;
    border: none;
}

.guia-cta-box .btn-primary:hover {
    filter: brightness(1.1);
}

.guia-outros {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guia-outros a {
    color: var(--accent-blue);
    text-decoration: none;
}

.guia-outros a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .guia-page-wrap {
        padding: 20px 16px;
    }
    .guia-section h1 {
        font-size: 1.5rem;
    }
    .guia-section h2 {
        font-size: 1.2rem;
    }
}
