/* ===================== CSS VARIABLES ===================== */
:root {
  --primary: #E63946;
  --primary-dark: #C1121F;
  --primary-light: #FDECEA;
  --secondary: #1D3557;
  --accent: #457B9D;
  --success: #2A9D8F;
  --warning: #E9C46A;
  --danger: #E63946;

  --bg: #F0F2F5;
  --bg-card: #FFFFFF;
  --bg-nav: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-sidebar: #FFFFFF;

  --border: #E0E0E0;
  --border-light: #F0F0F0;

  --text-primary: #1A1A2E;
  --text-secondary: #5A6476;
  --text-muted: #9BA5B4;
  --text-white: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --navbar-h: 64px;
  --sidebar-w: 280px;

  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0D1117;
  --bg-card: #161B22;
  --bg-nav: #161B22;
  --bg-input: #1E2530;
  --bg-sidebar: #161B22;

  --border: #30363D;
  --border-light: #21262D;

  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #545D6B;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-white { color: #fff !important; }

.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }

.app-main {
  min-height: calc(100vh - var(--navbar-h));
  padding-top: var(--navbar-h);
}

.section { padding: 3rem 0; }
.section-sm { padding: 2rem 0; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

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

.hidden { display: none !important; }
.visible { display: block !important; }
.w-full { width: 100%; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--primary); }

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

.nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.hamburger { display: none; }

.mobile-menu {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-nav);
}

.mobile-nav-link {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav-link:hover { color: var(--primary); background: var(--primary-light); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
}
.btn-secondary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--text-muted); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 2px solid var(--danger);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border: 2px solid var(--success);
}

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: transparent;
}
.btn-icon:hover { background: var(--border-light); color: var(--primary); }

/* ===================== FORMS ===================== */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); }
.form-control {
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

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

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

.checkbox-group { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-group input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border);
  outline: none;
  accent-color: var(--primary);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #E8F8F5; color: var(--success); }
.badge-warning { background: #FEF9E7; color: #B7791F; }
.badge-secondary { background: #EBF4FB; color: var(--accent); }
.badge-dark { background: var(--secondary); color: #fff; }
.badge-muted { background: var(--border-light); color: var(--text-secondary); }

/* ===================== TABS ===================== */
.tabs { display: flex; border-bottom: 2px solid var(--border); gap: 0; }
.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  background: none;
  cursor: pointer;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

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

/* ===================== TOASTS ===================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-msg { font-size: 0.875rem; line-height: 1.5; color: var(--text-primary); }
.toast-close { margin-left: auto; cursor: pointer; color: var(--text-muted); flex-shrink: 0; font-size: 1.1rem; line-height: 1; }
.toast-close:hover { color: var(--text-primary); }

@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: zoomIn 0.2s ease;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }
.modal-title { font-size: 1.2rem; font-family: var(--font-heading); font-weight: 600; margin-bottom: 1.25rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===================== NOTIFICATION ===================== */
.notif-wrapper { position: relative; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
}

.notif-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--bg); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-light); }
.notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.notif-header { padding: 0.75rem 1rem; font-weight: 600; font-size: 0.875rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* ===================== USER MENU ===================== */
.user-avatar-menu { position: relative; }
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}
.user-avatar-btn:hover { border-color: var(--primary); }
.avatar-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  padding: 0.4rem 0;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: background var(--transition);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-divider { height: 1px; background: var(--border); margin: 0.3rem 0; }

/* ===================== COMPARE TRAY ===================== */
.compare-tray {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--secondary);
  color: #fff;
  z-index: 500;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

.compare-tray-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.compare-tray-items {
  display: flex;
  gap: 1rem;
  flex: 1;
  flex-wrap: wrap;
}

.compare-tray-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.12);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.compare-tray-item img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }

.compare-remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 1rem;
  line-height: 1;
}
.compare-remove:hover { opacity: 1; }

.compare-tray-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ===================== SKELETON ===================== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #1D3557 0%, #2A5A8C 50%, #457B9D 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://picsum.photos/seed/hero_re/1600/600') center/cover no-repeat;
  opacity: 0.18;
}

.hero-content { position: relative; text-align: center; max-width: 780px; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.25rem;
}

/* ===================== HERO SEARCH ===================== */
.hero-search {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-tabs { display: flex; gap: 0.5rem; }
.search-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--border-light);
  color: var(--text-secondary);
  border: 2px solid transparent;
}
.search-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-input-group {
  flex: 1;
  min-width: 180px;
}

.search-input-group .form-label { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.search-input-wrapper {
  position: relative;
}
.search-input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input-wrapper .form-control { padding-left: 2.4rem; }

.search-btn {
  padding: 0.7rem 1.75rem;
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* ===================== CATEGORY CHIPS ===================== */
.category-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
}
.chip:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.5); }

/* ===================== STATS BAR ===================== */
.stats-bar {
  background: var(--primary);
  padding: 1.25rem 0;
}
.stats-bar-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: #fff; }
.stat-value { font-size: 1.75rem; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.stat-label { font-size: 0.8rem; opacity: 0.85; margin-top: 0.25rem; }

/* ===================== SECTION HEADERS ===================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.section-link { font-size: 0.875rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { font-size: 0.875rem; color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 0.75rem; }

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ===================== PAGE NOT FOUND ===================== */
.not-found {
  text-align: center;
  padding: 6rem 1.25rem;
}
.not-found-code { font-size: 6rem; font-weight: 700; color: var(--primary); line-height: 1; font-family: var(--font-heading); }
.not-found-title { font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.not-found-desc { color: var(--text-muted); margin-bottom: 2rem; }

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.empty-state-desc { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===================== DIVIDER ===================== */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

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

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar-inner { gap: 1rem; }

  .hero { min-height: 400px; padding: 3rem 1rem 2.5rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-bar-inner { gap: 2rem; }

  #register-btn { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2rem 0; }
  .hero-search { padding: 1rem; }
  .search-row { flex-direction: column; }
  .search-btn { width: 100%; }
  .category-chips { gap: 0.5rem; }
  .chip { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
}
