@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

/* LY-Platform Design System v3 */
:root {
  --bg: #F6F8FB;
  --bg-2: #FFFFFF;
  --bg-3: #EEF2F8;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #94A3B8;
  --border: #E2E8F0;
  --primary: #1E3A5F;
  --primary-2: #2563EB;
  --accent: #10B981;
  --highlight: #F59E0B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --shadow-xl: 0 24px 48px rgba(15,23,42,.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --font-sans: "Noto Sans SC","Inter",system-ui,-apple-system,sans-serif;
  --font-en: "Inter",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",monospace;
  --text-xs: 12px; --text-sm: 14px; --text-base: 16px; --text-lg: 18px;
  --text-xl: 20px; --text-2xl: 24px; --text-3xl: 30px; --text-4xl: 36px;
  --text-5xl: 48px; --text-6xl: 60px;
  --container: 1200px;
  --header-h: 68px;
  --grad-hero: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #10B981 100%);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
[data-theme="dark"] {
  --bg: #0F1419;
  --bg-2: #1A202C;
  --bg-3: #242B38;
  --surface: #1E2530;
  --text: #E5E9F0;
  --text-2: #9AA4B2;
  --text-3: #6B7280;
  --border: #2D3748;
  --primary: #60A5FA;
  --primary-2: #93C5FD;
  --accent: #34D399;
  --highlight: #FBBF24;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1419; --bg-2: #1A202C; --bg-3: #242B38; --surface: #1E2530;
    --text: #E5E9F0; --text-2: #9AA4B2; --text-3: #6B7280; --border: #2D3748;
    --primary: #60A5FA; --primary-2: #93C5FD; --accent: #34D399; --highlight: #FBBF24;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .container { padding: 0 var(--space-4); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
[data-theme="dark"] .site-header { background: rgba(15,20,25,.85); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.logo { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--text-xl); color: var(--primary); }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.nav { display: flex; gap: var(--space-1); margin-left: var(--space-4); }
.nav a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text-2); transition: .2s; }
.nav a:hover, .nav a.active { color: var(--primary); background: var(--bg-3); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 10px 20px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 500;
  transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--primary); background: var(--bg-3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: var(--text-xs); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); }
.theme-toggle { display: flex; background: var(--bg-3); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.theme-toggle button { padding: 4px 8px; border-radius: var(--radius-pill); font-size: 14px; color: var(--text-3); transition: .2s; }
.theme-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mobile-menu-btn { display: none; }

/* Hero */
.hero { padding: var(--space-20) 0 var(--space-16); background: radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.18), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(16,185,129,.15), transparent 60%), var(--bg); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: center; }
.hero h1 { font-size: var(--text-6xl); line-height: 1.05; font-weight: 800; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: var(--space-4); letter-spacing: -1px; }
.hero .lead { font-size: var(--text-xl); color: var(--text-2); margin-bottom: var(--space-6); max-width: 540px; line-height: 1.7; }
.hero .cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-visual { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); background: var(--grad-hero); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--text-3xl); font-weight: 700; transform: perspective(1000px) rotateY(-6deg) rotateX(4deg); transition: transform .4s; }
.hero-visual:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(37,99,235,.1); color: var(--primary-2); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-4); border: 1px solid rgba(37,99,235,.2); }

/* Sections */
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-10); }
.section-head h2 { font-size: var(--text-4xl); font-weight: 700; color: var(--primary); margin-bottom: var(--space-3); }
.section-head p { color: var(--text-2); font-size: var(--text-lg); }

/* Quick entries */
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.quick-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; transition: .25s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.quick-icon { width: 56px; height: 56px; margin: 0 auto var(--space-3); border-radius: var(--radius-lg); background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.quick-card h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); }
.quick-card p { font-size: var(--text-xs); color: var(--text-3); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-2); }
.product-img { aspect-ratio: 1/1; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: var(--text-sm); overflow: hidden; position: relative; }
.product-img img { transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.08); }
.product-body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: var(--text-xs); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.product-name { font-size: var(--text-base); font-weight: 600; margin: var(--space-1) 0 var(--space-2); }
.product-spec { font-size: var(--text-xs); color: var(--text-3); margin-bottom: var(--space-3); }
.product-price { font-size: var(--text-xl); font-weight: 700; color: var(--primary); margin-top: auto; }
.product-price small { font-size: var(--text-xs); color: var(--text-3); font-weight: 400; }

/* Content cards */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.content-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-2); }
.content-img { aspect-ratio: 16/9; background: var(--bg-3); position: relative; overflow: hidden; }
.content-img .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #fff; background: rgba(0,0,0,.25); }
.content-body { padding: var(--space-4); }
.content-tag { font-size: var(--text-xs); color: var(--info); font-weight: 500; }
.content-title { font-size: var(--text-base); font-weight: 600; margin: var(--space-2) 0; line-height: 1.4; }
.content-meta { font-size: var(--text-xs); color: var(--text-3); display: flex; gap: var(--space-3); }

/* Expert cards */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.expert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.expert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-2); }
.expert-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); margin: 0 auto var(--space-3); display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--text-2xl); font-weight: 700; }
.expert-name { font-size: var(--text-base); font-weight: 600; }
.expert-title { font-size: var(--text-xs); color: var(--text-3); margin: var(--space-1) 0 var(--space-2); }
.expert-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; }
.tag { font-size: var(--text-xs); padding: 2px 8px; border-radius: var(--radius-pill); background: var(--bg-3); color: var(--text-2); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; padding: var(--space-16) 0; text-align: center; }
.cta-band h2 { font-size: var(--text-4xl); font-weight: 700; margin-bottom: var(--space-3); }
.cta-band p { font-size: var(--text-lg); opacity: .9; margin-bottom: var(--space-6); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: var(--bg-3); }

/* Footer */
.site-footer { background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%); color: #E2E8F0; border-top: none; padding: var(--space-16) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); margin-bottom: var(--space-10); }
.footer-col h4 { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-3); color: #F8FAFC; }
.footer-col a { display: block; font-size: var(--text-sm); color: #CBD5E1; padding: var(--space-1) 0; transition: .2s; }
.footer-col a:hover { color: #60A5FA; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-4); display: flex; justify-content: space-between; font-size: var(--text-xs); color: #94A3B8; flex-wrap: wrap; gap: var(--space-2); }

/* Page header */
.page-header { padding: var(--space-12) 0 var(--space-8); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: var(--text-4xl); font-weight: 700; color: var(--primary); margin-bottom: var(--space-2); }
.page-header p { color: var(--text-2); font-size: var(--text-lg); }

/* Filters */
.filter-bar { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.filter-chip { padding: 6px 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: .2s; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Forms */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); color: var(--text); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: var(--text-base); background: var(--surface); color: var(--text); transition: .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.form-textarea { min-height: 100px; resize: vertical; }

/* Article detail */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: var(--text-4xl); font-weight: 700; line-height: 1.2; margin-bottom: var(--space-3); color: var(--primary); }
.article-meta { display: flex; gap: var(--space-4); color: var(--text-3); font-size: var(--text-sm); margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.article-body p { margin-bottom: var(--space-4); color: var(--text-2); line-height: 1.8; }
.article-body h2 { font-size: var(--text-2xl); font-weight: 600; margin: var(--space-6) 0 var(--space-3); color: var(--primary); }

/* Timeline */
.timeline { position: relative; padding-left: var(--space-8); }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: var(--space-6); }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid var(--bg); }
.timeline-year { font-weight: 700; color: var(--primary); margin-bottom: var(--space-1); }
.timeline-text { color: var(--text-2); font-size: var(--text-sm); }

/* Login card */
.auth-card { max-width: 420px; margin: var(--space-16) auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-2); color: var(--primary); text-align: center; }
.auth-card p { color: var(--text-2); text-align: center; margin-bottom: var(--space-6); font-size: var(--text-sm); }

.nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-4); gap: var(--space-2); z-index: 50; }
.nav.open a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); }
.nav.open a:hover { background: var(--bg-2); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: var(--text-3xl); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Image zoom helper for content imgs */
.content-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Empty state */
.empty-state { text-align: center; padding: var(--space-12) 0; color: var(--text-3); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.product-card, .content-card, .expert-card, .quick-card { animation: fadeUp .5s ease both; }
.product-card:nth-child(2), .content-card:nth-child(2), .expert-card:nth-child(2), .quick-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3), .content-card:nth-child(3), .expert-card:nth-child(3), .quick-card:nth-child(3) { animation-delay: .1s; }
.product-card:nth-child(4), .content-card:nth-child(4), .expert-card:nth-child(4), .quick-card:nth-child(4) { animation-delay: .15s; }

/* Admin modal */
.admin-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.admin-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); width: min(720px, 92vw); max-height: 85vh; overflow: auto; }
.admin-modal h3 { margin: 0 0 var(--space-3); }
.admin-tab.active { background: var(--primary); color: #fff; }

/* ===== Admin Operate Surface ===== */
.admin-app { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px; z-index: 200;
  background: #0F172A; color: #E2E8F0; padding: var(--space-5) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-4); overflow-y: auto;
  transition: transform .2s ease;
}
.admin-sidebar-brand { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0 var(--space-4); border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-logo { width: 40px; height: 40px; border-radius: 8px; background: #1E293B; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--text-lg); overflow: hidden; flex-shrink: 0; }
.admin-sidebar-title { font-weight: 700; font-size: var(--text-base); color: #F8FAFC; }
.admin-sidebar-sub { font-size: var(--text-xs); color: #94A3B8; }
.admin-sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-group { font-size: var(--text-xs); font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: .08em; margin: var(--space-3) 0 var(--space-1); padding: 0 var(--space-2); }
.admin-nav-item { padding: 9px 12px; border-radius: var(--radius-md); color: #CBD5E1; font-size: var(--text-sm); cursor: pointer; transition: .15s; }
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #F8FAFC; }
.admin-nav-item.active { background: #2563EB; color: #fff; font-weight: 600; }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--space-3); }
.admin-sidebar-footer a { color: #94A3B8; font-size: var(--text-sm); }
.admin-sidebar-footer a:hover { color: #F8FAFC; }

.admin-main { margin-left: 240px; min-height: 100vh; background: var(--bg); }
.admin-topbar {
  position: sticky; top: 0; z-index: 100; height: 64px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 0 var(--space-6);
}
.admin-hamburger { display: none; font-size: 20px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
.admin-topbar-left { display: flex; flex-direction: column; justify-content: center; }
.admin-breadcrumbs { font-size: var(--text-xs); color: var(--text-3); }
.admin-topbar-title { font-size: var(--text-xl); font-weight: 700; color: var(--primary); line-height: 1.2; }
.admin-topbar-right { display: flex; align-items: center; gap: var(--space-3); }
.admin-user-name { font-size: var(--text-sm); color: var(--text-2); }

.admin-content { padding: var(--space-6); max-width: 1400px; margin: 0 auto; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); }
.admin-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.admin-stat-number { font-size: var(--text-4xl); font-weight: 800; color: var(--primary); line-height: 1; }
.admin-stat-label { font-size: var(--text-sm); color: var(--text-3); margin-top: var(--space-2); }

.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); gap: var(--space-4); flex-wrap: wrap; }
.admin-section-title { font-size: var(--text-2xl); font-weight: 700; color: var(--primary); }
.admin-section-sub { font-size: var(--text-sm); color: var(--text-3); margin-top: 2px; }

.admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.admin-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-2); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.admin-table tbody tr:nth-child(even) { background: var(--bg); }
.admin-table tbody tr:hover { background: var(--bg-3); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-actions { display: flex; gap: 6px; white-space: nowrap; }
.admin-empty { text-align: center; padding: var(--space-8) !important; color: var(--text-3); }

.admin-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-4); gap: var(--space-3); flex-wrap: wrap; }
.admin-pagination-info { font-size: var(--text-sm); color: var(--text-3); }
.admin-pagination-controls { display: flex; align-items: center; gap: var(--space-2); }
.admin-page-size { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-size: var(--text-sm); }

.admin-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: var(--space-4); }
.admin-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); width: min(920px, 96vw); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-xl); }
.admin-modal h3 { margin: 0 0 var(--space-4); font-size: var(--text-xl); color: var(--primary); }
.admin-modal .form-group { margin-bottom: var(--space-4); }
.admin-modal .form-label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); color: var(--text); }
.admin-modal .form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: var(--text-base); background: var(--surface); color: var(--text); }
.admin-modal .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.admin-image-preview { width: 96px; height: 96px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-3); margin-bottom: var(--space-2); color: var(--text-3); font-size: var(--text-xs); }
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-logo-preview { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-3); margin-bottom: var(--space-2); color: var(--text-3); font-weight: 700; }
.admin-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.admin-logo-fallback { font-size: var(--text-2xl); font-weight: 800; color: var(--primary); }
.admin-hint { font-size: var(--text-xs); color: var(--text-3); margin-top: var(--space-1); }
.admin-settings-form { max-width: 720px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }

.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }

@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-hamburger { display: inline-flex; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 var(--space-4); }
  .admin-content { padding: var(--space-4); }
}
