/* ============================================================
   TravelTrip World — Official Smart Luxury Theme
   Matching Traveler Signature Palette & Mohammad Akram Brand Guidelines
   Palette: Warm Luxury Ivory (#F4F0E8), Deep Royal Navy (#172A68),
   Pure White Card Canvas (#FFFFFF), Gold Emblem Accent (#E59819)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --bg-main: #F4F0E8;
  --bg-section: #EFE9DE;
  --bg-card: #FFFFFF;
  --bg-elevated: #F9F7F2;
  --bg-hero: linear-gradient(135deg, #132457 0%, #1A3694 65%, #183B7E 100%);
  --text-main: #111827;
  --text-card: #1E293B;
  --text-muted: #5A6275;
  --text-muted-light: #7E8799;
  
  --primary: #1A3694;
  --primary-hover: #122568;
  --primary-light: #EEF2FF;
  --primary-dark: #0F1D4A;
  
  --accent-gold: #E59819;
  --accent-gold-hover: #C88210;
  
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
  
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  
  --border: #E2DDD2;
  --border-light: #ECE7DD;
  --border-dark: rgba(0, 0, 0, 0.08);
  
  --shadow-card: 0 4px 16px rgba(23, 42, 104, 0.05);
  --shadow-hover: 0 12px 28px rgba(23, 42, 104, 0.10);
  --shadow-btn: 0 4px 14px rgba(26, 54, 148, 0.30);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Central Watermark Ambient across entire dashboard & site */
.site-watermark-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 580px;
  background-image: url('/images/logo-transparent.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header.top {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

header .shell.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-dark);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #172A68;
  letter-spacing: -0.5px;
}

.brand-title .gold-accent {
  color: var(--accent-gold);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

nav.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

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

nav.nav a.active {
  color: #FFFFFF;
  background: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all 0.24s ease;
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 54, 148, 0.40);
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--text-main);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--bg-elevated);
  border-color: #CFC8B9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.button-outline-light {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
}

.button-white {
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.button-white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.button-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.button-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.button-whatsapp:hover {
  background: #1eb856;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ============================================================
   LIGHT SHADE WATERMARK EFFECT (DASHBOARD & CARDS)
   ============================================================ */
.card, .stat-card, .esim-card, .health-card, .watermark-shade {
  background: var(--bg-card);
  color: var(--text-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* The requested subtle light shade TravelTrip logo on cards */
.card::after, .stat-card::after, .esim-card::after, .health-card::after, .watermark-shade::after {
  content: '';
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 125px;
  height: 125px;
  background-image: url('/images/logo-transparent.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.065; /* Elegant, subtle light shade */
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover::after, .stat-card:hover::after, .esim-card:hover::after, .health-card:hover::after, .watermark-shade:hover::after {
  opacity: 0.12;
  transform: scale(1.08) rotate(-2deg);
}

.card > *, .stat-card > *, .esim-card > *, .health-card > *, .watermark-shade > * {
  position: relative;
  z-index: 1;
}

.card:hover, .stat-card:hover, .esim-card:hover, .health-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #D3CCA9;
}

/* ============================================================
   HERO BANNER (Matches Traveler Screenshot 100%)
   ============================================================ */
.hero-traveler {
  background: var(--bg-hero);
  border-radius: 20px;
  padding: 56px 48px;
  color: #FFFFFF;
  margin: 32px 0 28px 0;
  box-shadow: 0 16px 40px rgba(19, 36, 87, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-traveler::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: -40px;
  width: 380px;
  height: 380px;
  background-image: url('/images/logo-transparent.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.10; /* light shade watermark in hero */
  pointer-events: none;
}

.hero-traveler .eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.hero-traveler h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-traveler p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.90);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-traveler .hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   3-STEP INSTRUCTION CARDS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.compatibility-banner {
  font-size: 0.82rem;
  color: var(--text-muted-light);
  margin-bottom: 36px;
}

.compatibility-banner a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================================
   POPULAR DESTINATIONS GRID (Signature Colors)
   ============================================================ */
.section-heading-dark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dest-card {
  border-radius: var(--radius);
  padding: 24px 18px;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.20);
}

.dest-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.dest-card::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 80px;
  height: 80px;
  background-image: url('/images/logo-transparent.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
}

.dest-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.dest-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 12px 0 4px;
  line-height: 1.2;
}

.dest-meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.dest-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Signature Destination Tones from Screenshot */
.dest-eu { background: #172A68; }
.dest-fr { background: #1E295E; }
.dest-gcc { background: #0E434F; }
.dest-jp { background: #224868; }
.dest-sg { background: #18294B; }
.dest-th { background: #341F17; }

/* ============================================================
   SECURITY & CREDENTIALS BADGE (Mohammad Akram verified)
   ============================================================ */
.security-banner {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 32px 0 48px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.security-banner strong {
  color: #111827;
  font-weight: 700;
}

/* ============================================================
   DASHBOARD / ADMIN / ACCOUNT SPECIFIC STYLING
   ============================================================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 24px 0 32px 0;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-card .stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -1px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.admin-tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Table Styling with Crisp Contrast */
.table-container {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.90rem;
  color: var(--text-card);
}

th {
  background: var(--bg-elevated);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

tr:hover td {
  background: #FAF8F4;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-paid, .badge-delivered, .badge-healthy {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-pending {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.badge-failed {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* Forms */
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-card);
  margin-bottom: 6px;
  margin-top: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-card);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 148, 0.12);
}

/* ============================================================
   FOOTER (Warm Ivory Canvas & Mohammad Akram Details)
   ============================================================ */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-left {
  max-width: 520px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.footer-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Floating WhatsApp Quick Connect */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.40);
  z-index: 999;
  transition: all 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.50);
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-traveler { padding: 36px 24px; }
}

.dest-asia { background: #153E35; }
.dest-asia:hover { background: #1B4D42; }
