*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Arimo', 'Noto Sans KR', sans-serif;
    background-color: #f9fafb;
    color: #1a2b4a;
}

/* ===== Main Content Wrapper ===== */
.main-content {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0px 90px;
}

/* ===== Onboarding Banner ===== */
.onboarding-banner {
    background: linear-gradient(172.78deg, #ffe9d6 0%, #fff4e6 50%, #ffefd5 100%);
    border-radius: 16px;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.onboarding-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.onboarding-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onboarding-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2b4a;
}

.onboarding-subtitle {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 500;
}

.onboarding-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onboarding-progress-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(0,0,0,0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.onboarding-progress-fill {
    height: 100%;
    width: 40%;
    background-color: #ff6b35;
    border-radius: 9999px;
}

.onboarding-progress-label {
    font-size: 12px;
    color: #ff6b35;
    font-weight: 600;
    white-space: nowrap;
}

.onboarding-steps {
    display: flex;
    gap: 24px;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-check {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background-color: #ff6b35;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onboarding-step.pending .step-check {
    border: 1.5px solid #d1d5db;
    background-color: transparent;
    color: transparent;
}

.onboarding-step.done .step-label { color: #364153; }
.onboarding-step.pending .step-label { color: #99a1af; }

.step-label { font-size: 13px; }

.onboarding-btn {
    background-color: #ff7a00;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 24px;
    height: 52px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.onboarding-btn:hover { background-color: #e86e00; }

/* ===== Main Layout ===== */
.main-layout {
    display: flex;
    min-height: calc(100vh - 120px - 96px);
}

/* ===== QnA Sidebar ===== */
.qna-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #1a2b4a;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.qna-profile-section {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qna-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qna-profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.qna-profile-text { display: flex; flex-direction: column; }
.qna-profile-title { font-size: 16px; font-weight: 700; color: white; }
.qna-profile-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); }

.qna-score-card {
    background-color: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 10px;
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qna-score-grade-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qna-score-grade-label { font-size: 11px; color: rgba(255,255,255,0.7); }

.qna-grade-badge {
    background-color: #7c3aed;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
}

.qna-score-value { display: flex; align-items: baseline; gap: 4px; }
.qna-score-number { font-size: 20px; font-weight: 800; color: #7c3aed; }
.qna-score-unit { font-size: 12px; color: rgba(255,255,255,0.6); }

.qna-score-progress-wrap { display: flex; flex-direction: column; gap: 4px; }

.qna-score-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.qna-score-progress-fill {
    height: 100%;
    width: 68%;
    background-color: #7c3aed;
    border-radius: 9999px;
}

.qna-score-remaining { font-size: 10px; color: rgba(255,255,255,0.6); }

.qna-sidebar-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qna-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    background-color: transparent;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

.qna-nav-btn:hover {
    background-color: rgba(255,255,255,0.08);
    color: white;
}

.qna-nav-btn.active {
    background-color: rgba(255,107,53,0.15);
    color: #ff6b35;
    font-weight: 600;
}

.qna-nav-btn .nav-icon { font-size: 18px; }

.qna-monthly-stats {
    padding: 0 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.qna-monthly-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    padding: 24px 0 8px 0;
}

.qna-monthly-items { display: flex; flex-direction: column; gap: 8px; }

.qna-monthly-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qna-monthly-key { font-size: 12px; color: rgba(255,255,255,0.7); }
.qna-monthly-val { font-size: 14px; font-weight: 700; }
.qna-monthly-val.green  { color: #22c55e; }
.qna-monthly-val.white  { color: white; }
.qna-monthly-val.purple { color: #7c3aed; }

/* ===== Content Area ===== */
.qna-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qna-content-header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 32px 24px;
}

.qna-content-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a2b4a;
}

.qna-content-subtitle {
    font-size: 13px;
    color: #8b95a1;
    margin-top: 4px;
}

/* Content Body — centered column */
.qna-content-body {
    padding: 32px 32px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settlement-column {
    width: 100%;
    max-width: 660px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== Settlement Amount Card (orange gradient) ===== */
.settlement-amount-card {
    background: linear-gradient(158deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.settlement-amount-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.settlement-amount-value {
    font-size: 52px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 12px;
}

.settlement-amount-min-text {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.settlement-status-badge {
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 9999px;
    display: none;
    align-items: center;
}

.settlement-status-badge.green {
    background-color: #22c55e;
}
.settlement-status-badge.red {
    background-color: #df1919;
}
.settlement-status-badge.active {
    display: inline-flex;
}

/* ===== Notice Box ===== */
.settlement-notice {
    background-color: #f4f5f7;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.settlement-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.settlement-notice-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 6px;
}

.settlement-notice-text {
    font-size: 12px;
    color: #8b95a1;
}

/* ===== Input Card ===== */
.settlement-input-card {
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settlement-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b4a;
}

.settlement-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 0;
}

.settlement-input-currency {
    font-size: 28px;
    font-weight: 800;
    color: #ff6b35;
    flex-shrink: 0;
}

.settlement-input-field {
    flex: 1;
    font-size: 32px;
    font-weight: 800;
    color: rgba(26, 43, 74, 0.5);
    border: none;
    outline: none;
    font-family: inherit;
    background: transparent;
    min-width: 0;
}

.settlement-input-hint {
    font-size: 12px;
    color: #8b95a1;
    margin-top: -8px;
}

.settlement-preset-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.preset-btn {
    height: 45px;
    border: none;
    border-radius: 10px;
    background-color: #f4f5f7;
    color: #1a2b4a;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background-color: #fff4ef;
    color: #ff6b35;
}

.preset-btn:disabled {
    cursor: not-allowed;
}

/* ===== Account Card ===== */
.settlement-account-card {
    background-color: white;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settlement-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-bank-icon {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: #fff4ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.account-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-bank-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4a;
}

.account-number {
    font-size: 13px;
    color: #8b95a1;
}

.account-holder {
    font-size: 13px;
    color: #8b95a1;
}

.account-change-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #ff6b35;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.account-change-btn:hover {
    text-decoration: underline;
}

/* ===== Summary Card ===== */
.settlement-summary-card {
    background-color: #f4f5f7;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-label {
    font-size: 14px;
    color: #1a2b4a;
}

.summary-label.gray {
    color: #8b95a1;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b4a;
}

.summary-value.gray {
    color: #8b95a1;
}

.summary-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.summary-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #1a2b4a;
}

.summary-total-value {
    font-size: 24px;
    font-weight: 800;
    color: #ff6b35;
}

/* ===== Info Card (navy) ===== */
.settlement-info-card {
    background-color: #1a2b4a;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.settlement-info-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.settlement-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settlement-info-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.settlement-info-bullets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settlement-info-bullet {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* ===== Submit Button ===== */
.settlement-submit-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 10px;
    background-color: #e5e7eb;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.2s;
}

.settlement-submit-btn.enabled {
    background-color: #ff6b35;
    cursor: pointer;
    opacity: 1;
}

.settlement-submit-btn.enabled:hover {
    background-color: #e55d2b;
}

.settlement-warning-text {
    font-size: 12px;
    color: #8b95a1;
    text-align: center;
}

/* ===== QnA Mobile Bottom Navigation ===== */
.qna-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #1a2b4a;
    border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 150;
}
.qna-mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
    height: 100%;
}
.qna-mobile-nav-icon { font-size: 20px; line-height: 1; }
.qna-mobile-nav-label { font-size: 10px; font-weight: 500; }
.qna-mobile-nav-btn.active { color: #ff6b35; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .qna-sidebar { display: none; }
    .qna-mobile-nav { display: flex; }
    .main-content { padding: 24px 32px 80px; }
    .qna-content-header { padding: 16px 20px; }
    .qna-content-body { padding: 20px 16px 80px; }
    .settlement-amount-value { font-size: 36px; }
    .settlement-preset-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-content { padding: 20px 20px 80px; }
    .onboarding-banner { flex-direction: column; align-items: flex-start; }
    .onboarding-steps { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 600px) {
    .main-content { padding: 16px 16px 80px; }
    .onboarding-banner { padding: 16px; }
    .onboarding-btn { display: none; }
    .settlement-amount-card { padding: 24px 20px; }
    .settlement-account-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .account-change-btn { width: 100%; }
}

@media (max-width: 480px) {
    .main-content { padding: 12px 12px 80px; }
    .settlement-amount-value { font-size: 28px; }
    .settlement-amount-card { padding: 20px 16px; }
    .settlement-input-card,
    .settlement-account-card,
    .settlement-summary-card,
    .settlement-info-card { padding: 16px; }
}