:root {
    --bg: #edeae5;
    --sidebar-bg: #ffffff;
    --sidebar-w: 260px;
    --text: #2d2d2d;
    --muted: #7a7a7a;
    --accent: #b5cdf8;
    --accent-dark: #3A7BFF;
    --aurora-gradient: linear-gradient(90deg, #2ED573, #1ECBE1, #3A7BFF);
    --card: #ffffff;
    --card-bg: #ffffff;
    --border: #d8d4cd;
    --shadow: 0 1px 4px rgba(0,0,0,0.08), 0 6px 24px rgba(0,0,0,0.10);
    --nav-active: #f0f4ff;
    --green: #d4edda;
    --yellow: #fff8e1;
    --red: #fdecea;
}
body.dark-mode {
    --bg: #121218;
    --sidebar-bg: #1a1a24;
    --text: #ddd;
    --muted: #9aa0ba;
    --accent: #7b9ef0;
    --accent-dark: #5a80e8;
    --card: #1e1e2a;
    --card-bg: #1e1e2a;
    --border: #2a2a3a;
    --shadow: 0 1px 4px rgba(0,0,0,0.25), 0 6px 24px rgba(0,0,0,0.35);
    --nav-active: #24243a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    z-index: 200;
    transition: transform 0.3s ease, background 0.4s;
    overflow-y: auto;
}
.logo-wrap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.55rem; }
.logo-icon-img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.logo-wordmark { font-size: 1.25rem; font-weight: 700; color: var(--accent-dark); letter-spacing: -0.5px; }
.sidebar-close { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.baby-chip {
    display: flex; align-items: center; gap: 10px;
    background: var(--nav-active); border-radius: 12px;
    padding: 10px 14px; margin-bottom: 1.5rem;
}
.baby-avatar { font-size: 1.6rem; }
.baby-name { font-weight: 600; font-size: 0.95rem; }
.baby-age-small { font-size: 0.78rem; color: var(--muted); }
.nav-links { list-style: none; flex: 1; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; margin-bottom: 4px;
    border-radius: 10px; cursor: pointer;
    font-size: 0.92rem; transition: 0.2s;
}
.nav-item:hover { background: var(--nav-active); }
.nav-item.active { background: var(--nav-active); color: var(--accent-dark); font-weight: 600; }
.nav-icon { font-size: 1.1rem; }
.sidebar-footer { padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.btn-lang {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    text-align: center;
    letter-spacing: 0.03em;
}
.btn-lang:hover { color: var(--accent-dark); border-color: var(--accent-dark); background: var(--accent-soft); }
.btn-lang-login {
    background: none;
    border: 1px solid #dde4f0;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: #7a8599;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-lang-login:hover { color: #6a9de8; border-color: #6a9de8; }
.btn-3am {
    width: 100%; padding: 10px; border: none; border-radius: 10px;
    background: #1a1a2e; color: #c8b8ff; font-size: 0.85rem; cursor: pointer; transition: 0.2s;
}
body.dark-mode .btn-3am { background: var(--accent); color: white; }
.btn-logout {
    width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 10px;
    background: transparent; color: var(--muted); font-size: 0.82rem; cursor: pointer;
}

/* ── TOP BAR ── */
.content { margin-left: var(--sidebar-w); min-height: 100vh; }
.top-bar {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 2.5rem; border-bottom: 1px solid var(--border);
    background: var(--sidebar-bg); position: sticky; top: 0; z-index: 100;
}
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }
.top-bar-title { font-weight: 600; font-size: 1.1rem; flex: 1; }
.top-user { font-size: 0.85rem; color: var(--muted); }

/* ── SECTIONS ── */
.app-section { display: none; padding: 2.5rem; max-width: 1100px; }
.app-section.active-section { display: block; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.9rem; font-weight: 600; }
.page-sub { color: var(--muted); margin-top: 0.3rem; }

/* ── CARDS ── */
.card {
    background: var(--card); border-radius: 18px; padding: 1.8rem;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: background 0.4s;
}
.mt-2 { margin-top: 1.5rem; }
.highlight-card { border-top: 4px solid var(--accent); }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── CARD BITS ── */
.card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.card-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.card-value { font-size: 1.6rem; font-weight: 700; margin: 0.3rem 0; }
.card-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ── ADAPTIVE WAKE WINDOW BAR ── */
.ww-bar-wrap {
    margin-top: 0.6rem;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.ww-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.8s ease, background 0.4s;
}
.ww-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.3rem;
    letter-spacing: 0.2px;
}

/* ── STATUS BANNER ── */
.status-banner {
    display: flex; align-items: center; gap: 1rem;
    background: linear-gradient(120deg, #e8f5e9, #e3f2fd);
    border-radius: 16px; padding: 1.2rem 1.8rem; margin-bottom: 2rem;
}
body.dark-mode .status-banner { background: linear-gradient(120deg, #1a2f1a, #1a2030); }
.status-icon { font-size: 2rem; }
.status-banner p { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* ── BUTTONS ── */
button { font-family: 'Inter', sans-serif; }
.btn-primary {
    padding: 11px 24px;
    background: var(--aurora-gradient);
    color: white;
    border: none; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease; margin-top: 1rem;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #25c464, #18b8cc, #2f6ee0);
    box-shadow: 0 4px 18px rgba(58,123,255,0.3);
    transform: translateY(-1px);
}
.btn-small {
    padding: 7px 16px; background: var(--accent); color: white;
    border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: 0.2s; display: inline-block;
}
.btn-danger {
    padding: 10px 22px; background: #fdecea; color: #c0392b;
    border: 1px solid #f5c6cb; border-radius: 10px; font-size: 0.88rem;
    cursor: pointer; display: block;
}
.window-badge {
    display: inline-block; padding: 5px 14px;
    background: #e8f5e9; color: #2e7d32;
    border-radius: 20px; font-size: 0.82rem; margin-top: 1rem;
}

/* ── MARKERS ── */
.marker-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.marker-item { font-size: 0.9rem; padding: 8px 12px; background: var(--bg); border-radius: 8px; }

/* ── MINI TIMELINE ── */
.timeline-mini { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.tl-item { display: flex; gap: 1rem; align-items: flex-start; }
.tl-time { font-size: 0.8rem; color: var(--muted); min-width: 45px; padding-top: 2px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; }
.tl-text { font-size: 0.9rem; }

/* ── ROUTINE ── */
.routine-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.routine-list { display: flex; flex-direction: column; gap: 0.6rem; }
.routine-item {
    display: flex; gap: 1rem; align-items: center;
    padding: 10px 14px; background: var(--bg); border-radius: 10px;
}
.routine-time { font-size: 0.85rem; color: var(--muted); min-width: 50px; font-weight: 600; }
.routine-type { font-size: 1rem; }
.routine-desc { font-size: 0.9rem; flex: 1; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 5px; color: var(--muted); }
input, select, textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 0.9rem; background: var(--bg);
    color: var(--text); font-family: 'Inter', sans-serif; outline: none; transition: border 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

/* ── ACTIVITIES ── */
.activity-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.btn-activity {
    padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); cursor: pointer; font-size: 0.9rem;
    transition: 0.2s; font-family: 'Inter', sans-serif;
}
.btn-activity:hover { border-color: var(--accent); background: var(--nav-active); }

/* ── Botão de sono activo (bebé está a dormir) ── */
.btn-activity.sleeping {
    border-color: #64b5f6;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    font-weight: 600;
    line-height: 1.3;
    animation: sleepPulse 2.5s ease-in-out infinite;
}
.dark-mode .btn-activity.sleeping {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2a47 100%);
    border-color: #42a5f5;
    color: #90caf9;
}
.btn-activity.sleeping:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    border-color: #42a5f5;
}
@keyframes sleepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(100,181,246,0.45); }
    50%       { box-shadow: 0 0 0 7px rgba(100,181,246,0); }
}
.sleep-elapsed {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 1px;
}
.btn-activity.feeding {
    border-color: #f48fb1;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    color: #880e4f;
    font-weight: 600;
    line-height: 1.3;
    animation: feedPulse 2.5s ease-in-out infinite;
}
.dark-mode .btn-activity.feeding {
    background: linear-gradient(135deg, #4a1530 0%, #3b0f26 100%);
    border-color: #f06292;
    color: #f48fb1;
}
.btn-activity.feeding:hover {
    background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%);
    border-color: #e91e63;
}
@keyframes feedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,143,177,0.5); }
    50%       { box-shadow: 0 0 0 7px rgba(244,143,177,0); }
}
.feed-elapsed {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 1px;
}
.feed-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.7rem; margin: 1rem 0; }
.feed-btn {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 1rem 0.5rem; background: var(--card-bg); border: 2px solid var(--border);
    border-radius: 14px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
    color: var(--text); transition: all 0.18s;
}
.feed-btn:hover { border-color: #f48fb1; background: #fce4ec; }
.feed-btn:active { transform: scale(0.97); }
.feed-emoji { font-size: 1.9rem; line-height: 1; }

.activity-log { font-size: 0.9rem; color: var(--muted); line-height: 2.2; }
.activity-entry { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.activity-suggestion { margin-bottom: 1rem; }
.act-controls { display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.18s; }
.activity-entry:hover .act-controls { opacity: 1; }
.act-edit-btn, .act-del-btn {
    background: none; border: none; cursor: pointer; font-size: 0.85rem;
    padding: 2px 5px; border-radius: 6px; line-height: 1; transition: background 0.15s;
}
.act-edit-btn:hover { background: var(--nav-active); }
.act-del-btn:hover { background: #fde8e8; }
.role-settings-btn {
    flex: 1; padding: 0.6rem 0.4rem; border: 2px solid var(--border); border-radius: 10px;
    background: var(--card-bg); color: var(--text); font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: 0.18s; text-align: center;
}
.role-settings-btn:hover { border-color: var(--accent); background: var(--nav-active); }
.role-settings-btn.active { border-color: var(--accent-dark); background: var(--nav-active); box-shadow: 0 0 0 2px rgba(101,126,234,0.18); }
.data-start-banner {
    background: var(--nav-active); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.55rem 0.9rem; margin-bottom: 1rem;
    font-size: 0.8rem; color: var(--muted); line-height: 1.5;
}
.data-start-banner strong { color: var(--text); }
.edit-act-field { margin-bottom: 0.9rem; }
.edit-act-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.3rem; }
.edit-act-field input, .edit-act-field select {
    width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--border);
    border-radius: 10px; background: var(--input-bg, var(--card-bg)); color: var(--text);
    font-size: 0.95rem; box-sizing: border-box;
}
.edit-act-delete-btn {
    width: 100%; margin-top: 0.5rem; padding: 0.75rem;
    background: #fde8e8; color: #c62828; border: 1.5px solid #f9a8a8;
    border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.edit-act-delete-btn:hover { background: #f9a8a8; }
.activity-suggestion ul { padding-left: 1.5rem; margin-top: 0.4rem; line-height: 1.9; font-size: 0.9rem; }

/* ── CRY ANALYSIS ── */
.cry-types { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cry-badge {
    padding: 6px 14px; background: var(--nav-active); border-radius: 20px;
    font-size: 0.82rem; font-weight: 500;
}
.cry-controls { display: flex; align-items: center; gap: 1rem; }
.cry-wave { display: flex; align-items: center; gap: 4px; height: 30px; }
.cry-wave span {
    display: inline-block; width: 4px; background: var(--accent-dark);
    border-radius: 4px; animation: wave 1s ease-in-out infinite;
}
.cry-wave span:nth-child(1) { animation-delay: 0s; height: 10px; }
.cry-wave span:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.cry-wave span:nth-child(3) { animation-delay: 0.2s; height: 28px; }
.cry-wave span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.cry-wave span:nth-child(5) { animation-delay: 0.4s; height: 12px; }
@keyframes wave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.8); } }
.result-card { padding: 1.2rem; background: var(--nav-active); border-radius: 12px; }

/* ── NOISE ── */
.noise-card {
    text-align: center; cursor: pointer; transition: 0.2s;
    border: 2px solid transparent;
}
.noise-card:hover, .noise-card.selected { border-color: var(--accent); }
.noise-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.noise-controls-bar { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 1rem; align-items: center; margin-top: 1rem; }
.noise-controls-bar label { font-size: 0.85rem; font-weight: 500; }
input[type="range"] { height: 4px; }

/* ── ORACLE ── */
.oracle-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip {
    padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 20px;
    background: var(--bg); font-size: 0.82rem; cursor: pointer; transition: 0.2s;
    font-family: 'Inter', sans-serif;
}
.chip:hover { border-color: var(--accent); }
.chip.chip-active {
    border-color: var(--accent); background: linear-gradient(90deg, #2ED57322, #3A7BFF22);
    color: var(--accent-dark); font-weight: 600;
}
.oracle-input { display: flex; flex-direction: column; gap: 0.8rem; }
.oracle-answer-box {
    padding: 1.2rem; background: linear-gradient(135deg, #f0f4ff, #fce4ec);
    border-radius: 12px; font-size: 0.95rem; line-height: 1.7;
}
body.dark-mode .oracle-answer-box { background: linear-gradient(135deg, #1a1a30, #2a1a20); }
.oracle-answer-header {
    font-weight: 700; font-size: 0.88rem; color: var(--accent-dark);
    margin-bottom: 0.7rem; letter-spacing: 0.01em;
}
.oracle-answer-text { font-size: 0.95rem; line-height: 1.75; color: var(--text); }
.oracle-data-ctx {
    background: var(--nav-active); border-radius: 8px; padding: 0.7rem 1rem;
    margin-bottom: 0.8rem; font-size: 0.82rem; color: var(--muted);
}
.oracle-data-ctx strong { color: var(--text); }
.oracle-low-data {
    background: #fff8e1; border-left: 3px solid #f9a825; padding: 0.5rem 0.8rem;
    border-radius: 6px; font-size: 0.8rem; margin-bottom: 0.8rem; color: #7a5200;
}
body.dark-mode .oracle-low-data {
    background: #2a2000; border-left-color: #f9a825; color: #ffcc80;
}
.support-items { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.support-item { padding: 1rem; background: var(--bg); border-radius: 12px; }
.support-item p { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }

/* ── TIMELINE ── */
.timeline-phases { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.phase-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding: 1rem 1.5rem; background: var(--card); border-radius: 14px;
    border: 2px solid var(--border); cursor: pointer; transition: 0.2s; font-size: 0.9rem;
}
.phase-card:hover, .phase-card.active-phase { border-color: var(--accent); color: var(--accent-dark); }
.phase-icon { font-size: 1.8rem; }
.phase-arrow { font-size: 1.2rem; color: var(--muted); }
.milestone-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.milestone { padding: 10px 14px; background: var(--bg); border-radius: 10px; font-size: 0.9rem; }
.milestone.done { color: #2e7d32; }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.family-card {
    padding: 1.2rem; background: var(--bg); border-radius: 14px;
    display: flex; flex-direction: column; gap: 0.5rem; align-items: center; text-align: center;
}
.family-icon { font-size: 1.6rem; }

/* ── PLANS ── */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card {
    background: var(--card); border-radius: 20px; padding: 2rem;
    border: 2px solid var(--border); display: flex; flex-direction: column; gap: 0.8rem;
}
.plan-card.featured { border-color: var(--accent-dark); box-shadow: 0 8px 30px rgba(122,170,244,0.2); }
.plan-badge {
    display: inline-block; padding: 5px 14px; background: var(--nav-active);
    border-radius: 20px; font-size: 0.78rem; font-weight: 600; width: fit-content;
}
.plan-badge.popular { background: var(--accent); color: white; }
.plan-name { font-size: 1.1rem; font-weight: 600; }
.plan-price { font-size: 2rem; font-weight: 700; color: var(--accent-dark); }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; flex: 1; }
.btn-plan {
    width: 100%; padding: 12px; border: 2px solid var(--border); border-radius: 12px;
    background: transparent; cursor: pointer; font-size: 0.9rem; font-weight: 600;
    transition: 0.2s; font-family: 'Inter', sans-serif; color: var(--text);
}
.btn-plan.current { opacity: 0.5; cursor: not-allowed; }
.btn-plan-cta { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.btn-plan:not(.current):hover { border-color: var(--accent-dark); }

/* ── PRIVACY ── */
.privacy-table { margin-top: 1rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.privacy-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 0; }
.privacy-row > div { padding: 10px 14px; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.privacy-row.header > div { background: var(--nav-active); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.rights-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.right-item { padding: 10px 14px; background: var(--bg); border-radius: 10px; font-size: 0.9rem; }

/* ── ROUTINE STATES ── */
.routine-item.past { opacity: 0.45; }
.routine-item.current {
    background: linear-gradient(90deg, #e8f0fe, #fce4ec);
    border-left: 3px solid var(--accent-dark);
    font-weight: 500;
}
body.dark-mode .routine-item.current { background: linear-gradient(90deg, #1a1a30, #2a1a20); }
.routine-now {
    font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
    background: var(--accent-dark); color: white; border-radius: 20px;
    letter-spacing: 0.5px; white-space: nowrap;
}

/* ── INSIGHT BAR ── */
.insight-bar {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem;
}
.insight-chip {
    padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
    background: var(--card); border: 1px solid var(--border);
}
.insight-chip.ok { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.insight-chip.warn { background: #fff8e1; color: #f57c00; border-color: #ffe082; }
.insight-chip.danger { background: #fdecea; color: #c62828; border-color: #ffcdd2; }
body.dark-mode .insight-chip.ok { background: #0d2b0d; color: #81c784; border-color: #2e5a2e; }
body.dark-mode .insight-chip.warn { background: #2b2000; color: #ffb74d; border-color: #5a4400; }
body.dark-mode .insight-chip.danger { background: #2b0d0d; color: #ef9a9a; border-color: #5a1a1a; }

/* ── FOOTER ── */
.app-footer {
    margin-left: var(--sidebar-w);
    border-top: 1px solid var(--border);
    background: var(--sidebar-bg);
    padding: 0.55rem 2rem;
    transition: background 0.4s;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
}
.footer-brand {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent-dark);
    white-space: nowrap;
}
.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
}
.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.78rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.footer-links a:hover { color: var(--accent-dark); }
.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    margin-left: auto;
}

/* ── CONTACT BAR (inside cards) ── */
.contact-bar {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.contact-bar .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* ── PROFILE CONTEXT BANNER ── */
.profile-context-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(120deg, #eef3ff, #f5f0ff);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-dark);
}
.profile-context-banner .pcb-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.profile-context-banner strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}
.profile-context-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}
body.dark-mode .profile-context-banner {
    background: linear-gradient(120deg, #1e2340, #221a30);
}

/* ════════════════════════════════
   RESPONSIVE — Multi-breakpoint
   ════════════════════════════════ */

/* ── Tablet + small laptop (max 1024px) ── */
@media (max-width: 1024px) {
    :root { --sidebar-w: 230px; }
    .app-section { max-width: 100%; padding: 2rem; }
    .card { padding: 1.4rem; }
    .plans-grid { grid-template-columns: 1fr 1fr; }
    .page-header h1 { font-size: 1.6rem; }
}

/* ── Tablet portrait (max 768px) ── */
@media (max-width: 768px) {
    /* Sidebar overlay */
    .sidebar { transform: translateX(-100%); width: 260px; }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.18); }
    .sidebar-close { display: block; }
    .content { margin-left: 0; width: 100%; min-width: 0; }
    .hamburger { display: block; }

    /* Top bar */
    .top-bar { padding: 0.9rem 1.2rem; }

    /* Sections */
    .app-section { padding: 1.4rem; }
    .page-header { margin-bottom: 1.4rem; }
    .page-header h1 { font-size: 1.5rem; }

    /* Cards */
    .card { padding: 1.2rem; border-radius: 14px; }
    .highlight-card { border-top-width: 3px; }
    .card-value { font-size: 1.4rem; }

    /* Grids */
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .family-grid { grid-template-columns: 1fr 1fr; }
    .plans-grid { grid-template-columns: 1fr; }

    /* Status banner */
    .status-banner { padding: 1rem 1.2rem; gap: 0.8rem; }
    .status-icon { font-size: 1.6rem; }

    /* Privacy table */
    .privacy-row { grid-template-columns: 1fr; }
    .privacy-row.header { display: none; }
    .privacy-row > div { border-bottom: 1px solid var(--border); }
    .privacy-row > div:first-child { font-weight: 600; background: var(--nav-active); }

    /* Noise */
    .noise-controls-bar { grid-template-columns: auto 1fr; gap: 0.6rem; }

    /* Routine */
    .routine-desc { font-size: 0.85rem; }
    .routine-item { gap: 0.6rem; padding: 9px 12px; }

    /* Oracle chips — scroll horizontally on tablet */
    .oracle-chips { flex-wrap: wrap; }

    /* Footer */
    .app-footer { margin-left: 0; padding: 0.5rem 1rem; }
    .footer-copy { margin-left: 0; }

    /* Timeline phases */
    .timeline-phases { gap: 0.5rem; }
    .phase-card { padding: 0.8rem 1rem; font-size: 0.82rem; }
    .phase-arrow { display: none; }
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {
    /* Sections */
    .app-section { padding: 1rem; padding-bottom: 4rem; }
    .page-header { margin-bottom: 1rem; }
    .page-header h1 { font-size: 1.3rem; }
    .page-sub { font-size: 0.82rem; }

    /* Cards */
    .card { padding: 1rem; border-radius: 12px; }
    .card-icon { font-size: 1.4rem; }
    .card-value { font-size: 1.3rem; }
    .card-label { font-size: 0.75rem; }

    /* All grids → single column */
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .family-grid { grid-template-columns: 1fr; }

    /* Status banner — stack vertically */
    .status-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
    }
    .status-banner strong { font-size: 0.95rem; }

    /* Profile context banner */
    .profile-context-banner { padding: 0.8rem 1rem; gap: 0.7rem; }
    .profile-context-banner .pcb-icon { font-size: 1.6rem; }

    /* Activity buttons — 2 per row */
    .activity-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .btn-activity { padding: 9px 10px; font-size: 0.85rem; text-align: center; }

    /* Routine */
    .routine-time { font-size: 0.78rem; min-width: 40px; }
    .routine-desc { font-size: 0.82rem; }
    .routine-now { font-size: 0.65rem; padding: 2px 8px; }
    .routine-item { gap: 0.5rem; padding: 8px 10px; }

    /* Cry analysis */
    .cry-controls { flex-wrap: wrap; }

    /* Oracle chips — full width individually */
    .oracle-chips { gap: 0.4rem; }
    .chip { padding: 7px 12px; font-size: 0.8rem; }
    .oracle-input textarea { font-size: 0.9rem; }

    /* Timeline phases — 2 per row */
    .timeline-phases { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .phase-card { padding: 0.7rem; font-size: 0.8rem; }
    .phase-icon { font-size: 1.4rem; }

    /* Noise controls */
    .noise-controls-bar { grid-template-columns: auto 1fr; font-size: 0.82rem; }

    /* Plans — already single column at 768, stays same */
    .plan-card { padding: 1.4rem; }
    .plan-price { font-size: 1.7rem; }

    /* Footer */
    .footer-inner { flex-wrap: wrap; gap: 0.2rem 0.6rem; }
    .footer-links { gap: 0.5rem; flex-wrap: wrap; }
    .footer-links a { font-size: 0.72rem; }
    .footer-brand { font-size: 0.75rem; }
    .footer-copy { font-size: 0.7rem; }

    /* Insight bar */
    .insight-chip { font-size: 0.78rem; padding: 5px 10px; }

    /* Top bar */
    .top-bar { padding: 0.8rem 1rem; }
    .top-bar-title { font-size: 0.95rem; }
    .top-user { display: none; }

    /* Sidebar footer */
    .btn-3am { font-size: 0.8rem; }
    .btn-logout { font-size: 0.78rem; }
}

/* ══════════════════════════════════════
   BOTTOM SHEET MODALS — Fralda & Vacina
══════════════════════════════════════ */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.bottom-sheet-overlay.active {
    display: flex;
}
.bottom-sheet {
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    padding: 1.2rem 1.6rem 2.4rem;
    width: 100%;
    max-width: 520px;
    animation: slideUp 0.28s cubic-bezier(.25,.8,.25,1);
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
.bottom-sheet-handle {
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 99px;
    margin: 0 auto 1.2rem;
}
.bottom-sheet-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.3rem; }
.bottom-sheet-sub   { font-size: 0.88rem; color: var(--muted); margin: 0 0 1.4rem; }

.diaper-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}
.diaper-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.18s, background 0.18s;
}
.diaper-btn:hover, .diaper-btn:active {
    border-color: var(--accent);
    background: var(--nav-active);
}
.diaper-emoji { font-size: 2rem; line-height: 1; }

.vaccine-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    margin-bottom: 0.8rem;
    box-sizing: border-box;
}
.vaccine-input:focus { outline: none; border-color: var(--accent); }
.vaccine-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.vaccine-suggestions button {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    background: var(--bg);
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}
.vaccine-suggestions button:hover { background: var(--nav-active); border-color: var(--accent); }

.modal-cancel {
    width: 100%;
    padding: 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}
.modal-cancel:hover { background: var(--nav-active); }

/* ══════════════════════════════════════
   TUTORIAL ONBOARDING MODAL
══════════════════════════════════════ */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.tutorial-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem 2.2rem 1.8rem;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.30);
    position: relative;
    animation: slideUp 0.35s cubic-bezier(.22,.68,0,1.2);
    color: #3d3d3d;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.tutorial-skip {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #8a8a8a;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.tutorial-skip:hover { background: #f0f4ff; }

.tutorial-step {
    text-align: center;
    padding: 0.5rem 0 1.2rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.tutorial-step-icon {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.tutorial-step h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0.7rem;
    line-height: 1.3;
}
.tutorial-step p {
    font-size: 0.92rem;
    color: #5a5a5a;
    line-height: 1.6;
    max-width: 340px;
}
.tutorial-step p strong { color: #2d2d2d; }
.tutorial-step .tut-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f4ff;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a8dee;
    margin: 0.3rem;
}

.tutorial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0.8rem 0 1.2rem;
}
.tut-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dde3f0;
    transition: background 0.3s, transform 0.3s;
}
.tut-dot.active {
    background: #7aaaf4;
    transform: scale(1.3);
}

.tutorial-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.btn-tut-back {
    background: none;
    border: 1px solid #e0e0e0;
    color: #8a8a8a;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-tut-back:hover { background: #f0f4ff; }
.btn-tut-next {
    background: var(--accent-dark);
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-tut-next:hover { opacity: 0.88; transform: scale(1.01); }
.btn-tut-next.finish {
    background: linear-gradient(135deg, #b5cdf8 0%, #8fa8d8 100%);
    color: #1a2a4a;
    font-size: 1rem;
}

@media (max-width: 480px) {
    .tutorial-modal { padding: 1.5rem 1.3rem 1.4rem; border-radius: 18px; }
    .tutorial-step { min-height: 190px; }
    .tutorial-step-icon { font-size: 2.6rem; }
    .tutorial-step h2 { font-size: 1.1rem; }
    .tutorial-step p { font-size: 0.86rem; }
    .btn-tut-next { padding: 10px 20px; font-size: 0.9rem; }
}

/* ═══════════════════════════════════════════
   BEBÉ & DESENVOLVIMENTO SECTION
═══════════════════════════════════════════ */

.bebe-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    background: var(--card);
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow: var(--shadow);
}
.bebe-tab {
    flex: 1;
    padding: 0.6rem 0.4rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.bebe-tab.active {
    background: var(--accent);
    color: #2a3a6e;
    font-weight: 600;
}
.bebe-panel { display: none; }
.bebe-panel.active { display: block; }

/* Corrected age card */
.ca-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}
.ca-item { text-align: center; }
.ca-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.ca-val { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.ca-val.accent { color: var(--accent-dark); }

/* Form helpers */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.form-field input,
.form-field select,
.form-field textarea {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent-dark); }
.form-field textarea { resize: vertical; min-height: 72px; }

/* Growth stats */
.growth-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.gs-item {
    background: var(--card);
    border-radius: 14px;
    padding: 1rem 0.6rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.gs-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }
.gs-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.25rem; }
.gs-val { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* Growth history entry */
.growth-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.growth-entry:last-child { border-bottom: none; }
.ge-date { font-size: 0.82rem; color: var(--muted); min-width: 90px; }
.ge-vals { display: flex; gap: 1rem; flex-wrap: wrap; }
.ge-val { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.ge-unit { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.ge-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 4px; }
.ge-del:hover { color: #e53e3e; }

/* Development section */
.dev-week-banner {
    background: linear-gradient(135deg, #e8f0fe, #fce4ec);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}
.dwb-week { font-size: 2rem; font-weight: 800; color: #5a8dee; line-height: 1; }
.dwb-label { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }

/* Milestone cards */
.milestone-card {
    background: var(--card);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow);
}
.mc-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}
.mc-icon { font-size: 1.3rem; }
.mc-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.mc-list { list-style: none; padding: 0; margin: 0; }
.mc-list li {
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}
.mc-list li::before { content: '•'; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.mc-alert li::before { color: #e53e3e; }

@media (max-width: 600px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .ca-grid { grid-template-columns: repeat(3, 1fr); }
    .growth-stats { grid-template-columns: repeat(3, 1fr); }
    .bebe-tab { font-size: 0.75rem; padding: 0.5rem 0.25rem; }
}

/* ── Spiritual / Pause Card ── */
.spiritual-card {
    background: linear-gradient(135deg, #f0e8ff 0%, #e8f4fd 100%);
    border: 1px solid #d4bfff;
}
body.dark-mode .spiritual-card {
    background: linear-gradient(135deg, #1a1230 0%, #0d1a2e 100%);
    border: 1px solid #3a2a5e;
}
.spiritual-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.spiritual-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.spiritual-content {
    flex: 1;
}
.spiritual-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c4dff;
    margin-bottom: 0.3rem;
}
body.dark-mode .spiritual-label { color: #b39ddb; }
.spiritual-affirmation {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
    font-style: italic;
}
.spiritual-breath {
    font-size: 0.82rem;
    color: #7c4dff;
    margin-top: 0.4rem;
    font-weight: 600;
    animation: pulse-soft 2s ease-in-out infinite;
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.btn-spiritual {
    flex-shrink: 0;
    background: linear-gradient(135deg, #b5cdf8, #9bb8f5);
    color: #1a3a6e;
    border: none;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-spiritual:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(181,205,248,0.5); }
.btn-spiritual.breathing-active {
    background: linear-gradient(135deg, #7c4dff, #5c2dff);
    color: white;
}

/* ── Language options ── */
.lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lang-option-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text);
    transition: all 0.15s;
    font-family: inherit;
}
.lang-option-btn:hover {
    border-color: var(--accent-dark);
    background: var(--accent-light);
}
.lang-option-btn.active {
    border-color: var(--accent-dark);
    background: var(--accent-light);
    font-weight: 700;
    color: var(--accent-dark);
}

/* ── Support links ── */
.support-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-dark);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.support-link:last-child { border-bottom: none; }
.support-link:hover { opacity: 0.75; }

/* ── Settings 3am button ── */
.btn-3am-settings {
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.15s;
}
.btn-3am-settings:hover { border-color: var(--accent-dark); }
.btn-3am-settings.active-3am {
    background: #0a0a1a;
    color: #b5cdf8;
    border-color: #3a2a5e;
}

/* ═══════════════════════════════════════════
   PROFILE HERO CARD
═══════════════════════════════════════════ */
.profile-hero-card {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 60%, #0d2a3e 100%);
    border-radius: 20px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    min-height: 90px;
}
.profile-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46,213,115,0.12), rgba(30,203,225,0.08), rgba(58,123,255,0.12));
    pointer-events: none;
}
.phc-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: 1;
    min-width: 0;
    position: relative;
}
.phc-avatar {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.phc-info { min-width: 0; }
.phc-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phc-detail {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.2rem;
    line-height: 1.4;
}
.phc-stats {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
    position: relative;
}
.phc-stat {
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.45rem 0.7rem;
    text-align: center;
    min-width: 52px;
}
.phc-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.phc-stat-lbl {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-top: 1px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
@media (max-width: 480px) {
    .phc-stats { display: none; }
    .profile-hero-card { padding: 1rem 1.1rem; }
}

/* ═══════════════════════════════════════════
   AURORA AI — ORIENTAÇÃO VIVA
═══════════════════════════════════════════ */
.aurora-vivant-card {
    background: linear-gradient(135deg, #e8f0fe 0%, #fce4ec 50%, #e8f5e9 100%);
    border: 1px solid #c5cae9;
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}
body.dark-mode .aurora-vivant-card {
    background: linear-gradient(135deg, #1a1f3e 0%, #2a0f1a 50%, #0f1f1a 100%);
    border-color: #3f4480;
}
.avc-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.avc-icon { font-size: 1.8rem; flex-shrink: 0; }
.avc-meta { flex: 1; }
.avc-greeting {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}
.avc-phase {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.1rem;
}
.avc-badge {
    background: linear-gradient(135deg, #b5cdf8, #c5b3f5);
    color: #1a1a4e;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.avc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.avc-pill {
    background: rgba(181,205,248,0.35);
    border: 1px solid rgba(181,205,248,0.6);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
}
.avc-pill.pill-green { background: rgba(102,187,106,0.2); border-color: rgba(102,187,106,0.5); }
.avc-pill.pill-purple { background: rgba(149,117,205,0.2); border-color: rgba(149,117,205,0.5); }
.avc-pill.pill-orange { background: rgba(255,152,0,0.2); border-color: rgba(255,152,0,0.5); }
.avc-body { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.8rem; }
.avc-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text);
}
.avc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-dark);
    flex-shrink: 0;
    margin-top: 0.4rem;
}
.avc-narrative {
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
    border-top: 1px solid rgba(181,205,248,0.3);
    padding-top: 0.6rem;
    line-height: 1.5;
}
.avc-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   SISTEMA NERVOSO FAMILIAR 2.0
═══════════════════════════════════════════ */
.sns-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.sns-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sns-title { font-size: 0.85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sns-result-badge {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}
.badge-red { background: #ffcdd2; color: #c62828; }
.badge-orange { background: #ffe0b2; color: #e65100; }
.badge-yellow { background: #fff9c4; color: #f57f17; }
.badge-green { background: #c8e6c9; color: #1b5e20; }
body.dark-mode .badge-red { background: #4a1a1a; color: #ef9a9a; }
body.dark-mode .badge-orange { background: #3a2a0a; color: #ffcc80; }
body.dark-mode .badge-yellow { background: #2a2a0a; color: #fff59d; }
body.dark-mode .badge-green { background: #0a2a0a; color: #a5d6a7; }
.sns-members {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}
.sns-member {
    flex: 1;
    min-width: 100px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.07);
    border-left: 3px solid var(--c, #b5cdf8);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}
body.dark-mode .sns-member { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.sns-member-role { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.sns-member-state { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-top: 0.2rem; }
.sns-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}
.sns-suggestion {
    background: rgba(181,205,248,0.2);
    border: 1px solid rgba(181,205,248,0.4);
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    color: var(--text);
}
.sns-message {
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   MALA DE MATERNIDADE
═══════════════════════════════════════════ */
.mala-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}
.mala-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}
.mala-field select {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}
.mala-section-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow);
}
.mala-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.mala-section-icon { font-size: 1.3rem; }
.mala-section-header h3 { flex: 1; margin: 0; font-size: 1rem; }
.mala-count {
    font-size: 0.75rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 700;
}
.mala-list { display: flex; flex-direction: column; gap: 0.4rem; }
.mala-item {
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    transition: background 0.15s;
}
.mala-item label { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.mala-check { margin-top: 0.1rem; accent-color: var(--accent-dark); flex-shrink: 0; }
.mala-item.checked {
    background: rgba(102,187,106,0.1);
    border-color: rgba(102,187,106,0.4);
    text-decoration: line-through;
    opacity: 0.6;
}
.mala-note { font-size: 0.78rem; color: var(--muted); font-style: italic; }
.mala-community-card { background: linear-gradient(135deg, #f8f4ff, #fff4f8); border-color: #d4bfff; }
body.dark-mode .mala-community-card { background: linear-gradient(135deg, #1a1230, #1f0f1a); border-color: #3a2a5e; }
.mala-community-tips { display: flex; flex-direction: column; gap: 0.5rem; }
.community-tip {
    background: white;
    border: 1px solid #e8d5ff;
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text);
}
body.dark-mode .community-tip { background: #1a0f2e; border-color: #3a2a5e; }

/* ═══════════════════════════════════════════
   PLANOS — FREE TIER BANNER
═══════════════════════════════════════════ */
.free-tier-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #e8f5e9, #f3e5f5);
    border: 1px solid #c8e6c9;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}
body.dark-mode .free-tier-banner { background: linear-gradient(135deg, #0f2a0f, #1a0f1f); border-color: #2a4a2a; }
.ftb-icon { font-size: 2rem; flex-shrink: 0; }
.ftb-content strong { font-size: 0.95rem; color: var(--text); }
.ftb-content p { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.5; }
.plan-divider { list-style: none; color: var(--border); font-size: 0.75rem; padding: 0.2rem 0; }
.plan-muted { list-style: none; color: var(--muted); font-size: 0.82rem; font-style: italic; }

@media (max-width: 600px) {
    .avc-footer { flex-direction: column; }
    .sns-members { flex-direction: column; }
    .mala-form { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   COOKIE CONSENT BANNER (GDPR/ePrivacy/LGPD)
═══════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1f2e;
    color: #e8eef8;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
}
.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
    min-width: 200px;
}
.cookie-banner-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }
.cookie-banner-text strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.cookie-banner-text p { font-size: 0.8rem; color: #a0aec0; line-height: 1.4; margin: 0; }
.cookie-banner-text code { background: rgba(255,255,255,0.1); padding: 1px 5px; border-radius: 4px; font-size: 0.78rem; }
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-link {
    color: #b5cdf8;
    font-size: 0.82rem;
    text-decoration: underline;
    white-space: nowrap;
}
.btn-cookie-accept {
    background: linear-gradient(135deg, #6a9de8, #b5cdf8);
    color: #0a1030;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.btn-cookie-accept:hover { opacity: 0.9; }

/* ── Cookie banner on login page (simpler, top bar) ── */
.cookie-banner-login {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1f2e;
    color: #e8eef8;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-banner-inner-login {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    width: 100%;
    justify-content: space-between;
    font-size: 0.82rem;
}
.cookie-banner-inner-login a { color: #b5cdf8; }

/* ═══════════════════════════════════════════
   MEDICAL DISCLAIMER MODAL
═══════════════════════════════════════════ */
.medical-modal-box {
    max-width: 520px;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.medical-modal-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.medical-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.8rem;
}
.medical-modal-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
}
.medical-modal-list {
    list-style: none;
    text-align: left;
    background: rgba(239,68,68,0.07);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.medical-modal-list li { font-size: 0.85rem; color: var(--text); line-height: 1.4; }
.medical-modal-legal {
    font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}
.medical-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

@media (max-width: 600px) {
    .cookie-banner { padding: 0.7rem 1rem; }
    .cookie-banner-inner { gap: 0.7rem; }
    .cookie-banner-text p { display: none; }
    .medical-modal-box { padding: 1.5rem 1.2rem; }
}

/* ════════════════════════════════════════════
   LOADING SPLASH SCREEN
   ════════════════════════════════════════════ */
#app-loading-splash {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, #EAF3FF 0%, #F6F0FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}
#app-loading-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}
.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.splash-logo {
    max-width: 260px;
    width: 80vw;
    height: auto;
}
.splash-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(58,123,255,0.2);
    border-top-color: #3A7BFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════
   BABY ONBOARDING MODAL
   ════════════════════════════════════════════ */
.onboarding-modal-box {
    max-width: 480px;
    width: calc(100% - 2rem);
    padding: 2.2rem 2rem;
    border-radius: 20px;
    background: var(--card);
}
.ob-header {
    text-align: center;
    margin-bottom: 1.6rem;
}
.ob-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}
.ob-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.ob-header p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}
.ob-btn-next {
    width: 100%;
    margin-top: 1.2rem;
    background: linear-gradient(90deg, #2ED573, #1ECBE1, #3A7BFF);
    font-size: 1rem;
    padding: 14px;
    border-radius: 12px;
}
.ob-btn-next:hover {
    background: linear-gradient(90deg, #25c464, #18b8cc, #2f6ee0);
    box-shadow: 0 4px 18px rgba(58,123,255,0.35);
    transform: translateY(-1px);
}
.ob-skip-btn {
    width: 100%;
    margin-top: 0.7rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: underline;
}
.ob-skip-btn:hover { color: var(--text); }

/* ═══════════════════════════════════════════
   CÍRCULO AURORA
═══════════════════════════════════════════ */
.circle-viral-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(46,213,115,0.08), rgba(58,123,255,0.06));
    border: 1px solid rgba(58,123,255,0.15);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.cvb-emoji { font-size: 1.8rem; flex-shrink: 0; margin-top: 0.1rem; }
.circle-viral-banner strong { font-size: 0.95rem; color: var(--text); }
.circle-viral-banner p { font-size: 0.83rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.5; }

.circle-members-title { margin-bottom: 1rem; }
.circle-members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.circle-member-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    position: relative;
    min-width: 140px;
    flex: 1;
}
.cmc-avatar {
    font-size: 1.6rem;
    background: rgba(58,123,255,0.07);
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cmc-info { min-width: 0; flex: 1; }
.cmc-name { font-size: 0.88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmc-role { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; text-transform: capitalize; }
.cmc-remove {
    background: none; border: none; color: var(--muted); font-size: 0.85rem;
    cursor: pointer; padding: 2px 5px; border-radius: 6px; line-height: 1;
    flex-shrink: 0;
}
.cmc-remove:hover { color: #e53935; background: #fff3f3; }
.circle-member-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    width: 100%;
    line-height: 1.7;
}

.invite-roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}
.invite-role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: 0.18s;
    background: var(--bg);
    text-align: center;
}
.invite-role-btn:hover {
    border-color: var(--accent-dark);
    background: #e8f0fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(58,123,255,0.15);
}
.irb-icon { font-size: 1.7rem; line-height: 1; }
.irb-label { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.2; }

.active-invite-card { border: 2px solid rgba(58,123,255,0.25) !important; }
.aic-header { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.9rem; }
.aic-icon { font-size: 1.5rem; flex-shrink: 0; }
.invite-link-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}
.invite-link-box span { flex: 1; min-width: 0; color: var(--muted); }
.btn-copy {
    background: var(--accent-dark);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    transition: 0.15s;
}
.btn-copy:hover { background: #2f6ee0; }
.btn-whatsapp {
    flex: 1;
    padding: 0.65rem 0.9rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.15s;
}
.btn-whatsapp:hover { background: #1eb854; }

.my-circle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}
.my-circle-item:last-child { border-bottom: none; }
.mci-info { display: flex; align-items: center; gap: 0.7rem; }
.mci-avatar {
    font-size: 1.4rem;
    background: rgba(58,123,255,0.07);
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
}
.mci-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.mci-role { font-size: 0.76rem; color: var(--muted); }
.btn-view-circle {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: none;
    border: 1.5px solid var(--accent-dark);
    border-radius: 8px;
    color: var(--accent-dark);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: 0.15s;
}
.btn-view-circle:hover { background: #e8f0fe; }
.btn-leave-circle {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.15s;
}
.btn-leave-circle:hover { color: #e53935; border-color: #ffcdd2; background: #fff3f3; }

/* Circle context switcher in top bar */
.circle-switcher {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(46,213,115,0.12), rgba(58,123,255,0.12));
    border: 1px solid rgba(58,123,255,0.2);
    border-radius: 20px;
    padding: 0.25rem 0.7rem 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-dark);
    transition: 0.15s;
}
.circle-switcher.visible { display: flex; }
.circle-switcher:hover { background: rgba(58,123,255,0.15); }
.cs-baby { font-size: 1rem; }

/* ════════════════════════════════════════════
   CONTEXTUAL PRO GATE
   ════════════════════════════════════════════ */
.pro-gate {
    margin-top: 0.8rem; padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: linear-gradient(var(--card), var(--card)) padding-box,
                linear-gradient(90deg, #2ED573, #1ECBE1, #3A7BFF) border-box;
    display: flex; align-items: center; gap: 0.9rem;
    animation: fadeIn 0.35s ease;
}
.pro-gate-body { flex: 1; min-width: 0; }
.pro-gate-label { font-size: 0.72rem; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 0.2rem; }
.pro-gate-title { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.pro-gate-desc { font-size: 0.79rem; color: var(--muted); margin-top: 0.15rem; }
.btn-pro-cta {
    white-space: nowrap; font-size: 0.75rem; font-weight: 700;
    background: linear-gradient(90deg, #2ED573, #1ECBE1, #3A7BFF); color: white;
    border: none; border-radius: 20px; padding: 0.45rem 0.95rem;
    cursor: pointer; transition: opacity 0.2s; flex-shrink: 0;
}
.btn-pro-cta:hover { opacity: 0.85; }

/* Noise section labels */
.noise-section-label {
    font-size: 0.78rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin: 1.2rem 0 0.6rem;
}
.noise-section-label.pro-label { color: var(--accent-dark); }

/* Locked noise cards */
.noise-card.noise-locked { position: relative; cursor: pointer; }
.noise-card.noise-locked .noise-icon,
.noise-card.noise-locked h3,
.noise-card.noise-locked p { opacity: 0.55; }
.noise-pro-badge {
    position: absolute; top: 6px; right: 7px;
    font-size: 0.65rem; font-weight: 700; color: var(--accent-dark);
    background: var(--nav-active); border-radius: 20px; padding: 2px 8px;
    border: 1px solid rgba(58,123,255,0.3);
}

/* Oracle daily counter */
.oracle-counter {
    font-size: 0.8rem; color: var(--muted);
    text-align: right; margin-top: 0.8rem;
    padding-top: 0.6rem; border-top: 1px solid var(--border);
}
.oracle-count-highlight { font-weight: 700; color: var(--accent-dark); }

/* ════════════════════════════════════════════
   BILLING TOGGLE
   ════════════════════════════════════════════ */
.billing-toggle-wrap {
    display: flex; flex-direction: column; align-items: center;
    margin: 0 0 1.2rem;
}
.billing-toggle {
    display: flex; background: var(--nav-active); border-radius: 30px; padding: 3px; gap: 2px;
}
.billing-btn {
    border: none; background: transparent; border-radius: 26px;
    padding: 0.4rem 1.1rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    color: var(--muted); transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
}
.billing-btn.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.billing-save-badge {
    font-size: 0.65rem; font-weight: 700; background: linear-gradient(90deg,#2ED573,#1ECBE1);
    color: white; border-radius: 20px; padding: 1px 6px;
}
.billing-note { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; }

/* Plan trial badge */
.plan-trial-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    background: linear-gradient(90deg,#2ED573,#1ECBE1,#3A7BFF); color: white;
    border-radius: 20px; padding: 3px 10px; margin-bottom: 0.4rem;
}
.plan-price-wrap { margin: 0.5rem 0 0.8rem; }
.plan-annual-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; font-weight: 400; }
.plan-footnote { font-size: 0.75rem; color: var(--muted); text-align: center; margin: 0.5rem 0 0; }

/* Subscription info card */
.sub-info-row { display: flex; align-items: center; gap: 0.8rem; }
.sub-info-icon { font-size: 1.5rem; }
.sub-info-body { flex: 1; }

/* ════════════════════════════════════════════
   TRIAL BANNER
   ════════════════════════════════════════════ */
/* ════ EMAIL VERIFICATION BANNER ════ */
#email-verify-banner {
    position: sticky; top: 0; z-index: 200;
    background: linear-gradient(90deg, #ff9a3c, #ff6b6b);
    padding: 0.6rem 1rem;
    animation: fadeIn 0.3s ease;
}
.verify-banner-content {
    display: flex; align-items: center; gap: 0.6rem;
    max-width: 900px; margin: 0 auto;
}
.verify-banner-icon { font-size: 1.1rem; flex-shrink: 0; }
.verify-banner-text { flex: 1; font-size: 0.83rem; font-weight: 600; color: #fff; line-height: 1.3; }
.verify-banner-btn {
    background: rgba(255,255,255,0.25); border: 1.5px solid rgba(255,255,255,0.6);
    color: #fff; font-size: 0.78rem; font-weight: 700;
    padding: 0.3rem 0.8rem; border-radius: 20px; cursor: pointer;
    white-space: nowrap; transition: background 0.2s;
}
.verify-banner-btn:hover { background: rgba(255,255,255,0.4); }
.verify-banner-btn:disabled { opacity: 0.6; cursor: default; }
.verify-banner-close {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.8); font-size: 1.1rem;
    padding: 0 0 0 0.2rem; line-height: 1; flex-shrink: 0;
}
.verify-banner-close:hover { color: #fff; }

.trial-banner {
    display: flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, rgba(46,213,115,0.1), rgba(58,123,255,0.1));
    border: 1px solid rgba(58,123,255,0.25);
    border-radius: 12px; padding: 0.6rem 0.9rem;
    margin-bottom: 0.8rem; animation: fadeIn 0.4s ease;
}
.trial-banner-icon { font-size: 1.1rem; flex-shrink: 0; }
.trial-banner span:nth-child(2) { flex: 1; font-size: 0.83rem; font-weight: 600; color: var(--text); }
.trial-banner-link { font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; white-space: nowrap; }
.trial-banner-close { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1rem; padding: 0 0 0 0.3rem; line-height: 1; }

/* ════════════════════════════════════════════
   REFERRAL CARD
   ════════════════════════════════════════════ */
.referral-card { overflow: hidden; }
.referral-header h3 { margin: 0 0 0.15rem; }
.referral-subtitle { font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; }
.referral-code-block {
    background: var(--nav-active); border-radius: 12px;
    padding: 0.8rem 1rem; margin-bottom: 1rem; text-align: center;
}
.referral-code-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem; }
.referral-code-display {
    font-size: 1.35rem; font-weight: 800; letter-spacing: 2px;
    background: linear-gradient(90deg,#2ED573,#1ECBE1,#3A7BFF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.referral-rewards { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.reward-item { display: flex; align-items: center; gap: 0.6rem; }
.reward-icon { font-size: 1.2rem; flex-shrink: 0; }
.reward-text strong { display: block; font-size: 0.85rem; color: var(--text); }
.reward-text span { font-size: 0.8rem; color: var(--muted); }
.referral-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.btn-ref-copy, .btn-ref-wa, .btn-ref-ig {
    flex: 1; min-width: 90px; padding: 0.55rem 0.6rem; border-radius: 10px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer; border: none; transition: opacity 0.2s;
}
.btn-ref-copy { background: var(--nav-active); color: var(--text); border: 1px solid var(--border); }
.btn-ref-wa { background: #25D366; color: white; }
.btn-ref-ig { background: linear-gradient(135deg,#f58529,#dd2a7b,#515bd4); color: white; }
.btn-ref-copy:hover, .btn-ref-wa:hover, .btn-ref-ig:hover { opacity: 0.85; }
.referral-stats-bar {
    min-height: 1rem; margin-bottom: 0.8rem;
}
.ref-stat-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.ref-stat { text-align: center; background: var(--nav-active); border-radius: 10px; padding: 0.5rem 0.8rem; }
.ref-stat span { display: block; font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); }
.ref-stat small { font-size: 0.72rem; color: var(--muted); }
.referral-trial-types { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.trial-chip {
    font-size: 0.7rem; font-weight: 600; border-radius: 20px; padding: 3px 8px;
    background: var(--nav-active); color: var(--muted); border: 1px solid var(--border);
}
.trial-chip.invite { color: #1ECBE1; border-color: rgba(30,203,225,0.35); }
.trial-chip.influencer { color: #3A7BFF; border-color: rgba(58,123,255,0.35); }
.trial-chip.beta { color: #2ED573; border-color: rgba(46,213,115,0.35); }

/* ════════════════════════════════════════════
   AJUDA — CENTRO DE AJUDA
   ════════════════════════════════════════════ */

/* Medical notice */
.help-medical-notice {
    display: flex; gap: 0.8rem; align-items: flex-start;
    background: linear-gradient(135deg,#fff8e1,#fff3e0);
    border: 1px solid #ffe0b2; border-left: 4px solid #ff9800;
    border-radius: 12px; padding: 1rem 1.2rem;
}
.help-medical-notice strong { display: block; margin-bottom: 0.3rem; color: #e65100; }
.help-medical-notice p { font-size: 0.85rem; color: #5d4037; line-height: 1.5; margin: 0; }

/* Chat widget */
.help-chat-card { padding: 1.2rem 1.2rem 1rem; }
.help-chat-header {
    display: flex; align-items: center; gap: 0.7rem;
    margin-bottom: 1rem; padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.help-chat-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg,#2ED573,#3A7BFF);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.help-chat-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.help-chat-status { font-size: 0.75rem; color: #2ED573; }

.help-chat-bubble-in { display: flex; justify-content: flex-start; margin-bottom: 0.8rem; }
.help-chat-bubble-out { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.help-chat-bubble {
    background: var(--bg); border-radius: 0 16px 16px 16px;
    padding: 0.7rem 1rem; max-width: 85%; font-size: 0.88rem;
    color: var(--text); line-height: 1.5; border: 1px solid var(--border);
}
.help-chat-bubble-user {
    background: linear-gradient(90deg,#2ED573,#3A7BFF);
    border-radius: 16px 16px 0 16px;
    padding: 0.6rem 1rem; max-width: 85%; font-size: 0.85rem;
    color: #fff; font-weight: 600;
}

/* Quick questions */
.help-quick-questions {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.3rem;
}
.help-qq {
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 20px; padding: 0.4rem 0.9rem;
    font-size: 0.8rem; cursor: pointer; color: var(--text);
    font-weight: 500; transition: all 0.2s; text-align: left;
}
.help-qq:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.help-qq.active { background: linear-gradient(90deg,rgba(46,213,115,0.15),rgba(58,123,255,0.15)); border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }

.help-chat-answer-area { margin-top: 0.8rem; }
.help-chat-helpful {
    display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem;
    padding-top: 0.7rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.help-helpful-btn {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 0.3rem 0.8rem;
    font-size: 0.8rem; cursor: pointer; color: var(--text); transition: all 0.2s;
}
.help-helpful-btn:hover { background: var(--accent-light); border-color: var(--accent); }

.help-contact-fallback {
    margin-top: 1rem; padding: 1rem; background: var(--bg);
    border-radius: 12px; border: 1px solid var(--border); text-align: center;
}
.help-contact-fallback p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.help-contact-btn {
    display: inline-block; background: linear-gradient(90deg,#2ED573,#3A7BFF);
    color: #fff; font-weight: 700; font-size: 0.85rem; text-decoration: none;
    padding: 0.6rem 1.2rem; border-radius: 30px; margin-bottom: 0.6rem;
}
.help-back-btn {
    display: block; background: none; border: none; cursor: pointer;
    font-size: 0.8rem; color: var(--muted); text-decoration: underline; margin: 0.4rem auto 0;
}

/* FAQ Accordion */
.faq-category { border-bottom: 1px solid var(--border); }
.faq-category:last-child { border-bottom: none; }
.faq-category-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 0; cursor: pointer; font-weight: 600; font-size: 0.9rem;
    color: var(--text); user-select: none;
}
.faq-category-header:hover { color: var(--accent-dark); }
.faq-arrow { transition: transform 0.25s; font-size: 1rem; color: var(--muted); }
.faq-category.open .faq-arrow { transform: rotate(180deg); }
.faq-category-body { display: none; padding-bottom: 0.5rem; }
.faq-category.open .faq-category-body { display: block; }

.faq-item { border-top: 1px solid var(--border); }
.faq-q {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 0.7rem 0; cursor: pointer; font-size: 0.87rem;
    color: var(--text); font-weight: 500; gap: 0.5rem;
}
.faq-q span { color: var(--accent-dark); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-q:hover { color: var(--accent-dark); }
.faq-a {
    display: none; font-size: 0.84rem; color: var(--muted);
    line-height: 1.65; padding: 0 0 0.8rem; padding-left: 0.2rem;
}
.faq-item.open .faq-a { display: block; }

/* Tutorial steps */
.help-tutorial-steps { display: flex; flex-direction: column; gap: 0; }
.help-tutorial-step {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.help-tutorial-step:last-child { border-bottom: none; }
.help-step-num {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg,#2ED573,#3A7BFF);
    color: #fff; font-weight: 800; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.help-step-body strong { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; color: var(--text); }
.help-step-body p { font-size: 0.83rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ════════════════════════════════════════════
   CHARTS — Gráficos semanais
   ════════════════════════════════════════════ */
.charts-tabs {
    display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.chart-tab {
    padding: 0.4rem 0.9rem; border-radius: 20px; border: 1.5px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 0.82rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.chart-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
.chart-tab.active { background: linear-gradient(90deg,rgba(46,213,115,0.12),rgba(58,123,255,0.12)); border-color: var(--accent-dark); color: var(--accent-dark); }
.chart-container {
    position: relative; width: 100%; min-height: 200px;
}
.chart-container canvas { width: 100% !important; max-height: 260px; }

/* Push notifications / security */
.btn-danger-outline {
    border-color: #ef5350 !important; color: #ef5350 !important;
}
.btn-danger-outline:hover { background: rgba(239,83,80,0.08) !important; }
