@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css");

:root {
    --primary-blue: #2b55cc;
    --primary-light: #e6f0fa;
    --secondary-blue: #4a90e2;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-color: #f4f7fb;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    --accent-red: #e74c3c;
    --accent-orange: #f5a623;
    --accent-green: #2ecc71;
    --accent-purple: #8e44ad;
}

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

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #d1d5e0;
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px 0;
}

#app-container {
    width: 100%;
    max-width: 600px; /* 데스크탑/태블릿 비율 */
    background-color: var(--bg-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    min-height: 800px;
}

/* =========================================
   Screen Visibility
========================================= */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease;
    padding-bottom: 40px;
}
.screen.active {
    display: block;
}

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

/* =========================================
   Intro Screen
========================================= */
#intro-screen {
    background: linear-gradient(135deg, #a0c4ff, #cde3ff);
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px 0;
    text-align: center;
}
.intro-header .subtitle {
    font-weight: 800;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.intro-header .main-title {
    font-size: 4rem;
    font-weight: 900;
    color: #1a365d;
    margin-top: 10px;
    letter-spacing: -1px;
}
.intro-character {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.robot-face {
    width: 220px;
    height: 220px;
    background: linear-gradient(180deg, #51a4ff, #2b77e5);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.1), 0 20px 30px rgba(43,119,229,0.3);
}
.visor {
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}
.robot-face .eye {
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 60px;
}
.robot-face .eye.left { left: 35%; }
.robot-face .eye.right { right: 35%; }
.robot-face .blush {
    width: 24px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    top: 75px;
    opacity: 0.8;
}
.robot-face .blush.left { left: 22%; }
.robot-face .blush.right { right: 22%; }
.robot-face .mouth {
    width: 30px;
    height: 15px;
    border-bottom: 4px solid #333;
    border-radius: 0 0 15px 15px;
    position: absolute;
    top: 85px;
    left: calc(50% - 15px);
}
.robot-face .antenna {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: #a0c4ff;
}
.robot-face .antenna i {
    position: absolute;
    top: -15px;
    left: -6px;
    color: #51a4ff;
    font-size: 16px;
}
.floating-icons i {
    position: absolute;
    font-size: 24px;
    background: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}
.floating-icons .icon1 { top: 20%; left: 10%; color: #ff6b6b; animation-delay: 0s;}
.floating-icons .icon2 { top: 10%; right: 15%; color: #2ecc71; animation-delay: 1s;}
.floating-icons .icon3 { bottom: 20%; right: 10%; color: #8e44ad; animation-delay: 2s;}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.intro-footer {
    width: 100%;
    position: relative;
}
.warning-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}
.machine-base {
    background: #00bfff;
    padding: 30px 20px 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 5px 15px rgba(255,255,255,0.3);
    position: relative;
}
.start-btn {
    background: linear-gradient(180deg, #ff9e22, #ff7a00);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 8px 0 #cc5500, 0 15px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.1s;
    letter-spacing: 2px;
}
.start-btn:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #cc5500, 0 5px 10px rgba(0,0,0,0.2);
}

/* =========================================
   Form Screen
========================================= */
#form-screen {
    padding: 30px 20px;
    background: #fff;
}
.top-nav {
    text-align: center;
    margin-bottom: 30px;
}
.form-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
}
.top-nav p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Form Wizard Styles */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e6f0fa;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.form-step.active {
    display: block;
}
.step-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fcfcfc;
    transition: border-color 0.3s;
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    background: #fff;
}

.form-actions {
    margin-top: 30px;
}
.row-actions {
    display: flex;
    gap: 15px;
}
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(43,85,204,0.3);
    transition: background 0.3s;
    flex: 1;
}
.submit-btn:hover {
    background: #1a365d;
}
.submit-btn.outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    box-shadow: none;
}
.submit-btn.outline:hover {
    background: var(--primary-light);
}

/* =========================================
   Loading Screen
========================================= */
#loading-screen {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg-color);
}
#loading-screen.active { display: flex; }
.loading-content {
    text-align: center;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e6f0fa;
    border-top: 6px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   Result Screen General
========================================= */
#result-screen {
    background: var(--bg-color);
    padding: 20px;
}
.result-page {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    box-shadow: var(--shadow);
    border: 3px solid #e6f0fa;
}
.mt-4 { margin-top: 30px; }
.mt-3 { margin-top: 20px; }

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}
.page-header h2 {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-weight: 700;
    color: #333;
    flex: 1;
    margin-left: 15px;
    font-size: 1.1rem;
}
.page-num {
    background: var(--primary-blue);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
}

/* =========================================
   Page 01 Specific
========================================= */
.page-title-badge {
    background: var(--primary-light);
    color: var(--primary-blue);
    display: inline-flex;
    align-items: baseline;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}
.page-title-badge h3 {
    margin-right: 5px;
}

.profile-section {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.avatar-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    overflow: hidden;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
}
.info-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}
.info-item i { width: 20px; color: var(--secondary-blue); }
.info-item span { width: 60px; }
.info-item strong { color: var(--text-main); }

.type-box {
    grid-column: 1 / -1;
    background: #f8fbff;
    border: 1px solid #dce8f5;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}
.type-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}
.type-name {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-top: 10px;
}
.type-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.type-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}
.type-tags span {
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--secondary-blue);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px;
}

.metrics-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.metric-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    background: #fafafa;
}
.metric-card i { font-size: 1.5rem; margin-bottom: 8px; }
.metric-card p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; }
.metric-card h3 { font-size: 1.4rem; color: #333; }
.metric-card h3 span { font-size: 0.8rem; color: #999; }
.metric-card .status {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.75rem;
    font-weight: bold;
}
.status.normal { color: var(--secondary-blue); }
.status.bad { color: var(--accent-red); }
.status.good { color: var(--accent-green); }

.swot-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.check-box, .strength-box, .weakness-box {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
}
.swot-section h4 { margin-bottom: 10px; font-size: 1.05rem; }
.swot-section ul { list-style: none; }
.swot-section li {
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.check-box li i { color: var(--secondary-blue); margin-top: 3px; }
.strength-box li::before { content: '•'; color: var(--accent-green); font-weight: bold;}
.weakness-box li::before { content: '•'; color: var(--accent-orange); font-weight: bold;}

.radar-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}
.radar-chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}
.radar-chart-container h4 { margin-bottom: 10px; }
.diagnosis-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.one-line-diagnosis, .remember-msg {
    background: #f5f8ff;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
}
.one-line-diagnosis h4, .remember-msg h4 { font-size: 0.9rem; color: var(--primary-blue); margin-bottom: 5px; }
.one-line-diagnosis p { font-size: 0.95rem; font-weight: 600; }
.remember-msg p { font-size: 0.9rem; line-height: 1.4; color: #555;}

.page-footer {
    text-align: center;
    background: var(--primary-blue);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================
   Page 02 Specific
========================================= */
.time-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
@media (max-width: 500px) {
    .time-section { grid-template-columns: 1fr; }
}
.chart-box, .leak-box, .rhythm-box, .focus-chart-box {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    min-width: 0;
    overflow: hidden;
}
.chart-box h4, .leak-box h4, .rhythm-box h4, .focus-chart-box h4, .flow-pattern-box h4 {
    margin-bottom: 15px;
    font-size: 1.05rem;
}
.pie-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}
.pie-center-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}
.pie-center-text span { font-size: 0.7rem; color: #666; font-weight: normal; }
.pie-legend {
    list-style: none;
    font-size: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.pie-legend li { display: flex; align-items: center; justify-content: space-between; }
.color-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; display: inline-block; }
.c1 { background: #3b82f6; } .c2 { background: #60a5fa; } .c3 { background: #34d399; } .c4 { background: #fbbf24; }
.c5 { background: #f59e0b; } .c6 { background: #a78bfa; } .c7 { background: #818cf8; } .c8 { background: #9ca3af; }

.leak-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
}
.rank {
    background: var(--primary-blue);
    color: white;
    width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 6px;
    font-weight: bold;
    margin-right: 10px;
}
.leak-info { flex: 1; }
.leak-info h5 { font-size: 0.9rem; margin-bottom: 2px; }
.leak-info p { font-size: 0.75rem; color: var(--text-muted); }
.impact { font-size: 0.75rem; text-align: right; color: #777; }
.impact strong { color: var(--primary-blue); font-size: 1rem; }

.rhythm-box ul { list-style: none; }
.rhythm-box li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.rhythm-box li i { width: 25px; text-align: center; color: #555; }
.rhythm-box li span { flex: 1; line-height: 1.2; }
.rhythm-box li small { font-size: 0.7rem; color: #888; }
.rhythm-box strong.red { color: var(--accent-red); font-size: 0.85rem; font-weight: bold; }

.flow-pattern-box {
    background: #f8fbff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    min-width: 0;
    overflow: hidden;
}
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.flow-steps .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flow-steps .step i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}
.flow-steps .step p { font-size: 0.75rem; line-height: 1.2; }
.flow-steps > i { color: #ccc; font-size: 0.9rem; }

.time-footer-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 15px;
}
.pattern-diagnosis {
    background: #f0f6ff;
    padding: 15px;
    border-radius: 12px;
}
.pattern-diagnosis h4 { color: var(--primary-blue); margin-bottom: 8px; font-size: 1rem; }
.pattern-diagnosis p { font-size: 0.9rem; font-weight: 500; }

.tip-box {
    background: #e6f7ff;
    border: 1px solid #bce2f3;
    padding: 15px;
    border-radius: 12px;
}
.tip-box h4 { margin-bottom: 10px; font-size: 0.95rem; }
.tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}
.tip-item i { color: var(--secondary-blue); }

/* =========================================
   Page 03 Specific
========================================= */
.cause-top-row, .cause-middle-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
@media(min-width: 500px) {
    .cause-top-row { grid-template-columns: 1fr 1.2fr; }
    .cause-middle-row { grid-template-columns: 1fr 1fr; }
}
.friction-box, .procrastination-process, .trait-list-box, .danger-signal-box, .recovery-box {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    min-width: 0;
    overflow: hidden;
}
h4 { margin-bottom: 12px; font-size: 1.05rem; }

.bar-chart-custom .bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.bar-chart-custom .label { width: 80px; }
.bar-track {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 5px;
}
.bar-chart-custom .score { width: 25px; text-align: right; font-weight: bold; }

.proc-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 5px;
    text-align: center;
    align-items: center;
}
.p-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    padding: 8px 5px;
    border-radius: 8px;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 60px;
    justify-content: center;
}
.p-item i { font-size: 1rem; color: var(--secondary-blue); }
.p-arrow { color: #ccc; }

.trait-list-box ul { list-style: none; }
.trait-list-box li { font-size: 0.85rem; margin-bottom: 8px; display: flex; gap: 8px; }
.trait-list-box li i { color: var(--primary-blue); margin-top: 3px; }

.signal {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem;
}
.badge { padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: bold; color: #fff; }
.badge.danger { background: var(--accent-red); }
.badge.warning { background: var(--accent-orange); }
.badge.safe { background: var(--accent-green); }

.recovery-box ul { list-style: none; }
.recovery-box li { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem;}
.recovery-box li span:first-child { color: #777; width: 60px;}
.recovery-box li span:nth-child(2) { flex: 1; }
.recovery-box li strong { width: 40px; text-align: right; }

.insight-box {
    background: #fff;
    border: 1px solid #bce2f3;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.insight-box i { font-size: 2rem; color: var(--primary-blue); }
.insight-box .tag {
    background: #e6f0fa; color: var(--primary-blue);
    padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: bold;
    display: inline-block; margin-bottom: 5px;
}
.insight-box p { font-size: 0.95rem; line-height: 1.5; }
.insight-box .char-icon { margin-left: auto; color: var(--secondary-blue); font-size: 2.5rem; opacity: 0.8; }

.comp-cards {
    display: flex; gap: 10px; margin-bottom: 20px;
}
.comp-card {
    flex: 1; background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 12px;
}
.comp-card h5 { font-size: 0.85rem; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.comp-card .stats { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 10px; text-align: center;}
.comp-card .stats p { color: #666; margin-bottom: 3px; }
.comp-card .stats strong { font-size: 1rem; color: #333; }
.diff { text-align: center; font-size: 0.75rem; font-weight: bold; padding: 4px; border-radius: 6px; }
.diff.minus { background: #ffebee; color: #d32f2f; }
.diff.plus { background: #e8f5e9; color: #2e7d32; }

.core-insight {
    background: var(--primary-blue);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.core-insight i.fa-star { font-size: 2rem; color: var(--accent-orange); }
.core-insight .tag { background: rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; margin-bottom: 5px; display: inline-block;}
.core-insight p { font-size: 0.95rem; line-height: 1.5; }
.mini-avatar { width: 50px; height: 50px; background: rgba(255,255,255,0.8); border-radius: 50%; margin-left: auto; }

/* =========================================
   Page 04 Specific
========================================= */
.plan-steps-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.step-card {
    flex: 1; padding: 15px 10px; border-radius: 12px; text-align: center; color: #fff;
}
.step-card span { display: inline-block; background: rgba(255,255,255,0.3); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; margin-bottom: 5px; }
.step-card h4 { font-size: 1rem; margin-bottom: 0; }
.step-card p { font-size: 0.7rem; opacity: 0.9; }
.bg-blue { background: #3b82f6; } .bg-green { background: #10b981; } .bg-orange { background: #f59e0b; }
.plan-steps-header > i { margin: 0 10px; color: #ccc; }

.plan-main-row {
    display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px;
}
@media(min-width: 500px) { .plan-main-row { grid-template-columns: 1fr 1fr; } }

.strategy-table {
    width: 100%; border-collapse: collapse; font-size: 0.8rem; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden;
}
.strategy-table th { background: #f8f9fa; padding: 8px; border-bottom: 1px solid #eee; }
.strategy-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: center; }
.strategy-table tr:last-child td { border-bottom: none; }
.strategy-table td:nth-child(2) { color: var(--primary-blue); }

.roadmap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.week { background: #fafafa; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.week-title { padding: 8px; text-align: center; font-size: 0.8rem; font-weight: bold; }
.bg-lightgreen { background: #d1fae5; color: #065f46; }
.bg-lightblue { background: #dbeafe; color: #1e40af; }
.week ul { list-style: none; padding: 10px; font-size: 0.75rem; }
.week li { margin-bottom: 6px; display: flex; gap: 5px; }
.week li i { color: var(--accent-green); }

.timeline { margin-top: 10px; }
.time-row { display: flex; margin-bottom: 10px; font-size: 0.85rem; position: relative; }
.time { width: 90px; color: var(--primary-blue); font-weight: bold; text-align: right; padding-right: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-orange); margin-top: 5px; position: relative; z-index: 2;}
.time-row::after { content: ''; position: absolute; left: 94px; top: 15px; width: 2px; height: 100%; background: #eee; z-index: 1;}
.time-row:last-child::after { display: none; }
.desc { flex: 1; padding-left: 15px; background: #f8fbff; padding: 8px 15px; border-radius: 8px; margin-left: 10px; }
.desc i { margin-right: 5px; color: #555; }

.experiment-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 15px; }
.cheer-msg {
    background: #f0f6ff; padding: 20px; border-radius: 12px; position: relative;
}
.quote-mark { font-size: 3rem; color: var(--primary-light); position: absolute; top: 5px; left: 10px; line-height: 1; }
.cheer-msg p { position: relative; z-index: 2; font-size: 0.9rem; line-height: 1.5; }
.cheer-avatar { width: 80px; position: absolute; bottom: 0; right: 0; }

.check-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; text-align: center; }
.check-table th { background: #f8f9fa; padding: 5px; border-bottom: 1px solid #eee; }
.check-table td { padding: 8px 5px; border-bottom: 1px solid #eee; }
.check-table td:not(:first-child) { background: #fcfcfc; border-left: 1px solid #eee; }

.next-step-box { background: #fcfcfc; border: 1px solid #eee; border-radius: 12px; padding: 15px; }
.next-icons { display: flex; justify-content: space-around; margin: 15px 0; text-align: center; font-size: 0.8rem; }
.ni i { font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 8px; background: var(--primary-light); width: 50px; height: 50px; border-radius: 50%; line-height: 50px; }
.banner { background: #fff5e6; border: 1px solid #ffe0b2; padding: 15px; border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem;}

/* =========================================
   Mobile Responsiveness (max-width: 600px)
========================================= */
@media (max-width: 600px) {
    body {
        padding: 0;
        background-color: var(--bg-color);
    }
    #app-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    
    /* Intro */
    .intro-header .main-title { font-size: 3rem; }
    .robot-face { width: 180px; height: 180px; }
    .visor { top: 30px; height: 50px; }
    .robot-face .eye { top: 50px; }
    .robot-face .blush { top: 60px; }
    .robot-face .mouth { top: 70px; }
    .start-btn { padding: 15px 40px; font-size: 1.3rem; }
    
    /* Page 01 */
    .profile-section { grid-template-columns: 1fr; text-align: center; }
    .avatar-box { margin: 0 auto; }
    .info-list { grid-template-columns: 1fr; text-align: left; background: #fafafa; padding: 15px; border-radius: 12px; }
    .metrics-section { grid-template-columns: 1fr 1fr; }
    .radar-section { grid-template-columns: 1fr; }
    
    /* Page 02 */
    .time-footer-row { grid-template-columns: 1fr; }
    .tips { grid-template-columns: 1fr; }
    
    /* Page 03 */
    .proc-grid { 
        display: flex; 
        overflow-x: auto; 
        padding-bottom: 15px; 
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .p-item { min-width: 90px; }
    .p-arrow { min-width: 20px; }
    .comp-cards { flex-direction: column; }
    .insight-box, .core-insight { flex-direction: column; text-align: center; }
    .insight-box .char-icon, .mini-avatar { margin: 10px auto 0; }
    
    /* Page 04 */
    .plan-steps-header { flex-direction: column; gap: 10px; }
    .plan-steps-header > i { transform: rotate(90deg); }
    .experiment-row { grid-template-columns: 1fr; }
    
    .checklist-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .check-table { min-width: 450px; }
    
    .next-icons { flex-wrap: wrap; gap: 15px; }
    .next-icons .ni { width: 40%; }
}
