﻿/* Pricing page styles - adapted from info/view/pricing2.html */
.pricing-page a { color: inherit; text-decoration: none; }
:root {
                --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
                
                /* 2026 Trend Palette: Deep Tech & Sophisticated */
                --bg-body: #f8fafc;
                --bg-surface: #ffffff;
                --bg-surface-sub: #f1f5f9;
                
                --primary: #1e293b; /* Deep Slate */
                --primary-accent: #3b82f6; /* Electric Blue for highlights */
                --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
                
                --text-main: #0f172a;
                --text-sub: #475569;
                --text-muted: #94a3b8;
                --text-invert: #ffffff;

                --border: rgba(148, 163, 184, 0.2);
                --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
                --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
                --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
                --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

                --radius-lg: 24px;
                --radius-md: 16px;
                --radius-sm: 8px;
            }
.pricing-page, .pricing-page * { box-sizing: border-box; }
            .pricing-page { margin: 0; }

            .pricing-page {
                font-family: var(--font);
                background-color: var(--bg-body);
                color: var(--text-main);
                line-height: 1.6;
                padding: 0;
                overflow-x: hidden;
                -webkit-font-smoothing: antialiased;
            }

            /* Utilities */
            .container {
                max-width: 1460px;
                margin: 0 auto;
                padding: 0 24px;
            }
            .pricing-page .section-spacer { padding: 120px 0; }
            .badge-pill {
                display: inline-block;
                padding: 6px 16px;
                background: rgba(59, 130, 246, 0.1);
                color: var(--primary-accent);
                font-size: 13px;
                font-weight: 700;
                border-radius: 999px;
                margin-bottom: 20px;
                letter-spacing: 0.05em;
                text-transform: uppercase;
            }

            /* Animations */
            @keyframes fadeInUp {
                from { opacity: 0; transform: translateY(20px); }
                to { opacity: 1; transform: translateY(0); }
            }
            .animate-in { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
            .delay-1 { animation-delay: 0.1s; }
            .delay-2 { animation-delay: 0.2s; }

            /* 1. Hero Section */
            .pricing-hero {
                text-align: center;
                padding: 72px 0 100px;
                background: radial-gradient(circle at 50% 0%, #e2e8f0 0%, var(--bg-body) 70%);
                position: relative;
            }
            .pricing-hero h1 {
                font-size: clamp(40px, 5vw, 64px);
                font-weight: 800;
                line-height: 1.1;
                letter-spacing: -0.03em;
                margin-bottom: 24px;
                color: var(--text-main);
            }
            .pricing-hero p {
                font-size: clamp(18px, 2vw, 22px);
                color: var(--text-sub);
                max-width: 700px;
                margin: 0 auto;
                font-weight: 500;
            }

            /* 2. Common Section Header */
            .section-header { text-align: center; margin-bottom: 60px; }
            .section-header h2 {
                font-size: 36px;
                font-weight: 800;
                margin-bottom: 12px;
                letter-spacing: -0.02em;
            }
            .section-header p {
                font-size: 18px;
                color: var(--text-sub);
            }

            /* 3. Pricing Toggle */
            .toggle-container {
                display: flex;
                justify-content: center;
                margin-bottom: 40px;
            }
            .toggle-wrapper {
                background: white;
                padding: 6px;
                border-radius: 999px;
                box-shadow: var(--shadow-sm);
                border: 1px solid var(--border);
                display: inline-flex;
                position: relative;
            }
            .toggle-wrapper input { display: none; }
            .toggle-wrapper label {
                padding: 12px 32px;
                border-radius: 999px;
                font-size: 16px;
                font-weight: 600;
                color: var(--text-sub);
                cursor: pointer;
                transition: all 0.3s ease;
                position: relative;
                z-index: 1;
            }
            .toggle-wrapper input:checked + label {
                color: white;
                background: var(--primary);
                box-shadow: var(--shadow-md);
            }
            .discount-tag {
                position: absolute;
                top: -10px;
                right: -10px;
                background: #ef4444;
                color: white;
                font-size: 11px;
                font-weight: 800;
                padding: 4px 10px;
                border-radius: 20px;
                box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
                z-index: 10;
            }
            .billing-notice {
                text-align: center;
                color: var(--text-muted);
                font-size: 14px;
                margin-bottom: 60px;
            }

            /* 4. Plans Grid */
            .plans-grid {
                display: grid;
                grid-template-columns: repeat(6, 1fr);
                gap: 14px;
                margin-bottom: 80px;
            }
            .plan-card {
                background: var(--bg-surface);
                border: 1px solid var(--border);
                border-radius: var(--radius-lg);
                padding: 28px 20px;
                transition: all 0.3s ease;
                display: flex;
                flex-direction: column;
                position: relative;
                overflow: hidden;
            }
            .plan-card:hover {
                transform: translateY(-8px);
                box-shadow: var(--shadow-lg);
                border-color: rgba(59, 130, 246, 0.3);
            }
            .plan-card.highlight {
                background: #f8fafc;
                border: 2px solid var(--primary);
            }
            .plan-card .badge-popular {
                position: absolute;
                top: 14px;
                right: 14px;
                background: var(--primary);
                color: white;
                font-size: 11px;
                font-weight: 700;
                padding: 4px 10px;
                border-radius: 99px;
            }
            .plan-name {
                font-size: 13px;
                font-weight: 800;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: 0.1em;
                margin-bottom: 12px;
            }
            .plan-price {
                font-size: 32px;
                font-weight: 800;
                color: var(--text-main);
                margin-bottom: 6px;
                letter-spacing: -0.02em;
                line-height: 1.2;
            }
            .plan-price small { font-size: 14px; font-weight: 500; color: var(--text-sub); margin-left: 2px; }
            .plan-yearly-save {
                font-size: 12px;
                color: #ef4444;
                font-weight: 700;
                height: 18px;
                margin-bottom: 20px;
                opacity: 0;
                transition: opacity 0.3s;
            }
            .plan-yearly-save.visible { opacity: 1; }
            
            .btn-plan {
                display: block;
                width: 100%;
                padding: 14px;
                border-radius: var(--radius-sm);
                border: 1px solid var(--border);
                background: white;
                color: var(--text-main);
                font-weight: 700;
                font-size: 14px;
                text-align: center;
                text-decoration: none;
                box-sizing: border-box;
                cursor: pointer;
                transition: all 0.2s;
                margin-bottom: 24px;
            }
            .plan-card.highlight .btn-plan,
            .plan-card:hover .btn-plan {
                background: var(--primary);
                color: white;
                border-color: var(--primary);
            }
            
            .feature-list { list-style: none; }
            .feature-list li {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 8px 0;
                border-bottom: 1px solid var(--bg-surface-sub);
                font-size: 13px;
                color: var(--text-sub);
            }
            .feature-list li:last-child { border-bottom: none; }
            .feature-list li strong { color: var(--text-main); }
            
            .val-check { color: var(--primary-accent); }
            .val-tag { 
                background: var(--bg-surface-sub); 
                padding: 2px 8px; 
                border-radius: 6px; 
                font-weight: 600; 
                font-size: 11px;
                white-space: nowrap;
            }
            .val-tag.infinite { background: var(--primary); color: white; }

            /* 5. Membership Grid (Bento Style) */
            .membership-container {
                display: grid;
                grid-template-columns: 1.5fr 1fr;
                gap: 32px;
                max-width: 1100px;
                margin: 0 auto;
            }
            
            /* VIP Card */
            .mem-card {
                padding: 48px;
                border-radius: 32px;
                position: relative;
                overflow: hidden;
            }
            .mem-vip {
                background: white;
                border: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
            }
            .mem-vip::before {
                content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
                background: linear-gradient(90deg, var(--primary-accent), #818cf8);
            }
            .mem-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
            .mem-title h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
            .mem-price { font-size: 24px; font-weight: 700; color: var(--primary-accent); }
            
            .market-grid {
                display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
            }
            .market-badge {
                padding: 10px 18px;
                border-radius: 99px;
                background: var(--bg-body);
                border: 1px solid rgba(0,0,0,0.05);
                font-size: 14px;
                font-weight: 600;
                color: var(--text-sub);
            }
            .market-badge.active {
                background: #eff6ff;
                color: var(--primary-accent);
                border-color: #dbeafe;
            }
            
            .func-grid {
                display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
            }
            .func-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
            .func-item svg { width: 20px; height: 20px; color: var(--primary-accent); }

            /* VVIP Card (Dark Mode) */
            .mem-vvip {
                background: var(--primary);
                color: white;
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                box-shadow: var(--shadow-glow);
            }
            .mem-vvip .icon-wrapper {
                width: 64px; height: 64px;
                background: rgba(255,255,255,0.1);
                border-radius: 50%;
                display: flex; align-items: center; justify-content: center;
                margin: 0 auto 24px;
            }
            .mem-vvip h3 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
            .mem-vvip p { color: #94a3b8; font-size: 16px; margin-bottom: 40px; }
            
            .vvip-features { list-style: none; text-align: left; margin: 0 auto 40px; width: fit-content; }
            .vvip-features li { display: flex; gap: 12px; font-size: 18px; font-weight: 600; margin-bottom: 16px; }
            .vvip-features li svg { color: #60a5fa; }
            
            .vvip-footer {
                margin-top: auto;
                padding-top: 32px;
                border-top: 1px solid rgba(255,255,255,0.1);
            }

            /* 6. Dongdaemun Section (Magazine Layout) */
            .ddm-wrapper {
                background: white;
                border: 1px solid var(--border);
                border-radius: 40px;
                overflow: hidden;
                box-shadow: var(--shadow-lg);
                margin: 0 auto;
            }
            .ddm-banner {
                background: var(--bg-body);
                padding: 80px 40px;
                text-align: center;
                border-bottom: 1px solid var(--border);
            }
            .ddm-banner h2 { font-size: 42px; font-weight: 900; line-height: 1.3; margin-bottom: 24px; }
            .ddm-banner .highlight { color: var(--primary-accent); position: relative; display: inline-block; }
            
            .ddm-price-box {
                background: var(--primary);
                color: white;
                display: inline-flex;
                flex-direction: column;
                padding: 30px 60px;
                border-radius: 24px;
                margin-top: 32px;
            }
            .ddm-price-box span:first-child { font-size: 16px; opacity: 0.8; margin-bottom: 8px; }
            .ddm-price-box .ddm-vat { font-size: 14px; opacity: 0.6; margin-top: 4px; }
            .ddm-price-box span:nth-child(2) { font-size: 48px; font-weight: 800; }
            .ddm-price-box span:nth-child(2) small { font-size: 24px; font-weight: 600; }

            .ddm-details {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0;
            }
            .ddm-col { padding: 60px; }
            .ddm-col:first-child { border-right: 1px solid var(--bg-surface-sub); }
            
            .ddm-col h3 { font-size: 24px; font-weight: 800; margin-bottom: 32px; }
            .inc-list { list-style: none; display: grid; gap: 16px; }
            .inc-list li {
                display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-main);
                background: var(--bg-body); padding: 16px 20px; border-radius: 12px;
            }
            .inc-list li::before {
                content: '✓'; display: flex; align-items: center; justify-content: center;
                width: 24px; height: 24px; background: var(--primary); color: white; border-radius: 50%; font-size: 12px; flex-shrink: 0;
            }

            .extra-list { list-style: none; display: grid; gap: 0; }
            .extra-item {
                display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--bg-surface-sub);
            }
            .extra-item:last-child { border: none; }
            .extra-item span:last-child { font-weight: 700; color: var(--text-main); }
            .extra-item .free { color: #10b981; }

            .ddm-breakdown {
                border-top: 1px solid var(--border);
                background: #fafbfc;
                padding: 16px 48px 18px;
            }
            .ddm-breakdown-caption {
                margin: 0 0 10px;
                font-size: 11px;
                font-weight: 400;
                color: var(--text-muted);
            }
            .ddm-breakdown-cols {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0 40px;
            }
            .ddm-breakdown-col + .ddm-breakdown-col {
                padding-left: 40px;
                border-left: 1px solid var(--border);
            }
            .ddm-breakdown-title {
                margin: 0 0 4px;
                font-size: 12px;
                font-weight: 500;
                color: var(--text-sub);
            }
            .ddm-breakdown-title span {
                font-weight: 400;
                color: var(--text-muted);
                font-size: 11px;
                margin-left: 6px;
            }
            .ddm-breakdown-col ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }
            .ddm-breakdown-col li {
                display: flex;
                justify-content: space-between;
                align-items: baseline;
                gap: 16px;
                padding: 3px 0;
                font-size: 12px;
                font-weight: 400;
                color: var(--text-muted);
                line-height: 1.4;
            }
            .ddm-breakdown-col li span:last-child {
                font-variant-numeric: tabular-nums;
                flex-shrink: 0;
                color: var(--text-sub);
            }
            .ddm-breakdown-col li em {
                font-style: normal;
                font-size: 11px;
                color: #b0b8c4;
                margin-left: 4px;
            }
            .ddm-breakdown-sub {
                margin: 4px 0 0;
                padding-top: 4px;
                border-top: 1px dashed var(--border);
                font-size: 12px;
                font-weight: 400;
                color: var(--text-sub);
                text-align: right;
            }
            .ddm-breakdown-sum {
                margin: 10px 0 0;
                font-size: 12px;
                font-weight: 400;
                color: var(--text-sub);
            }
            .ddm-breakdown-note {
                margin: 4px 0 0;
                font-size: 11px;
                font-weight: 400;
                color: var(--text-muted);
                line-height: 1.5;
            }

            /* 7. Fee Groups (Clean Grid) */
            .fee-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
                gap: 32px;
                max-width: 1100px;
                margin: 0 auto;
            }
            .fee-card {
                background: white;
                border-radius: 24px;
                border: 1px solid var(--border);
                padding: 40px;
                box-shadow: var(--shadow-sm);
            }
            .fee-card h3 {
                font-size: 22px;
                font-weight: 800;
                margin-bottom: 24px;
                padding-bottom: 16px;
                border-bottom: 2px solid var(--primary);
            }
            .fee-row {
                display: flex; justify-content: space-between; align-items: flex-start;
                padding: 16px 0; border-bottom: 1px solid var(--bg-surface-sub);
            }
            .fee-row:last-child { border: none; }
            .fee-name { font-weight: 600; color: var(--text-main); font-size: 16px; }
            .fee-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
            .fee-val { font-weight: 700; color: var(--primary-accent); font-size: 18px; }

            /* 8. Storage Table */
            .storage-table {
                width: 100%;
                border-collapse: separate;
                border-spacing: 0;
                border-radius: 24px;
                overflow: hidden;
                border: 1px solid var(--border);
                background: white;
            }
            .storage-table th {
                background: var(--bg-body);
                padding: 20px;
                text-align: left;
                font-weight: 700;
                color: var(--text-sub);
                border-bottom: 1px solid var(--border);
            }
            .storage-table td {
                padding: 24px 20px;
                border-bottom: 1px solid var(--bg-surface-sub);
                color: var(--text-main);
            }
            .storage-table tr:last-child td { border-bottom: none; }
            .storage-icon-wrap { display: flex; align-items: center; gap: 16px; font-weight: 700; }
            .storage-icon-wrap svg { width: 40px; height: 40px; padding: 8px; background: #eff6ff; color: var(--primary-accent); border-radius: 12px; }

            /* =========================================
               Responsive
               ========================================= */
            @media (max-width: 1024px) {
                .plans-grid { grid-template-columns: repeat(3, 1fr); }
                .membership-container, .ddm-details { grid-template-columns: 1fr; }
                .ddm-col:first-child { border-right: none; border-bottom: 1px solid var(--bg-surface-sub); }
                .fee-grid { grid-template-columns: 1fr; }
                .func-grid { grid-template-columns: 1fr; }
            }

            @media (max-width: 768px) {
                .container { padding: 0 16px; }
                .pricing-page .section-spacer { padding: 80px 0; }

                /* Hero */
                .pricing-hero { padding: 48px 20px 60px; }
                .pricing-hero h1 { font-size: 32px; }
                .pricing-hero p { font-size: 16px; }
                .badge-pill { font-size: 11px; padding: 5px 12px; }

                /* Section Header */
                .section-header h2 { font-size: 28px; }
                .section-header p { font-size: 15px; }
                .section-header { margin-bottom: 40px; }

                /* Toggle */
                .toggle-wrapper label { padding: 10px 20px; font-size: 14px; }
                .discount-tag { font-size: 10px; padding: 3px 8px; top: -8px; right: -6px; }

                /* Plans Grid */
                .plans-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
                .plan-card { padding: 24px 18px; }
                .plan-price { font-size: 28px; }

                /* --- 프리미엄 멤버십 모바일 --- */
                .mem-card { padding: 28px 20px; border-radius: 24px; }
                .mem-header { flex-direction: column; gap: 12px; margin-bottom: 28px; }
                .mem-title h3 { font-size: 22px; }
                .mem-price { font-size: 20px; }

                .market-grid { gap: 8px; margin-bottom: 28px; }
                .market-badge { padding: 8px 14px; font-size: 13px; }

                .func-grid { grid-template-columns: 1fr; gap: 14px; }
                .func-item { font-size: 14px; gap: 10px; }
                .func-item svg { width: 18px; height: 18px; }

                .mem-vvip h3 { font-size: 24px; }
                .mem-vvip p { font-size: 14px; margin-bottom: 28px; }
                .vvip-features li { font-size: 15px; margin-bottom: 12px; }
                .vvip-features li svg { width: 20px; height: 20px; }
                .vvip-footer { padding-top: 24px; }
                .vvip-footer div { font-size: 16px !important; }

                /* --- 동대문 섹션 모바일 --- */
                .ddm-wrapper { border-radius: 24px; }
                .ddm-banner { padding: 48px 20px; }
                .ddm-banner h2 { font-size: 26px; margin-bottom: 16px; }
                .ddm-price-box { padding: 20px 32px; border-radius: 16px; margin-top: 20px; }
                .ddm-price-box span:first-child { font-size: 13px; }
                .ddm-price-box span:nth-child(2) { font-size: 36px; }
                .ddm-price-box span:nth-child(2) small { font-size: 18px; }
                .ddm-price-box .ddm-vat { font-size: 12px; }

                .ddm-col { padding: 32px 20px; }
                .ddm-col h3 { font-size: 20px; margin-bottom: 20px; }
                .inc-list li { padding: 12px 16px; font-size: 14px; border-radius: 10px; }
                .inc-list li::before { width: 20px; height: 20px; font-size: 10px; }

                .extra-item { padding: 14px 0; font-size: 14px; }

                .ddm-breakdown { padding: 14px 20px 16px; }
                .ddm-breakdown-cols { grid-template-columns: 1fr; gap: 12px; }
                .ddm-breakdown-col + .ddm-breakdown-col {
                    padding-left: 0;
                    border-left: none;
                    padding-top: 12px;
                    border-top: 1px solid var(--border);
                }

                /* --- 요금 카드 모바일 --- */
                .fee-card { padding: 28px 20px; border-radius: 20px; }
                .fee-card h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; }
                .fee-name { font-size: 14px; }
                .fee-note { font-size: 12px; }
                .fee-val { font-size: 16px; }
                .fee-row { padding: 14px 0; }

                /* --- 보관료 테이블 모바일 --- */
                .storage-table { border-radius: 16px; }
                .storage-table thead { display: none; }
                .storage-table tbody tr {
                    display: block;
                    margin-bottom: 16px;
                    padding: 16px 20px;
                    border-bottom: 1px solid var(--border);
                }
                .storage-table tbody tr:last-child { border-bottom: none; }
                .storage-table td {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 10px 0;
                    border-bottom: 1px solid var(--bg-surface-sub);
                }
                .storage-table td:last-child { border-bottom: none; }
                .storage-table td::before {
                    content: attr(data-label);
                    font-weight: 700;
                    color: var(--text-muted);
                    font-size: 13px;
                    flex-shrink: 0;
                    min-width: 80px;
                }
                .storage-icon-wrap { justify-content: flex-end; }
                .storage-icon-wrap svg { width: 32px; height: 32px; padding: 6px; }
            }

            @media (max-width: 480px) {
                .pricing-page .section-spacer { padding: 60px 0; }
                .pricing-hero { padding: 40px 16px 48px; }
                .pricing-hero h1 { font-size: 28px; }

                .plans-grid { grid-template-columns: 1fr; }
                .plan-card { padding: 24px 20px; }
                .plan-price { font-size: 32px; }
                .feature-list li { font-size: 14px; padding: 10px 0; }
                .btn-plan { padding: 14px; font-size: 15px; }

                .mem-card { padding: 24px 16px; }
                .mem-title h3 { font-size: 20px; }
                .mem-price { font-size: 18px; }
                .market-badge { padding: 6px 12px; font-size: 12px; }

                .ddm-banner { padding: 36px 16px; }
                .ddm-banner h2 { font-size: 22px; }
                .ddm-price-box { padding: 16px 24px; }
                .ddm-price-box span:nth-child(2) { font-size: 28px; }
                .ddm-price-box span:nth-child(2) small { font-size: 16px; }
                .ddm-col { padding: 24px 16px; }
                .ddm-col h3 { font-size: 18px; }
                .inc-list li { padding: 10px 14px; font-size: 13px; }
                .extra-item { font-size: 13px; }

                .ddm-breakdown { padding: 12px 16px 14px; }

                .fee-card { padding: 24px 16px; }
                .fee-card h3 { font-size: 16px; }

                .storage-table td { font-size: 13px; }
                .storage-icon-wrap span { font-size: 14px; }
            }
