/* ===== NAVIGATOR — Design System ===== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --accent: #ff6b35;
    --accent-light: #ff8f66;
    --accent-glow: rgba(255, 107, 53, 0.3);
    --blue: #4a9eff;
    --blue-glow: rgba(74, 158, 255, 0.3);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.2);
    --purple: #a78bfa;
    --purple-glow: rgba(167, 139, 250, 0.2);
    --yellow: #fbbf24;
    --red: #f87171;
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
    --text-muted: rgba(255,255,255,0.35);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

#app { height: 100%; position: relative; }

/* ===== Screens ===== */
.screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.screen.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}
.screen.exiting {
    opacity: 0;
    transform: translateX(-30px);
}

/* ===== Splash ===== */
#splash {
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 30%, #1a1a4a 0%, var(--bg-primary) 70%);
}
.splash-content { text-align: center; z-index: 2; }
.compass-icon { width: 140px; height: 140px; margin: 0 auto 32px; }
.compass-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 30px var(--accent-glow)); }
.needle-north { animation: pulse-needle 3s ease-in-out infinite; transform-origin: 60px 60px; }
@keyframes pulse-needle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}
.splash-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.splash-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ===== Buttons ===== */
.btn-primary {
    display: block;
    width: 260px;
    margin: 0 auto 16px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #e05520 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
.btn-primary:active { transform: scale(0.96); }
.btn-glow { box-shadow: 0 4px 30px var(--accent-glow); }
.btn-ghost {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    background: none;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-back, .btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-back:active, .btn-icon:active { background: rgba(255,255,255,0.15); }

/* ===== Screen Header ===== */
.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(16px + var(--safe-top)) 20px 12px;
    background: var(--bg-primary);
}
.header-title { font-size: 18px; font-weight: 600; flex: 1; }
.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}
.step-counter { font-size: 13px; color: var(--text-muted); min-width: 32px; text-align: right; }

/* ===== Onboarding ===== */
.onboarding-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px 40px;
    -webkit-overflow-scrolling: touch;
}
.onboard-question {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.onboard-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}
.onboard-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 16px;
}
.onboard-input:focus { border-color: var(--accent); }
.onboard-input::placeholder { color: var(--text-muted); }
textarea.onboard-input { resize: none; min-height: 100px; }

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.option-card {
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.option-card.selected {
    border-color: var(--accent);
    background: rgba(255,107,53,0.1);
}
.option-card .option-emoji { font-size: 28px; margin-bottom: 8px; }
.option-card .option-label { font-size: 13px; font-weight: 500; }

.onboard-next {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #e05520);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.3s;
}
.onboard-next:disabled { opacity: 0.4; cursor: default; }

/* ===== Deep Test ===== */
.test-progress { flex: 1; display: flex; align-items: center; gap: 12px; }
.test-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.test-progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); transition: width 0.4s; width: 0; }
.test-info { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.test-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.test-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}
.test-question-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
}
.test-scenario {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-left: 3px solid var(--accent);
}

/* Scale answer */
.scale-container { margin-bottom: 24px; }
.scale-labels { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.scale-buttons { display: flex; gap: 8px; justify-content: center; }
.scale-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.scale-btn:hover { border-color: var(--accent); }
.scale-btn.selected { background: var(--accent); border-color: var(--accent); }

/* Choice answer */
.choice-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.choice-item {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    line-height: 1.4;
}
.choice-item:active { transform: scale(0.98); }
.choice-item.selected { border-color: var(--blue); background: rgba(74,158,255,0.1); }

/* Rank answer */
.rank-list { margin-bottom: 24px; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.2s;
    user-select: none;
}
.rank-item.dragging { opacity: 0.5; background: var(--bg-card-hover); }
.rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.rank-text { font-size: 14px; flex: 1; }
.rank-handle { color: var(--text-muted); font-size: 18px; }

.test-next {
    margin-top: auto;
    padding: 16px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}
.test-next:disabled { opacity: 0.3; cursor: default; }

/* ===== Results ===== */
.results-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px;
    -webkit-overflow-scrolling: touch;
}
.results-header {
    text-align: center;
    margin-bottom: 40px;
}
.results-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.results-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.archetype-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,107,53,0.15) 100%);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 32px;
}
.archetype-emoji { font-size: 56px; margin-bottom: 16px; }
.archetype-name { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.archetype-tagline { color: var(--accent-light); font-size: 14px; margin-bottom: 16px; }
.archetype-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* Radar Chart */
.radar-section { margin-bottom: 32px; }
.radar-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.radar-canvas-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.radar-canvas-wrap canvas { max-width: 300px; }

/* Dimension bars */
.dim-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.dim-item {}
.dim-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.dim-name { font-size: 14px; font-weight: 500; }
.dim-value { font-size: 14px; color: var(--accent); font-weight: 600; }
.dim-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* Strengths list */
.strengths-section { margin-bottom: 32px; }
.strengths-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.strength-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.strength-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.strength-rank.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
.strength-rank.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.strength-rank.bronze { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.strength-info {}
.strength-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.strength-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

.results-cta {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent), #e05520);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

/* ===== Dashboard ===== */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(16px + var(--safe-top)) 20px 12px;
}
.dash-greeting h2 { font-size: 22px; font-weight: 700; }
.dash-greeting p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}
.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.5;
}

.dash-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px calc(80px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}

/* Insight Card */
.insight-card {
    background: linear-gradient(135deg, #1e1e4a, #2a1a3e);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.insight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    pointer-events: none;
}
.insight-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 10px;
}
.insight-text {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 16px;
    position: relative;
}
.insight-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(167,139,250,0.15);
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: var(--radius-xl);
    color: var(--purple);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.insight-action:hover { background: rgba(167,139,250,0.25); }

/* Direction Cards */
.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 14px;
}
.direction-cards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.direction-cards::-webkit-scrollbar { display: none; }
.direction-card {
    min-width: 200px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.direction-card:hover { border-color: rgba(255,255,255,0.1); }
.direction-emoji { font-size: 32px; margin-bottom: 12px; }
.direction-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.direction-match { font-size: 12px; color: var(--green); font-weight: 500; }
.direction-desc { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.4; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: #fff;
}
.quick-action:active { transform: scale(0.97); }
.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.quick-action-label { font-size: 13px; font-weight: 500; }

/* ===== Compass Tab ===== */
.compass-view { padding: 4px 0; }
.life-wheel-wrap { display: flex; justify-content: center; margin: 16px 0; }
.life-wheel-wrap canvas { max-width: 280px; }

.compass-rec {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}
.compass-rec-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.compass-rec-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== Tests Tab ===== */
.test-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
}
.test-card:active { transform: scale(0.98); }
.test-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.test-card-info { flex: 1; }
.test-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.test-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.test-card-meta { display: flex; gap: 12px; margin-top: 8px; }
.test-card-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}
.tag-time { background: rgba(74,158,255,0.15); color: var(--blue); }
.tag-done { background: rgba(52,211,153,0.15); color: var(--green); }
.tag-new { background: rgba(255,107,53,0.15); color: var(--accent); }

/* ===== Growth Tab ===== */
.growth-streak {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-card), rgba(52,211,153,0.1));
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.streak-num { font-size: 48px; font-weight: 900; color: var(--green); }
.streak-label { font-size: 14px; color: var(--text-secondary); }
.growth-goal {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.goal-name { font-size: 14px; font-weight: 500; }
.goal-pct { font-size: 13px; color: var(--green); font-weight: 600; }
.goal-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.goal-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--blue)); border-radius: 3px; transition: width 1s; }

/* ===== Bottom Nav ===== */
.bottom-nav {
    display: flex;
    padding: 8px 0 calc(8px + var(--safe-bottom));
    background: rgba(10,10,26,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 22px; height: 22px; }

/* ===== AI Chat ===== */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(12px + var(--safe-top)) 20px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
}
.chat-msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    animation: msg-in 0.3s ease;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.chat-msg.ai {
    align-self: flex-start;
    background: var(--bg-card);
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent), #e05520);
    border-bottom-right-radius: 4px;
}
.chat-msg.typing .dots { display: inline-flex; gap: 4px; }
.chat-msg.typing .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted);
    animation: typing-bounce 1.4s infinite;
}
.chat-msg.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
    align-items: flex-end;
}
.chat-input-area textarea {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
}
.chat-input-area textarea::placeholder { color: var(--text-muted); }
.btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.btn-send:active { transform: scale(0.9); }

/* ===== Profile ===== */
.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px calc(20px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}
.profile-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.profile-type { font-size: 14px; color: var(--accent); }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-box {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}
.stat-num { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

.profile-section { margin-bottom: 20px; }
.profile-section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.trait-chip {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    font-size: 13px;
    margin: 0 6px 8px 0;
}

/* ===== Utilities ===== */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Responsive */
@media (min-width: 480px) {
    .option-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    #app { max-width: 480px; margin: 0 auto; border-left: 1px solid rgba(255,255,255,0.05); border-right: 1px solid rgba(255,255,255,0.05); }
}
