/* ============================================================
   聚合付CMS - Default Theme Stylesheet
   Clean, modern, professional enterprise design
   ============================================================ */
@import url("/assets/css/font-awesome.min.css");

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Backgrounds */
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #1e293b;
    
    /* Text */
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Border */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    
    /* Spacing */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Typography */
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, Monaco, Consolas, monospace;
    
    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

/* ============================================================
   Container & Layout
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { max-width: 100%; padding: 0 30px; }

/* ============================================================
   Top Navigation
   ============================================================ */
.top-nav { 
    background: var(--bg); 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    height: 64px;
}
.top-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.nav-brand img { height: 36px; }
.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-menu a { 
    padding: 8px 16px; 
    color: var(--text-light); 
    font-size: 0.95rem; 
    font-weight: 500; 
    border-radius: var(--radius); 
    transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--border-light); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; }
.nav-user .username { font-size: 0.9rem; color: var(--text); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 5px; color: var(--text); }

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { 
        display: none; 
        position: absolute; 
        top: 64px; 
        left: 0; 
        right: 0; 
        background: var(--bg); 
        flex-direction: column; 
        padding: 10px; 
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 20px; width: 100%; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 24px; border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 500; cursor: pointer;
    border: 1px solid transparent; transition: all var(--transition);
    text-decoration: none; line-height: 1.4; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-light); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-gray); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-group { display: flex; gap: 8px; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--text); }
.form-group .required::after { content: ' *'; color: var(--danger); }
.form-control { 
    width: 100%; padding: 11px 16px; 
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.95rem; font-family: inherit; 
    transition: all var(--transition); outline: none;
    background: var(--bg); color: var(--text);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,0.15); }
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: auto; }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-search { display: flex; gap: 0; }
.form-search input { border-radius: var(--radius) 0 0 var(--radius); }
.form-search button { border-radius: 0 var(--radius) var(--radius) 0; padding: 11px 18px; background: var(--primary); color: #fff; border: none; cursor: pointer; }

/* ============================================================
   Cards
   ============================================================ */
.card { background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 24px; }
.card-header { margin-bottom: 16px; }
.card-header h3 { font-size: 1.05rem; }
.card-body { line-height: 1.7; }

/* ============================================================
   Badges
   ============================================================ */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 500; }
.badge-primary { background: #eff6ff; color: #1d4ed8; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-default { background: #f1f5f9; color: #475569; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; margin: 30px 0; }
.pagination ul { display: flex; gap: 5px; align-items: center; }
.pagination li { list-style: none; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius); font-size: 0.9rem; }
.pagination a { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.pagination .disabled span { color: var(--text-muted); border: 1px solid var(--border); background: var(--bg-gray); cursor: not-allowed; }
.pagination .info span { border: none; color: var(--text-light); font-size: 0.85rem; }
.pagination .ellipsis span { border: none; }

/* ============================================================
   Alerts & Notices
   ============================================================ */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb { padding: 15px 0; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; color: var(--text-muted); }

/* ============================================================
   Loading
   ============================================================ */
.loading-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 15px; }
.footer-col p, .footer-col a { color: #94a3b8; font-size: 0.9rem; line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }

/* ============================================================
   Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--text-light); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.fs-sm { font-size: 0.85rem; }
.fs-lg { font-size: 1.15rem; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 15px; }
.empty-state p { font-size: 0.95rem; }

/* ============================================================
   Section (for content pages)
   ============================================================ */
.page-section { padding: 40px 0; }
.page-title { font-size: 1.8rem; margin-bottom: 10px; color: var(--text); }
.page-subtitle { color: var(--text-light); margin-bottom: 30px; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th { background: var(--bg-gray); padding: 12px 15px; text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--text-light); border-bottom: 2px solid var(--border); }
table.data-table td { padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.data-table tr:hover td { background: var(--bg-gray); }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 0; }
.tab { padding: 12px 24px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--text-light); font-weight: 500; transition: all var(--transition); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg); border-radius: var(--radius-md); width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 15px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 20px; border-radius: var(--radius); color: #fff; font-size: 0.9rem; box-shadow: var(--shadow-lg); animation: slideIn 0.3s; max-width: 400px; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   Home Page - Hero Slider
   ============================================================ */
/* ============================================================
   Home Banner / Hero Slider (全图横幅轮播 - 横向滑动)
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #1e293b;
    width: 100%;
}
.hero-slider .swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slider .swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}
.hero-slider .swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
}
.hero-slider .swiper-slide a {
    display: block;
    width: 100%;
}
.hero-slider .swiper-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.hero-slider .slide-caption {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    pointer-events: none;
}
.hero-slider .slide-caption h2 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    margin: 0 0 6px;
}
.hero-slider .slide-caption .slide-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    margin: 0;
}
.hero-slider .swiper-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-slider .swiper-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-slider .swiper-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-slider .swiper-slide img {
        height: 200px;
    }
    .hero-slider .slide-caption h2 {
        font-size: 1.3rem;
    }
    .hero-slider .slide-caption {
        bottom: 20px;
    }
    .hero-slider .slide-caption .slide-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-slider .swiper-slide img {
        height: 160px;
    }
    .hero-slider .slide-caption h2 {
        font-size: 1rem;
    }
    .hero-slider .slide-caption .slide-subtitle {
        font-size: 0.75rem;
    }
}

/* ============================================================
   Home Page - Sections
   ============================================================ */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.section-header p { color: var(--text-light); font-size: 0.95rem; max-width: 500px; margin: 0 auto; }

.section-features, .section-levels, .section-products, .section-tutorial,
.section-articles, .section-ads { padding: 60px 0; }
.section-features { background: var(--bg); }
.section-levels { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.section-levels .section-header h2 { color: #fff; }
.section-levels .section-header p { color: rgba(255,255,255,.8); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; transition: all var(--transition); border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; color: #fff; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.levels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.level-card { background: rgba(255,255,255,.15); backdrop-filter: blur(10px); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; border: 1px solid rgba(255,255,255,.2); transition: all var(--transition); }
.level-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.25); }
.level-card.free { border: 2px solid rgba(255,255,255,.4); }
.level-card .level-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.4rem; }
.level-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.level-card .level-price { font-size: 1.8rem; font-weight: 700; margin: 12px 0; }
.level-card .level-price small { font-size: 0.85rem; font-weight: 400; opacity: 0.8; }
.level-card .level-benefits { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.level-card .level-benefits li { padding: 6px 0; font-size: 0.9rem; opacity: 0.9; }
.level-card .level-benefits li::before { content: '✓ '; font-weight: 700; }

.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ad-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.ad-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ad-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ad-card .ad-info { padding: 12px 16px; }
.ad-card .ad-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.ad-card .ad-info p { font-size: 0.85rem; color: var(--text-light); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); background: var(--bg); }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.article-thumb { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--bg-gray); }
.article-card .article-info { padding: 16px 20px; }
.article-card .article-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card .article-info h3 a { color: var(--text); }
.article-card .article-info h3 a:hover { color: var(--primary); }
.article-card .article-info p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 8px; }
.article-meta { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 16px; }
.article-meta span { display: flex; align-items: center; gap: 4px; }

.more-link { text-align: center; margin-top: 24px; }
.more-link a { color: var(--primary); font-weight: 500; }
.more-link a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .section-features, .section-levels, .section-products, .section-tutorial,
    .section-articles, .section-ads { padding: 40px 0; }
    .features-grid, .levels-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Tutorial / Featured Products Section
   ============================================================ */
.features-grid .feature-content { padding: 8px 0; }
.feature-content h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-content p { font-size: 0.88rem; color: var(--text-light); }

.section-products .products-grid,
.section-tutorial .features-grid { margin-top: 8px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--bg); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb { width: 100%; height: 160px; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 16px 20px; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-price { font-size: 1.4rem; font-weight: 700; }
.product-price .price.free { font-size: 1.1rem; }

/* Free price tag */
.price.free { color: var(--success); font-weight: 600; }
.unit { font-size: 0.8rem; color: var(--text-light); font-weight: 400; margin-left: 2px; }

.level-price .price { font-size: 1.8rem; font-weight: 700; }
.level-price .price.free { font-size: 1.4rem; }

.level-discount { font-size: 0.85rem; opacity: 0.85; }

/* Stats section (backend dashboard) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); text-align: center; transition: all var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.3rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-light); }

/* Backend table */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { background: var(--bg-gray); padding: 10px 12px; text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--text-light); border-bottom: 2px solid var(--border); white-space: nowrap; }
.table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table-wrap tr:hover td { background: var(--bg-gray); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; }
.tag-success { background: #dcfce7; color: #166534; }
.tag-warning { background: #fef9c3; color: #854d0e; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-info { background: #dbeafe; color: #1e40af; }

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

/* Admin header */
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--bg); }
.admin-header h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }

/* ============================================================
   Print
   ============================================================ */
@media print {
    .top-nav, .site-footer, .no-print { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { text-decoration: underline; }
}

/* ============================================================
   Custom scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
