@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;

    --bg-light: #F1F5F9;
    --card-light: #FFFFFF;
    --text-dark: #0F172A;

    /* SWOT zone colors */
    --zone-s: #22C55E;
    --zone-w: #EF4444;
    --zone-o: #3B82F6;
    --zone-t: #F97316;
}

* { 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;
}
body.light-mode { background-color: var(--bg-light); color: var(--text-dark); }

/* ==============================
   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(249,115,22,0.15);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(10px);
}
body.light-mode .top-bar { background-color: rgba(255,255,255,0.95); border-bottom: 1px solid #E2E8F0; }

.logo-area { display: flex; align-items: center; }
.main-logo-img { height: 45px; width: auto; object-fit: contain; }
/* Fallback text logo se imagem não carregar */
.logo-text-fallback { 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-orange); 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-orange);
    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; }
body.light-mode .step-label { color: var(--text-dark); }
.progress-bar-bg { flex: 1; height: 12px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
body.light-mode .progress-bar-bg { background: #E2E8F0; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-orange), var(--color-yellow)); 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(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.3);
    padding: 0.5rem 1rem; border-radius: 30px;
    font-weight: 800; color: white;
}
body.light-mode .xp-pill { color: var(--text-dark); background: #FFF7ED; border-color: rgba(249,115,22,0.2); }
.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-light { background-color: var(--bg-light); }

@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 pulseOrange { 0%,100% { box-shadow: 0 0 20px rgba(249,115,22,0.3); } 50% { box-shadow: 0 0 40px rgba(249,115,22,0.55); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.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-orange { color: var(--color-orange); }
.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 padrão do ecossistema */
.badge-blue {
    display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
    background: rgba(249,115,22,0.12); color: #FB923C;
    font-weight: 700; font-size: 0.82rem; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(249,115,22,0.2);
}

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

.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); }
body.light-mode .btn-back:hover { color: var(--text-dark); }

/* ==============================
   HOME
   ============================== */
.home-layout {
    min-height: 80vh; display: flex; align-items: center;
    justify-content: center; position: relative; text-align: center;
}
.particles-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(249,115,22,0.09), transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(59,130,246,0.07), transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(34,197,94,0.04), transparent 40%);
    pointer-events: none;
}
.home-text { 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-orange); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.3rem; }

/* ==============================
   INTRO — SWOT CARDS
   ============================== */
.swot-grid-intro {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; text-align: left; max-width: 720px; margin: 2.5rem auto;
}
.swot-intro-card {
    background: var(--card-dark); border-radius: 20px;
    padding: 2rem; border-left: 4px solid;
    transition: transform 0.25s ease;
}
.swot-intro-card:hover { transform: translateY(-4px); }
.swot-intro-card h3 { font-size: 1.15rem; font-weight: 800; color: white; margin-bottom: 0.6rem; }
.swot-intro-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.swot-intro-card em { color: #94A3B8; font-size: 0.85rem; }
.s-card { border-color: var(--zone-s); }
.w-card { border-color: var(--zone-w); }
.o-card { border-color: var(--zone-o); }
.t-card { border-color: var(--zone-t); }

/* 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(249,115,22,0.3); }
.history-avatar-img {
    width: 100px; height: 100px; border-radius: 50%;
    object-fit: cover; border: 3px solid rgba(59,130,246,0.4);
    flex-shrink: 0; background: var(--card-dark);
}
.history-content h3 { font-size: 1.2rem; font-weight: 800; color: var(--color-orange); margin-bottom: 0.5rem; }
.history-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* Tip box */
.tip-box {
    background: rgba(249,115,22,0.07); border: 1px solid rgba(249,115,22,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 — padrão GUT/5W2H
   ============================== */
.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: 120px; height: 120px; 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-dream-tag {
    font-size: 0.75rem; font-weight: 700;
    background: rgba(249,115,22,0.1); color: #FB923C;
    padding: 0.3rem 0.8rem; border-radius: 20px;
    border: 1px solid rgba(249,115,22,0.2);
    text-align: center; line-height: 1.4;
}
.btn-select {
    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:hover { filter: brightness(1.15); transform: scale(1.02); }

/* ==============================
   BRIEFING — padrão GUT/5W2H
   ============================== */
.briefing-layout {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 4rem; align-items: start;
}
.briefing-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-img {
    width: 150px; height: 150px; border-radius: 50%;
    object-fit: cover; border: 4px solid var(--card-dark); margin-bottom: 1.5rem;
}
.brief-name { font-size: 1.9rem; font-weight: 900; margin-bottom: 0.3rem; color: white; }
.brief-biz { color: var(--text-muted); font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; }
.dream-box {
    background: rgba(255,255,255,0.03); padding: 1.2rem 1.5rem;
    border-radius: 12px; font-size: 0.92rem; font-style: italic;
    color: #E2E8F0; text-align: left; line-height: 1.6;
    border-left: 3px solid var(--color-orange);
}
.dream-box strong { font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: #FB923C; display: block; margin-bottom: 0.4rem; }

.module-start-badge {
    display: inline-block; margin-top: 1.2rem;
    font-size: 0.75rem; font-weight: 800;
    background: rgba(34,197,94,0.1); color: #4ADE80;
    border: 1px solid rgba(34,197,94,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; }
.text-block ul { margin-left: 1.5rem; margin-bottom: 1rem; }
.text-block li { margin-bottom: 0.4rem; }

/* ==============================
   SWOT INTERATIVO — dark mode premium
   ============================== */
.swot-header-light { text-align: center; margin-bottom: 2.5rem; }
.swot-header-light h2 { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.5px; }
.swot-header-light p { color: var(--text-muted); font-size: 1rem; margin-top: 0.5rem; }
/* Override para light mode */
body.light-mode .swot-header-light h2 { color: var(--text-dark); }
body.light-mode .swot-header-light p { color: #64748B; }

.swot-interactive-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 2rem;
}

/* Deck — mantém light para legibilidade do drag */
.deck-container {
    background: white; border-radius: 20px; padding: 1.5rem;
    height: 660px; border: 1px solid #E2E8F0;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.deck-title {
    font-weight: 800; font-size: 1rem; color: var(--text-dark);
    margin-bottom: 1rem; padding-bottom: 0.7rem;
    border-bottom: 2px solid #F1F5F9; text-align: center;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.deck-count {
    display: inline-block; background: #F1F5F9; color: #64748B;
    font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.5rem;
    border-radius: 10px; margin-left: 0.4rem;
}
.deck-scroll {
    display: flex; flex-direction: column; gap: 0.7rem;
    flex: 1; overflow-y: auto; padding-right: 0.4rem;
}
.deck-scroll::-webkit-scrollbar { width: 4px; }
.deck-scroll::-webkit-scrollbar-track { background: transparent; }
.deck-scroll::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }

.drag-card {
    background: white; padding: 1rem 1rem;
    border-radius: 12px; border: 2px solid #E2E8F0;
    font-size: 0.9rem; font-weight: 600; cursor: grab;
    color: var(--text-dark); transition: 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04); line-height: 1.4;
    user-select: none;
}
.drag-card:hover { border-color: var(--color-blue); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59,130,246,0.12); }
.drag-card:active { cursor: grabbing; transform: scale(0.97); }
.drag-card.dragging { opacity: 0.4; }

/* Matriz 2x2 */
.matrix-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.matrix-quad {
    background: white; border-radius: 20px; overflow: hidden;
    border: 2px solid #E2E8F0; display: flex; flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: border-color 0.3s;
}
.matrix-quad:hover { border-color: #CBD5E1; }

.quad-title {
    padding: 1rem 1.2rem; font-weight: 800; text-align: center;
    background: #F8FAFC; border-bottom: 2px solid #E2E8F0;
    font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.quad-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    font-size: 0.72rem; font-weight: 900; margin-left: 0.3rem;
}
.quad-count-s { background: rgba(34,197,94,0.15); color: var(--zone-s); }
.quad-count-w { background: rgba(239,68,68,0.15); color: var(--zone-w); }
.quad-count-o { background: rgba(59,130,246,0.15); color: var(--zone-o); }
.quad-count-t { background: rgba(249,115,22,0.15); color: var(--zone-t); }

.text-green { color: var(--zone-s); }
.text-red   { color: var(--zone-w); }
.text-blue  { color: var(--zone-o); }
.text-orange { color: var(--zone-t); }

.drop-zone {
    flex: 1; padding: 1.2rem; min-height: 240px;
    display: flex; flex-direction: column; gap: 0.6rem;
    transition: background 0.25s; position: relative;
}
.drop-zone.drag-over {
    background: #EFF6FF;
    box-shadow: inset 0 0 0 2px var(--color-blue);
    border-radius: 0 0 18px 18px;
}
.drop-zone:empty::after {
    content: 'Arraste os fatos aqui';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 600; color: #CBD5E1;
    pointer-events: none;
}

/* Cards já colocados na matriz */
.drop-zone .drag-card {
    border-color: transparent; cursor: default;
    box-shadow: none; padding: 0.75rem 1rem;
    border-left: 4px solid;
}
.drop-zone[data-zone="S"] .drag-card { border-left-color: var(--zone-s); background: #F0FDF4; color: #166534; }
.drop-zone[data-zone="W"] .drag-card { border-left-color: var(--zone-w); background: #FEF2F2; color: #991B1B; }
.drop-zone[data-zone="O"] .drag-card { border-left-color: var(--zone-o); background: #EFF6FF; color: #1E40AF; }
.drop-zone[data-zone="T"] .drag-card { border-left-color: var(--zone-t); background: #FFF7ED; color: #9A3412; }
.drop-zone .drag-card:hover { transform: none; border-color: transparent; box-shadow: none; }

/* Complete footer */
.footer-action { padding: 2rem 0; }
.complete-msg { color: var(--color-green); font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }

/* ==============================
   ESTRATÉGIA — dark mode padrão
   ============================== */
.strategy-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 800px; margin: 0 auto; }

.strat-card {
    background: var(--card-dark); border: 2px solid rgba(255,255,255,0.07);
    padding: 2rem; border-radius: 18px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.strat-card:hover {
    border-color: var(--color-orange); transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.12);
}
.strat-left { display: flex; align-items: flex-start; gap: 1.2rem; flex: 1; }
.strat-num {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: rgba(249,115,22,0.1); color: #FB923C;
    border: 1px solid rgba(249,115,22,0.2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.9rem;
}
.strat-title { font-weight: 700; font-size: 1.1rem; color: white; line-height: 1.5; padding-right: 1rem; text-align: left; }
.strat-tag {
    padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.82rem;
    font-weight: 800; white-space: nowrap;
    background: rgba(255,255,255,0.06); color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.strat-arrow { color: var(--text-muted); font-size: 1.1rem; margin-left: 1rem; transition: transform 0.2s, color 0.2s; flex-shrink: 0; }
.strat-card:hover .strat-arrow { transform: translateX(4px); color: var(--color-orange); }

/* Override para a tela de estratégia que usa screen-light */
body.light-mode .strat-card { background: white; border-color: #E2E8F0; }
body.light-mode .strat-card:hover { border-color: var(--color-orange); }
body.light-mode .strat-title { color: var(--text-dark); }
body.light-mode .strat-num { background: #FFF7ED; color: #EA580C; border-color: #FED7AA; }
body.light-mode .strat-tag { background: #F1F5F9; color: #64748B; border-color: #E2E8F0; }

/* Header da tela de estratégia (light) */
.swot-header-light { text-align: center; margin-bottom: 2.5rem; }

/* ==============================
   FEEDBACK
   ============================== */
.score-circle {
    width: 200px; height: 200px; border-radius: 50%;
    border: 8px solid var(--color-orange);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 2rem; background: rgba(0,0,0,0.2);
    animation: pulseOrange 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-orange); 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; }
.feedback-box p { 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);
    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 SWOT
   ============================== */
.personal-swot-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; max-width: 900px; margin: 0 auto;
}
.input-group { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; }
.input-group label {
    font-weight: 800; font-size: 1rem; color: white;
    display: flex; align-items: center; gap: 0.5rem;
}
.input-group textarea {
    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: 0.97rem;
    resize: none; height: 160px; transition: 0.3s; line-height: 1.6;
}
.input-group textarea:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 4px rgba(249,115,22,0.12); }
.input-group textarea::placeholder { color: rgba(255,255,255,0.2); }

/* ==============================
   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); }

/* Anim de erro na zona */
.shake-anim {
    animation: shake 0.4s ease;
    box-shadow: inset 0 0 0 2px var(--color-red) !important;
}
@keyframes shake { 0%,100%{transform:translateX(0)} 25%,75%{transform:translateX(-5px)} 50%{transform:translateX(5px)} }

/* ==============================
   TELA FINAL
   ============================== */
.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: 2rem;
}
.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); }

/* ==============================
   RESPONSIVO
   ============================== */
@media (max-width: 900px) {
    .swot-grid-intro { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .history-card { flex-direction: column; align-items: center; text-align: center; }
    .character-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
    .briefing-layout { grid-template-columns: 1fr; gap: 2rem; }
    .briefing-profile { position: static; }
    .swot-interactive-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .deck-container { height: 240px; }
    .matrix-grid { grid-template-columns: 1fr 1fr; }
    .strat-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .strat-arrow { display: none; }
    .speech-bubble-container { flex-direction: column; }
    .speech-bubble::before, .speech-bubble::after { display: none; }
    .personal-swot-grid { grid-template-columns: 1fr; }
    .home-stats-row { gap: 1rem; }
}
@media (max-width: 600px) {
    .screen { padding: 2.5rem 1rem; }
    .hero-title { font-size: 2.2rem; }
    .matrix-grid { grid-template-columns: 1fr; }
    .top-bar { padding: 0.8rem 1rem; }
}

/* ==============================
   AVATAR EVOLUTION ANIMATION
   ============================== */
.avatar-img, .fb-avatar-bubble, .topbar-avatar {
    transition: opacity 0.5s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}
.avatar-happy-glow {
    animation: happyPulse 2s ease-in-out infinite;
}
@keyframes happyPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(249,115,22,0.3); }
    50% { box-shadow: 0 0 45px rgba(249,115,22,0.6), 0 0 70px rgba(234,179,8,0.3); }
}

/* ==============================
   NARRATIVE BADGE
   ============================== */
.module-start-badge {
    display: inline-block;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    color: var(--color-orange);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-top: 0.8rem;
}

/* ============================================================
   TELA FINAL ÉPICA — SWOT
   ============================================================ */
.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(249,115,22,0.07), transparent 60%), radial-gradient(ellipse 50% 30% at 80% 80%, rgba(249,115,22,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; }
.end-top { max-width: 680px; margin: 0 auto; }
.end-module-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.3); color: #F97316; 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; color: #F97316; }
.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-bg); 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; }
.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; 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; }
.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; color: #F97316; }
.end-next-teaser { background: rgba(59,130,246,0.04); border: 1px solid rgba(59,130,246,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; }

/* ============================================================
   SWOT MOBILE — MODO TOQUE
   Em vez de arrastar, o usuário toca no card e escolhe o quadrante
   ============================================================ */

/* Card selecionado aguardando classificação */
.drag-card.tap-selected {
    border-color: var(--color-blue) !important;
    background: #EFF6FF !important;
    color: #1E40AF !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
    transform: scale(1.02);
}

/* Painel de classificação por toque — aparece abaixo do deck no mobile */
.tap-classify-panel {
    display: none; /* escondido por padrão */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: white;
    border-top: 2px solid #E2E8F0;
    border-radius: 20px 20px 0 0;
    padding: 1rem 1rem 2rem;
    z-index: 500;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.tap-classify-panel.visible { display: block; }

.tap-panel-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    text-align: center;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tap-panel-card-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.4;
}
.tap-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.tap-btn {
    padding: 0.85rem 0.5rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: transform 0.12s, opacity 0.12s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.2;
}
.tap-btn:active { transform: scale(0.95); opacity: 0.85; }
.tap-btn-s { background: #F0FDF4; color: #166534; border: 2px solid #86EFAC; }
.tap-btn-w { background: #FEF2F2; color: #991B1B; border: 2px solid #FCA5A5; }
.tap-btn-o { background: #EFF6FF; color: #1E40AF; border: 2px solid #93C5FD; }
.tap-btn-t { background: #FFF7ED; color: #9A3412; border: 2px solid #FDBA74; }
.tap-btn span.tap-icon { font-size: 1.3rem; }
.tap-cancel {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.6rem;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: center;
}

/* No mobile: cards no deck ficam mais compactos e claramente tocáveis */
@media (max-width: 600px) {
    .drag-card {
        cursor: pointer;
        padding: 0.85rem 1rem;
        font-size: 0.87rem;
        border-left-width: 3px;
        user-select: none;
        -webkit-user-select: none;
    }
    .drag-card::after {
        content: 'toque para classificar';
        display: block;
        font-size: 0.65rem;
        color: #94A3B8;
        margin-top: 0.3rem;
        font-weight: 500;
    }
    .drop-zone .drag-card::after {
        display: none; /* esconde hint nos cards já classificados */
    }
    .deck-container {
        height: auto;
        max-height: 280px;
    }
}
