/* W1 eSIM Frontend Styles - 미니멀 트렌디 디자인 */

:root {
    --w1-primary: #2A2A2A;
    --w1-primary-light: #3A3A3A;
    --w1-primary-dark: #1A1A1A;
    --w1-text: #2A2A2A;
    --w1-text-light: #666;
    --w1-border: #E0E0E0;
    --w1-bg: #FFFFFF;
    --w1-bg-light: #F8F8F8;
    --w1-success: #10B981;
    --w1-error: #EF4444;
    --w1-shadow: 0 2px 8px rgba(42, 42, 42, 0.08);
    --w1-shadow-lg: 0 4px 16px rgba(42, 42, 42, 0.12);
    --w1-radius: 12px;
    --w1-radius-sm: 8px;
}

.w1-esim-new,
.w1-esim-status-lookup {
    font-family: inherit;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.w1-esim-new button,
.w1-esim-new input,
.w1-esim-new select,
.w1-esim-new textarea,
.w1-esim-status-lookup button,
.w1-esim-status-lookup input,
.w1-esim-status-lookup select,
.w1-esim-status-lookup textarea {
    font-family: inherit;
}

.w1-esim-header-front h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--w1-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.w1-esim-header-front p {
    font-size: 14px;
    font-weight: 400;
    color: var(--w1-text-light);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.w1-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.w1-form-group {
    margin-bottom: 20px;
}

.w1-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--w1-text);
}

/* Legacy activate region/card styles removed (NEW only). */

.w1-input-group input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 400;
    font-family: inherit;
    border: 2px solid var(--w1-border);
    border-radius: var(--w1-radius-sm);
    background: var(--w1-bg);
    color: var(--w1-text);
    transition: all 0.3s ease;
}

.w1-input-group input:focus {
    outline: none;
    border-color: var(--w1-primary);
    box-shadow: 0 0 0 4px rgba(42, 42, 42, 0.1);
}

.w1-input-group input::placeholder {
    color: #999;
}

/* 활성화 버튼 */
.w1-btn-activate {
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: var(--w1-primary);
    color: #fff;
    border: none;
    border-radius: var(--w1-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.w1-btn-activate:hover:not(:disabled):not(.w1-btn-disabled) {
    background: var(--w1-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--w1-shadow-lg);
}

.w1-btn-activate:active:not(:disabled):not(.w1-btn-disabled) {
    transform: translateY(0) scale(0.98);
    background: var(--w1-primary-dark);
    box-shadow: var(--w1-shadow);
}

.w1-btn-activate:disabled,
.w1-btn-activate.w1-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--w1-text-light) !important;
    color: #fff !important;
}

.w1-btn-activate:not(:disabled):not(.w1-btn-disabled) {
    background: var(--w1-primary) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.w1-btn-loader {
    display: inline-flex;
    align-items: center;
}

.w1-btn-loader svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 메시지 */
.w1-esim-message {
    padding: 16px 20px;
    border-radius: var(--w1-radius-sm);
    font-size: 13px;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

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

.w1-esim-message.success {
    background: #F0FDF4;
    color: #065F46;
    border: 1px solid var(--w1-success);
}

.w1-esim-message.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid var(--w1-error);
}

/* 반응형 */
@media (max-width: 768px) {
    .w1-esim-header-front h2 {
        font-size: 23px;
    }

    .w1-input-group {
        flex-direction: column;
    }
    
    .w1-btn-activate {
        width: 100%;
        justify-content: center;
    }

    .w1-input-group input {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
}

@media (max-width: 480px) {
    .w1-esim-header-front h2 {
        font-size: 21px;
    }

    .w1-esim-header-front p {
        font-size: 13px;
    }
}

/* --- 상태조회 컴포넌트 (.w1-esim-status-lookup) --- */
.w1-esim-status-lookup {
    --w1-sl-bg: #fafafa;
    --w1-sl-card: #ffffff;
    --w1-sl-text: #1a1a1a;
    --w1-sl-sub: #64748b;
    --w1-sl-muted: #94a3b8;
    --w1-sl-line: #f1f5f9;
    --w1-sl-success: #22c55e;
    --w1-sl-danger: #dc2626;
    --w1-sl-radius: 20px;
    --w1-sl-shadow: 0 2px 20px rgba(2, 6, 23, 0.05);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    color: var(--w1-sl-text);
    background: var(--w1-sl-bg);
}

.w1-esim-status-lookup-container {
    text-align: left;
}

#w1-status-lookup-intro {
    background: var(--w1-sl-card);
    border: 1px solid var(--w1-sl-line);
    border-radius: var(--w1-sl-radius);
    box-shadow: var(--w1-sl-shadow);
    padding: 24px 20px 20px;
}

.w1-esim-status-lookup-header {
    text-align: center;
    margin-bottom: 16px;
}

.w1-status-lookup-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.w1-status-lookup-desc {
    margin: 0;
    color: var(--w1-sl-sub);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
}

.w1-status-lookup-form .w1-input-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#w1-status-lookup-code {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#w1-status-lookup-code:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

#w1-status-lookup-submit {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: none;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.14s ease, background-color 0.2s ease;
}

#w1-status-lookup-submit:hover {
    background: #0f172a;
}

#w1-status-lookup-submit:active {
    transform: scale(0.985);
}

.w1-status-lookup-message {
    margin-top: 14px;
    text-align: center;
    border-radius: 12px;
    padding: 12px 14px;
}

.w1-status-lookup-result {
    margin-top: 0;
}

#w1n-view-home .w1n-app { position: relative; overflow: hidden; }
.w1-pass-sheet {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 30;
    height: 100%;
    background: #fafafa;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(.22, .8, .24, 1), border-radius 0.42s;
    overflow: hidden;
    touch-action: none;
    pointer-events: none;
    box-shadow: none;
}
.w1-pass-sheet.is-up {
    transform: translateY(0);
    border-radius: 0;
    overflow: auto;
    touch-action: pan-y;
    pointer-events: auto;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}
.w1-pass-sheet.is-drag { transition: none; }
.w1-pass-handle {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fafafa;
    cursor: grab;
    touch-action: none;
}
.w1-pass-handle i {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #d4d4d8;
}
.w1-pass-ask { padding: 4px 24px 32px; }
.w1-pass-error { margin: 12px 0 0; color: #b91c1c; font-size: 13px; line-height: 1.4; }
.w1-sl-another {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(2, 6, 23, 0.05);
}

.w1-sl-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px 0;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.w1-sl-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.w1-sl-hero-inner {
    padding: 0 4px 8px;
}

#w1-sl-hero-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--w1-sl-text);
}

#w1-sl-hero-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--w1-sl-sub);
}

.w1-sl-hero-top {
    margin: 0;
}

.w1-sl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
}

.w1-sl-hero-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 11px;
    line-height: 1.45;
}

.w1-sl-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--w1-sl-success);
}

.w1-sl-main-card {
    background: var(--w1-sl-card);
    border-radius: var(--w1-sl-radius);
    box-shadow: var(--w1-sl-shadow);
    overflow: hidden;
}

/* 플랜 헤더: 상단만 카드 라운드와 맞추고 하단은 직각 → 아래 흰 영역과 하나의 카드로 이어짐 (5.html esim-main-card) */
.w1-sl-main-card > .w1-sl-plan-header:first-child {
    border-top-left-radius: var(--w1-sl-radius);
    border-top-right-radius: var(--w1-sl-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.w1-sl-main-card > .w1-sl-plan-header.w1-sl-main-card-tail:first-child {
    border-radius: var(--w1-sl-radius);
}

.w1-sl-setup-section.w1-sl-main-card-tail {
    border-radius: 0 0 var(--w1-sl-radius) var(--w1-sl-radius);
}

/* 5.html esim-setup-section — 신규: 플랜 헤더 직후, 도넛 없음 */
.w1-sl-setup-section {
    position: relative;
    padding: 24px;
    background: var(--w1-sl-card);
}

.w1-sl-setup-section .w1-sl-setup-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.w1-sl-setup-heading {
    margin-top: 40px;
}

.w1-sl-install-caution[hidden],
#w1-sl-install-panel[hidden],
.w1-sl-copy-link-btn[hidden] {
    display: none !important;
}

.w1-sl-install-caution {
    margin-top: 28px;
    text-align: center;
}

.w1-sl-install-caution-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #fff1f2;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w1-sl-install-caution-icon svg {
    width: 26px;
    height: 26px;
}

.w1-sl-install-caution .w1-sl-setup-label {
    color: #e11d48;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.w1-sl-install-caution-text {
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--w1-sl-sub);
    white-space: pre-line;
    text-align: center;
}

.w1-sl-install-caution-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w1-sl-copy-link-btn,
.w1-sl-install-proceed-btn {
    width: 100%;
    margin: 0;
    padding: 15px 16px;
    box-sizing: border-box;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

.w1-sl-copy-link-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
}

.w1-sl-install-proceed-btn {
    border: none;
    background: #111827;
    color: #ffffff;
}

.w1-sl-install-proceed-btn:hover {
    background: #1f2937;
}

.w1-sl-install-proceed-btn:active {
    transform: scale(0.98);
}

.w1-sl-copy-link-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.w1-sl-copy-link-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.w1-sl-copy-link-btn:active {
    transform: scale(0.98);
}

.w1-sl-copy-link-btn.is-copied {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.w1-sl-setup-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    letter-spacing: -0.01em;
}

.w1-sl-setup-section .w1-sl-setup-description {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--w1-sl-sub);
    line-height: 1.6;
    text-align: left;
}

/* 플랜 헤더 (5.html esim-plan-header) */
.w1-sl-plan-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.w1-sl-plan-header--new {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.w1-sl-plan-header--onboard {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* 활성(사용 중): 5.html 기본 헤더와 동일 톤 */
.w1-sl-plan-header--in_use {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.w1-sl-plan-header--depleted,
.w1-sl-plan-header--deleted {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

.w1-sl-plan-header--unknown {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.w1-sl-plan-header--empty {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

.w1-sl-plan-header-inner {
    padding: 20px;
}

.w1-sl-plan-header-inner--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.w1-sl-plan-header-inner--combined {
    display: flex;
    align-items: center;
    gap: 12px;
}

.w1-sl-plan-header-inner--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
}

.w1-sl-plan-header-fallback-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.w1-sl-plan-col {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.w1-sl-plan-col--plan {
    flex: 0 0 auto;
    margin-left: auto;
}

.w1-sl-region-visual {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.w1-sl-region-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.w1-sl-region-stack--end {
    align-items: flex-end;
    text-align: right;
}

.w1-sl-plan-header-inner--combined .w1-sl-region-stack {
    align-items: flex-start;
    text-align: left;
}

.w1-sl-region-caption {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.w1-sl-region-names {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.w1-sl-plan-header-inner--combined .w1-sl-region-names {
    white-space: normal;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.w1-sl-region-package {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(220px, 42vw);
}

.w1-sl-region-flag,
.w1-sl-region-globe,
.w1-sl-region-globe-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin: 0;
    flex-shrink: 0;
}

.w1-sl-region-globe-badge-inner {
    font-size: 23px;
    line-height: 1;
}

/* 상태 뱃지 변형 (5.html) */
.w1-sl-status-badge--pending {
    background: #e0f2fe;
    color: #0369a1;
}

.w1-sl-status-badge--pending .w1-sl-status-dot {
    background: #0ea5e9;
}

.w1-sl-status-badge--waiting {
    background: #fef3c7;
    color: #92400e;
}

.w1-sl-status-badge--waiting .w1-sl-status-dot {
    background: #f59e0b;
}

.w1-sl-status-badge--completed {
    background: #f1f5f9;
    color: #64748b;
}

.w1-sl-status-badge--completed .w1-sl-status-dot {
    background: #94a3b8;
    animation: none;
}

/* 사용 중 (5.html 성공·활성 톤) */
.w1-sl-status-badge--in_use {
    background: #d1fae7;
    color: #047857;
}

.w1-sl-status-badge--in_use .w1-sl-status-dot {
    background: #10b981;
}

.w1-sl-hero-badge:not(.w1-sl-status-badge--completed) .w1-sl-status-dot {
    animation: w1-sl-pulse 2s ease-in-out infinite;
}

@keyframes w1-sl-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

.w1-sl-main-card > .w1-sl-panel.w1-sl-panel-usage {
    border-top: 1px solid #f1f5f9;
}

.w1-sl-panel.w1-sl-panel-usage {
    position: relative;
    padding: 50px 32px 32px;
    border: 0;
    box-shadow: none;
    border-radius: 0 0 var(--w1-sl-radius) var(--w1-sl-radius);
}

/* 도넛 시작 위치를 소폭 아래로 내려 상/하 여백 시각 균형을 맞춤 */
.w1-sl-usage-graph-wrap {
    padding-top: 20px;
}

/* 5.html esim-waiting-overlay — 도넛 영역 위만 */
.w1-sl-usage-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

/* [hidden]은 UA 기본보다 위에서 .w1-sl-usage-overlay 의 display:flex 가 이기는 경우가 있어 명시 */
.w1-sl-usage-overlay[hidden] {
    display: none !important;
}

.w1-sl-waiting-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.w1-sl-waiting-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.w1-sl-waiting-icon svg {
    width: 24px;
    height: 24px;
}

.w1-sl-preactive-onboard .w1-sl-waiting-icon {
    background: #fef3c7;
}

.w1-sl-preactive-onboard .w1-sl-waiting-icon svg {
    stroke: #f59e0b;
}

.w1-sl-preactive-onboard .w1-sl-waiting-text {
    color: #92400e;
}

.w1-sl-waiting-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    max-width: 16em;
}

.w1-sl-panel-usage .w1-sl-hero-badge {
    position: absolute;
    top: 24px;
    left: 20px;
    z-index: 3;
}

.w1-sl-donut-wrap {
    text-align: center;
    padding: 0;
}

.w1-sl-donut-visual {
    position: relative;
    width: 180px;
    max-width: 100%;
    margin: 0 auto 10px;
}

.w1-sl-donut-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: none;
}

.w1-sl-usage--in_use .w1-sl-donut-svg {
    filter: drop-shadow(0 6px 18px rgba(59, 130, 246, 0.16));
}

/* 일수(수량) 플랜(DB): 사용 중 무제한 표시 + 누적 사용량 — 잔여% UI와 분리 */
.w1-sl-usage--period-qty.w1-sl-usage--in_use .w1-sl-donut-svg {
    filter: drop-shadow(0 6px 18px rgba(220, 38, 38, 0.2));
}

.w1-sl-usage--period-qty .w1-sl-donut-track {
    stroke: #fecaca;
}

.w1-sl-usage--period-qty .w1-sl-donut-progress {
    stroke: url(#w1SlDonutRed);
}

.w1-sl-donut-pct-wrap--infinity {
    color: #b91c1c;
}

.w1-sl-donut-pct--infinity {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.w1-sl-data-stats--usage-only {
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.w1-sl-data-stats--usage-only .w1-sl-data-divider,
.w1-sl-data-stats--usage-only > .w1-sl-data-stat:nth-child(3) {
    display: none !important;
}

.w1-sl-data-stats--usage-only > .w1-sl-data-stat:first-child {
    width: 100%;
    max-width: 100%;
}

.w1-sl-data-stats--usage-only .w1-sl-data-stat-label {
    display: block;
    margin-top: 4px;
    color: var(--w1-sl-muted);
    font-size: 12px;
    font-weight: 500;
}

.w1-sl-data-stats--usage-only #w1-sl-stat-remaining {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--w1-sl-text);
}

.w1-sl-data-stats--usage-only #w1-sl-stat-total {
    display: none;
}

/* 대기(onboard) 일수형: 무제한 — 일수만 표시 */
.w1-sl-data-stats--days-only {
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.w1-sl-data-stats--days-only > .w1-sl-data-stat:first-child,
.w1-sl-data-stats--days-only .w1-sl-data-divider {
    display: none !important;
}

.w1-sl-data-stats--days-only > .w1-sl-data-stat:nth-child(3) {
    width: 100%;
    max-width: 100%;
}

.w1-sl-data-stats--days-only #w1-sl-stat-total {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

/* 대기(onboard): 스타일시트의 그라데이션 stroke가 속성보다 우선하는 경우 대비 */
.w1-sl-usage--onboard .w1-sl-donut-progress:not(.w1-sl-donut-progress--hidden) {
    stroke: #f59e0b !important;
}

.w1-sl-usage--onboard .w1-sl-donut-track {
    stroke: #fef3c7 !important;
}

.w1-sl-usage--onboard .w1-sl-donut-svg.w1-sl-donut-svg--waiting {
    filter: blur(2px) drop-shadow(0 6px 14px rgba(245, 158, 11, 0.12));
    opacity: 0.4;
}

.w1-sl-donut-svg.w1-sl-donut-svg--waiting {
    filter: blur(2px);
    opacity: 0.4;
}

.w1-sl-donut-svg.w1-sl-donut-svg--completed {
    filter: blur(2px);
    opacity: 0.5;
}

.w1-sl-usage--depleted .w1-sl-donut-svg.w1-sl-donut-svg--completed {
    filter: blur(2px) drop-shadow(0 6px 16px rgba(71, 85, 105, 0.14));
}

.w1-sl-donut-track {
    stroke: #e2e8f0;
    stroke-width: 12;
}

.w1-sl-donut-progress {
    stroke: url(#w1SlDonutBlue);
    stroke-width: 12;
    stroke-dasharray: 0 440;
    transition: stroke-dasharray 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.w1-sl-donut-progress.w1-sl-donut-progress--hidden {
    opacity: 0;
    visibility: hidden;
}

.w1-sl-donut-progress.w1-sl-donut--alert {
    stroke: url(#w1SlDonutRed);
}

.w1-sl-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
    padding: 10% 8% 12%;
}

.w1-sl-donut-pct-wrap {
    display: flex;
    align-items: center;
    color: var(--w1-sl-text);
}

.w1-sl-donut-pct-wrap.w1-sl-donut-pct-wrap--alert {
    color: #b91c1c;
}

.w1-sl-donut-pct {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.w1-sl-donut-pct-unit {
    display: none;
}

.w1-sl-donut-sub {
    margin: 10px 0 0;
    color: var(--w1-sl-sub);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.w1-sl-donut-sub.w1-sl-donut-sub--alert {
    color: #991b1b;
}

.w1-status-lookup-usage-error {
    margin: 0;
    color: var(--w1-sl-danger);
    font-size: 13px;
    line-height: 1.45;
}

.w1-sl-data-stats {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.w1-sl-data-stat {
    text-align: center;
}

.w1-sl-data-stat-value {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.w1-sl-data-stat-label {
    margin: 4px 0 0;
    color: var(--w1-sl-muted);
    font-size: 12px;
    font-weight: 500;
}

.w1-sl-data-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.w1-sl-data-stats--waiting .w1-sl-data-stat-value {
    color: #d97706;
}

.w1-sl-data-stats--waiting .w1-sl-data-stat-label {
    color: #f59e0b;
}

.w1-sl-data-stats--waiting .w1-sl-data-divider {
    background: #fde68a;
}

.w1-sl-data-stats--muted .w1-sl-data-stat-value {
    color: #94a3b8;
}

.w1-sl-data-stats--muted .w1-sl-data-stat-label {
    color: #cbd5e1;
}

/* assets/5.html .esim-notice-card — 메인 카드 밖 별도 박스 */
.w1-sl-notice-card {
    margin: 0;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    box-shadow: var(--w1-sl-shadow);
}

.w1-sl-notice-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.w1-sl-notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w1-sl-notice-icon svg {
    width: 20px;
    height: 20px;
    stroke: #f59e0b;
}

.w1-sl-notice-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.3;
}

.w1-sl-notice-description {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #b45309;
}

/* 무제한(일수) 안내: onboard와 동일 레이아웃·글자 크기·아이콘 형식, 상자 색만 적색 계열 */
.w1-sl-notice-card--period-qty {
    border: 1px solid #fecaca;
    background: #fff1f2;
    box-shadow: var(--w1-sl-shadow);
}

.w1-sl-notice-card--period-qty .w1-sl-notice-icon {
    background: #fecdd3;
}

.w1-sl-notice-card--period-qty .w1-sl-notice-icon svg {
    stroke: #e11d48;
}

.w1-sl-notice-card--period-qty .w1-sl-notice-title {
    color: #9f1239;
}

.w1-sl-notice-card--period-qty .w1-sl-notice-description {
    color: #be123c;
}

.w1-sl-usage-overlay--completed {
    z-index: 5;
}

.w1-sl-completed-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.w1-sl-completed-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f1f5f9;
}

.w1-sl-completed-icon svg {
    width: 24px;
    height: 24px;
    stroke: #94a3b8;
}

.w1-sl-completed-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #64748b;
    text-align: center;
    max-width: 14em;
}

.w1-sl-panel.w1-sl-panel-details-card {
    background: var(--w1-sl-card);
    border-radius: var(--w1-sl-radius);
    box-shadow: var(--w1-sl-shadow);
    padding: 18px;
}

.w1-sl-panel-title {
    margin: 0 0 14px;
    color: var(--w1-sl-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.w1-sl-detail-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.w1-sl-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.w1-sl-detail-icon--yellow {
    background: #fef3c7;
}

.w1-sl-detail-icon--blue {
    background: #dbeafe;
}

.w1-sl-detail-icon--purple {
    background: #f3e8ff;
}

.w1-sl-detail-icon--teal {
    background: #ccfbf1;
}

.w1-sl-detail-icon svg {
    width: 18px;
    height: 18px;
}

.w1-sl-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.w1-sl-detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--w1-sl-line);
}

.w1-sl-detail-list li:last-child {
    border-bottom: none;
}

.w1-sl-detail-k {
    color: var(--w1-sl-sub);
    font-size: 14px;
}

.w1-sl-detail-v {
    color: var(--w1-sl-text);
    font-weight: 600;
    font-size: 14px;
}

/* assets/5.html 사용 완료 — 상세 행 회색 톤 */
.w1-esim-status-lookup.w1-sl-depleted-ui .w1-sl-panel-details-card .w1-sl-detail-icon {
    background: #f1f5f9 !important;
}

.w1-esim-status-lookup.w1-sl-depleted-ui .w1-sl-panel-details-card .w1-sl-detail-icon svg {
    stroke: #94a3b8 !important;
}

.w1-esim-status-lookup.w1-sl-depleted-ui .w1-sl-panel-details-card .w1-sl-detail-v {
    color: #94a3b8;
}

.w1-sl-usage-updated-line {
    margin: 4px 0 0;
    color: var(--w1-sl-muted);
    font-size: 12px;
    text-align: center;
}

.w1-sl-refresh-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.w1-sl-refresh-btn:hover {
    background: #0f172a;
}

.w1-sl-refresh-btn--primary {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    background: #3b82f6;
    color: #fff;
}

.w1-sl-refresh-btn--primary:hover {
    background: #2563eb;
    color: #fff;
}

.w1-sl-install-lead,
.w1-status-lookup-hint {
    margin: 0;
    color: var(--w1-sl-sub);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* 5.html esim-setup-btn — 링크(<a>)로 iOS/Android 설치 URL 유지 */
.w1-status-lookup-install-btns {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
}

.w1-esim-status-lookup .w1-sl-setup-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
    background: #ffffff;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.w1-esim-status-lookup .w1-sl-setup-btn:last-of-type {
    margin-bottom: 0;
}

.w1-esim-status-lookup .w1-sl-setup-btn:hover {
    background: #eff6ff;
}

.w1-esim-status-lookup .w1-sl-setup-btn:active {
    transform: scale(0.98);
}

.w1-esim-status-lookup .w1-sl-setup-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

/* 5.html esim-install-notice · esim-qr-accordion */
.w1-sl-install-notice {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 32px;
}

.w1-sl-install-notice-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 12px;
}

.w1-sl-install-notice-btns {
    display: flex;
    gap: 8px;
}

.w1-sl-install-notice-btn {
    flex: 1;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: inherit;
}

.w1-sl-install-notice-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.w1-sl-install-notice-btn:hover {
    background: #eff6ff;
}

.w1-sl-install-notice-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.w1-sl-qr-accordion {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dbeafe;
}

.w1-sl-qr-accordion-text {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin: 0 0 12px;
}

.w1-sl-qr-container {
    display: flex;
    justify-content: center;
}

.w1-sl-qr-box {
    width: 208px;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.w1-status-lookup-qr-wrap {
    text-align: center;
}

.w1-sl-qr-inner.w1-status-lookup-qr-wrap {
    margin: 0;
}

.w1-status-lookup-qr-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--w1-sl-line);
    vertical-align: middle;
}

/* 프로모션 코드 (사용 중 전용, 고객센터 블록 위) */
.w1-sl-promo-block {
    margin-top: 0;
    padding: 16px 18px;
    background: var(--w1-sl-card);
    border-radius: var(--w1-sl-radius);
    box-shadow: var(--w1-sl-shadow);
}
.w1-sl-promo-block[hidden] {
    display: none !important;
}
.w1-sl-promo-menu {
    width: 100%;
    padding: 2px 0;
    margin: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
}
.w1-sl-promo-menu-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--w1-sl-text);
    line-height: 1.4;
}
.w1-sl-promo-menu-action {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s ease;
}
.w1-sl-promo-menu:hover .w1-sl-promo-menu-action {
    background: #f1f5f9;
}
.w1-sl-promo-menu:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.w1-sl-promo-menu:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
    border-radius: 8px;
}
.w1-sl-promo-form-wrap {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.24s ease, opacity 0.24s ease, transform 0.24s ease, margin-top 0.24s ease;
}
.w1-sl-promo-form-wrap.is-open {
    margin-top: 12px;
    max-height: 96px;
    opacity: 1;
    transform: translateY(0);
}
.w1-sl-promo-form-wrap.is-submitting {
    opacity: 0.75;
}
.w1-sl-promo-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.w1-sl-promo-input {
    flex: 1;
    min-width: 0;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    font-family: inherit;
    background: #fff;
    color: var(--w1-sl-text);
}
.w1-sl-promo-input::placeholder {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}
.w1-sl-promo-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.w1-sl-promo-submit {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    background: #ffffff;
    color: #475569;
    transition: background 0.2s;
}
.w1-sl-promo-submit:hover {
    background: #f1f5f9;
}
.w1-sl-promo-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.w1-sl-promo-status {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
    text-align: left;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}
.w1-sl-promo-status.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.w1-sl-promo-status.is-pending {
    color: #2563eb;
}
.w1-sl-promo-status.is-approved {
    color: #15803d;
}
.w1-sl-promo-status.is-rejected {
    color: #b91c1c;
}

/* 상세 카드 하단 고객센터 (5.html esim-support-btn-small) */
.w1-sl-details-support-foot {
    margin-top: 0;
    padding: 18px;
    background: var(--w1-sl-card);
    border: 0;
    border-radius: var(--w1-sl-radius);
    box-shadow: var(--w1-sl-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}
.w1-sl-details-support-foot[hidden] {
    display: none !important;
}

.w1-sl-details-support-lead {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--w1-sl-text);
    line-height: 1.4;
}

.w1-sl-support-btn-small {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: inherit;
}

.w1-sl-support-btn-small svg {
    width: 13px;
    height: 13px;
}

.w1-sl-support-btn-small:hover {
    background: #f1f5f9;
}

/* unknown 전용 히어로 — 그 외 상태는 JS가 hidden 부여 */
#w1-sl-hero[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    #w1-status-lookup-intro {
        padding: 20px 16px 16px;
    }

    .w1-sl-donut-visual {
        width: 160px;
    }

    .w1-sl-donut-pct {
        font-size: 30px;
    }

    .w1-sl-donut-pct--infinity {
        font-size: 38px;
    }

    .w1-sl-usage-graph-wrap {
        padding-top: 14px;
    }

    .w1-sl-data-stats--usage-only #w1-sl-stat-remaining {
        font-size: 18px;
    }

    .w1-sl-data-stats--days-only #w1-sl-stat-total {
        font-size: 18px;
    }

    .w1-sl-content {
        padding: 20px 16px 0;
    }

}

/* --- shortcode: w1_esim_new --- */
.w1-esim-new {
    --w1n-bg: #fafafa;
    --w1n-text: #1a1a1a;
    --w1n-sub: #64748b;
    --w1n-card: #ffffff;
    --w1n-line: #e2e8f0;
    width: min(480px, 100%);
    max-width: 480px;
    margin: 0 auto;
    background: var(--w1n-bg);
    color: var(--w1n-text);
}
.w1n-view.is-active { display: block; }

.w1n-view { display: none; }
.w1n-msg { margin: 12px 24px 0; border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 500; background: #fef2f2; color: #b91c1c; }
.w1n-top-link { border: 0; background: transparent; color: #64748b; font-size: 13px; font-weight: 500; cursor: pointer; }
.w1n-subtop { display: flex; align-items: center; gap: 16px; }
.w1n-back { border: 0; background: transparent; cursor: pointer; font-size: 17px; color: #334155; }
.w1n-main { padding: 0 24px 48px; }
.w1n-marketplace-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.w1n-marketplace-tab {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}
.w1n-marketplace-tab[data-marketplace="naver"].is-active {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}
.w1n-marketplace-tab[data-marketplace="coupang"].is-active {
    border-color: #3dacdc;
    background: #e8f7fc;
    color: #0c6e96;
}
.w1n-view-marketplace-input.w1n-marketplace-naver .w1n-marketplace-accent { color: #10b981; }
.w1n-view-marketplace-input.w1n-marketplace-coupang .w1n-marketplace-accent { color: #3dacdc; }
.w1n-view-marketplace-input.w1n-marketplace-naver .w1n-marketplace-submit { background: #10b981; color: #fff; }
.w1n-view-marketplace-input.w1n-marketplace-coupang .w1n-marketplace-submit { background: #3dacdc; color: #fff; }
.w1n-marketplace-note {
    margin-top: 24px;
    border-radius: 16px;
    padding: 16px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}
.w1n-marketplace-note p { margin: 0; }
.w1n-marketplace-note-naver { background: #f0fdf4; color: #166534; }
.w1n-marketplace-note-coupang { background: #e8f7fc; color: #0c6e96; }
.w1n-view-marketplace-input .w1n-main,
.w1n-view-naver-input .w1n-main,
.w1n-view-lookup-input .w1n-main,
.w1n-view-country .w1n-main {
    min-height: calc(100dvh - 88px);
}
.w1n-view-home .w1n-main {
    display: flex;
    flex-direction: column;
}
.w1n-view-lookup-input .w1n-main,
.w1n-view-marketplace-input .w1n-main,
.w1n-view-naver-input .w1n-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.w1n-view-lookup-input.is-active,
.w1n-view-marketplace-input.is-active,
.w1n-view-naver-input.is-active {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}
.w1n-view-lookup-input .w1n-subtop,
.w1n-view-marketplace-input .w1n-subtop,
.w1n-view-naver-input .w1n-subtop {
    padding: 24px 24px 16px;
}
.w1n-view-lookup-input .w1n-main,
.w1n-view-marketplace-input .w1n-main,
.w1n-view-naver-input .w1n-main {
    flex: 1;
    padding: 0 24px 48px;
}
.w1n-page-head { padding: 16px 0 32px; }
.w1n-page-head h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.w1n-page-head p { margin: 8px 0 0; font-size: 14px; font-weight: 400; color: #64748b; }
.w1n-hero { padding: 32px 0 48px; }
.w1n-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.w1n-hero-title { margin: 0; font-size: 39px; font-weight: 700; line-height: 1.12; letter-spacing: -1.2px; }
.w1n-hero-title-sub { color: #3b82f6; }
.w1n-hero-desc { margin: 16px 0 0; font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--w1n-sub); }
.w1n-hero-illust { width: 80px; height: 80px; margin-top: 8px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #DBEAFE, #BFDBFE); display: flex; align-items: center; justify-content: center; position: relative; }
.w1n-hero-illust svg { width: 32px; height: 32px; }
.w1n-hero-illust-dot-a { position: absolute; top: -4px; right: 0; width: 12px; height: 12px; border-radius: 50%; background: #10B981; }
.w1n-hero-illust-dot-b { position: absolute; bottom: -4px; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: #8B5CF6; }
.w1n-card { background: var(--w1n-card); border-radius: 16px; padding: 20px; box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06); }
.w1n-input { width: 100%; border: 0; border-bottom: 2px solid var(--w1n-line); background: transparent; font-size: 19px; font-weight: 500; line-height: 1.4; padding: 12px 0; outline: 0; }
.w1n-btn { width: 100%; margin-top: 20px; border: 0; border-radius: 16px; padding: 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.w1n-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.w1n-btn-dark { background: #1a1a1a; color: #fff; }
.w1n-btn-green { background: #10b981; color: #fff; }
.w1n-btn-purple { background: #8b5cf6; color: #fff; }
.w1n-btn-primary { background: #3B82F6; color: #fff; font-size: 15px; }
.w1n-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.w1n-quick-btn { border: 0; border-radius: 16px; padding: 16px; text-align: left; cursor: pointer; font-family: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.04); background: #fff; }
.w1n-quick-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; margin-bottom: 8px; }
.w1n-quick-icon svg { width: 16px; height: 16px; }
.w1n-quick-btn-green .w1n-quick-icon { background: #10b981; }
.w1n-quick-btn-purple .w1n-quick-icon { background: #8b5cf6; }
.w1n-quick-title { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.w1n-quick-desc { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: #94A3B8; }
.w1n-buy-banner { width: 100%; margin-top: 24px; border: 0; border-radius: 16px; padding: 16px; background: #1a1a1a; color: #fff; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: inherit; }
.w1n-view-home .w1n-main,
.w1n-view-issue .w1n-main,
.w1n-view-lookup-input .w1n-main { justify-content: flex-start; }
.w1-esim-new [hidden] { display: none !important; }
.w1n-my { border: 0; background: #fff; color: #1a1a1a; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.w1n-title { margin: 8px 0 18px; font-size: 32px; line-height: 1.2; letter-spacing: -1px; font-weight: 700; }
.w1n-lead { margin: -6px 0 20px; color: #64748b; font-size: 13px; line-height: 1.5; }
.w1n-stage { flex: 1; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.w1n-mark { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.w1n-mark svg { width: min(320px, 100%); height: auto; max-height: 100%; }
.w1n-mark-spin, .w1n-chip { transform-box: fill-box; transform-origin: center; }
.w1n-mark-spin { animation: w1n-globe 22s linear infinite; }
.w1n-chip { animation: w1n-float 4.8s ease-in-out infinite; }
.w1n-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.w1n-home-card { border: 0; background: #fff; border-radius: 20px; min-height: 148px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.w1n-home-ico { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.w1n-home-ico svg { width: 22px; height: 22px; }
.w1n-home-ico-buy { background: #1a1a1a; color: #fff; }
.w1n-home-ico-issue { background: #ff6b4a; color: #fff; }
.w1n-home-card strong { display: block; font-size: 18px; letter-spacing: -0.4px; }
.w1n-home-card em, .w1n-home-esim em { display: block; margin-top: 2px; color: #64748b; font-size: 12px; font-style: normal; font-weight: 400; }
.w1n-home-esim { width: 100%; margin-top: 12px; border: 0; background: #fff; border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.w1n-home-esim strong { display: block; font-size: 16px; letter-spacing: -0.3px; }
.w1n-home-esim i { width: 8px; height: 8px; border-top: 1.5px solid #94a3b8; border-right: 1.5px solid #94a3b8; transform: rotate(45deg); flex: 0 0 8px; }
.w1n-mode button[data-mode="naver"].is-on { background: #03c75a; color: #fff; }
#w1n-marketplace-form .w1n-btn,
.w1n-btn-naver { background: #03c75a; color: #fff; }
.w1n-guide { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.w1n-guide-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; }
.w1n-guide-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #e4ebff; color: #3b6cff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; }
.w1n-guide-ico svg { width: 18px; height: 18px; }
.w1n-guide-ico-naver { background: #03c75a; color: #fff; }
.w1n-guide-item strong { display: block; font-size: 13px; letter-spacing: -0.2px; }
.w1n-guide-item em { display: block; margin-top: 2px; color: #64748b; font-size: 12px; font-style: normal; font-weight: 400; }
@keyframes w1n-globe { to { transform: rotate(360deg); } }
@keyframes w1n-float { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
    .w1n-mark-spin, .w1n-chip { animation: none; }
}
.w1n-back-inline { display: block; width: auto; margin: 0 0 8px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: inherit; cursor: pointer; text-align: left; }
.w1n-mode { display: flex; gap: 8px; margin: 0 0 16px; }
.w1n-mode button { flex: 1; border: 0; border-radius: 50px; padding: 10px 14px; background: #fff; color: #64748b; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.w1n-mode button.is-on { background: #1a1a1a; color: #fff; }
.w1n-field { display: block; width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; background: #fff; border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 15px; color: inherit; }
.w1n-issue .w1n-btn,
#w1n-lookup-form .w1n-btn { background: #1a1a1a; color: #fff; border-radius: 14px; margin-top: 16px; font-size: 15px; font-weight: 700; }
.w1n-hint { margin: 12px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.5; }
.w1n-buy-row { width: 100%; margin-top: 12px; border: 0; background: #fff; border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.w1n-buy-row strong { display: block; font-size: 14px; letter-spacing: -0.2px; }
.w1n-buy-row em { display: block; margin-top: 2px; color: #94a3b8; font-size: 12px; font-style: normal; font-weight: 400; }
.w1n-buy-row i { width: 8px; height: 8px; border-top: 1.5px solid #94a3b8; border-right: 1.5px solid #94a3b8; transform: rotate(45deg); flex: 0 0 8px; }
.w1n-saved { margin-top: 28px; }
.w1n-saved-title { margin: 0 0 10px; color: #94a3b8; font-size: 12px; }
.w1n-saved-card { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; border: 0; border-radius: 16px; background: #fff; padding: 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.w1n-saved-mark { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #1a1a1a; color: #fff; }
.w1n-saved-mark svg { width: 20px; height: 20px; }
.w1n-saved-card strong { display: block; font-size: 14px; letter-spacing: -0.2px; }
.w1n-saved-card em { display: block; margin-top: 2px; color: #94a3b8; font-size: 12px; font-style: normal; }
.w1n-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.w1n-sheet-card { width: min(480px, 100%); max-height: 86dvh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 20px 28px; }
.w1n-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.w1n-sheet-head h3 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.w1n-sheet-close { border: 0; background: #f4f4f5; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.w1n-buy-banner-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.w1n-buy-banner-icon { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.w1n-buy-banner-icon svg { width: 18px; height: 18px; }
.w1n-buy-banner-copy { min-width: 0; }
.w1n-buy-banner-title { display: block; font-size: 13px; font-weight: 600; }
.w1n-buy-banner-sub { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.5); }
.w1n-buy-banner-arrow { flex-shrink: 0; width: 16px; height: 16px; opacity: 0.6; }
.w1n-buy-banner-arrow svg { width: 100%; height: 100%; }
.w1n-footer-mail { margin-top: 32px; text-align: center; }
.w1n-footer-mail p { margin: 0; font-size: 11px; font-weight: 400; color: #94a3b8; }
.w1n-footer-mail a { color: #64748B; font-weight: 500; text-decoration: none; }
.w1n-page-head h2 { font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -1.5px; }
.w1n-page-head p { margin-top: 20px; font-size: 16px; font-weight: 400; line-height: 1.6; }
.w1n-page-head-sub { display: inline-block; }
.w1n-page-head-sub-gray { color: #CBD5E1; }
.w1n-page-head-sub-green { color: #10B981; }
.w1n-input-card { margin-bottom: 16px; }
.w1n-sub-submit { margin-top: 0; font-size: 15px; }
.w1n-main-country { padding-bottom: 120px; }
.w1n-view-country .w1n-page-head { padding: 16px 0 24px; }
.w1n-view-country .w1n-page-head h2 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.w1n-view-country .w1n-page-head p { margin-top: 8px; font-size: 14px; }
.w1n-plan-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w1n-plan-chip { width: 48px; height: 48px; border-radius: 12px; background: #1a1a1a; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.w1n-plan-chip svg { width: 24px; height: 24px; }
.w1n-plan-left { flex: 1; min-width: 0; }
.w1n-plan-meta { margin: 0 0 4px; font-size: 10px; font-weight: 500; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.w1n-plan-name { margin: 0; font-size: 16px; font-weight: 700; }
.w1n-days-divider { width: 1px; height: 40px; background: #f0f0f0; flex-shrink: 0; }
.w1n-days-wrap { text-align: center; padding: 0 8px; }
.w1n-days-label { margin: 0 0 4px; font-size: 10px; color: #94a3b8; text-transform: uppercase; font-weight: 500; letter-spacing: 0.05em; }
.w1n-days-val { margin: 0; font-size: 16px; font-weight: 700; }
.w1n-tabs { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; }
.w1n-tab-btn { padding: 10px 20px; border: 0; border-radius: 50px; white-space: nowrap; cursor: pointer; font-size: 13px; font-weight: 500; font-family: inherit; background: #fff; color: #64748b; }
.w1n-tab-btn.is-active { background: #1a1a1a; color: #fff; }
.w1n-country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.w1n-country-item { border: 0; border-radius: 16px; padding: 16px; background: #fff; color: #1a1a1a; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: inherit; }
.w1n-country-item.is-selected { background: #1a1a1a; color: #fff; }
.w1n-country-flag { font-size: 28px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
/* 유니코드에 지구본 ‘국기’ 조합이 없어, 국기 이모지와 비슷한 가로 직사각 비율로 표시 */
.w1n-globe-as-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
    line-height: 1;
}
.w1n-country-flag.w1n-has-globe-visual .w1n-globe-as-flag {
    width: 34px;
    height: 24px;
    font-size: 14px;
}
.w1n-country-name { font-size: 12px; font-weight: 500; }
.w1n-bottom-cta { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #f0f0f0; padding: 16px 24px; }
.w1n-bottom-cta[hidden] { display: none !important; }
.w1n-view-issued.is-active { display: flex; flex-direction: column; min-height: 100dvh; }
.w1n-view-issued .w1n-top { padding-bottom: 8px; }
.w1n-issued-main { min-height: calc(100dvh - 96px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 20px; }
.w1n-issued-celebration { position: relative; margin-bottom: 32px; width: 96px; height: 96px; }
.w1n-issued-flag-card { width: 96px; height: 96px; border-radius: 24px; background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); display: flex; align-items: center; justify-content: center; }
.w1n-issued-flag-card #w1n-issued-hero-flag { font-size: 53px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.w1n-issued-flag-card #w1n-issued-hero-flag.w1n-has-globe-visual .w1n-globe-as-flag {
    width: 72px;
    height: 52px;
    font-size: 26px;
}
.w1n-dot { position: absolute; border-radius: 50%; }
.w1n-dot-a { top: -16px; left: -32px; width: 12px; height: 12px; background: rgba(16, 185, 129, 0.3); }
.w1n-dot-b { top: -8px; right: 0; width: 8px; height: 8px; background: rgba(59, 130, 246, 0.3); }
.w1n-dot-c { bottom: 0; left: -16px; width: 8px; height: 8px; background: rgba(245, 158, 11, 0.3); }
.w1n-dot-d { bottom: -8px; right: -24px; width: 12px; height: 12px; background: rgba(236, 72, 153, 0.3); }
.w1n-issued-ok { margin: 0 0 8px; color: #10b981; font-size: 13px; font-weight: 500; }
.w1n-issued-title { margin: 0 0 12px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; }
.w1n-issued-desc { margin: 0 0 24px; color: #64748b; font-size: 14px; font-weight: 400; line-height: 1.6; }
.w1n-issued-plan-card { width: 100%; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); margin-bottom: 24px; text-align: left; }
.w1n-issued-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #f5f5f5; }
.w1n-issued-chip { width: 44px; height: 44px; border-radius: 12px; background: #1a1a1a; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.w1n-issued-flag { font-size: 30px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.w1n-issued-flag.w1n-has-globe-visual .w1n-globe-as-flag {
    width: 44px;
    height: 32px;
    font-size: 19px;
}
.w1n-issued-plan-meta-wrap { flex: 1; min-width: 0; }
.w1n-issued-plan-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; }
.w1n-issued-k { margin: 0 0 2px; font-size: 11px; font-weight: 400; color: #94a3b8; }
.w1n-issued-v { margin: 0; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.w1n-issued-days-wrap { text-align: right; }
.w1n-issued-foot { margin: 16px 0 0; font-size: 12px; color: #94a3b8; line-height: 1.4; }
#w1n-view-home #w1n-lookup-embed > .w1-esim-status-lookup { max-width: none; background: transparent; }
#w1n-view-home #w1n-lookup-embed #w1-status-lookup-intro,
#w1n-view-home #w1n-lookup-embed #w1-status-lookup-message {
    display: none !important;
}
.w1-pass-sheet .w1n-lookup-loading {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 50%;
    z-index: 8;
    background: rgba(250, 250, 250, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
    gap: 12px;
}
.w1-pass-sheet.is-up .w1n-lookup-loading { height: 100%; }
.w1n-lookup-loading p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
}
.w1n-lookup-loading[hidden] { display: none !important; }
.w1n-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #dbeafe;
    border-top-color: #3b82f6;
    animation: w1n-spin 0.8s linear infinite;
}
@keyframes w1n-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .w1n-msg { margin: 10px 16px 0; }
    .w1n-top, .w1n-subtop { padding: 16px 16px 12px; }
    .w1n-main { padding: 0 16px 32px; }
    .w1n-bottom-cta { padding: 12px 16px; }
    .w1n-hero { padding: 24px 0 36px; }
    .w1n-hero-title { font-size: 36px; letter-spacing: -1.2px; }
    .w1n-hero-desc { font-size: 14px; margin-top: 14px; }
    .w1n-page-head h2 { font-size: 32px; letter-spacing: -1.1px; }
    .w1n-page-head p { font-size: 14px; margin-top: 14px; }
    .w1n-view-country .w1n-page-head h2 { font-size: 26px; letter-spacing: -0.5px; }
    .w1n-view-country .w1n-page-head p { margin-top: 8px; }
    .w1n-input { font-size: 17px; }
    .w1n-view-lookup-input .w1n-main,
    .w1n-view-marketplace-input .w1n-main,
.w1n-view-naver-input .w1n-main {
        justify-content: flex-start;
    }
.w1n-view-lookup-input .w1n-subtop,
.w1n-view-marketplace-input .w1n-subtop,
.w1n-view-naver-input .w1n-subtop {
        padding: 16px 16px 12px;
    }
    .w1n-view-lookup-input .w1n-main,
    .w1n-view-marketplace-input .w1n-main,
.w1n-view-naver-input .w1n-main {
        padding: 0 16px 32px;
    }
    .w1n-issued-main { min-height: calc(100dvh - 84px); padding-top: 16px; }
}

.w1n-app {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fafafa;
}
.w1n-app > .w1-top,
.w1n-view > .w1-top { flex: 0 0 auto; margin: 0; }
.w1n-app > .w1n-home-esim {
    flex: 0 0 auto;
    width: auto;
    align-self: stretch;
    box-sizing: border-box;
    margin: 12px 24px 12px;
}
.w1n-view > .w1-foot { margin-top: 0; padding: 14px 24px 12px; background: #fafafa; }
.w1n-view > .w1-foot .w1-legal { margin-top: 0; }
.w1n-app .w1n-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 24px 0;
    overflow: auto;
}
#w1n-view-country .w1n-main { padding-left: 24px; padding-right: 24px; }
#w1n-view-country .w1n-bottom-cta { padding-left: 24px; padding-right: 24px; }

@media (max-width: 480px) {
    .w1n-app .w1n-top,
    .w1n-view-home .w1n-top,
    .w1n-view-issue .w1n-top,
    .w1n-view-lookup-input .w1n-top { padding: 20px 24px; }
    .w1n-app .w1n-main,
    .w1n-view-home .w1n-main,
    .w1n-view-issue .w1n-main,
    .w1n-view-lookup-input .w1n-main { padding: 0 24px 0; }
    #w1n-view-country .w1n-main { padding: 0 24px 120px; }
    #w1n-view-country .w1n-bottom-cta { padding: 12px 24px; }
    #w1n-view-issued .w1n-issued-main { min-height: 0; justify-content: center; padding: 12px 24px; }
}
#w1n-view-issued .w1n-issued-main { min-height: 0; justify-content: center; padding: 12px 24px; }
