/* Personal Seller - Main Stylesheet */
/* Optimized for performance */

/* =====================
   CSS Variables
   ===================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --gold: #f59e0b;
    --gold-dark: #d97706;
    --silver: #6b7280;
    --silver-dark: #4b5563;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* =====================
   Performance Optimizations
   ===================== */

/* GPU acceleration for animations */
.sidebar, .modal, .mobile-menu, .navbar {
    will-change: transform;
    transform: translateZ(0);
}

/* Content visibility for better rendering */
.card, .stat-card, .table {
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded, img:not([data-src]) {
    opacity: 1;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* =====================
   Container
   ===================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =====================
   Navbar
   ===================== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.gold-only {
    color: var(--gold);
}

.nav-links a.disabled {
    color: var(--text-muted);
    pointer-events: none;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Menu - Enhanced (화면 65% 가리도록 수정) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 35%; /* 화면 왼쪽 35%부터 시작 (65% 너비) */
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    z-index: 999;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border-left: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
    animation: slideInMenu 0.3s ease forwards;
}

/* 모바일 메뉴 오버레이 (배경 어둡게) */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

@keyframes slideInMenu {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-menu a i {
    font-size: 1.25rem;
    width: 24px;
    color: var(--primary);
}

.mobile-menu-divider {
    height: 8px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Mobile Menu - Section Styles */
.mobile-menu-section {
    margin-bottom: 0;
}

.mobile-menu-section-title {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.mobile-menu a.active i {
    color: var(--primary);
}

/* =====================
   Buttons
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-silver {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-silver:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =====================
   Cards
   ===================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: var(--primary);
}

/* =====================
   Sidebar - Enhanced
   ===================== */
.page-with-sidebar {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 280px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* PC/모바일 모두 사이드바 헤더 화살표 완전 제거 */
.sidebar-header::after {
    display: none !important;
    content: none !important;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.sidebar-avatar.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sidebar-avatar.silver { background: linear-gradient(135deg, #6b7280, #4b5563); }
.sidebar-avatar.admin { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.sidebar-avatar.ads-admin { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.sidebar-avatar.insurance-admin { background: linear-gradient(135deg, #10b981, #059669); }
.sidebar-avatar.normal { background: linear-gradient(135deg, #10b981, #059669); }

.sidebar-user-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.sidebar-user-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.sidebar-user-badge.gold { background: #fef3c7; color: #92400e; }
.sidebar-user-badge.silver { background: #e5e7eb; color: #374151; }
.sidebar-user-badge.admin { background: #fee2e2; color: #991b1b; }
.sidebar-user-badge.ads-admin { background: #ede9fe; color: #5b21b6; }
.sidebar-user-badge.insurance-admin { background: #d1fae5; color: #065f46; }
.sidebar-user-badge.normal { background: #d1fae5; color: #065f46; }

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-subsection {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-subsection-title {
    padding: 0.4rem 1.5rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-subsection-title i {
    font-size: 0.8rem;
}

.sidebar-subsection .sidebar-item {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.sidebar-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.sidebar-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-item-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.sidebar-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-item.locked::after {
    content: '\eb91';
    font-family: 'remixicon';
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .btn {
    width: 100%;
}

.page-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-light);
    overflow-x: hidden;
}

/* =====================
   Split Landing Page (3-Panel)
   ===================== */
.landing-split {
    display: flex;
    min-height: calc(100vh - 64px);
    width: 100%;
}

.landing-panel {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 500px;
    transition: flex 0.4s ease;
}

.landing-panel:hover {
    flex: 1.2;
}

.landing-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.landing-panel:hover .landing-panel-bg {
    transform: scale(1.05);
}

.landing-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.landing-panel.luxury::before {
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.85) 70%, rgba(109, 40, 217, 0.95) 100%);
}

.landing-panel.affiliate::before {
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.85) 70%, rgba(5, 150, 105, 0.95) 100%);
}

.landing-panel.ads::before {
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.85) 70%, rgba(217, 119, 6, 0.95) 100%);
}

.landing-panel:hover::before {
    opacity: 0.9;
}

.landing-panel-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    color: white;
    text-align: center;
}

.landing-panel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.landing-panel:hover .landing-panel-icon {
    transform: scale(1.1);
}

.landing-panel-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.landing-panel-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.landing-panel-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.landing-panel:hover .landing-panel-features {
    opacity: 1;
    transform: translateY(0);
}

.landing-panel-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.landing-panel-feature i {
    color: rgba(255,255,255,0.8);
}

.landing-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.landing-panel-btn:hover {
    background: white;
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.landing-panel-badge {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.landing-panel.luxury .landing-panel-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.landing-panel.affiliate .landing-panel-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.landing-panel.ads .landing-panel-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Mobile responsive for landing split */
@media (max-width: 992px) {
    .landing-split {
        flex-direction: column;
        min-height: auto;
    }
    
    .landing-panel {
        min-height: 350px;
        flex: none;
    }
    
    .landing-panel:hover {
        flex: none;
    }
    
    .landing-panel-content {
        padding: 2rem 1.5rem;
    }
    
    .landing-panel-title {
        font-size: 1.5rem;
    }
    
    .landing-panel-features {
        opacity: 1;
        transform: translateY(0);
    }
    
    .landing-panel-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .landing-panel {
        min-height: 300px;
    }
    
    .landing-panel-content {
        padding: 1.5rem 1rem;
    }
    
    .landing-panel-title {
        font-size: 1.25rem;
    }
    
    .landing-panel-subtitle {
        font-size: 0.875rem;
    }
    
    .landing-panel-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =====================
   Hero Section - Enhanced
   ===================== */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 50%, #ec4899 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* =====================
   Mall Cards (Landing) - Enhanced
   ===================== */
.mall-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.mall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mall-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.mall-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mall-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.mall-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.8) 100%);
}

.mall-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mall-card-title {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 1;
    color: white;
}

.mall-card-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mall-card-title span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.mall-card-content {
    padding: 1.5rem;
}

.mall-card-features {
    margin-bottom: 1.5rem;
}

.mall-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.mall-card-features li:last-child {
    border-bottom: none;
}

.mall-card-features li i {
    color: var(--success);
}

.mall-card .btn {
    width: 100%;
}

/* Mall type colors */
.mall-luxury .mall-card-badge { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.mall-luxury h3 i { color: #a78bfa; }

.mall-affiliate .mall-card-badge { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.mall-affiliate h3 i { color: #34d399; }

.mall-ads .mall-card-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.mall-ads h3 i { color: #fbbf24; }

/* =====================
   Why Choose Us
   ===================== */
.why-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.why-card:hover {
    background: var(--bg-light);
}

.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.why-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* =====================
   Testimonials
   ===================== */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.testimonial-info h5 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =====================
   CTA Section
   ===================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================
   Sub Page Hero - Enhanced
   ===================== */
.subpage-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 6rem 0;
    color: white;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subpage-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* =====================
   Features Section
   ===================== */
.features {
    padding: 4rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* =====================
   Process Section
   ===================== */
.process {
    padding: 4rem 0;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* =====================
   Product Grid
   ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.product-info {
    padding: 1rem;
}

.product-brand {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-weight: 600;
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.125rem;
}

.product-original-price {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-commission {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-actions {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    flex: 1;
}

/* =====================
   Affiliate Partner Cards - Enhanced
   ===================== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.partner-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.partner-logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.partner-info {
    flex: 1;
}

.partner-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.partner-category {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.partner-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

.partner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.partner-commission {
    color: var(--success);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-commission i {
    font-size: 1rem;
}

/* =====================
   Dashboard / Stats
   ===================== */
.dashboard {
    padding: 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-value.gold { color: var(--gold); }
.stat-value.silver { color: var(--silver); }
.stat-value.success { color: var(--success); }
.stat-value.primary { color: var(--primary); }
.stat-value.danger { color: var(--danger); }

/* =====================
   Tables
   ===================== */
.table-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-light);
    white-space: nowrap;
}

.table td {
    font-size: 0.875rem;
}

.table tr:hover {
    background: var(--bg-light);
}

.table-responsive {
    overflow-x: auto;
}

/* =====================
   Status Badges
   ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-available { background: #d1fae5; color: #065f46; }
.badge-completed { background: #dbeafe; color: #1e40af; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.badge-silver { background: linear-gradient(135deg, #e5e7eb, #d1d5db); color: #374151; }
.badge-normal { background: #f3f4f6; color: #6b7280; }

/* =====================
   Modal - Enhanced
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-fast);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-fast);
}

.modal-overlay.active .modal {
    opacity: 1;
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* =====================
   Forms - Enhanced
   ===================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.375rem;
}

.input-group {
    display: flex;
}

.input-group .form-input {
    border-radius: var(--radius) 0 0 var(--radius);
}

.input-group .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* =====================
   Withdrawal Form - Special
   ===================== */
.withdrawal-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.withdrawal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #86efac;
}

.withdrawal-row:last-child {
    border-bottom: none;
}

.withdrawal-row.total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--success);
}

.withdrawal-row.deduction {
    color: var(--danger);
}

.tax-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tax-notice h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #92400e;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.tax-notice p {
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* =====================
   Alert / Toast
   ===================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =====================
   FAQ Section
   ===================== */
.faq {
    padding: 4rem 0;
    background: var(--bg-white);
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #e5e7eb;
}

.faq-answer {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* =====================
   Footer - Enhanced
   ===================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

/* =====================
   Auth Pages - Enhanced
   ===================== */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* =====================
   Utilities
   ===================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-silver { color: var(--silver); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none !important; }

.w-full { width: 100%; }

/* =====================
   Responsive - Enhanced
   ===================== */
@media (max-width: 1200px) {
    .mall-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
    }
    
    .nav-auth {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius);
        background: var(--bg-light);
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Grid layouts */
    .mall-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Subpage hero */
    .subpage-hero {
        padding: 3rem 0;
    }
    
    .subpage-hero h1 {
        font-size: 1.75rem;
    }
    
    .subpage-hero p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Sidebar layout - 모바일에서도 PC 좌측메뉴와 완전히 동일하게 유지 */
    .page-with-sidebar {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: none;
        position: relative;
        background: var(--bg-white);
    }
    
    .sidebar-header {
        padding: 0.875rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-white);
    }
    
    .sidebar-header::after {
        display: none;
    }
    
    .sidebar.expanded .sidebar-header::after {
        display: none;
    }
    
    /* 모바일 사이드바 메뉴 - 기본적으로 완전히 숨김 */
    .sidebar-menu {
        display: none !important;
        visibility: hidden !important;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        height: 0;
        overflow: hidden;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        transition: max-height 0.3s ease-out;
    }
    
    /* 펼침 상태 */
    .sidebar.expanded .sidebar-menu {
        display: flex !important;
        visibility: visible !important;
        max-height: 2000px;
        height: auto;
        overflow-y: auto;
    }
    
    .sidebar-section {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    
    .sidebar-section-title {
        display: block;
        padding: 0.625rem 1rem;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        font-weight: 600;
        background: var(--bg-light);
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-item {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.625rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-light);
        font-size: 0.875rem;
    }
    
    .sidebar-item:last-child {
        border-bottom: none;
    }
    
    .sidebar-item.active {
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
        color: var(--primary);
        border-left: 3px solid var(--primary);
    }
    
    .sidebar-item span {
        display: inline;
        font-size: 0.875rem;
    }
    
    .sidebar-item i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }
    
    /* 사이드바 뱃지 */
    .sidebar-item-badge {
        margin-left: auto;
        font-size: 0.625rem;
        padding: 2px 6px;
    }
    
    .sidebar-footer {
        display: none;
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .sidebar.expanded .sidebar-footer {
        display: block;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    /* CTA buttons */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Modal */
    .modal {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Tables */
    .table th, .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    /* Process steps */
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Stat cards */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Dashboard */
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* 모바일에서 프로필 카드 숨김 (사이드바 헤더와 중복 방지) */
    .admin-header-card,
    .profile-card {
        display: none !important;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Partner cards */
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-card {
        padding: 1rem;
    }
    
    /* Product grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-actions {
        padding: 0 0.75rem 0.75rem;
        flex-direction: column;
    }
    
    /* Membership cards */
    .features > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem !important;
    }
    
    /* Auth page */
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.25rem;
    }
    
    /* Withdrawal form */
    .withdrawal-summary {
        padding: 1rem;
    }
    
    .withdrawal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Toast */
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
    }
    
    .toast {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation */
    .nav-container {
        height: 56px;
    }
    
    .logo {
        font-size: 1.125rem;
        gap: 0.375rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
        border-radius: 6px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo i {
        font-size: 1.125rem;
    }
    
    /* Hero */
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-stat-value {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card h3 {
        font-size: 0.7rem;
    }
    
    /* Product grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.5rem;
    }
    
    .product-brand {
        font-size: 0.65rem;
    }
    
    .product-name {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-commission {
        font-size: 0.7rem;
    }
    
    /* Sidebar on mobile - PC와 동일한 세로 메뉴 유지 */
    .sidebar-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .sidebar-item i {
        font-size: 1rem;
    }
    
    .sidebar-section-title {
        padding: 0.625rem 1.25rem 0.375rem;
        font-size: 0.65rem;
    }
    
    /* Tables */
    .table th, .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Modal */
    .modal {
        border-radius: var(--radius);
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    /* Section spacing */
    .mall-section, .features, .process, .testimonials-section, .why-section {
        padding: 3rem 0;
    }
    
    /* Why cards */
    .why-card {
        padding: 1.5rem 1rem;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content {
        font-size: 0.875rem;
    }
    
    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Store pages */
    .store-header {
        padding: 2rem 0;
    }
    
    .store-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .store-name {
        font-size: 1.25rem;
    }
    
    .store-stats {
        gap: 1.5rem;
    }
    
    .store-stat-value {
        font-size: 1.25rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.98);
    }
    
    .card:hover {
        transform: none;
    }
    
    .mall-card:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .partner-card:hover {
        transform: none;
    }
    
    .landing-panel:hover {
        flex: 1;
    }
    
    .landing-panel:hover .landing-panel-bg {
        transform: none;
    }
    
    .landing-panel-features {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Store Pages
   ===================== */
.store-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.store-header.luxury {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.store-header.ads {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.store-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.store-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.store-owner {
    opacity: 0.9;
    font-size: 0.95rem;
}

.store-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.store-stat {
    text-align: center;
}

.store-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.store-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =====================
   Tabs
   ===================== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition);
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* =====================
   Empty State
   ===================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* =====================
   Loading
   ===================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.loading i {
    font-size: 2rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* =====================
   Pagination
   ===================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover {
    background: var(--bg-light);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================
   PC Full Width Layout Enhancement
   ===================== */
/* 메인 콘텐츠 영역 최대 너비 확장 */
.main-content,
.page-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-light);
    overflow-x: hidden;
    max-width: 100%;
}

/* 대시보드 컨테이너 전체 너비 */
.dashboard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 카드 그리드 개선 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* 파트너허브/제휴 스토어 전체 너비 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* 상품 그리드 전체 너비 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* 스토어 통계 그리드 */
.store-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* 카드 반응형 */
.card {
    width: 100%;
}

/* 테이블 전체 너비 */
.table-container,
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 600px;
}

/* =====================
   Large Screen Optimization (1440px+)
   ===================== */
@media (min-width: 1440px) {
    .dashboard {
        max-width: 1600px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .partner-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* =====================
   Ultra Wide Screen (1920px+)
   ===================== */
@media (min-width: 1920px) {
    .dashboard {
        max-width: 1800px;
    }
    
    .page-content,
    .main-content {
        padding: 2.5rem;
    }
}

/* =====================
   Mobile Card Style for Tables
   ===================== */
@media (max-width: 768px) {
    /* 테이블을 카드 형식으로 변환 */
    .table-responsive.mobile-cards .table,
    .mobile-card-table {
        display: block;
    }
    
    .table-responsive.mobile-cards .table thead,
    .mobile-card-table thead {
        display: none;
    }
    
    .table-responsive.mobile-cards .table tbody,
    .mobile-card-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .table-responsive.mobile-cards .table tr,
    .mobile-card-table tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    .table-responsive.mobile-cards .table td,
    .mobile-card-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.9rem;
    }
    
    .table-responsive.mobile-cards .table td:last-child,
    .mobile-card-table td:last-child {
        border-bottom: none;
    }
    
    .table-responsive.mobile-cards .table td::before,
    .mobile-card-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        font-size: 0.8rem;
        flex-shrink: 0;
        margin-right: 1rem;
    }
    
    /* 출금 내역 테이블 모바일 스타일 */
    #withdrawalTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #withdrawalTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    #withdrawalTable td:last-child {
        border-bottom: none;
    }
    
    /* 포인트 내역 모바일 카드 */
    #pointsTable tr,
    #withdrawalsTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #pointsTable td,
    #withdrawalsTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 관리자 출금관리 모바일 카드 */
    #withdrawalsTable tr {
        position: relative;
    }
    
    /* 주문내역 모바일 카드 */
    .orders-table tbody tr,
    #ordersTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    .orders-table tbody td,
    #ordersTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 시험접수/보장분석 테이블 모바일 */
    #examTableBody tr,
    #coverageTableBody tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #examTableBody td,
    #coverageTableBody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 회원목록 테이블 모바일 */
    #usersTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #usersTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 결제관리 테이블 모바일 */
    #paymentsTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #paymentsTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 테이블 헤더 모바일에서 숨김 */
    .table thead {
        display: none;
    }
    
    .table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* 출금관리 테이블 모바일 */
    #withdrawalsTable tr,
    #withdrawalTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #withdrawalsTable td,
    #withdrawalTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    #withdrawalsTable td:last-child,
    #withdrawalTable td:last-child {
        border-bottom: none;
    }
    
    /* 포인트 테이블 모바일 */
    #pointsTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #pointsTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    #pointsTable td:last-child {
        border-bottom: none;
    }
    
    /* 교육생/학생 테이블 모바일 */
    #studentsTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #studentsTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    #studentsTable td:last-child {
        border-bottom: none;
    }
    
    /* 구매자 테이블 모바일 */
    #buyersList tr,
    #buyersTableBody tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #buyersList td,
    #buyersTableBody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 상담 테이블 모바일 */
    #consultationsTable tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #consultationsTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 파트너허브 등록 테이블 모바일 */
    #registrationsTable tr,
    #registrationList tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #registrationsTable td,
    #registrationList td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 상품 테이블 모바일 */
    #productsTableBody tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #productsTableBody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 주문 테이블 모바일 */
    #ordersTableBody tr {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--border-color);
    }
    
    #ordersTableBody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    /* 모바일 카드 내 데이터 라벨 */
    .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        font-size: 0.85rem;
    }
    
    /* 모바일 카드 액션 버튼 영역 */
    .table td:has(.btn) {
        justify-content: flex-end;
        gap: 0.5rem;
        flex-wrap: wrap;
        padding-top: 0.75rem !important;
    }
    
    /* 모바일 카드 배지 스타일 개선 */
    .table .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* 빈 테이블 메시지 모바일 */
    .table td[colspan] {
        display: block;
        text-align: center;
        padding: 2rem 1rem !important;
        border-radius: 12px;
        background: white;
    }
    
    /* =====================
       종합 모바일 반응형 스타일
       ===================== */
    
    /* 대시보드 헤더 */
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .dashboard-header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 통계 카드 그리드 */
    .stats-grid,
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 0.7rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.1rem;
    }
    
    /* 카드 컴포넌트 */
    .card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 폼 요소 */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .form-input,
    .form-select {
        padding: 0.75rem;
        font-size: 16px; /* iOS에서 자동 확대 방지 */
    }
    
    /* 버튼 */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.25rem;
        width: 100%;
    }
    
    /* 필터/검색 영역 */
    .filter-row,
    .search-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-row .form-input,
    .filter-row .form-select,
    .search-row .form-input {
        width: 100%;
    }
    
    /* 탭 네비게이션 */
    .tab-nav,
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
    }
    
    .tab-nav::-webkit-scrollbar,
    .tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    /* 모달 */
    .modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 페이지네이션 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .pagination .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* 상담 카드 */
    .consultation-card {
        padding: 1rem;
    }
    
    .consultation-card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .consultation-card-body {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* 스토어 관리 그리드 */
    .store-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 제휴 링크 카드 */
    .link-card {
        padding: 1rem;
    }
    
    .link-card .link-url {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    /* 수익 요약 카드 */
    .revenue-card {
        padding: 1rem;
    }
    
    .revenue-card h4 {
        font-size: 0.9rem;
    }
    
    /* 마이페이지 수익 그리드 */
    .revenue-grid {
        grid-template-columns: 1fr !important;
    }
    
    .revenue-item {
        padding: 1rem;
    }
    
    /* 출금 요약 */
    .withdrawal-summary {
        padding: 1rem;
    }
    
    .withdrawal-row {
        font-size: 0.9rem;
    }
    
    /* 파트너허브 */
    .partnerhub-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .partnerhub-stat-card {
        padding: 1rem;
    }
    
    .partnerhub-stat-card h4 {
        font-size: 0.8rem;
    }
    
    .partnerhub-stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    /* 주문 카드 */
    .order-card {
        padding: 1rem;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .order-card-body {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* 판매 아이템 */
    .sale-item {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .sale-item .sale-info {
        width: 100%;
    }
    
    .sale-item .sale-amount {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 교육생 카드 */
    .student-card {
        padding: 1rem;
    }
    
    /* 구매자 정보 */
    .buyer-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* 알림/공지 */
    .notice-box,
    .alert-box {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    /* 텍스트 크기 조정 */
    .text-lg {
        font-size: 1rem !important;
    }
    
    .text-xl {
        font-size: 1.1rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    /* 간격 조정 */
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .gap-4 {
        gap: 1rem !important;
    }
    
    /* 플렉스 레이아웃 조정 */
    .d-flex.justify-between {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* 아이콘 크기 조정 */
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* 정책 그리드 모바일 */
    .policy-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .policy-item {
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
    }
    
    .policy-item > div:first-child {
        margin: 0 auto;
    }
    
    .policy-item h4 {
        font-size: 0.8rem !important;
    }
    
    .policy-item p {
        font-size: 0.75rem !important;
    }
    
    /* 대시보드 그리드 모바일 */
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .dashboard-grid .stat-card {
        padding: 0.875rem !important;
        text-align: center;
    }
    
    .dashboard-grid .stat-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.375rem;
    }
    
    .dashboard-grid .stat-card .stat-value {
        font-size: 1rem !important;
    }
}

/* =====================
   설정 버튼 스타일 (네비게이션 바)
   ===================== */
.settings-btn-nav {
    position: relative;
    z-index: 1001;
    cursor: pointer;
    pointer-events: auto !important;
}

.nav-auth .btn {
    position: relative;
    z-index: 1001;
}

/* =====================
   Print Styles
   ===================== */
@media print {
    .navbar, .sidebar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .page-content {
        padding: 0;
    }
}
