/* ═════════════════════════════════════════════════════════════════════
   DAKLAK TRAVEL AI — ROYAL EMERALD & GOLDEN SUNSET DESIGN SYSTEM
   Comprehensive Site-Wide UI/UX Overhaul Stylesheet
   ═════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,600..900;1,600..900&display=swap');

/* ── 1. DESIGN TOKENS & VARIABLE DEFINITIONS ── */
:root {
  /* Brand Color Palette - Royal Emerald & Golden Sunset */
  --emerald-midnight: #022c22;
  --emerald-deep:     #064e3b;
  --emerald-primary:  #047857;
  --emerald-medium:   #059669;
  --emerald-vibrant:  #10b981;
  --emerald-light:    #ecfdf5;

  --sunset-gold:   #f59e0b;
  --sunset-amber:  #d97706;
  --sunset-bronze: #b45309;
  --sunset-glow:   #fef08a;
  --sunset-peach:  #fff7ed;

  /* Aliases for Legacy Support */
  --primary-950: var(--emerald-midnight);
  --primary-900: var(--emerald-deep);
  --primary-800: var(--emerald-primary);
  --primary-700: var(--emerald-medium);
  --primary-600: var(--emerald-vibrant);
  --primary-500: #2ab070;
  --primary-100: var(--emerald-light);
  --primary-50:  #f0fdf4;

  --green-950: var(--emerald-midnight);
  --green-900: var(--emerald-deep);
  --green-800: var(--emerald-primary);
  --green-700: var(--emerald-primary);
  --green-600: var(--emerald-medium);
  --green-500: var(--emerald-vibrant);
  --green-400: #34d399;
  --green-100: var(--emerald-light);
  --green-50:  #f0fdf4;

  --accent-600: var(--sunset-amber);
  --accent-500: var(--sunset-gold);
  --accent-400: #fbbf24;
  --accent-100: var(--sunset-glow);

  --orange-500: var(--sunset-gold);
  --orange-600: var(--sunset-amber);

  /* Surfaces & Backgrounds */
  --bg-main:    #fdfbf7;
  --bg-surface: #ffffff;
  --bg-card:    #ffffff;
  --bg-subtle:  #f8fafc;

  /* Typography Colors */
  --text-dark:  #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Glassmorphism & Borders */
  --glass-header: rgba(2, 44, 34, 0.88);
  --glass-card:   rgba(255, 255, 255, 0.85);
  --border-light: rgba(15, 23, 42, 0.08);
  --border-glow:  rgba(245, 158, 11, 0.3);

  /* Shadows */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(2, 44, 34, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(2, 44, 34, 0.15);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.35);
  --shadow-card: 0 12px 32px rgba(2, 44, 34, 0.06);

  /* Radii & Layout */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. GLOBAL RESET & BASE STYLES ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 5% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 95% 90%, rgba(245, 158, 11, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1ede6;
}
::-webkit-scrollbar-thumb {
  background: var(--emerald-primary);
  border-radius: var(--radius-full);
  border: 2px solid #f1ede6;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--emerald-medium);
}

/* Layout Containers */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.main-content {
  flex: 1;
  padding-top: 32px;
  padding-bottom: 70px;
  width: 100%;
  max-width: 1320px !important;
  margin: 0 auto;
}

/* ── 3. HEADER & NAVIGATION (ROYAL GLASS) ── */
.site-header {
  background: linear-gradient(135deg, #022c22 0%, #047857 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(254, 240, 138, 0.25);
  box-shadow: 0 10px 30px rgba(2, 44, 34, 0.35);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 32px;
}

.header-mobile-bar {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header-collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
}

.logo, .logo:visited, .logo:hover, .logo:active {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.logo span {
  color: #fef08a !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.logo:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(254, 240, 138, 0.6);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a, .dropbtn {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 40px;
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}

.main-nav a:hover, .dropbtn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Nav Dropdown (Ultra Smooth Submenu) */
.nav-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: linear-gradient(180deg, #022c22 0%, #064e3b 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(254, 240, 138, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
  padding: 10px;
  z-index: 1100;
  margin-top: 2px;
}

/* Cầu nối ẩn để con chuột di chuyển không bị trôi mất Submenu */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
  animation: dropdownFadeSlide 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes dropdownFadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  color: #fef08a !important;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dropdown-content a:hover {
  background: linear-gradient(135deg, var(--sunset-gold) 0%, var(--sunset-amber) 100%);
  color: #ffffff !important;
  transform: translateX(6px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-white);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.auth-greeting {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-greeting strong {
  color: var(--sunset-glow);
}

/* ── 4. BUTTONS & UI CONTROLS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-deep) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.3);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(4, 120, 87, 0.5);
  color: #ffffff !important;
}

.btn.secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--emerald-midnight) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn.secondary:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-medium);
  color: var(--emerald-primary) !important;
  transform: translateY(-2px);
}

.site-header .btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  box-shadow: none;
}

.site-header .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn.accent {
  background: linear-gradient(135deg, var(--sunset-gold) 0%, var(--sunset-amber) 100%);
  box-shadow: var(--shadow-glow);
}

.btn.accent:hover {
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.5);
}

/* ── 5. AI CHATBOT PAGE STYLING (SUPERIOR UI) ── */
.chat-hero {
  background: linear-gradient(135deg, var(--emerald-midnight) 0%, var(--emerald-deep) 60%, var(--emerald-primary) 100%);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
  box-shadow: 0 25px 50px rgba(2, 44, 34, 0.35);
  border: 1px solid rgba(254, 240, 138, 0.25);
  position: relative;
  overflow: hidden;
}

.chat-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.chat-hero-text {
  flex: 1;
  max-width: 650px;
  z-index: 2;
}

.chat-hero-text h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--sunset-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.chat-hero-text p {
  font-size: 1.15rem;
  color: #d1fae5;
  margin: 0 0 24px;
  line-height: 1.6;
}

.chat-hero-art {
  z-index: 2;
}

/* Chat Box Container */
#chat-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(2, 44, 34, 0.1);
  padding: 36px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 60px;
}

.chat-window {
  min-height: 420px;
  max-height: 550px;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Message Rows & Bubbles */
.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 82%;
  animation: popBubble 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes popBubble {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.msg-row.bot-row {
  align-self: flex-start;
}

.msg-row.user-row {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-midnight) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 15px rgba(4, 120, 87, 0.3);
  flex-shrink: 0;
}

.msg-row.user-row .msg-avatar {
  background: linear-gradient(135deg, var(--sunset-gold) 0%, var(--sunset-amber) 100%);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3);
}

.msg {
  padding: 16px 22px;
  border-radius: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.msg.bot {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 6px;
}

.msg.user {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-deep) 100%);
  color: #ffffff;
  border-top-right-radius: 6px;
}

/* Chat Suggestions Chips */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 16px;
}

.sugg-btn {
  background: var(--sunset-peach);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--sunset-amber);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.sugg-btn:hover {
  background: var(--sunset-gold);
  color: #ffffff;
  border-color: var(--sunset-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3);
}

/* Chat Input Bar */
.chat-input-row {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  background: #ffffff;
  padding: 8px;
  border-radius: 50px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.chat-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 24px;
  font-size: 16px;
  outline: none;
  color: var(--text-dark);
}

.chat-input-row button {
  background: linear-gradient(135deg, var(--sunset-gold) 0%, var(--sunset-amber) 100%);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.chat-input-row button:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
}

/* ── 6. FORM CONTROLS & CARDS ── */
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: #ffffff;
  color: var(--text-dark);
}

/* Form Box & Itinerary Planner Styling */
.form-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 32px;
  width: 100%;
}

.checkbox-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.checkbox-group label {
  background: var(--bg-main);
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--emerald-midnight);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.checkbox-group label:hover {
  border-color: var(--sunset-gold);
  background: var(--sunset-peach);
  color: var(--sunset-amber);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sunset-gold);
}

#result {
  width: 100%;
  margin-top: 32px;
}

/* Day Block & Timeline Cards Styling */
.day-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  margin-bottom: 32px;
}

.day-block-header {
  background: linear-gradient(135deg, var(--emerald-midnight) 0%, var(--emerald-primary) 100%);
  color: #ffffff;
  padding: 20px 28px;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--sunset-gold);
}

.day-block-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--bg-main);
}

.time-slot {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: var(--transition);
}

.time-slot:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(4, 120, 87, 0.1);
  border-color: var(--emerald-vibrant);
}

.time-slot-header {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--emerald-midnight);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-slot-time {
  background: var(--sunset-gold);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
}

.time-slot-reason {
  margin-top: 12px;
  padding: 10px 16px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
  font-size: 14px;
  border-radius: 8px;
  line-height: 1.5;
}

.time-slot-impact {
  margin-top: 10px;
  padding: 10px 16px;
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
  font-size: 14px;
  border-radius: 8px;
  line-height: 1.5;
}

.time-slot-suggestion {
  margin-top: 10px;
  padding: 10px 16px;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  font-size: 14px;
  border-radius: 8px;
  line-height: 1.5;
}

.time-slot-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Grid Layout Systems */
.grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
  margin-bottom: 40px;
}

/* Card Link Reset & No Purple Text */
a.card, a.card:visited, a.card:hover, a.card:active,
a.dest-card, a.dest-card:visited, a.dest-card:hover, a.dest-card:active {
  color: inherit !important;
  text-decoration: none !important;
}

a.card h3, a.dest-card h3,
.card-body h3 {
  color: var(--emerald-midnight) !important;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.35rem;
  transition: color 0.3s ease;
}

a.card:hover h3, a.dest-card:hover h3 {
  color: var(--emerald-primary) !important;
}

a.card p, a.dest-card p,
.card-body p {
  color: var(--text-muted) !important;
  font-size: 0.96rem;
  line-height: 1.6;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

.card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #cbd5e1;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

a.card:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pagination Bar Styles */
.pagination-wrapper, .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.page-link, .pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: var(--transition);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--emerald-midnight) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  user-select: none;
}

.page-link:hover, .pagination a:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-medium);
  color: var(--emerald-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.15);
}

.page-link.active, .pagination a.active, .pagination span.active,
.pagination .page-link.active {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, var(--emerald-deep) 100%) !important;
  color: #ffffff !important;
  border-color: var(--emerald-deep) !important;
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35) !important;
  transform: scale(1.05);
}

.page-link.disabled, .pagination a.disabled, .pagination span.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8 !important;
}

/* Category Pills Bar & Links Fix */
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}

.pill, a.pill, a.pill:visited, a.pill:hover, a.pill:active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 40px;
  color: var(--emerald-midnight) !important;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.pill:hover, a.pill:hover {
  background: var(--emerald-light);
  border-color: var(--emerald-medium);
  color: var(--emerald-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.15);
}

.pill.active, a.pill.active {
  background: linear-gradient(135deg, var(--sunset-gold) 0%, var(--sunset-amber) 100%);
  color: #ffffff !important;
  border-color: var(--sunset-gold);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  background: var(--emerald-light);
  color: var(--emerald-primary);
}

/* ── 7. FOOTER STYLING ── */
.site-footer {
  background: linear-gradient(135deg, var(--emerald-midnight) 0%, var(--emerald-deep) 100%);
  color: #ffffff;
  padding: 70px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(254, 240, 138, 0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sunset-glow);
  margin-bottom: 20px;
}

.footer-col a {
  color: #d1fae5;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--sunset-gold);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a7f3d0;
  font-size: 14px;
}

/* Mobile Responsiveness & Header Drawer */
@media (max-width: 992px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .header-mobile-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  .header-collapsible {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .site-header.menu-open .header-collapsible {
    display: flex;
  }
  .main-nav {
    flex-direction: column;
    width: 100%;
  }
  .auth-area {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .chat-hero { flex-direction: column; text-align: center; }
  .msg-row { max-width: 95%; }
}