﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ================= PREMIUM MIDNIGHT GLASS THEME ================= */
:root {
  --bg-color: #f3f6f9;
  --text-color: #2d3748;
  --card-bg: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #ffffff;
  --border-color: #e2e8f0;
  --muted-text: #718096;
  --input-bg: #ffffff;
  --input-text: #2d3748;
  --shadow-color: rgba(0, 0, 0, 0.06);
  --primary-glow: transparent;
  --glass-border: transparent;
  --accent-color: #005eb8;
}

[data-theme="dark"] {
  /* Deep Void Blue & Glass Accents */
  --bg-color: #0b0f19;
  /* Ultra Deep Blue-Black */
  --text-color: #e2e8f0;
  /* Soft White */
  --muted-text: #94a3b8;
  /* Cool Grey */

  /* Glassmorphism Configuration */
  --card-bg: rgba(30, 41, 59, 0.7);
  /* Translucent Slate */
  --navbar-bg: rgba(11, 15, 25, 0.85);
  /* Translucent Nav */
  --footer-bg: #0f172a;

  --border-color: #1e293b;
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);

  --input-bg: rgba(15, 23, 42, 0.8);
  --input-text: #f8fafc;

  --shadow-color: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --primary-glow: 0 0 20px rgba(56, 189, 248, 0.15);
  /* Soft Blue Glow */
  --accent-color: #38bdf8;
  /* Cyan-Blue for better contrast */
}

/* GLOBAL HELPERS & OVERRIDES FOR DARK MODE */
[data-theme="dark"] .text-dark {
  color: #f8fafc !important;
}

[data-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white-adaptive {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

[data-theme="dark"] .bg-light {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .list-group-item {
  background-color: transparent !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .list-group-item-action:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--accent-color) !important;
}

[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border {
  border-color: var(--border-color) !important;
}

body {
  background-color: var(--bg-color) !important;
  background-image:
    radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.03) 0px, transparent 50%);
  color: var(--text-color) !important;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Glass Cards */
.card {
  background-color: var(--card-bg);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  /* The Glass Effect */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-color);
  border-radius: 16px;
  /* Softer Corners */
}

/* Glass Navbar */
.navbar-custom {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Inputs with Depth */
.form-control,
.form-select {
  background-color: var(--input-bg);
  color: var(--input-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Typography & Icons */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .navbar-brand {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .text-primary {
  color: var(--accent-color) !important;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  /* Glowing Text */
}

/* Navbar Links */
[data-theme="dark"] .navbar-nav .nav-link {
  color: #cbd5e1 !important;
  transition: all 0.3s;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Table Enhancements */
[data-theme="dark"] .table {
  color: var(--text-color);
}

[data-theme="dark"] .table thead th {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

[data-theme="dark"] .table td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Fix */
.footer {
  background-color: var(--footer-bg) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Scrollbar (Modern Webkit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* User Capsule Layout */
.user-capsule {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .user-capsule {
  background: rgba(255, 255, 255, 0.05);
  /* Glass effect */
}

.user-capsule:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px var(--shadow-color);
}

[data-theme="dark"] .user-capsule:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ================= PREMIUM BRANDING (Logo Shape) ================= */
.logo-wrapper {
  display: flex;
  align-items: center;
  font-family: 'Outfit', 'Cairo', sans-serif;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover {
  transform: scale(1.05) rotate(-1deg);
}

.logo-icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--accent-color), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 94, 184, 0.2));
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -1px;
}

.text-primary-go {
  color: var(--accent-color);
}

.scale-75 {
  transform: scale(0.75);
  transform-origin: left center;
}

[dir="rtl"] .scale-75 {
  transform-origin: right center;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-color), #4f46e5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-avatar-lg {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), #4f46e5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Sidebar Specific Styles */
.sidebar-offcanvas {
  width: 300px !important;
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

.sidebar-icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.03);
  font-size: 0.9rem;
}

[data-theme="dark"] .sidebar-icon-box {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-offcanvas .list-group-item {
  background-color: transparent !important;
  color: var(--text-color) !important;
  transition: all 0.2s ease;
  font-weight: 600;
}

.sidebar-offcanvas .list-group-item:hover {
  background-color: rgba(0, 0, 0, 0.02) !important;
  padding-right: 2rem !important;
  /* Slight animation on hover for RTL */
}

[data-theme="dark"] .sidebar-offcanvas .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}


.btn-icon-only {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.text-danger-soft {
  color: #ef4444;
  opacity: 0.8;
}

.btn-icon-only:hover {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  transform: rotate(90deg);
  /* Subtle interaction */
}

.highlight-link:hover {
  color: var(--primary-force) !important;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

/* Premium Theme Toggle */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-color) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy transition */
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffd700 !important;
  /* Sun Color */
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  /* Sun Glow */
}

.theme-toggle-btn:hover {
  transform: rotate(15deg) scale(1.1);
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Rewards Points Badge */
.points-badge {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
}

[data-theme="dark"] .points-badge {
  background: rgba(255, 193, 7, 0.2);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.4);
}

.points-badge:hover {
  transform: scale(1.05);
  background: rgba(255, 193, 7, 0.25);
}

/* ================= PREMIUM BRANDING (Image Logo) ================= */
.static-logo-container {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.static-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  /* Removes white square background if drawing is dark on white */
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.static-logo-container:hover .static-logo {
  transform: scale(1.1) rotate(-5deg);
}

[data-theme="dark"] .static-logo {
  /* Invert colors for dark mode if drawing is dark */
  filter: invert(1) brightness(2) contrast(1.2);
  mix-blend-mode: screen;
  /* Blends white parts with dark bg */
}


/* Standalone Points Pill */
.points-standalone {
  background: #fff;
  border: 1px solid rgba(255, 193, 7, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .points-standalone {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 193, 7, 0.2);
}

.points-standalone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(255, 193, 7, 0.1) !important;
  border-color: rgba(255, 193, 7, 0.6);
}

.coin-glow {
  width: 28px;
  height: 28px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: gold-pulse 2s infinite;
}

@keyframes gold-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

[data-theme="dark"] .points-standalone .text-dark {
  color: #fff !important;
}

/* Rewards Center & My Points Button */
.points-standalone-btn {
  background: #fff;
  border: 1px solid rgba(255, 193, 7, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .points-standalone-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 193, 7, 0.2);
}

.points-standalone-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 15px rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.8);
  background: #fffdf5;
}

/* Visa-Style Card */
.visa-points-card {
  height: 240px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 20px;
  padding: 30px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
}

.visa-points-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.visa-chip {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border-radius: 6px;
  margin-bottom: 20px;
  position: relative;
}

.card-logo {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  opacity: 0.8;
}

.card-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-holder {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.card-points-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 5px;
}

.card-points-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: -5px;
}

.visa-card-bg-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.bg-soft-success {
  background-color: rgba(40, 167, 69, 0.1);
}

[data-theme="dark"] .points-badge {
  background: rgba(255, 193, 7, 0.2);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.4);
}

.points-badge:hover {
  transform: scale(1.05);
  background: rgba(255, 193, 7, 0.25);
}

/* ================= PREMIUM BRANDING (Image Logo) ================= */
.static-logo-container {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.static-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  /* Removes white square background if drawing is dark on white */
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.static-logo-container:hover .static-logo {
  transform: scale(1.1) rotate(-5deg);
}

[data-theme="dark"] .static-logo {
  /* Invert colors for dark mode if drawing is dark */
  filter: invert(1) brightness(2) contrast(1.2);
  mix-blend-mode: screen;
  /* Blends white parts with dark bg */
}


/* Standalone Points Pill */
.points-standalone {
  background: #fff;
  border: 1px solid rgba(255, 193, 7, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .points-standalone {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 193, 7, 0.2);
}

.points-standalone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(255, 193, 7, 0.1) !important;
  border-color: rgba(255, 193, 7, 0.6);
}

.coin-glow {
  width: 28px;
  height: 28px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: gold-pulse 2s infinite;
}

@keyframes gold-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

[data-theme="dark"] .points-standalone .text-dark {
  color: #fff !important;
}

/* Rewards Center & My Points Button */
.points-standalone-btn {
  background: #fff;
  border: 1px solid rgba(255, 193, 7, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .points-standalone-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 193, 7, 0.2);
}

.points-standalone-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 15px rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.8);
  background: #fffdf5;
}

/* Visa-Style Card */
.visa-points-card {
  height: 240px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 20px;
  padding: 30px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
}

.visa-points-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.visa-chip {
  width: 45px;
  height: 35px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border-radius: 6px;
  margin-bottom: 20px;
  position: relative;
}

.card-logo {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  opacity: 0.8;
}

.card-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-holder {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.card-points-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 5px;
}

.card-points-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: -5px;
}

.visa-card-bg-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.bg-soft-success {
  background-color: rgba(40, 167, 69, 0.1);
}

.text-success {
  color: #28a745 !important;
}

/* Toggleable Sidebar (Offcanvas) Adjustments */
.sidebar-offcanvas {
  width: 320px !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background-color: var(--navbar-bg) !important;
}

.sidebar-offcanvas .list-group-item {
  background: transparent;
  transition: all 0.2s;
  border-radius: 12px;
  margin: 2px 10px;
}

.sidebar-offcanvas .list-group-item:hover {
  background: rgba(0, 94, 184, 0.08);
  transform: translateX(5px);
}

[dir="rtl"] .sidebar-offcanvas .list-group-item:hover {
  transform: translateX(-5px);
}

.sidebar-user-card {
  margin: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* [CLEANUP] Redundant rules removed. Theme logic centralized. */

/* ================= MODERN FOOTER ================= */
.modern-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 94, 184, 0.1);
  color: var(--accent-color);
  transition: all 0.3s ease;
  margin-right: 10px;
}

.footer-social-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-3px);
}

.footer-links-list {
  list-style: none;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: var(--muted-text);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* ================= TRIPS PAGE ENHANCEMENTS ================= */
.trips-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1474487056289-622ad5096382?auto=format&fit=crop&q=80&w=1600');
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 120px 40px;
  color: white;
  text-align: center;
  margin-bottom: -60px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-color);
  transition: all 0.3s ease;
  width: 350px;
  /* Fixed width for seamless loop */
  margin: 0 15px;
  flex-shrink: 0;
  white-space: normal;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--accent-color);
}

.marquee-container {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  width: 100%;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-reverse {
  animation: marquee-scroll-reverse 60s linear infinite;
}

[dir="rtl"] .marquee-content {
  animation: marquee-scroll-rtl 60s linear infinite;
}

[dir="rtl"] .marquee-reverse {
  animation: marquee-scroll-rtl-reverse 60s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-scroll-reverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes marquee-scroll-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

@keyframes marquee-scroll-rtl-reverse {
  0% {
    transform: translateX(50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Ensure no gaps visually using a mask */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.stat-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-color);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.trips-hero {
  position: relative;
  min-height: 550px;
  background: url('https://antigravity-artifacts.s3.amazonaws.com/kuwgo_future_train_station_1770410845401.png') no-repeat center center;
  background-size: cover;
  border-radius: 40px;
  padding: 60px 40px;
  color: white;
  margin-bottom: 60px;
  /* Better spacing for features */
  z-index: 1;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  /* Unified blur across background */
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  /* Single dark translucent container */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  padding: 80px 50px;
  max-width: 950px;
  width: 95%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Removed redundant .hero-glass-card */

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1;
}

.premium-title {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.identity-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(0, 94, 184, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 100px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.features-section {
  position: relative;
  z-index: 20;
  /* Ensure this is on top of hero for hover */
  margin-top: 0;
  padding-top: 40px;
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ====================== Rotating Decorative Circles ====================== */
.hero-circle {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.15);
  /* Thicker line as requested */
  pointer-events: none;
  z-index: 1;
  animation: hero-rotate 30s linear infinite;
}

.circle-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  left: -250px;
  border-color: rgba(0, 136, 255, 0.2);
}

.circle-2 {
  width: 550px;
  height: 550px;
  bottom: -200px;
  right: -200px;
  border-color: rgba(0, 136, 255, 0.2);
  animation-duration: 45s;
  animation-direction: reverse;
}

.circle-3 {
  width: 500px;
  height: 500px;
  top: -250px;
  /* Raised significantly to avoid intersection */
  /* Pushed further into the corner */
  right: -200px;
  /* Pushed further into the corner */
  border-color: rgba(0, 136, 255, 0.2);
  animation-duration: 35s;
}

.circle-4 {
  width: 400px;
  height: 400px;
  top: 500px;
  left: 200px;
  border-color: rgba(0, 136, 255, 0.2);
}
@keyframes hero-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-glow-follow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.trips-hero:hover .hero-glow-follow {
  opacity: 1;
}