/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-light: #dbeafe;
  --success: #16a34a; --success-light: #dcfce7;
  --warning: #d97706; --warning-light: #fef3c7;
  --danger: #dc2626; --danger-light: #fee2e2;
  --info: #0891b2; --info-light: #cffafe;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db;
  --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151;
  --gray-800: #1f2937; --gray-900: #111827;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
  --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 -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px; --radius-lg: 12px; --radius-sm: 6px;
  --sidebar-width: 260px; --header-height: 64px;
  --transition: 0.15s ease;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gray-800); background: var(--gray-50); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
table { width: 100%; border-collapse: collapse; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-gray { color: var(--gray-500); }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.875rem; border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-400); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #15803d; }
.btn-warning { background: var(--warning); color: white; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-icon { padding: 0.5rem; }
.btn-ghost { background: transparent; color: var(--gray-600); border: none; }
.btn-ghost:hover { background: var(--gray-100); }

/* ===== CARDS ===== */
.card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100); }
.card-title { font-size: 1rem; font-weight: 600; }

/* ===== STAT CARDS ===== */
.stat-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }
.stat-card .stat-change { font-size: 0.75rem; font-weight: 500; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-success { background: var(--success-light); color: #166534; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-info { background: var(--info-light); color: #155e75; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-primary { background: var(--primary-light); color: #1e40af; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-control {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 0.875rem; transition: border-color var(--transition), box-shadow var(--transition);
  background: white; color: var(--gray-800);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--gray-200); background: var(--gray-50); }
.table td { padding: 0.75rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--gray-50); }
.table .actions { display: flex; gap: 0.5rem; }

/* ===== SIDEBAR ===== */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width); background: var(--gray-900); color: white; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column;
  transition: transform 0.3s ease; overflow-y: auto;
}
.sidebar-brand { padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand .brand-icon { width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; }
.sidebar-brand .brand-text { font-weight: 700; font-size: 1.1rem; }
.sidebar-nav { padding: 0.75rem; flex: 1; }
.sidebar-section { margin-bottom: 0.5rem; }
.sidebar-section-title { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); padding: 0.5rem 0.75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--gray-300); font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: white; }
.sidebar-link.active { background: var(--primary); color: white; }
.sidebar-link .link-icon { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-link .link-badge { margin-left: auto; background: var(--danger); color: white; font-size: 0.65rem; padding: 0.15rem 0.5rem; border-radius: 9999px; font-weight: 600; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-user .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; }
.sidebar-user .user-info { flex: 1; }
.sidebar-user .user-name { font-size: 0.85rem; font-weight: 600; }
.sidebar-user .user-role { font-size: 0.7rem; color: var(--gray-400); }

/* ===== MAIN CONTENT (DASHBOARD) ===== */
.main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; }
.top-bar {
  height: var(--header-height); background: white; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 50;
}
.top-bar-title { font-size: 1.1rem; font-weight: 600; }
.top-bar-actions { display: flex; align-items: center; gap: 0.75rem; }
.page-content { padding: 1.5rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-title { font-size: 1.5rem; font-weight: 700; }

/* ===== PUBLIC HEADER ===== */
.pub-header {
  background: white; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100;
}
.pub-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.2rem; color: var(--gray-900); }
.pub-logo .logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.8rem; }
.pub-nav { display: flex; align-items: center; gap: 0.25rem; }
.pub-nav a { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); border-radius: var(--radius-sm); }
.pub-nav a:hover { color: var(--gray-900); background: var(--gray-100); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-600); }

/* ===== PUBLIC FOOTER ===== */
.pub-footer { background: var(--gray-900); color: var(--gray-300); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: white; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.85rem; }
.footer-links a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding: 1.5rem 1.5rem 0; border-top: 1px solid var(--gray-700); font-size: 0.8rem; text-align: center; color: var(--gray-500); }

/* ===== HERO SECTION ===== */
.hero { padding: 5rem 0 4rem; background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: white; padding: 0.35rem 1rem; border-radius: 9999px; font-size: 0.8rem; font-weight: 500; color: var(--primary); border: 1px solid var(--primary-light); margin-bottom: 1.5rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--gray-900); }
.hero p { font-size: 1.15rem; color: var(--gray-600); margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.5rem; border: 1px solid var(--gray-200); }
.hero-dashboard { background: var(--gray-50); border-radius: var(--radius); padding: 1rem; min-height: 300px; }
.hero-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.hero-stat { background: white; padding: 0.75rem; border-radius: var(--radius-sm); text-align: center; }
.hero-stat .num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.hero-stat .lbl { font-size: 0.7rem; color: var(--gray-500); }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1rem; color: var(--gray-500); text-align: center; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-dark { background: var(--gray-900); color: white; }
.section-dark .section-subtitle { color: var(--gray-400); }

/* ===== FEATURE CARDS ===== */
.feature-card { padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: white; transition: all 0.2s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 0.25rem 1rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--gray-500); }
.pricing-features { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-features li { padding: 0.5rem 0; font-size: 0.875rem; color: var(--gray-600); display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.testimonial-quote { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); }
.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--gray-500); }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q { padding: 1rem 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--gray-400); transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 1rem; font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal { background: white; border-radius: var(--radius-lg); max-width: 600px; width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); padding: 0.25rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.75rem 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; min-width: 300px; animation: slideIn 0.3s ease; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast-message { font-size: 0.875rem; flex: 1; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray-400); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== FILTERS BAR ===== */
.filters-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filter-input { padding: 0.4rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.8rem; background: white; }
.filter-input:focus { outline: none; border-color: var(--primary); }
.search-input { position: relative; }
.search-input input { padding-left: 2rem; }
.search-input::before { content: '🔍'; position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 0.8rem; }

/* ===== LOADING ===== */
.spinner { width: 20px; height: 20px; border: 2px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { display: flex; align-items: center; justify-content: center; padding: 3rem; color: var(--gray-500); gap: 0.75rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 0.5rem; }

/* ===== CHART PLACEHOLDER ===== */
.chart-container { position: relative; height: 200px; background: var(--gray-50); border-radius: var(--radius); overflow: hidden; }
.chart-bar { position: absolute; bottom: 0; border-radius: 4px 4px 0 0; transition: height 0.5s ease; }
.chart-line { display: flex; align-items: flex-end; gap: 4px; height: 100%; padding: 0.5rem; }
.chart-line .bar { flex: 1; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s ease; opacity: 0.7; }
.chart-line .bar:hover { opacity: 1; }

/* ===== TABS ===== */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab { padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab:hover { color: var(--gray-700); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== DETAIL VIEW ===== */
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.detail-meta-item .label { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; margin-bottom: 0.2rem; }
.detail-meta-item .value { font-size: 0.9rem; font-weight: 500; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.75rem; top: 0.4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: var(--shadow-sm); }
.timeline-item .time { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.25rem; }
.timeline-item .content { font-size: 0.875rem; }
.timeline-item .author { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ===== PRINT ===== */
@media print {
  .sidebar, .top-bar, .pub-header, .pub-footer, .btn, .filters-bar { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 0 !important; }
  body { background: white; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .pub-nav { display: none; }
  .pub-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-200); padding: 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .stat-card .stat-value { font-size: 1.35rem; }
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
.sidebar-overlay.show { display: block; }
