/* ===== purchasing_agent.css - V2 다크 글래스모피즘 ===== */
/* 기존 PHP HTML 클래스명 유지 */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --bg-1: #1a1a2e;
    --bg-2: #16213e;
    --bg-3: #0f3460;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.4);
}
[data-theme="light"] {
    --bg-1: #f8fafc;
    --bg-2: #f1f5f9;
    --bg-3: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    min-height: 100vh;
    color: var(--text-secondary);
    transition: all 0.3s;
}

/* 파티클 */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 6px; height: 6px; background: rgba(102, 126, 234, 0.4); border-radius: 50%; animation: float 15s infinite; }
@keyframes float { 0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; } }

/* 테마 토글 */
.theme-toggle {
    position: fixed; top: 20px; right: 20px; z-index: 1000;
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border); border-radius: 50px;
    padding: 10px 16px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary); font-weight: 600; font-size: 13px;
    transition: all 0.3s;
}
.theme-toggle:hover { transform: scale(1.05); }

/* 언어 전환 */
.lang-switcher {
    position: fixed; top: 20px; left: 20px; z-index: 1000; text-decoration: none;
}
.lang-btn {
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border); border-radius: 50px;
    padding: 10px 16px; display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary); font-weight: 600; font-size: 13px;
}

/* 헤더 */
.header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    position: relative; z-index: 10;
}
.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h1 { color: white; font-size: 20px; font-weight: 700; }
.header a {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.header a:hover { background: rgba(255,255,255,0.25); }

/* 컨테이너 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    position: relative;
    z-index: 1;
}

/* 서비스 소개 카드 */
.info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
}
.info-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.info-card p { font-size: 14px; opacity: 0.9; line-height: 1.6; margin-bottom: 12px; }
.info-card ul { margin-left: 20px; opacity: 0.9; }
.info-card li { margin-bottom: 8px; font-size: 14px; }

/* 폼 카드 */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}
.form-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* 섹션 구분선 */
.section-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.section-divider span {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* 폼 그룹 */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group label span { color: var(--error); margin-left: 3px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.form-group .hint a { color: var(--primary); }

/* URL 입력 영역 */
.url-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.url-input-area input { flex: 1; }
.fetch-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.fetch-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); }
.fetch-btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* 로딩 */
.loading {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-top: 10px;
    color: var(--text-secondary);
}
.loading.show { display: flex; }
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 상품 카드 */
.product-card {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}
.product-card.loaded { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.product-card .product-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}
.product-card .product-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    flex-shrink: 0;
}
.product-card .product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.product-card .product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price { font-size: 24px; font-weight: 800; color: #ef4444; }
.product-card .product-price small { font-size: 14px; color: var(--text-muted); font-weight: normal; margin-left: 8px; }
.product-card .product-location { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* 이미지 갤러리 */
.product-gallery {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 8px 0;
}
.product-gallery::-webkit-scrollbar { height: 6px; }
.product-gallery::-webkit-scrollbar-track { background: var(--glass-bg); border-radius: 3px; }
.product-gallery::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.product-gallery img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.product-gallery img:hover { border-color: var(--primary); transform: scale(1.05); }
.product-gallery img.active { border-color: var(--primary); }

/* SKU 섹션 */
.sku-section { margin-top: 0; }
.sku-section h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sku-section h4 .option-count { color: var(--primary); }
.sku-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}
.sku-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.2s;
    background: var(--card-bg);
    min-width: 260px;
    flex: 1;
    max-width: calc(50% - 5px);
    cursor: pointer;
}
.sku-option:hover { border-color: var(--primary); background: rgba(102, 126, 234, 0.1); }
.sku-option.has-quantity { border-color: var(--primary); background: rgba(102, 126, 234, 0.15); }
.sku-option.selected { border-color: var(--primary); background: rgba(102, 126, 234, 0.2); }
.sku-option img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; cursor: pointer; flex-shrink: 0; }
.sku-option .sku-info { flex: 1; min-width: 0; }
.sku-option .sku-name { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sku-option .sku-price { display: block; font-weight: 700; color: #ef4444; font-size: 14px; }
.sku-option .sku-stock { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.sku-qty-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.sku-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: var(--glass-bg);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s;
}
.sku-qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.sku-qty-input {
    width: 36px;
    height: 26px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    background: var(--glass-bg);
}

/* 요청사항 영역 */
.request-note-section {
    margin-top: 15px;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.request-note-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.request-note-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    background: var(--card-bg);
    color: var(--text-primary);
}

/* SKU 액션 버튼 */
.sku-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.sku-action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}
.sku-action-btn.quote-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}
.sku-action-btn.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.sku-action-btn.cart-btn {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: white;
}
.sku-action-btn.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* 수량 및 담기 */
.quantity-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
    padding: 16px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}
.quantity-row label { font-weight: 600; color: var(--text-secondary); font-size: 13px; }
.quantity-input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    background: var(--card-bg);
    color: var(--text-primary);
}
#totalPrice { font-size: 16px; font-weight: 700; color: #ef4444; }
.add-cart-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s;
}
.add-cart-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }
.add-cart-btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* 장바구니 */
.cart-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}
.cart-section.has-items { display: block; }
.cart-section h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--success);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.cart-section h3 .cart-count {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
}
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 8px;
    align-items: center;
    border: 1px solid var(--glass-border);
}
.cart-item img { width: 55px; height: 55px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 600; color: var(--text-primary); font-size: 13px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-option { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.cart-item-price { font-size: 14px; color: #ef4444; font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.cart-item-qty input {
    width: 45px;
    padding: 4px;
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    text-align: center;
    font-size: 13px;
    background: var(--glass-bg);
    color: var(--text-primary);
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: all 0.2s;
}
.cart-item-remove:hover { color: var(--error); }
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--glass-border);
}
.cart-total-label { font-size: 14px; color: var(--text-secondary); }
.cart-total-price { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.cart-total-price small { font-size: 13px; color: var(--text-muted); font-weight: normal; }

/* 수동 입력 */
.manual-input { display: none; margin-top: 16px; }
.manual-input.show { display: block; }
.toggle-manual {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s;
}
.toggle-manual:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 요금 안내 */
.price-info {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1)) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-top: 20px !important;
}
.price-info h4 { 
    color: #fbbf24 !important; 
    margin-bottom: 12px !important; 
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
}
.price-info p { 
    color: var(--text-secondary) !important; 
    font-size: 13px !important; 
    line-height: 1.8 !important; 
}
[data-theme="light"] .price-info { 
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important; 
    border-color: #fbbf24 !important;
}
[data-theme="light"] .price-info h4 { color: #92400e !important; }
[data-theme="light"] .price-info p { color: #78350f !important; }

/* 서비스 유의사항 */
.terms-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05)) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-top: 20px !important;
}
.terms-section h4 {
    color: #f87171 !important;
    margin-bottom: 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.terms-section h4 .icon {
    width: 36px !important; height: 36px !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border-radius: 10px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 18px !important;
    color: white !important;
}
[data-theme="light"] .terms-section {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    border-color: #f87171 !important;
}
[data-theme="light"] .terms-section h4 { color: #b91c1c !important; }

.terms-list {
    background: var(--card-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}
.terms-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.terms-list li {
    padding: 10px 0 !important;
    border-bottom: 1px dashed var(--glass-border) !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
.terms-list li:last-child { border-bottom: none !important; }
.terms-list li .bullet {
    width: 20px !important;
    height: 20px !important;
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}
[data-theme="light"] .terms-list li .bullet {
    background: #fecaca !important;
    color: #b91c1c !important;
}

.terms-agree {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: var(--card-bg) !important;
    border-radius: 12px !important;
    border: 2px solid var(--glass-border) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}
.terms-agree:hover {
    border-color: var(--primary) !important;
    background: rgba(102, 126, 234, 0.1) !important;
}
.terms-agree.checked {
    border-color: var(--success) !important;
    background: rgba(16, 185, 129, 0.15) !important;
}
.terms-agree input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
.terms-agree .checkbox-custom {
    width: 22px !important;
    height: 22px !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: transparent !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
}
.terms-agree.checked .checkbox-custom {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: white !important;
}
.terms-agree .agree-text {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}
.terms-agree.checked .agree-text {
    color: var(--success) !important;
}

/* 주소 입력 영역 */
.address-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.address-row .postal-input { width: 150px; flex-shrink: 0; }
.postal-search-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.postal-search-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4); 
}

/* 개인통관고유부호 검증 */
.customs-input-wrapper {
    display: flex;
    gap: 10px;
}
.customs-input-wrapper input { flex: 1; }
.verify-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.verify-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.verify-btn:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.verify-btn.highlight-pulse { animation: highlightPulse 0.5s ease-in-out 3; }
@keyframes highlightPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}
.verify-btn .verify-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.customs-verify-result {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}
.customs-verify-result.show { display: flex; align-items: center; gap: 8px; }
.customs-verify-result.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}
.customs-verify-result.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

/* 약관 동의 */
.terms-section {
    margin-top: 20px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}
.terms-section h4 { font-size: 14px; font-weight: 700; color: var(--warning); margin-bottom: 12px; }
.terms-list { list-style: none; }
.terms-list li {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.5;
}
.terms-list li::before {
    content: counter(item);
    counter-increment: item;
    background: var(--glass-bg);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.terms-section { counter-reset: item; }
.agree-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 8px;
}
.agree-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.agree-checkbox-wrapper label {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 알림 박스 */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}
.alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}
.alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

/* 로딩 오버레이 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.loading-overlay.show { display: flex; }
.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
}
.loading-overlay p { color: white; font-size: 14px; }
.loading-text { color: white; font-size: 14px; }

/* 성공 오버레이 */
.success-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.success-overlay.show { display: flex; }
.success-overlay .success-content {
    background: var(--bg-2);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    margin: 20px;
}
.success-overlay .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}
.success-overlay .success-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.success-overlay .success-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.success-overlay .success-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.success-overlay .success-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.success-overlay .success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}
.success-overlay .success-btn-secondary {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}
.success-overlay .success-btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

/* 콘페티 */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 로그인 모달 */
.login-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.login-modal.show { display: flex; }
.login-modal-content {
    background: var(--bg-2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
}
.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.login-modal-header h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.login-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}
.login-modal p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.login-modal .login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 10px;
}
.login-modal .cancel-btn {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.login-modal .register-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.login-modal .register-link a { color: var(--primary); text-decoration: none; }

/* 이미지 오버레이 */
.image-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.image-overlay.show { display: flex; }
.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* 반응형 */
@media (max-width: 768px) {
    .theme-toggle .theme-label { display: none; }
    .lang-btn span:not(.flag) { display: none; }
    .header h1 { font-size: 18px; }
    .header a { padding: 6px 12px; font-size: 12px; }
    .container { padding: 16px 12px 30px; }
    .form-card, .info-card { padding: 16px; border-radius: 16px; }
    .product-card .product-header { flex-direction: column; align-items: center; text-align: center; }
    .product-card .product-image { width: 140px; height: 140px; }
    .quantity-row { flex-wrap: wrap; }
    .add-cart-btn { width: 100%; margin-top: 10px; margin-left: 0; }
    .url-input-area { flex-direction: column; }
    .cart-item { flex-wrap: wrap; }
    .address-row { flex-direction: column; }
    .address-row .postal-input { width: 100%; }
    .customs-input-wrapper { flex-direction: column; }
    .verify-btn { width: 100%; justify-content: center; }
    .sku-option { max-width: 100%; min-width: 100%; }
    .sku-action-buttons { flex-direction: column; }
}
