/* 리셋 및 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 프라이머리 컬러 - 네이비 블루 (신뢰와 안정감) */
    --primary-navy: #1B2A49;
    --primary-dark: #0F1829;
    --primary-light: #2A3F5F;
    
    /* 세컨더리 컬러 - 민트 (친근하고 현대적) */
    --secondary-mint: #4FD1C5;
    --secondary-mint-light: #81E6D9;
    --secondary-mint-dark: #38B2AC;
    
    /* 액센트 컬러 */
    --accent-coral: #FC8181;
    --accent-yellow: #F6E05E;
    
    /* 중립 컬러 */
    --gray-100: #F7FAFC;
    --gray-300: #E2E8F0;
    --gray-500: #A0AEC0;
    --gray-700: #4A5568;
    --gray-900: #1A202C;
    
    /* 시맨틱 컬러 */
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;
    --info: #4299E1;
    
    /* 카카오 브랜드 컬러 */
    --kakao-yellow: #FEE500;
    --kakao-brown: #3C1E1E;
    
    /* 기존 변수명 호환성 유지 */
    --primary-red: #1B2A49;
    --primary-dark: #0F1829;
    --primary-light: #2A3F5F;
    --secondary-gold: #4FD1C5;
    --secondary-purple: #38B2AC;
    --secondary-dark: #1B2A49;
    
    /* 레이아웃 */
    --header-height: 56px;
    --bottom-nav-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: #fff;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
}

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--gray-300);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: var(--primary-red);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 사용자 메뉴 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
    white-space: nowrap;
}

.login-btn, .logout-btn {
    padding: 6px 12px;
    background: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover, .logout-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-700);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-red);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* 메인 컨텐츠 */
.main-content {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: var(--gray-500);
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-red);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 11px;
}

/* 홈 페이지 스타일 */
.home-container {
    background: var(--gray-100);
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 auto;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--secondary-gold);
}

.hero-description {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.95;
    line-height: 1.6;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.original-price {
    font-size: 18px;
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-gold);
}

.discount-price small {
    font-size: 16px;
    font-weight: normal;
}

/* 홈 히어로 가격 비교 카드 */
.hero-price-compare {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 12px;
}

.hero-price-compare .price-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    min-width: 85px;
    transition: transform 0.2s, background 0.2s;
}

.hero-price-compare .price-card.competitor {
    opacity: 0.85;
}

.hero-price-compare .price-card.ours {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.hero-price-compare .price-card .platform-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.hero-price-compare .price-card .platform-name {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 4px;
}

.hero-price-compare .price-card.ours .platform-name {
    color: var(--gray-700);
}

.hero-price-compare .price-card .platform-price {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.hero-price-compare .price-card .platform-price s {
    opacity: 0.7;
}

.hero-price-compare .price-card .platform-price.highlight {
    font-size: 18px;
    color: var(--primary-red);
}

.hero-price-compare .price-card .platform-period {
    font-size: 10px;
    opacity: 0.7;
}

.hero-price-compare .price-card.ours .platform-period {
    color: var(--gray-500);
}

.hero-price-compare .price-card .save-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 4px;
}

.hero-price-note {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 20px;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-red);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.badge-free {
    background: var(--secondary-gold);
    color: var(--gray-900);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.hero-image {
    margin-top: 40px;
}

.youtube-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.youtube-logo svg {
    height: 40px;
}

.premium-text {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 특징 섹션 */
.features {
    padding: 40px 20px;
    background: white;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 32px;
    color: var(--gray-900);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 12px;
    color: var(--gray-700);
    line-height: 1.4;
}

/* 추천인 배너 */
.referral-banner {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, #8B5CF6 100%);
    padding: 32px 20px;
    color: white;
    text-align: center;
}

.referral-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.point-highlight {
    color: var(--secondary-gold);
    font-weight: bold;
}

.referral-content p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.referral-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--secondary-purple);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.referral-button:hover {
    transform: scale(1.05);
}

/* 이용 방법 */
.how-to {
    padding: 40px 20px;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 12px;
}

.step h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.step p {
    font-size: 12px;
    color: var(--gray-700);
}

/* FAQ */
.faq {
    padding: 40px 20px;
    background: var(--gray-100);
}

.faq-list {
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-900);
}

/* ::after 제거됨 - faq/index.php에서 HTML로 직접 아이콘 표시 */

.faq-item p {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

/* 토스트 메시지 */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gray-900);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--error);
}

.toast-warning {
    background: var(--warning);
}

/* 로딩 스피너 */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 반응형 디자인 */
@media (max-width: 320px) {
    .hero-title {
        font-size: 24px;
    }
    
    .discount-price {
        font-size: 24px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 768px;
        margin: 0 auto;
    }
    
    .bottom-nav {
        max-width: 768px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== 구매 페이지 스타일 ===== */

/* 구매 컨테이너 */
.purchase-container {
    padding: 20px;
    background: var(--gray-100);
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
}

/* 구매 스텝 */
.purchase-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    min-width: 52px;
    max-width: 60px;
    text-align: center;
}

.step-item.active {
    color: var(--primary-red);
}

.step-item.active .step-circle {
    background: var(--primary-red);
    color: white;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-line {
    flex: 1;
    max-width: 40px;
    height: 2px;
    background: var(--gray-300);
    margin: 0 4px;
    margin-bottom: 18px; /* 텍스트 2줄 높이 보정 */
}

.step-item span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    word-break: keep-all;
}

/* 상품 기간 선택 탭 */
.plan-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.plan-tab {
    flex: 1;
    padding: 14px 12px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.plan-tab:hover {
    border-color: var(--primary-navy);
    background: var(--gray-100);
}

.plan-tab.active {
    border-color: var(--primary-navy);
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 42, 73, 0.3);
}

.plan-tab .recommend-badge {
    background: var(--secondary-gold);
    color: var(--gray-900);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.plan-tab.active .recommend-badge {
    background: white;
    color: var(--primary-navy);
}

/* 상품 카드 */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-header h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--gray-900);
}

.product-badge {
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price-info {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row.highlight {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-red);
}

.price-label {
    color: var(--gray-700);
    font-size: 14px;
}

.price-original {
    text-decoration: line-through;
    color: var(--gray-500);
}

.price-discount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-red);
}

.price-unit {
    font-size: 14px;
    font-weight: normal;
}

.price-free {
    background: var(--secondary-gold);
    color: var(--gray-900);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* 가격 비교 섹션 */
.price-comparison {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-300);
}

.price-comparison-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-compare-items {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.price-compare-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.price-compare-item.competitor {
    opacity: 0.7;
}

.price-compare-item.ours {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
    border: 2px solid var(--secondary-mint);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(27, 42, 73, 0.25);
}

.platform-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.platform-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.price-compare-item.ours .platform-name {
    color: rgba(255, 255, 255, 0.9);
}

.platform-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-500);
}

.platform-price s {
    color: var(--gray-500);
}

.platform-price.highlight {
    font-size: 18px;
    color: var(--secondary-mint-light);
    text-shadow: 0 0 10px rgba(79, 209, 197, 0.5);
}

.save-badge {
    background: var(--accent-coral);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 6px;
    display: inline-block;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.price-final {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.price-final-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.price-final-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.won-sign {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-mint);
}

.price-number {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.price-monthly {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.price-monthly strong {
    color: var(--secondary-mint-light);
}

.benefits-list h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.check-icon {
    color: var(--success);
    font-weight: bold;
}

/* 주문자 정보 섹션 */
.buyer-info-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-300);
}

.buyer-info-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.buyer-info-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.buyer-info-section .form-group {
    margin-bottom: 16px;
}

.buyer-info-section .form-group:last-child {
    margin-bottom: 0;
}

.buyer-info-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.buyer-info-section .required {
    color: var(--error);
}

.buyer-info-section .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.buyer-info-section .form-input:focus {
    outline: none;
    border-color: var(--secondary-mint);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.15);
}

.buyer-info-section .form-input::placeholder {
    color: var(--gray-500);
}

.input-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 6px;
}

/* 회원 전화번호 readonly 스타일 */
.buyer-info-section .form-input.readonly-input {
    background: #f1f5f9;
    color: #475569;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.member-phone-hint {
    color: #667eea;
}

.member-phone-hint a {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
}

/* 계정 선택 섹션 */
.account-choice-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-300);
}

.account-choice-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.account-choice-section h3 .required {
    color: var(--error);
    font-size: 14px;
}

.account-choice-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.account-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-option {
    cursor: pointer;
}

.account-option input[type="radio"] {
    display: none;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    background: var(--gray-100);
    transition: all 0.2s;
}

.account-option input[type="radio"]:checked + .option-card {
    border-color: var(--secondary-mint);
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1) 0%, rgba(56, 178, 172, 0.05) 100%);
}

.option-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4;
}

.option-warning {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(237, 137, 54, 0.1);
    border-radius: 6px;
    font-size: 11px;
    color: var(--warning);
    line-height: 1.4;
}

.option-warning .warning-icon {
    flex-shrink: 0;
    font-size: 12px;
}

.option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.account-option input[type="radio"]:checked + .option-card .option-check {
    background: var(--secondary-mint);
    border-color: var(--secondary-mint);
    color: white;
}

.my-account-input {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}

.my-account-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.my-account-input .required {
    color: var(--error);
}

.my-account-input .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.my-account-input .form-input:focus {
    outline: none;
    border-color: var(--secondary-mint);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.15);
}

/* 추천인 섹션 */
.referral-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.referral-section h3 .optional {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-500);
}

.referral-desc {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.referral-input-group {
    display: flex;
    gap: 8px;
}

.referral-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.referral-check-btn {
    padding: 12px 24px;
    background: var(--secondary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.referral-message {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px;
    border-radius: 6px;
}

.referral-message.success {
    background: #E8F5E9;
    color: var(--success);
}

.referral-message.error {
    background: #FFEBEE;
    color: var(--error);
}

/* 인증 섹션 */
.auth-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.login-required {
    text-align: center;
    padding: 20px;
}

.login-required h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.login-required p {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.kakao-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.kakao-login-btn:hover {
    transform: scale(1.05);
}

/* 카드 섹션 */
.card-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.card-section p {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.card-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.card-register-btn:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
}

.card-icon {
    font-size: 24px;
}

.registered-card {
    padding: 16px;
    background: var(--gray-100);
    border-radius: 12px;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-change-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
}

/* 약관 섹션 */
.terms-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.terms-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.terms-all {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.terms-view-btn {
    margin-left: auto;
    padding: 4px 8px;
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
}

/* 결제 요약 */
.payment-summary {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-summary h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: var(--gray-900);
}

.discount-amount {
    color: var(--primary-red);
}

.point-amount {
    color: var(--secondary-purple);
    font-weight: 600;
}

.total-amount {
    color: var(--primary-red);
}

.summary-divider {
    height: 1px;
    background: var(--gray-300);
    margin: 16px 0;
}

.next-billing-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-700);
    margin-top: 12px;
}

/* 구매 액션 */
.purchase-action {
    padding: 0 20px 20px;
}

.purchase-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.purchase-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.purchase-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}

.purchase-note {
    text-align: center;
    font-size: 12px;
    color: var(--gray-700);
    margin-top: 12px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.modal-header h2 {
    font-size: 18px;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-300);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-cancel-btn {
    padding: 10px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-confirm-btn {
    padding: 10px 20px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* 카드 등록 폼 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card-security-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 13px;
    color: var(--gray-700);
    margin-top: 16px;
}

/* 전화번호 입력 모달 */
.phone-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.phone-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.phone-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.phone-modal-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.phone-modal-content p {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.phone-input-group {
    margin-bottom: 24px;
}

.phone-input-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.phone-input-group input:focus {
    outline: none;
    border-color: var(--primary-navy);
}

.phone-input-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

.phone-modal-buttons {
    display: flex;
    gap: 12px;
}

.phone-modal-buttons button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-modal-buttons .btn-cancel {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.phone-modal-buttons .btn-cancel:hover {
    background: var(--gray-200);
}

.phone-modal-buttons .btn-submit {
    background: var(--primary-navy);
    color: white;
    border: none;
}

.phone-modal-buttons .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 페이지 전환 로딩 오버레이 */
.page-transition-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    backdrop-filter: blur(2px);
}

.page-transition-loading.active {
    opacity: 1;
}

.page-transition-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--secondary-mint);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ================================================
   사업자 정보 푸터
   ================================================ */
.business-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-300);
    padding: 32px 16px;
    margin-top: 40px;
}

.business-footer-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.business-info {
    margin-bottom: 16px;
}

.business-info p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.8;
    margin: 0;
}

.business-info .business-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.business-links {
    margin-bottom: 12px;
}

.business-links a {
    font-size: 12px;
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.business-links a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

.business-links .divider {
    color: var(--gray-300);
    margin: 0 8px;
}

.copyright {
    font-size: 11px;
    color: var(--gray-500);
    margin: 0;
}