/* Design System & Variables: Warm & Vivid Rose-Blue Sentiment Theme (Anti-Gray) */
:root {
    --bg-color: #0c071d;          /* Rich Deep Warm Indigo Background (Zero Gray) */
    
    /* Rose-Blue Frost Tint for Cards */
    --card-bg: linear-gradient(135deg, rgba(251, 113, 133, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%), rgba(20, 9, 34, 0.65);
    --card-bg-hover: linear-gradient(135deg, rgba(251, 113, 133, 0.12) 0%, rgba(56, 189, 248, 0.12) 100%), rgba(28, 12, 48, 0.75);
    
    --card-border: rgba(251, 113, 133, 0.18); /* Soft Rose-Gold Tinted Border */
    --card-border-hover: rgba(251, 113, 133, 0.38);
    
    --text-primary: #fffbeb;      /* Warm Cozy Cream */
    --text-secondary: #f5e6ff;    /* Soft Lavender Cream */
    --text-muted: #c084fc;        /* Warm Lavender Purple */
    
    /* Vivid Sentiment Colors */
    --accent-love: #fb7185;       /* Warm Rose Pink (Amor) */
    --accent-hope: #fbbf24;       /* Bright Amber Gold (Esperança) */
    --accent-peace: #38bdf8;      /* Serene Sky Blue (Paz & Azul Esperança) */
    --accent-recomeco: #34d399;   /* Fresh Mint Emerald (Recomeço) */
    --accent-confianca: #c084fc;  /* Warm Lavender Purple (Confiança) */
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --shadow-main: 0 20px 50px -15px rgba(0, 0, 0, 0.85);
    --shadow-love-glow: 0 0 30px rgba(251, 113, 133, 0.2);
    --shadow-gold-glow: 0 0 30px rgba(251, 191, 36, 0.22);
    --shadow-peace-glow: 0 0 30px rgba(56, 189, 248, 0.22);
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        /* Dawn/Sunrise glowing lights saturated with Rose Pink and Hope Blue */
        radial-gradient(circle at 10% 25%, rgba(251, 113, 133, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 90% 15%, rgba(56, 189, 248, 0.26) 0%, transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(167, 139, 250, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(251, 191, 36, 0.18) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Particles Layer - Magical Symbols (Hearts, Stars, Sparkles) */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    bottom: -30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
    animation: float-up infinite linear;
    user-select: none;
}

.particle-love {
    color: var(--accent-love);
    text-shadow: 0 0 10px rgba(251, 113, 133, 0.7), 0 0 20px rgba(251, 113, 133, 0.4);
}

.particle-hope {
    color: var(--accent-hope);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.7), 0 0 20px rgba(251, 191, 36, 0.4);
}

.particle-peace {
    color: var(--accent-peace);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 0 20px rgba(56, 189, 248, 0.4);
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(0.6) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    85% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(-105vh) scale(1.4) rotate(360deg);
        opacity: 0;
    }
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Header Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(251, 113, 133, 0.2);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-icon-wrapper {
    background: rgba(251, 113, 133, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.35);
    border-radius: 18px;
    padding: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(251, 113, 133, 0.25);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-love);
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(251, 113, 133, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 14px rgba(251, 113, 133, 0.9)); }
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Shimmering Animated Text Gradient - Pink and Hope Blue */
.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    background: linear-gradient(90deg, var(--accent-love) 0%, var(--accent-confianca) 30%, var(--accent-peace) 60%, var(--accent-love) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-title 8s linear infinite;
}

@keyframes shimmer-title {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

.logo-area .subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.system-time-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 14px;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.system-time-info {
    display: flex;
    flex-direction: column;
}

.system-time-info .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.system-time-info .value {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.text-accent-cyan {
    color: var(--accent-peace);
}

/* Buttons */
.btn-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(251, 113, 133, 0.22);
    color: var(--text-primary);
    border-radius: 14px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 113, 133, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.25);
}

.btn-icon-small {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

/* Config Drawer */
.config-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: rgba(12, 7, 29, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(251, 113, 133, 0.22);
    z-index: 100;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hidden {
    display: none !important;
}

.config-drawer.hidden {
    transform: translateX(100%);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(251, 113, 133, 0.15);
    padding-bottom: 1.25rem;
}

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(251, 113, 133, 0.22);
    border-radius: 10px;
    padding: 0.85rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--accent-love);
    background: rgba(255, 255, 255, 0.05);
}

.drawer-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-love);
    color: #0c071d;
}

.btn-primary:hover {
    background: #fb7185;
    box-shadow: 0 0 25px rgba(251, 113, 133, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 113, 133, 0.18);
    color: var(--text-primary);
}

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

/* Dashboard Grid & Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(35px); /* Frosted glassmorphism */
    border: 1px solid var(--card-border);
    border-radius: 30px; /* Super soft rounded corners */
    padding: 2.25rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Rose gold spotlight shine effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(251, 113, 133, 0.08), transparent 45%);
    pointer-events: none;
}

.card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-main), var(--shadow-love-glow);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-3 {
    grid-column: span 3;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.card-title i {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

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

/* Hero Card Layout */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.gauge-container {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-indicator {
    stroke-dasharray: 597;
    stroke-dashoffset: 597;
    transition: stroke-dashoffset 0.1s linear;
}

.gauge-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gauge-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    font-weight: 700;
}

.gauge-value {
    font-family: monospace;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.3rem;
    letter-spacing: -0.02em;
}

.hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex-grow: 1;
}

.status-badge {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-recomeco);
    border: 1px solid rgba(52, 211, 153, 0.3);
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-recomeco);
    border-radius: 50%;
    position: relative;
    animation: pulse-ring-emerald 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring-emerald {
    0% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.7); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-love), var(--accent-peace));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.journey-limits {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(251, 113, 133, 0.18);
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    gap: 1.5rem;
}

.limit-point {
    display: flex;
    flex-direction: column;
}

.limit-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.limit-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.limit-separator {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.limit-separator i {
    width: 18px;
    height: 18px;
}

/* Courage Message Styling */
.courage-message-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(251, 113, 133, 0.06);
    border: 1px dashed rgba(251, 113, 133, 0.25);
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    margin-top: 0.25rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.courage-message-wrapper i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#courage-text strong {
    color: var(--accent-peace);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

#courage-text em {
    color: var(--accent-love);
    font-style: normal;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 113, 133, 0.3);
}

.linear-progress-wrapper {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.linear-progress-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 113, 133, 0.15);
    border-radius: 5px;
    overflow: hidden;
}

.linear-progress-fill {
    height: 100%;
    width: 0%;
    /* Blending sentiments: Pink and Hope Blue */
    background: linear-gradient(90deg, var(--accent-love), var(--accent-confianca), var(--accent-peace));
    border-radius: 5px;
    transition: width 0.3s ease-out;
}

.linear-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Sementes de Esperança (Hope Quote Card) */
.hope-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-color: rgba(167, 139, 250, 0.22); /* Lavender border for Trust */
    box-shadow: var(--shadow-main), var(--shadow-peace-glow);
    background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.08), transparent 70%), var(--card-bg);
}

.hope-header {
    border-bottom: 1px solid rgba(251, 113, 133, 0.15);
    padding-bottom: 0.75rem;
}

.text-accent-gold {
    color: var(--accent-confianca) !important;
}

.text-accent-gold i {
    color: var(--accent-confianca) !important;
}

.hope-quote-box {
    padding: 1rem 0;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hope-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #fffbeb;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
}

#hope-quote::before {
    content: '“';
    font-size: 3.5rem;
    color: rgba(251, 113, 133, 0.22);
    position: absolute;
    left: -15px;
    top: -25px;
    font-family: serif;
}

#hope-author {
    font-size: 0.82rem;
    color: var(--accent-confianca);
    align-self: flex-end;
    margin-top: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: auto;
}

.quick-stat-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(251, 113, 133, 0.15);
    border-radius: 12px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
}

.quick-stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quick-stat-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.text-accent-cyan {
    color: var(--accent-peace);
}

.text-accent-gold {
    color: var(--accent-hope);
}

.text-accent-emerald {
    color: var(--accent-recomeco);
}

/* Detailed Time Counters */
.card-header-with-icon {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    width: 24px;
    height: 24px;
}

/* Elapsed Card represents Love/Pink */
.elapsed-card {
    border-color: rgba(251, 113, 133, 0.25);
    box-shadow: var(--shadow-main), var(--shadow-love-glow);
    background: radial-gradient(circle at bottom, rgba(251, 113, 133, 0.05) 0%, transparent 60%), var(--card-bg);
}

.elapsed-card:hover {
    border-color: rgba(251, 113, 133, 0.45);
    box-shadow: var(--shadow-main), 0 0 35px rgba(251, 113, 133, 0.28);
}

.icon-cyan {
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.25);
    color: var(--accent-love);
}

/* Remaining card represents Hope Blue (Paz) */
.remaining-card {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: var(--shadow-main), var(--shadow-peace-glow);
    background: radial-gradient(circle at bottom, rgba(56, 189, 248, 0.05) 0%, transparent 60%), var(--card-bg);
}

.remaining-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: var(--shadow-main), 0 0 35px rgba(56, 189, 248, 0.3);
}

.icon-gold {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent-peace);
}

.timer-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.timer-block-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.sub-seconds-group {
    grid-template-columns: repeat(3, 1fr);
}

.timer-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(251, 113, 133, 0.15);
    border-radius: 14px;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timer-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 113, 133, 0.3);
}

.timer-block .time-val {
    font-family: monospace;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.timer-block .time-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.3rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.time-totals-list {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(251, 113, 133, 0.2);
    padding-top: 1.25rem;
}

.total-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.total-item strong {
    font-family: monospace;
    color: var(--text-primary);
}

/* Timeline Panel */
.timeline-card {
    border-color: rgba(251, 113, 133, 0.2);
}

.timeline-visual-wrapper {
    position: relative;
    padding: 3.5rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-50%);
    border-radius: 3px;
}

.timeline-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-love), var(--accent-confianca), var(--accent-peace));
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 0;
}

/* Timeline nodes look like glowing stars */
.timeline-pulse-node {
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border: 4px solid var(--accent-peace);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 0%;
    box-shadow: 0 0 15px var(--accent-peace), 0 0 30px rgba(56, 189, 248, 0.4);
    z-index: 10;
    animation: pulse-sun 2s infinite ease-in-out;
}

@keyframes pulse-sun {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px var(--accent-peace); }
    50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 25px var(--accent-peace), 0 0 35px rgba(56, 189, 248, 0.6); }
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    height: 0;
}

.timeline-node {
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.node-start { left: 0%; }
.node-25 { left: 25%; }
.node-50 { left: 50%; }
.node-75 { left: 75%; }
.node-target { left: 100%; }

.node-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(251, 113, 133, 0.2);
    border-radius: 50%;
    z-index: 5;
    transition: var(--transition-smooth);
}

.timeline-node:hover .node-dot {
    background: var(--text-primary);
    box-shadow: 0 0 12px var(--text-primary);
}

.timeline-node.completed .node-dot {
    background: var(--accent-peace);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Goal node is a warm hope-blue star beacon representing Recomeço */
.node-target .node-dot {
    background: rgba(56, 189, 248, 0.35);
    border-color: var(--accent-peace);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    width: 14px;
    height: 14px;
}

.timeline-node.completed.node-target .node-dot {
    background: var(--accent-peace);
    box-shadow: 0 0 20px var(--accent-peace);
}

.node-info {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    text-align: center;
}

/* Alternate top/bottom layout to avoid collision */
.node-start .node-info,
.node-50 .node-info,
.node-target .node-info {
    top: 18px;
}

.node-25 .node-info,
.node-75 .node-info {
    bottom: 18px;
    flex-direction: column-reverse;
}

.node-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.node-date {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Milestones Grid */
.milestones-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(251, 113, 133, 0.2);
    padding-top: 2rem;
}

.milestone-status-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(251, 113, 133, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.milestone-status-box.reached {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
}

.milestone-status-box.reached .status-icon i {
    color: var(--accent-peace);
    filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.4));
}

.milestone-status-box.active {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.3);
}

.milestone-status-box.active .status-icon i {
    color: var(--accent-confianca);
}

.milestone-status-box .status-icon i {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.status-details {
    display: flex;
    flex-direction: column;
}

.m-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Footer */
.dashboard-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(251, 113, 133, 0.2);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* WhatsApp-style Toggle Button */
.btn-chat-whatsapp {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #22c55e !important;
}

.btn-chat-whatsapp:hover {
    background: rgba(34, 197, 94, 0.28) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.45) !important;
    transform: translateY(-2px);
}

/* Secure Chat Styles */
.secure-chat-card {
    padding: 0; /* Handled by internal panels */
    border-color: rgba(251, 113, 133, 0.22);
    box-shadow: var(--shadow-main);
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.04) 0%, rgba(56, 189, 248, 0.04) 100%), rgba(20, 9, 34, 0.65);
    margin-bottom: 0.5rem;
}

/* Locked Panel */
.chat-locked-panel {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
}

.lock-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.lock-header i {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.4));
}

.lock-form {
    display: flex;
    gap: 0.75rem;
    max-width: 320px;
    width: 100%;
}

.lock-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 113, 133, 0.22);
    border-radius: 12px;
    padding: 0.75rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    outline: none;
    transition: var(--transition-smooth);
}

.lock-form input:focus {
    border-color: var(--accent-love);
    background: rgba(255, 255, 255, 0.06);
}

.lock-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Unlocked Chat Panel */
.chat-main-panel {
    display: flex;
    flex-direction: column;
    height: 480px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid rgba(251, 113, 133, 0.15);
    background: rgba(12, 7, 29, 0.4);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-love);
    color: #0c071d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.3);
}

.user-avatar.user-A {
    background: var(--accent-peace);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.chat-title-wrapper {
    display: flex;
    flex-direction: column;
}

.chat-recipient {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.chat-status-active {
    font-size: 0.75rem;
    color: var(--accent-recomeco);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auto-lock-timer {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 113, 133, 0.1);
}

/* Chat History / Messages list */
.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(12, 7, 29, 0.45);
    background-image: radial-gradient(rgba(251, 113, 133, 0.015) 1px, transparent 0);
    background-size: 24px 24px;
    border-bottom: 1px solid rgba(251, 113, 133, 0.15);
}

/* Scrollbar styling for chat */
.chat-history::-webkit-scrollbar {
    width: 6px;
}
.chat-history::-webkit-scrollbar-track {
    background: transparent;
}
.chat-history::-webkit-scrollbar-thumb {
    background: rgba(251, 113, 133, 0.15);
    border-radius: 3px;
}
.chat-history::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 113, 133, 0.3);
}

.chat-message-group {
    display: flex;
    flex-direction: column;
    max-width: 68%;
    padding: 0.65rem 0.85rem;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Left Bubbles (Other user) */
.chat-message-group.message-left {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 2px;
}

/* Right Bubbles (Current user) */
.chat-message-group.message-right {
    align-self: flex-end;
    /* Soft Hope-green / Blue tint for current user */
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-top-right-radius: 2px;
}

.chat-message-text {
    color: var(--text-primary);
}

.chat-message-img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    display: block;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.chat-message-img:hover {
    transform: scale(1.02);
}

.chat-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.chat-message-sender {
    font-weight: 700;
}

/* Input Panel */
.chat-input-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem;
    background: rgba(12, 7, 29, 0.4);
}

.chat-attach-button, .chat-send-button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(251, 113, 133, 0.2);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-attach-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-peace);
    border-color: rgba(56, 189, 248, 0.45);
}

.chat-send-button {
    background: var(--accent-love);
    color: #0c071d;
    border: none;
}

.chat-send-button:hover {
    background: #fb7185;
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.35);
}

.chat-input-panel input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input-panel input[type="text"]:focus {
    border-color: var(--accent-love);
    background: rgba(255, 255, 255, 0.05);
}

/* Shake Animation for incorrect PIN */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Responsive Grid and mobile stack */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-3 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1.5rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    .header-right {
        justify-content: space-between;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
    .hero-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .status-badge {
        align-self: center;
    }
    .journey-limits {
        flex-direction: column;
        gap: 0.6rem;
    }
    .limit-separator {
        transform: rotate(90deg);
        padding: 0.25rem;
    }
    .milestones-status-grid {
        grid-template-columns: 1fr;
    }
    .node-info {
        display: none; /* Hide node labels on mobile to avoid overlapping */
    }
}
