@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;
    
    --g-color: #EF4444;
    --u-color: #F97316;
    --t-color: #EAB308;
    
    --bg-light: #F1F5F9;
    --card-light: #FFFFFF;
    --text-dark: #0F172A;
}

* { 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(239, 68, 68, 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-red);
    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-red); 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-red), var(--color-orange)); 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(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem; border-radius: 30px;
    font-weight: 800; color: white;
}
.star { font-size: 1.1rem; }

/* ==============================
   GLOBAL SCREENS
   ============================== */
.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; }
.screen-crisis { background: linear-gradient(180deg, #0F172A 0%, #1a0f1a 100%); }

@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 pulseGlow { 0%, 100% { box-shadow: 0 0 20px rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 40px rgba(239,68,68,0.6); } }

.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: 680px; margin-inline: auto; }
.highlight-red { color: var(--color-red); }
.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: 680px; margin-inline: auto; line-height: 1.7; }

.badge-module {
    display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
    background: rgba(239, 68, 68, 0.12); color: #F87171;
    font-weight: 700; font-size: 0.82rem; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge-alert { background: rgba(234, 179, 8, 0.12); color: #FCD34D; border-color: rgba(234,179,8,0.2); }

/* ==============================
   BUTTONS
   ============================== */
.btn-primary {
    background: var(--color-red); 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 #991B1B;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 #991B1B; filter: brightness(1.1); }
.btn-primary:active { transform: translateY(6px); box-shadow: 0 0 0 #991B1B; }

.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); }

.btn-add-problem {
    display: block; margin: 0 auto;
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed rgba(59, 130, 246, 0.4);
    color: var(--color-blue);
    padding: 1rem 2rem; border-radius: 12px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: 0.2s;
}
.btn-add-problem:hover { background: rgba(59, 130, 246, 0.18); border-color: var(--color-blue); }

/* ==============================
   HOME
   ============================== */
.home-layout {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center;
}

.crisis-ambient {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(239, 68, 68, 0.08), transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(249, 115, 22, 0.07), transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(234, 179, 8, 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-red); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* ==============================
   GUT INTRO CARDS
   ============================== */
.gut-intro-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin: 2.5rem 0; text-align: left;
}

.gut-intro-card {
    background: var(--card-dark); border-radius: 20px;
    padding: 2.5rem 2rem; border-top: 4px solid;
    transition: transform 0.3s ease;
}
.gut-intro-card:hover { transform: translateY(-5px); }

.g-card { border-color: var(--g-color); }
.u-card { border-color: var(--u-color); }
.t-card { border-color: var(--t-color); }

.gut-letter {
    font-size: 3.5rem; font-weight: 900; line-height: 1;
    margin-bottom: 1rem; opacity: 0.9;
}
.g-card .gut-letter { color: var(--g-color); }
.u-card .gut-letter { color: var(--u-color); }
.t-card .gut-letter { color: var(--t-color); }

.gut-intro-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.7rem; color: white; }
.gut-intro-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.scale-example {
    font-size: 0.8rem; font-weight: 700;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 0.8rem; border-radius: 8px;
    color: var(--text-muted);
}

/* Formula Box */
.formula-box {
    background: var(--card-dark);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 2.5rem; margin-top: 2rem;
}
.formula-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem;
}
.formula-part {
    width: 70px; height: 70px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.g-col { background: rgba(239,68,68,0.15); color: var(--g-color); border: 2px solid rgba(239,68,68,0.3); }
.u-col { background: rgba(249,115,22,0.15); color: var(--u-color); border: 2px solid rgba(249,115,22,0.3); }
.t-col { background: rgba(234,179,8,0.15); color: var(--t-color); border: 2px solid rgba(234,179,8,0.3); }
.formula-op { color: var(--text-muted); font-size: 2rem; }
.formula-result {
    background: rgba(34,197,94,0.1); color: var(--color-green);
    border: 2px solid rgba(34,197,94,0.3);
    padding: 0.5rem 1.5rem; border-radius: 30px;
    font-size: 1.3rem;
}
.formula-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* 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: 720px; margin: 2rem auto 0;
    transition: border-color 0.3s;
}
.history-card:hover { border-color: rgba(239,68,68,0.3); }
.history-icon { font-size: 3rem; flex-shrink: 0; }
.history-content h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.6rem; color: white; }
.history-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* Use cases */
.use-cases-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem; margin-top: 2rem;
}
.use-case-card {
    background: var(--card-dark);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 1.8rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.use-case-card:hover { transform: translateY(-4px); border-color: rgba(239,68,68,0.3); }
.use-icon { font-size: 2.2rem; display: block; margin-bottom: 0.8rem; }
.use-case-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem; color: white; }
.use-case-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.tip-box {
    background: rgba(59,130,246,0.08);
    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: 720px; 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);
    filter: grayscale(10%);
}
.char-name { font-size: 1.3rem; font-weight: 800; }
.char-biz { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.char-crisis-tag {
    font-size: 0.75rem; font-weight: 700;
    background: rgba(239,68,68,0.12);
    color: #F87171; padding: 0.3rem 0.8rem;
    border-radius: 20px; border: 1px solid rgba(239,68,68,0.2);
}
.btn-select-gut {
    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-gut: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);
    position: relative; z-index: 1;
}
.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; }
.since-badge {
    display: flex; flex-direction: column; align-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1rem;
    font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
}
.since-badge small { font-size: 0.75rem; font-weight: 400; opacity: 0.7; margin-top: 0.2rem; }

.continuation-tag {
    display: inline-block; font-size: 0.82rem; font-weight: 700;
    color: #FCD34D; margin-bottom: 1rem;
    background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,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(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,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(239,68,68,0.3);
}
.quote-label { font-size: 0.8rem; font-weight: 700; color: #F87171; 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; }

/* ==============================
   GUT PROBLEM CARDS
   ============================== */
.gut-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.gut-header h2 { font-size: 2rem; font-weight: 900; margin-bottom: 0.4rem; }
.gut-header p { color: var(--text-muted); font-size: 1rem; }
.gut-legend { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.leg-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.leg-dot { width: 12px; height: 12px; border-radius: 50%; }
.g-dot { background: var(--g-color); }
.u-dot { background: var(--u-color); }
.t-dot { background: var(--t-color); }

.problems-container { display: flex; flex-direction: column; gap: 1.2rem; }

.problem-card {
    background: var(--card-dark);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 1.5rem 2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.problem-card.complete { border-color: rgba(34,197,94,0.3); box-shadow: 0 0 0 1px rgba(34,197,94,0.1) inset; }

.problem-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.problem-text { font-size: 1.05rem; font-weight: 700; color: white; flex: 1; line-height: 1.5; }
.problem-score {
    font-size: 1.8rem; font-weight: 900; min-width: 60px;
    text-align: right; color: var(--text-muted);
    transition: color 0.3s;
}
.problem-score.score-low { color: var(--color-green); }
.problem-score.score-mid { color: var(--color-yellow); }
.problem-score.score-high { color: var(--color-orange); }
.problem-score.score-critical { color: var(--color-red); }

.gut-sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.slider-group { display: flex; flex-direction: column; gap: 0.6rem; }
.slider-label { display: flex; justify-content: space-between; align-items: center; }
.slider-name { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.slider-g { color: var(--g-color); }
.slider-u { color: var(--u-color); }
.slider-t { color: var(--t-color); }
.slider-val { font-size: 1.1rem; font-weight: 900; }

input[type="range"] {
    -webkit-appearance: none; width: 100%; height: 8px;
    border-radius: 4px; outline: none; cursor: pointer;
    transition: 0.2s;
}
input[type="range"].g-range { background: rgba(239,68,68,0.2); }
input[type="range"].u-range { background: rgba(249,115,22,0.2); }
input[type="range"].t-range { background: rgba(234,179,8,0.2); }

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px;
    border-radius: 50%; cursor: pointer; transition: transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.g-range::-webkit-slider-thumb { background: var(--g-color); }
.u-range::-webkit-slider-thumb { background: var(--u-color); }
.t-range::-webkit-slider-thumb { background: var(--t-color); }

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.hint-tip {
    margin-top: 1rem; font-size: 0.85rem; color: #64748B;
    font-style: italic; padding-left: 1rem;
    border-left: 3px solid rgba(255,255,255,0.1);
    line-height: 1.5; display: none;
}
.problem-card:hover .hint-tip { display: block; }

.complete-msg { color: var(--color-green); font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }

/* ==============================
   RANKING
   ============================== */
.ranking-list { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; margin: 0 auto; }

.rank-item {
    background: var(--card-dark); border-radius: 16px;
    padding: 1.5rem 2rem; display: flex;
    align-items: center; gap: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    animation: fadeIn 0.3s ease both;
}
.rank-item:nth-child(1) { border-color: rgba(239,68,68,0.3); box-shadow: 0 0 20px rgba(239,68,68,0.08); }
.rank-item:nth-child(2) { border-color: rgba(249,115,22,0.25); }
.rank-item:nth-child(3) { border-color: rgba(234,179,8,0.2); }

.rank-position {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 900; flex-shrink: 0;
}
.rank-1 { background: rgba(239,68,68,0.15); color: var(--g-color); border: 2px solid rgba(239,68,68,0.3); }
.rank-2 { background: rgba(249,115,22,0.15); color: var(--u-color); border: 2px solid rgba(249,115,22,0.3); }
.rank-3 { background: rgba(234,179,8,0.15); color: var(--t-color); border: 2px solid rgba(234,179,8,0.3); }
.rank-other { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 2px solid rgba(255,255,255,0.1); }

.rank-content { flex: 1; text-align: left; }
.rank-text { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.rank-breakdown { font-size: 0.85rem; color: var(--text-muted); }
.rank-breakdown span { margin-right: 1rem; font-weight: 600; }
.rank-g { color: var(--g-color); }
.rank-u { color: var(--u-color); }
.rank-t { color: var(--t-color); }

.rank-score {
    font-size: 2rem; font-weight: 900; min-width: 55px;
    text-align: right;
}
.rank-1 .rank-score { color: var(--g-color); }
.rank-2 .rank-score { color: var(--u-color); }
.rank-3 .rank-score { color: var(--t-color); }
.rank-other .rank-score { color: var(--text-muted); }

.priority-question {
    background: var(--card-dark); border-radius: 20px;
    padding: 2rem; border: 1px solid rgba(234,179,8,0.2);
    max-width: 800px; margin: 2rem auto 0;
}
.priority-question h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.priority-question p { color: var(--text-muted); }

.priority-options { display: flex; flex-direction: column; gap: 0.8rem; }
.priority-opt {
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1.2rem 1.5rem;
    cursor: pointer; text-align: left; font-size: 0.95rem;
    font-weight: 600; color: #CBD5E1; transition: 0.2s;
    display: flex; align-items: center; gap: 1rem;
}
.priority-opt:hover { border-color: var(--color-orange); background: rgba(249,115,22,0.05); }
.opt-rank-badge {
    font-size: 0.8rem; font-weight: 800;
    padding: 0.2rem 0.6rem; border-radius: 8px;
    background: rgba(255,255,255,0.08); color: var(--text-muted);
    white-space: nowrap;
}

/* ==============================
   FEEDBACK
   ============================== */
.score-circle {
    width: 200px; height: 200px; border-radius: 50%;
    border: 8px solid var(--color-red);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 2rem; background: rgba(0,0,0,0.2);
    animation: pulseGlow 2s infinite;
}
.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-red); line-height: 1; margin: 0.5rem 0; }
.score-sub { font-weight: 800; font-size: 1.2rem; color: white; }
.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); }

.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: center; 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);
    font-style: italic; line-height: 1.6; font-size: 1rem;
}
.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;
}

/* ==============================
   PERSONAL GUT
   ============================== */
.personal-gut-container { display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; margin: 0 auto; }

.personal-problem-card {
    background: var(--card-dark); border-radius: 20px;
    padding: 2rem; border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.personal-problem-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.personal-problem-num {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(239,68,68,0.15); color: var(--color-red);
    border: 2px solid rgba(239,68,68,0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.9rem; flex-shrink: 0;
}
.personal-problem-input {
    flex: 1; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 0.8rem 1.2rem;
    color: white; font-family: inherit; font-size: 1rem;
    transition: 0.2s;
}
.personal-problem-input:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.personal-problem-input::placeholder { color: rgba(255,255,255,0.3); }

.personal-gut-sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.personal-score-display {
    text-align: center; margin-top: 1.2rem;
    font-size: 0.9rem; color: var(--text-muted); font-weight: 600;
}
.personal-score-display strong { font-size: 1.5rem; color: var(--color-orange); }
.btn-remove-problem {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    color: var(--color-red); width: 28px; height: 28px;
    border-radius: 50%; cursor: pointer; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.btn-remove-problem:hover { background: rgba(239,68,68,0.2); }

/* ==============================
   END SCREEN
   ============================== */
.end-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(239,68,68,0.08), 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;
    position: relative;
}
.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-orange); }

/* ==============================
   TOAST
   ============================== */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white; color: var(--text-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: 900px) {
    .gut-intro-grid, .use-cases-grid { grid-template-columns: 1fr; }
    .gut-intro-grid { grid-template-columns: 1fr 1fr; }
    .character-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
    .context-layout { grid-template-columns: 1fr; gap: 2rem; }
    .context-profile { position: static; }
    .gut-sliders, .personal-gut-sliders { grid-template-columns: 1fr; }
    .formula-inner { font-size: 1.5rem; gap: 0.7rem; }
    .formula-part { width: 55px; height: 55px; font-size: 1.5rem; }
    .rank-item { flex-wrap: wrap; }
    .gut-header { flex-direction: column; }
    .speech-bubble-container { flex-direction: column; text-align: center; }
    .speech-bubble::before, .speech-bubble::after { display: none; }
    .hero-title { font-size: 2.2rem; }
    .home-stats-row { gap: 1rem; }
}

@media (max-width: 600px) {
    .screen { padding: 2.5rem 1rem; }
    .gut-intro-grid { grid-template-columns: 1fr; }
    .use-cases-grid { grid-template-columns: 1fr 1fr; }
    .top-bar { padding: 0.8rem 1rem; }
    .logo-text { font-size: 1rem; }
}

/* ==============================
   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 — GUT
   ============================================================ */
.screen-end-epic { background: var(--bg-dark); min-height: 100vh; position: relative; overflow: hidden; }
.end-ambient { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(239,68,68,0.07), transparent 60%); 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; }
.end-top { max-width: 680px; margin: 0 auto; }
.end-module-badge { display: inline-flex; align-items: center; gap: 0.4rem; 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; }
.end-accent { display: block; }
.end-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 580px; margin: 0 auto; }
.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; }
.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; }
.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; } }
.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; }
.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; }
.eli-text span { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.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-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; }
.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; }
.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; }
