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

:root {
    --bg-dark: #0F172A;
    --card-dark: #1E293B;
    --card-darker: #162032;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;

    --color-blue: #3B82F6;
    --color-green: #22C55E;
    --color-orange: #F97316;
    --color-red: #EF4444;
    --color-yellow: #EAB308;

    /* 5W2H accent — blue/action tone */
    --accent: #3B82F6;
    --accent-glow: rgba(59,130,246,0.25);
    --accent-border: rgba(59,130,246,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex; flex-direction: column;
    min-height: 100vh; overflow-x: hidden;
    transition: background-color 0.4s;
}

/* ==============================
   TOP BAR
   ============================== */
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(15,23,42,0.95);
    border-bottom: 1px solid rgba(59,130,246,0.15);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
}

.logo-text { display: flex; align-items: baseline; gap: 0.3rem; font-weight: 900; font-size: 1.2rem; }
.logo-neg { color: var(--text-light); }
.logo-da { color: var(--text-muted); font-weight: 400; font-size: 1rem; }
.logo-gente { color: var(--color-orange); }
.logo-module {
    background: var(--color-blue);
    color: white; font-size: 0.7rem;
    padding: 0.2rem 0.5rem; border-radius: 6px;
    font-weight: 800; letter-spacing: 1px;
    margin-left: 0.3rem; align-self: center;
}

.topbar-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-blue); margin-right: 10px; display: none; }
.topbar-avatar.show { display: block; animation: popIn 0.3s ease; }

.progress-container { display: flex; align-items: center; gap: 0.5rem; flex: 1; max-width: 400px; margin: 0 2rem; }
.step-label { font-weight: 700; font-size: 0.9rem; color: white; min-width: 30px; }
.progress-bar-bg { flex: 1; height: 12px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-blue), var(--color-green)); width: 0%; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); border-radius: 10px; }

.xp-pill {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    padding: 0.5rem 1rem; border-radius: 30px;
    font-weight: 800; color: white;
}
.star { font-size: 1.1rem; }

/* ==============================
   GLOBAL
   ============================== */
.app-main { flex: 1; display: flex; flex-direction: column; position: relative; }
.screen { display: none; padding: 4rem 2rem; width: 100%; animation: fadeIn 0.4s ease; }
.screen.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn  { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes pulseBlue { 0%,100% { box-shadow: 0 0 20px rgba(59,130,246,0.3); } 50% { box-shadow: 0 0 40px rgba(59,130,246,0.55); } }

.content-wrapper { max-width: 960px; margin: 0 auto; }
.full-width { max-width: 1280px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.col { flex-direction: column; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.7; max-width: 700px; margin-inline: auto; }
.highlight-blue { color: var(--color-blue); }
.highlight-name { color: var(--color-orange); }

.section-title { font-size: 2.4rem; font-weight: 900; margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 700px; margin-inline: auto; line-height: 1.7; }

.badge-module {
    display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
    background: rgba(59,130,246,0.12); color: #60A5FA;
    font-weight: 700; font-size: 0.82rem; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(59,130,246,0.2);
}

/* ==============================
   BUTTONS
   ============================== */
.btn-primary {
    background: var(--color-blue); color: white;
    border: none; padding: 1.2rem 2.5rem;
    font-size: 1.05rem; font-weight: 800; border-radius: 50px;
    cursor: pointer; transition: 0.2s;
    box-shadow: 0 6px 0 #1D4ED8;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 #1D4ED8; filter: brightness(1.1); }
.btn-primary:active { transform: translateY(6px); box-shadow: 0 0 0 #1D4ED8; }

.btn-outline {
    background: transparent; color: var(--color-orange);
    border: 2px solid var(--color-orange);
    padding: 1.2rem 2.5rem; font-size: 1.05rem;
    font-weight: 800; border-radius: 50px;
    cursor: pointer; transition: 0.2s; text-transform: uppercase;
}
.btn-outline:hover { background: rgba(249,115,22,0.1); }

.btn-back {
    background: transparent; color: var(--text-muted);
    border: none; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; margin-bottom: 2rem;
    transition: 0.2s; font-weight: 600;
}
.btn-back:hover { color: white; transform: translateX(-5px); }

/* ==============================
   HOME
   ============================== */
.home-layout {
    min-height: 80vh; display: flex; align-items: center;
    justify-content: center; position: relative; text-align: center;
}
.action-ambient {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,0.09), transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(34,197,94,0.06), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(249,115,22,0.04), transparent 40%);
    pointer-events: none;
}
.home-content { position: relative; z-index: 2; max-width: 800px; }
.home-stats-row { display: flex; gap: 2rem; justify-content: center; margin: 2.5rem 0; flex-wrap: wrap; }
.home-stat {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem 2rem; border-radius: 16px;
}
.stat-val { font-size: 2rem; font-weight: 900; color: var(--color-blue); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* ==============================
   5W2H INTRO GRID
   ============================== */
.w2h-intro-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem; margin: 2.5rem 0; text-align: left;
}
/* 5 items in first row, 2 in second — use full-width for last 2 */
.w2h-intro-grid .w2h-intro-card:nth-child(6),
.w2h-intro-grid .w2h-intro-card:nth-child(7) {
    /* Spans naturally in 4-col grid */
}

.w2h-intro-card {
    background: var(--card-dark); border-radius: 18px;
    padding: 1.8rem 1.5rem; border-top: 3px solid rgba(59,130,246,0.4);
    transition: transform 0.25s ease, border-color 0.25s;
}
.w2h-intro-card:nth-child(6), .w2h-intro-card:nth-child(7) {
    border-top-color: rgba(34,197,94,0.4);
}
.w2h-intro-card:hover { transform: translateY(-4px); border-top-color: var(--color-blue); }
.w2h-intro-card:nth-child(6):hover, .w2h-intro-card:nth-child(7):hover { border-top-color: var(--color-green); }

.w2h-letter { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.w2h-intro-card h3 { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 0.3rem; }
.w2h-pt { font-size: 0.82rem; font-weight: 700; color: #60A5FA; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }
.w2h-intro-card:nth-child(6) .w2h-pt,
.w2h-intro-card:nth-child(7) .w2h-pt { color: #4ADE80; }
.w2h-intro-card p:last-child { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* History card */
.history-card {
    background: rgba(255,255,255,0.03); padding: 2rem;
    border-radius: 16px; display: flex; gap: 1.5rem;
    align-items: flex-start; border: 1px solid rgba(255,255,255,0.08);
    text-align: left; max-width: 760px; margin: 2rem auto 0;
    transition: border-color 0.3s;
}
.history-card:hover { border-color: rgba(59,130,246,0.3); }
.history-icon { font-size: 2.5rem; flex-shrink: 0; }
.history-content h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.5rem; color: white; }
.history-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

.tip-box {
    background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px; padding: 1.5rem 2rem;
    display: flex; gap: 1rem; align-items: flex-start;
    text-align: left; max-width: 760px; margin-inline: auto;
}
.tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.tip-box p { font-size: 0.95rem; color: #CBD5E1; line-height: 1.6; }

/* ==============================
   CHARACTER GRID
   ============================== */
.character-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; max-width: 900px; margin: 0 auto;
}
.char-card {
    background: var(--card-dark); border-radius: 24px;
    padding: 2.5rem 2rem; display: flex; flex-direction: column;
    align-items: center; gap: 0.8rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.char-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.char-avatar-img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card-dark); }
.char-name { font-size: 1.3rem; font-weight: 800; }
.char-biz { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.char-action-tag {
    font-size: 0.75rem; font-weight: 700;
    background: rgba(59,130,246,0.12); color: #60A5FA;
    padding: 0.3rem 0.8rem; border-radius: 20px;
    border: 1px solid rgba(59,130,246,0.2);
}
.btn-select-action {
    padding: 1rem 2rem; border-radius: 50px; font-weight: 800;
    color: white; width: 100%; border: none; cursor: pointer;
    transition: 0.2s; text-transform: uppercase; font-size: 0.95rem;
    margin-top: 0.5rem;
}
.btn-select-action:hover { filter: brightness(1.15); transform: scale(1.02); }

/* ==============================
   CONTEXT SCREEN
   ============================== */
.context-layout { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
.context-profile {
    background: var(--card-dark); padding: 2.5rem; border-radius: 24px;
    text-align: center; border: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 100px;
}
.avatar-glow-wrapper { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.avatar-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card-dark); }
.ctx-name { font-size: 1.8rem; font-weight: 900; margin-bottom: 0.3rem; }
.ctx-biz { color: var(--text-muted); font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; }

.module-trail {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    flex-wrap: wrap; margin-top: 0.5rem;
}
.trail-item {
    font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.6rem;
    border-radius: 8px; background: rgba(255,255,255,0.05);
    color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1);
}
.trail-item.done { background: rgba(34,197,94,0.1); color: #4ADE80; border-color: rgba(34,197,94,0.2); }
.trail-item.active-trail { background: rgba(59,130,246,0.15); color: #60A5FA; border-color: rgba(59,130,246,0.3); }
.trail-arrow { color: var(--text-muted); font-size: 0.75rem; }

.continuation-tag {
    display: inline-block; font-size: 0.82rem; font-weight: 700;
    color: #60A5FA; margin-bottom: 1rem;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    padding: 0.3rem 0.8rem; border-radius: 20px;
}
.subsection-title { font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0.5rem; }
.text-block { background: var(--card-dark); padding: 2rem; border-radius: 16px; font-size: 1rem; line-height: 1.8; color: #CBD5E1; border: 1px solid rgba(255,255,255,0.05); }
.text-block p { margin-bottom: 0.8rem; }

.crisis-quote-box {
    background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px; padding: 1.5rem;
    display: flex; gap: 1.5rem; align-items: flex-start;
}
.quote-avatar-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(59,130,246,0.3); }
.quote-label { font-size: 0.8rem; font-weight: 700; color: #60A5FA; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }
blockquote { font-style: italic; color: #E2E8F0; line-height: 1.7; font-size: 1rem; }

.top-problem-box {
    background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.25);
    border-radius: 16px; padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-blue);
}
.top-problem-header { margin-bottom: 0.8rem; }
.top-problem-tag {
    font-size: 0.8rem; font-weight: 800; color: #60A5FA;
    text-transform: uppercase; letter-spacing: 1px;
}
.top-problem-text { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 0.6rem; }
.top-problem-ctx { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ==============================
   ACTION CARDS
   ============================== */
.action-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 2rem; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.action-header h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 0.4rem; }
.action-subtitle { color: var(--text-muted); font-size: 1rem; }

.action-top-problem-pill {
    background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 12px; padding: 1rem 1.5rem;
    max-width: 320px; flex-shrink: 0;
}
.pill-label { font-size: 0.75rem; font-weight: 700; color: #60A5FA; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.3rem; }
#action-pill-text { font-size: 0.9rem; color: #CBD5E1; font-weight: 600; line-height: 1.4; }

.action-cards-container { display: flex; flex-direction: column; gap: 1.4rem; }

.action-card {
    background: var(--card-dark);
    border: 2px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 2rem;
    cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.action-card:hover { border-color: var(--color-blue); transform: translateX(4px); box-shadow: 0 8px 24px rgba(59,130,246,0.1); }

.action-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.action-option-num {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: rgba(59,130,246,0.12); color: #60A5FA;
    border: 1px solid rgba(59,130,246,0.25);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem;
}
.action-card-label { font-size: 1.1rem; font-weight: 700; color: white; line-height: 1.5; flex: 1; }
.action-card-arrow { color: var(--text-muted); font-size: 1.2rem; transition: transform 0.2s, color 0.2s; }
.action-card:hover .action-card-arrow { transform: translateX(4px); color: var(--color-blue); }

.action-card-preview {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.action-preview-pill {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 0.7rem 0.8rem;
}
.preview-key { font-size: 0.72rem; font-weight: 800; color: #60A5FA; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 0.2rem; }
.preview-val { font-size: 0.82rem; color: #CBD5E1; line-height: 1.4; }

/* ==============================
   PLAN DETAIL
   ============================== */
.plan-detail-header { margin-bottom: 1rem; }

.plan-5w2h-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.plan-field-card {
    background: var(--card-dark); border-radius: 18px;
    padding: 1.8rem; border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.2s;
    animation: fadeIn 0.3s ease both;
}
.plan-field-card:hover { border-color: rgba(59,130,246,0.3); }
.plan-field-card.full-col { grid-column: 1 / -1; }
.plan-field-card.two-col { grid-column: span 2; }

.pfc-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.pfc-letter {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; flex-shrink: 0;
}
.pfc-letter.blue-bg { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.pfc-letter.green-bg { background: rgba(34,197,94,0.15); color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.pfc-header h4 { font-size: 1rem; font-weight: 800; color: white; margin-bottom: 0.1rem; }
.pfc-header p { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.pfc-value { font-size: 0.97rem; color: #CBD5E1; line-height: 1.7; }

/* ==============================
   FEEDBACK
   ============================== */
.score-circle {
    width: 200px; height: 200px; border-radius: 50%;
    border: 8px solid var(--color-blue);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 2rem; background: rgba(0,0,0,0.2);
    animation: pulseBlue 2s infinite;
}
.score-circle.good { border-color: var(--color-green); animation: none; box-shadow: 0 0 30px rgba(34,197,94,0.3); }
.score-circle.good .score-number { color: var(--color-green); }
.score-label { font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.score-number { font-size: 4rem; font-weight: 900; color: var(--color-blue); line-height: 1; margin: 0.5rem 0; }
.score-sub { font-weight: 800; font-size: 1.2rem; color: white; }

.feedback-box {
    background: var(--card-dark); padding: 2.5rem; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    max-width: 700px; text-align: left; margin-bottom: 1rem;
}
.feedback-box h3 { font-size: 1.4rem; margin-bottom: 1rem; color: white; }
.fb-content { font-size: 1.05rem; color: #CBD5E1; line-height: 1.7; }

.speech-bubble-container {
    display: flex; align-items: flex-start; gap: 2rem;
    max-width: 700px; margin: 1rem auto; text-align: left;
    animation: popIn 0.5s ease;
}
.fb-avatar-bubble {
    width: 110px; height: 110px; border-radius: 50%;
    border: 4px solid var(--color-green); object-fit: cover;
    box-shadow: 0 0 25px rgba(34,197,94,0.4); flex-shrink: 0;
    background: var(--card-dark);
}
.speech-bubble {
    position: relative; background: var(--card-dark); color: white;
    padding: 1.5rem 2rem; border-radius: 20px; font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid rgba(34,197,94,0.3);
    line-height: 1.6;
}
.speech-bubble::before {
    content: ''; position: absolute; left: -14px; top: 35px;
    border-top: 15px solid transparent; border-bottom: 15px solid transparent;
    border-right: 15px solid var(--card-dark);
}
.speech-bubble::after {
    content: ''; position: absolute; left: -16px; top: 35px;
    border-top: 15px solid transparent; border-bottom: 15px solid transparent;
    border-right: 15px solid rgba(34,197,94,0.3); z-index: -1;
}
.fb-success-title { font-size: 1rem; font-weight: 800; color: var(--color-green); margin-bottom: 0.5rem; }
.speech-bubble p { font-style: italic; font-size: 1rem; color: #E2E8F0; }

/* ==============================
   PERSONAL 5W2H
   ============================== */
.personal-problem-section { max-width: 760px; margin: 0 auto; }
.personal-label { display: block; font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 0.8rem; }
.personal-big-input {
    width: 100%; background: var(--card-dark);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
    padding: 1.2rem 1.5rem; color: white; font-family: inherit;
    font-size: 1.05rem; transition: 0.3s;
}
.personal-big-input:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.12); }
.personal-big-input::placeholder { color: rgba(255,255,255,0.25); }

.personal-5w2h-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; max-width: 960px; margin: 0 auto;
}
.personal-field-card {
    background: var(--card-dark); border-radius: 18px; padding: 1.8rem;
    border: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 0.8rem;
}
.full-width-card { grid-column: 1 / -1; }
.pf-header { display: flex; align-items: flex-start; gap: 0.8rem; }
.pf-letter {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem;
}
.blue-letter { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.green-letter { background: rgba(34,197,94,0.15); color: #4ADE80; border: 1px solid rgba(34,197,94,0.25); }
.pf-header h4 { font-size: 1rem; font-weight: 800; color: white; margin-bottom: 0.15rem; }
.pf-header p { font-size: 0.78rem; color: var(--text-muted); }
.personal-field-card textarea {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 1rem 1.2rem;
    color: white; font-family: inherit; font-size: 0.95rem;
    resize: none; height: 120px; transition: 0.3s; line-height: 1.6;
}
.personal-field-card textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.personal-field-card textarea::placeholder { color: rgba(255,255,255,0.2); }
.full-width-card textarea { height: 90px; }

.personal-final-quote {
    max-width: 600px; margin: 0 auto;
    text-align: center; padding: 1.5rem 2rem;
    border: 1px solid rgba(255,255,255,0.07); border-radius: 16px;
    background: rgba(255,255,255,0.02);
}
.personal-final-quote p { font-size: 1rem; font-style: italic; color: var(--text-muted); line-height: 1.7; }

/* ==============================
   END
   ============================== */
.end-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(59,130,246,0.07), transparent 60%);
    pointer-events: none;
}
.final-score-box {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem 4rem; border-radius: 24px; margin-bottom: 1rem;
}
.final-score-label { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.final-score-num { font-size: 4rem; font-weight: 900; color: var(--color-blue); }

/* ==============================
   TOAST
   ============================== */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white; color: var(--bg-dark);
    padding: 1.2rem 2.5rem; border-radius: 50px;
    font-weight: 800; opacity: 0;
    transition: 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 6px solid; font-size: 1rem;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: var(--color-green); }
.toast.error { border-color: var(--color-red); }
.toast.info { border-color: var(--color-blue); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .w2h-intro-grid { grid-template-columns: repeat(3, 1fr); }
    .action-card-preview { grid-template-columns: repeat(2, 1fr); }
    .plan-5w2h-grid { grid-template-columns: repeat(2, 1fr); }
    .personal-5w2h-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .character-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
    .context-layout { grid-template-columns: 1fr; gap: 2rem; }
    .context-profile { position: static; }
    .action-header { flex-direction: column; }
    .action-top-problem-pill { max-width: 100%; }
    .speech-bubble-container { flex-direction: column; }
    .speech-bubble::before, .speech-bubble::after { display: none; }
}
@media (max-width: 700px) {
    .w2h-intro-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-5w2h-grid, .personal-5w2h-grid { grid-template-columns: 1fr; }
    .plan-field-card.two-col, .plan-field-card.full-col { grid-column: 1; }
    .full-width-card { grid-column: 1; }
    .screen { padding: 2.5rem 1rem; }
    .hero-title { font-size: 2.2rem; }
    .home-stats-row { gap: 1rem; }
    .action-card-preview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .w2h-intro-grid { grid-template-columns: 1fr; }
}

/* ==============================
   AVATAR EVOLUTION ANIMATION
   ============================== */
.avatar-img, .fb-avatar-bubble, .topbar-avatar, .quote-avatar-img {
    transition: opacity 0.5s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

/* ============================================================
   TELA FINAL ÉPICA — compartilhado entre os 3 módulos
   (adicionar também em style.css e style-gut.css)
   ============================================================ */

.screen-end-epic {
    background: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.end-ambient {
    --end-color: #22C55E;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(34,197,94,0.07), transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 80%, rgba(34,197,94,0.04), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.end-wrapper {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── TOPO ── */
.end-top { max-width: 680px; margin: 0 auto; }

.end-module-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22C55E;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

.end-headline {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.end-accent { display: block; }

.end-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* ── CARD DO PERSONAGEM ── */
.end-char-reveal {
    background: var(--card-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    animation: slideUp 0.6s ease both;
}

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

.ecr-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.ecr-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    display: block;
    transition: opacity 0.4s ease, box-shadow 0.5s ease;
}

.ecr-status-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.04); }
}

.ecr-info { flex: 1; min-width: 0; }

.ecr-before-after {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.ecr-state {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}
.ecr-state-before {
    background: rgba(239,68,68,0.12);
    color: #F87171;
}
.ecr-state-after {
    background: rgba(34,197,94,0.12);
    color: #4ADE80;
}
.ecr-arrow { color: var(--text-muted); font-size: 1rem; }

.ecr-name {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}
.ecr-biz {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.ecr-quote {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    border-left: 3px solid rgba(255,255,255,0.1);
    padding-left: 0.9rem;
    margin: 0;
}

.ecr-quote::before { content: '"'; opacity: 0.5; }
.ecr-quote::after  { content: '"'; opacity: 0.5; }

/* ── APRENDIZADOS ── */
.end-learnings {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.end-learning-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.end-learnings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

@media (max-width: 680px) {
    .end-learnings-grid { grid-template-columns: 1fr; }
    .end-char-reveal { flex-direction: column; text-align: center; }
    .ecr-quote { text-align: left; }
}

.end-learning-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease both;
}

.eli-icon {
    font-size: 1.4rem;
}

.eli-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.eli-text strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
}

.eli-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── LINHA DO TEMPO (só no 5W2H) ── */
.end-journey {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.end-journey-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    text-align: center;
}

.end-journey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ejs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 160px;
}

.ejs-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ejs-label {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.ejs-desc {
    font-size: 0.73rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.ejs-connector {
    height: 2px;
    flex: 1;
    max-width: 60px;
    background: linear-gradient(90deg, rgba(249,115,22,0.4), rgba(34,197,94,0.4));
    margin-bottom: 2rem;
}

/* ── REFLEXÃO ── */
.end-reflection {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
}

.end-reflection-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.end-reflection-text strong {
    color: var(--text-light);
    font-style: normal;
}

.end-reflection-sub {
    font-size: 0.88rem;
    font-weight: 700;
    color: #22C55E;
}

/* ── XP + AÇÕES ── */
.end-bottom {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.end-xp-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 1.2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.end-xp-epic {
    animation: xpGlow 2s ease-in-out infinite;
}

@keyframes xpGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(34,197,94,0); }
    50%       { box-shadow: 0 0 30px rgba(34,197,94,0.15); }
}

.end-xp-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.end-xp-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: #22C55E;
}

.end-xp-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.end-next-teaser {
    background: rgba(34,197,94,0.04);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.ent-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.ent-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}

.ent-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.end-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.end-cta-btn {
    font-size: 0.9rem;
    padding: 0.85rem 1.8rem;
}

.end-cta-final {
    background: #22C55E;
    color: #0A0F1E;
    font-weight: 900;
}

.end-cta-final:hover {
    background: #16A34A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34,197,94,0.35);
}

.end-actions-final { margin-top: 0; }
