        :root {
            --bg-white: #fafafa;
            --bg-card: #ffffff;
            --primary-black: #1a1a1a;
            --primary-yellow: #e6b800;
            --primary-yellow-light: #fdf8e8;
            --text-dark: #1a1a1a;
            --text-gray: #333333;
            --text-muted: #666666;
            --border-color: #e0e0e0;
            --success: #059669;
            --danger: #b91c1c;
            --blue: #2563eb;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 18px; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
            background: var(--bg-white);
            min-height: 100vh;
            padding: 16px;
            color: var(--text-dark);
            line-height: 1.6;
        }

        .container { max-width: 900px; margin: 0 auto; }

        /* ========== 헤더 ========== */
        .main-header {
            background: var(--primary-black);
            padding: 32px 24px;
            text-align: center;
            position: relative;
            border-radius: 16px 16px 0 0;
        }

        .main-header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 4px;
            background: var(--primary-yellow);
        }

        .brand-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            margin-bottom: 16px;
        }

        .brand-logo .itda {
            font-size: 2.2rem;
            font-weight: 900;
            color: #ffffff;
            letter-spacing: -1px;
        }

        .brand-logo .dot {
            width: 10px; height: 10px;
            background: var(--primary-yellow);
            border-radius: 50%;
            align-self: flex-end;
            margin-bottom: 12px;
        }

        .brand-logo .is {
            font-size: 2.2rem;
            font-weight: 900;
            color: #ffffff;
            letter-spacing: -1px;
        }

        .main-header h1 {
            font-size: 1.7rem;
            margin-bottom: 8px;
            color: #ffffff;
            font-weight: 700;
        }

        .main-header p { font-size: 1rem; color: #aaaaaa; }

        .mastercard-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-top: 16px;
            padding: 10px 18px;
            background: rgba(255,255,255,0.1);
            border-radius: 20px;
        }

        .mastercard-badge .circles { display: flex; }
        .mastercard-badge .circle { width: 18px; height: 18px; border-radius: 50%; }
        .mastercard-badge .circle.red { background: #eb001b; }
        .mastercard-badge .circle.orange { background: #f79e1b; margin-left: -6px; }
        .mastercard-badge span { font-size: 0.85rem; color: #cccccc; }

        /* ========== 공유 링크 ========== */
        .share-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            margin: 12px auto 0;
            padding: 10px 20px;
            background: rgba(255,255,255,0.15);
            border: 1px dashed rgba(255,255,255,0.4);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            width: fit-content;
        }
        .share-link:hover {
            background: rgba(255,255,255,0.25);
        }
        .share-link span:first-child {
            font-size: 0.9rem;
            color: #ffffff;
            font-weight: 600;
        }
        .share-url {
            font-size: 0.8rem;
            color: var(--primary-yellow);
            word-break: break-all;
        }

        /* ========== 안내 문구 ========== */
        .guide-notice {
            margin-top: 16px;
            padding: 12px 16px;
            background: rgba(230, 184, 0, 0.15);
            border: 1px solid var(--primary-yellow);
            border-radius: 10px;
            font-size: 0.85rem;
            color: #ffffff;
            line-height: 1.5;
        }
        .guide-notice a {
            color: var(--primary-yellow);
            font-weight: 700;
            text-decoration: underline;
        }

        /* ========== 탭 ========== */
        .tabs {
            display: flex;
            background: var(--bg-card);
            border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
            overflow-x: auto;
        }

        .tab-btn {
            flex: 1;
            min-width: 80px;
            padding: 16px 10px;
            background: var(--bg-card);
            border: none;
            border-bottom: 3px solid transparent;
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
        }

        .tab-btn:hover { background: #f5f5f5; }

        .tab-btn.active {
            color: var(--primary-black);
            border-bottom-color: var(--primary-yellow);
            background: var(--primary-yellow-light);
        }

        .tab-btn:disabled { color: #ccc; cursor: not-allowed; }

        .tab-btn small {
            display: block;
            font-size: 0.75rem;
            font-weight: 400;
            margin-top: 4px;
        }

        .tab-content {
            display: none;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-top: none;
            border-radius: 0 0 16px 16px;
        }

        .tab-content.active { display: block; }
        .content { padding: 24px; }

        /* ========== 소개/경고 박스 ========== */
        .intro-box {
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
            background: #ffffff;
            border: 1px solid var(--border-color);
        }

        .intro-box h2 {
            font-size: 1.3rem;
            margin-bottom: 12px;
            color: var(--primary-black);
            font-weight: 700;
        }

        .intro-box > p {
            font-size: 1.1rem;
            line-height: 1.7;
            color: var(--text-gray);
        }

        .alert-danger {
            padding: 18px 20px;
            border-radius: 12px;
            margin-top: 16px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--danger);
        }

        .alert-danger strong { color: var(--danger); font-size: 1.1rem; font-weight: 700; }
        .alert-danger p { color: var(--text-gray); font-size: 1rem; margin-top: 6px; line-height: 1.6; }

        .alert-info {
            padding: 18px 20px;
            border-radius: 12px;
            margin-top: 16px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--primary-yellow);
        }

        .alert-info strong { color: var(--primary-black); font-size: 1.1rem; font-weight: 700; }
        .alert-info p { color: var(--text-gray); font-size: 1rem; margin-top: 6px; line-height: 1.6; }

        /* ========== 섹션 타이틀 ========== */
        .section-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-black);
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 3px solid var(--primary-black);
        }

        /* ========== 진행률 ========== */
        .progress-text {
            text-align: center;
            font-size: 1.1rem;
            color: var(--text-gray);
            font-weight: 600;
        }

        .progress-bar {
            background: #e5e5e5;
            border-radius: 8px;
            height: 14px;
            margin: 16px 0;
            overflow: hidden;
        }

        .progress-fill {
            background: var(--primary-yellow);
            height: 100%;
            border-radius: 8px;
            transition: width 0.4s ease;
            width: 0%;
        }

        /* ========== 체크리스트 ========== */
        .check-item {
            background: #ffffff;
            border: 2px solid var(--border-color);
            border-radius: 14px;
            padding: 20px;
            margin-bottom: 14px;
            transition: all 0.2s;
        }

        .check-item:hover { border-color: #cccccc; }

        .check-item.checked {
            border-color: var(--primary-yellow);
            background: var(--primary-yellow-light);
        }

        .check-item-header {
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
        }

        .checkbox {
            width: 36px; height: 36px;
            border: 3px solid #cccccc;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: transparent;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        .check-item.checked .checkbox {
            background: var(--primary-black);
            border-color: var(--primary-black);
            color: var(--primary-yellow);
        }

        .check-item-content { flex: 1; }
        .check-item-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-black); }
        .check-item-desc { font-size: 1rem; color: var(--text-muted); margin-top: 4px; }

        .expand-icon {
            font-size: 0.9rem;
            color: var(--text-muted);
            transition: transform 0.2s;
        }

        .check-item.expanded .expand-icon { transform: rotate(180deg); }

        .check-item-detail {
            margin-top: 18px;
            padding-top: 18px;
            border-top: 2px dashed var(--border-color);
            display: none;
        }

        .check-item.expanded .check-item-detail { display: block; }

        .btn-confirm {
            display: block;
            width: 100%;
            margin-top: 16px;
            padding: 16px;
            background: var(--primary-black);
            color: var(--primary-yellow);
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
        }

        .btn-confirm:hover { opacity: 0.9; }
        .check-item.checked .btn-confirm { display: none; }

        .detail-box {
            background: var(--bg-white);
            border-radius: 12px;
            padding: 18px;
            border: 1px solid var(--border-color);
        }

        .detail-box h4 { color: var(--primary-black); font-size: 1.1rem; margin-bottom: 12px; font-weight: 700; }
        .detail-box p { color: var(--text-gray); font-size: 1rem; line-height: 1.7; }

        .detail-table {
            width: 100%;
            margin-top: 12px;
            border-collapse: collapse;
            font-size: 1rem;
        }

        .detail-table td {
            padding: 14px 12px;
            border: 1px solid var(--border-color);
            color: var(--text-gray);
        }

        .detail-table tr:first-child { background: var(--primary-black); }
        .detail-table tr:first-child td { color: #ffffff; font-weight: 700; font-size: 0.95rem; }

        .text-success { color: var(--success); font-weight: 700; }
        .text-danger { color: var(--danger); font-weight: 700; }
        .text-warning { color: #b45309; font-weight: 700; }
        .text-primary { color: var(--primary-black); font-weight: 700; }

        /* ========== 다음 단계 안내 ========== */
        .next-step-guide {
            background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
            border-radius: 14px;
            padding: 20px;
            margin-top: 24px;
            text-align: center;
        }

        .step-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        .step-badge {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .step-badge.current { background: var(--primary-yellow); color: var(--primary-black); }

        .step-badge.next {
            background: rgba(255,255,255,0.2);
            color: #ffffff;
            border: 2px dashed rgba(255,255,255,0.4);
        }

        .step-arrow { color: var(--primary-yellow); font-size: 1.3rem; font-weight: 700; }
        .step-desc { color: #cccccc; font-size: 1rem; }
        .step-desc strong { color: var(--primary-yellow); }

        /* ========== 버튼 ========== */
        .btn {
            padding: 20px 28px;
            border: none;
            border-radius: 14px;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
            margin-top: 20px;
        }

        .btn-disabled { background: #eeeeee; color: #999999; cursor: not-allowed; }
        .btn-primary { background: var(--primary-black); color: var(--primary-yellow); }
        .btn-primary:hover { opacity: 0.9; }

        /* ========== 영문 이름 경고 ========== */
        .name-warning-box {
            background: #fef3c7;
            border: 3px solid #f59e0b;
            border-radius: 14px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .name-warning-title {
            background: #f59e0b;
            color: #000000;
            padding: 14px 18px;
            font-size: 1.1rem;
            font-weight: 800;
        }

        .name-warning-content { padding: 18px; }
        .name-warning-content p { font-size: 1rem; color: #92400e; margin-bottom: 14px; line-height: 1.5; }

        .name-source-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

        .name-source-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #ffffff;
            padding: 14px 16px;
            border-radius: 10px;
            border: 2px solid #fcd34d;
        }

        .name-source-icon { font-size: 1.5rem; }
        .name-source-item span:last-child { font-size: 1rem; color: #78350f; }
        .name-warning-note { color: #b91c1c !important; font-weight: 700 !important; margin-bottom: 0 !important; }

        /* ========== 입력 폼 ========== */
        .form-group { margin-bottom: 18px; }

        .form-label {
            display: block;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--primary-black);
        }

        .form-input, .form-select {
            width: 100%;
            padding: 16px 18px;
            font-size: 1.1rem;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background: #ffffff;
            transition: border-color 0.2s;
        }

        .form-input:focus, .form-select:focus { outline: none; border-color: var(--primary-black); }
        .helper-text { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }

        .inline-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

        @media (max-width: 600px) {
            .inline-group { grid-template-columns: 1fr; }
        }

        /* 주소 */
        .address-box {
            border: 2px solid var(--border-color);
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 18px;
        }

        .address-box-header {
            background: #f8f9fa;
            padding: 14px 18px;
            font-size: 1.1rem;
            font-weight: 700;
            border-bottom: 1px solid var(--border-color);
        }

        .address-box-content { padding: 18px; }

        .address-selected {
            display: none;
            margin-top: 14px;
            padding: 14px;
            background: #f0fdf4;
            border-radius: 10px;
            border: 2px solid var(--success);
        }

        .address-selected.show { display: block; }
        .selected-address-text { font-size: 1rem; color: var(--primary-black); margin-bottom: 6px; }
        .selected-address-english { font-size: 0.95rem; color: var(--success); font-weight: 600; }

        /* 주소 레이어 */
        .address-layer {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 1000;
            padding: 20px;
        }

        .address-layer-inner {
            max-width: 500px;
            height: 100%;
            max-height: 500px;
            margin: 0 auto;
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            position: relative;
        }

        .address-layer-close {
            position: absolute;
            top: 12px; right: 12px;
            width: 40px; height: 40px;
            background: var(--primary-black);
            color: var(--primary-yellow);
            border: none;
            border-radius: 50%;
            font-size: 1.3rem;
            cursor: pointer;
            z-index: 10;
        }

        .address-layer-content { width: 100%; height: 100%; }

        /* ========== 결과 양식 ========== */
        .result-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            padding: 30px;
        }

        .result-logo { text-align: center; margin-bottom: 5px; }
        .logo-text { font-size: 3rem; font-weight: 900; color: #000; letter-spacing: -2px; }
        .logo-dot { color: #fbbf24; }
        .form-title { text-align: center; color: var(--blue); font-size: 1rem; margin-bottom: 25px; }

        .field { margin-bottom: 12px; }

        .field-box {
            border: 1px solid #e5e5e5;
            border-radius: 4px;
            padding: 8px 12px;
            background: white;
            position: relative;
            min-height: 50px;
        }

        .field-box.disabled { background: #e8edf3; }
        .field-box .label { font-size: 0.7rem; color: #888; }
        .field-box .value { font-size: 0.95rem; color: #333; margin-top: 2px; }
        .field-box .guide-text { font-size: 0.95rem; color: var(--blue); margin-top: 2px; }

        .field-box .dropdown-arrow {
            position: absolute;
            right: 12px; top: 50%;
            transform: translateY(-50%);
            color: #666;
            font-size: 0.8rem;
        }

        .field-box .copy-btn {
            position: absolute;
            right: 8px; top: 50%;
            transform: translateY(-50%);
            padding: 3px 8px;
            background: #e5e5e5;
            border: none;
            border-radius: 3px;
            font-size: 0.65rem;
            cursor: pointer;
        }

        .field-box .copy-btn:hover { background: var(--blue); color: white; }

        .field-guide { font-size: 0.75rem; color: #666; margin-top: 4px; }
        .field-guide .blue { color: var(--blue); font-weight: 600; }

        .phone-row { display: flex; gap: 8px; }
        .phone-row .code { width: 80px; }
        .phone-row .number { flex: 1; }

        .toggle-row { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0; }

        .toggle {
            width: 36px; height: 20px;
            background: var(--blue);
            border-radius: 20px;
            position: relative;
            flex-shrink: 0;
        }

        .toggle::after {
            content: '';
            width: 16px; height: 16px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 2px; right: 2px;
        }

        .toggle-text { font-size: 0.8rem; color: #333; line-height: 1.4; }
        .toggle-text a { color: var(--blue); text-decoration: none; }

        .btn-blue {
            width: 100%;
            padding: 12px;
            background: var(--blue);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: default;
            margin-top: 10px;
        }

        .btn-green {
            width: 100%;
            padding: 12px;
            background: #22c55e;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: default;
            margin-top: 15px;
        }

        .footer-link { text-align: center; margin-top: 15px; font-size: 0.9rem; color: #666; }
        .footer-link a { color: var(--blue); text-decoration: none; }

        .result-section-title {
            color: var(--blue);
            font-size: 0.95rem;
            font-weight: 500;
            margin: 20px 0 15px;
        }

        .result-section-title:first-child { margin-top: 0; }

        .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

        @media (max-width: 600px) {
            .two-col { grid-template-columns: 1fr; }
        }

        .radio-row { display: flex; gap: 15px; margin-top: 5px; }

        .radio-row label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
            color: #333;
        }

        .radio-row input[type="radio"] { width: 16px; height: 16px; accent-color: var(--blue); }

        .copy-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; }

        .copy-all-btn {
            width: 100%;
            padding: 12px;
            background: white;
            border: 2px solid var(--blue);
            border-radius: 6px;
            color: var(--blue);
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
        }

        .copy-all-btn:hover { background: var(--blue); color: white; }

        /* 예시 안내 */
        .example-notice { text-align: center; margin-bottom: 20px; }

        .example-notice span {
            display: inline-block;
            background: #fef3c7;
            color: #92400e;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
        }

        .example-footer {
            text-align: center;
            margin-top: 24px;
            padding: 16px;
            background: #f8f9fa;
            border-radius: 10px;
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* 토스트 */
        .toast {
            position: fixed;
            bottom: 30px; left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--primary-black);
            color: var(--primary-yellow);
            padding: 16px 32px;
            border-radius: 14px;
            font-size: 1.1rem;
            font-weight: 600;
            opacity: 0;
            transition: all 0.3s;
            z-index: 2000;
        }

        .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

        /* 플로팅 연락처 */
        .floating-contact {
            position: fixed;
            bottom: 24px;
            right: 24px;
            display: none;
            flex-direction: column;
            gap: 12px;
            z-index: 1000;
        }

        .floating-contact.show { display: flex; }

        .contact-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .contact-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        }

        .contact-btn.telegram {
            background: #0088cc;
        }

        .contact-btn.kakao {
            background: #FEE500;
        }

        .contact-btn svg {
            width: 28px;
            height: 28px;
        }

        .contact-btn.telegram svg { fill: white; }
        .contact-btn.kakao svg { fill: #3C1E1E; }
