/* Base Variables and Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Universal TriWallet Signature Brand Logo */
.brand-logo-text, .triwallet-logo {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.brand-logo-text .text-tri,
.triwallet-logo .text-tri,
.brand-logo-text .tri-white,
.triwallet-logo .tri-white {
  color: #FFFFFF !important;
}
.brand-logo-text .text-wallet,
.triwallet-logo .text-wallet,
.brand-logo-text .wallet-gold,
.triwallet-logo .wallet-gold {
  color: #DEB243 !important;
}
body.light-mode .brand-logo-text .text-tri,
body.light-mode .triwallet-logo .text-tri {
  color: #0F172A !important;
}
body.light-mode .brand-logo-text .text-wallet,
body.light-mode .triwallet-logo .text-wallet {
  color: #C29329 !important;
}

:root {
  /* NAVY & GOLD THEME */
  --bg-color: #0A0F1E;
  --bg-surface: rgba(17, 24, 48, 0.7);
  --bg-surface-hover: rgba(25, 34, 66, 0.8);
  
  --primary-color: #DEB243; /* Vibrant Gold */
  --primary-hover: #F2C94C;
  --primary-glow: rgba(222, 178, 67, 0.25);
  
  --success-color: #34c759;
  --warning-color: #ff9f0a;
  --error-color: #ff453a;
  
  --text-primary: #FFFFFF;
  --text-secondary: #8B95A5;
  --text-tertiary: #515154;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(222, 178, 67, 0.3);
  
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-hover: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --select-bg: rgba(0, 0, 0, 0.8);
  --icon-filter: invert(1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-mode {
  /* Light Mode (Navy & Gold kept, but inverted backgrounds) */
  --bg-color: #f5f5f7;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-surface-hover: rgba(255, 255, 255, 0.95);
  
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #a1a1a6;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-gold: rgba(222, 178, 67, 0.4);
  
  --glass-bg: rgba(0, 0, 0, 0.05);
  --glass-bg-hover: rgba(0, 0, 0, 0.1);
  --glass-border: rgba(0, 0, 0, 0.15);
  --select-bg: rgba(255, 255, 255, 0.9);
  --icon-filter: none;
}

body.theme-girly {
  /* Girly Luxury Theme (Rose Gold & Cream) */
  --bg-color: #fdfbf7;
  --bg-surface: rgba(255, 240, 245, 0.75);
  --bg-surface-hover: rgba(255, 240, 245, 0.95);
  
  --primary-color: #d47a8a; /* Rose Gold / Pink */
  --primary-hover: #b85e6d;
  --primary-glow: rgba(212, 122, 138, 0.25);
  
  --success-color: #d47a8a; /* Pink for checkmarks */
  
  --text-primary: #4a3b3d;
  --text-secondary: #8a7a7c;
  --text-tertiary: #b0a0a2;
  
  --border-color: rgba(212, 122, 138, 0.15);
  --border-gold: rgba(212, 122, 138, 0.4);
  
  --glass-bg: rgba(212, 122, 138, 0.05);
  --glass-bg-hover: rgba(212, 122, 138, 0.1);
  --glass-border: rgba(212, 122, 138, 0.15);
  --select-bg: rgba(255, 240, 245, 0.9);
  --icon-filter: sepia(1) hue-rotate(300deg) saturate(3);
}

body.theme-transitioning, body.theme-transitioning * {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  letter-spacing: -0.01em;
  transition: background-color 0.5s ease;
  overflow-x: hidden;
  position: relative;
}

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-color);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 50;
  overflow-y: auto;
}

.brand {
  padding: 0 1.5rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-item {
  margin-bottom: 0.2rem;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 450;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  border-right: 3px solid transparent;
}
.nav-link i {
  width: 22px;
  font-size: 1.15rem;
  margin-right: 0.95rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.nav-link:hover i {
  opacity: 1;
  color: var(--text-primary);
}
.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background: rgba(222, 178, 67, 0.05); /* Soft, low-opacity luminous blend with dark navy background */
  border-right: 3px solid var(--primary-color);
}
.nav-link.active i {
  color: var(--primary-color);
  opacity: 1;
}

.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  line-height: 1;
}


/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem 3rem;
}
iframe.main-content {
  padding: 0 !important;
  display: block !important;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Ambient Liquid Background */
.ambient-background {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(134, 134, 139, 0.05) 0%, transparent 50%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.blob-1 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0) 70%);
  top: -10%; left: -10%;
}

.blob-2 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(134,134,139,0.15) 0%, rgba(134,134,139,0) 70%);
  bottom: -20%; right: -10%;
}

body.light-mode .blob-1 {
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0) 70%);
}
body.light-mode .blob-2 {
  background: radial-gradient(circle, rgba(100,150,255,0.1) 0%, rgba(100,150,255,0) 70%);
}

body.theme-girly .blob-1 {
  background: radial-gradient(circle, rgba(212,122,138,0.3) 0%, rgba(212,122,138,0) 70%);
}
body.theme-girly .blob-2 {
  background: radial-gradient(circle, rgba(255,182,193,0.2) 0%, rgba(255,182,193,0) 70%);
}

/* Liquid Glass Panels */
.glass-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 100%), var(--bg-surface);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.light-mode .glass-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%), var(--bg-surface);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

body.theme-girly .glass-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%), var(--bg-surface);
  box-shadow: 
    0 12px 40px rgba(212, 122, 138, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(212, 122, 138, 0.05);
}

/* Page Load Animations */
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

main.container {
  animation: fadeSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Premium Icon Treatment */
i.fa-solid, i.fa-regular, i.fa-brands {
  opacity: 0.85;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: rgba(222, 178, 67, 0.05);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(222, 178, 67, 0.15);
  overflow: hidden;
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary-color);
  z-index: -1;
  opacity: 0.05;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  color: #fff;
  border-color: #fff;
}
.btn-primary:hover::before {
  opacity: 0.15;
}

.btn-primary:disabled {
  border-color: var(--text-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  letter-spacing: 0.02em;
}

.user-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--warning-color);
  box-shadow: 0 0 8px var(--warning-color);
}
.status-dot.active {
  background-color: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

/* Utilities */
.hidden {
  display: none !important;
}
.text-center {
  text-align: center;
}
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* DVIZ Animations */
@keyframes float-breathe {
  0% { transform: translateY(0px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
  50% { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
  100% { transform: translateY(0px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
}

.anti-gravity {
  animation: float-breathe 6s ease-in-out infinite;
}
.anti-gravity-delayed {
  animation: float-breathe 7s ease-in-out 1s infinite;
}

/* ========================================= */
/* MOBILE RESPONSIVE FIXES                   */
/* ========================================= */
@media (max-width: 768px) {
  html { font-size: 95%; }
  body.shell-body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    height: 100dvh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }
  body:not(.shell-body) {
    padding-bottom: 0 !important;
  }
  html.is-embedded body,
  html.is-ios-embedded body {
    padding-bottom: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  input, select, textarea { font-size: 16px !important; }

  .app-container { flex-direction: column; }

  .sidebar {
    position: fixed;
    bottom: 20px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 400px;
    height: 70px;
    flex-direction: row;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 9999;
    background: rgba(11, 16, 30, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .sidebar::-webkit-scrollbar {
    display: none;
  }
  
  .sidebar.shrunk {
    width: 65px;
    height: 50px;
    bottom: 15px;
    padding: 0;
    overflow: hidden;
    opacity: 0.5;
  }
  .sidebar.shrunk:hover, .sidebar.shrunk:active {
    width: 90%;
    height: 70px;
    bottom: 25px;
    padding: 0 10px;
    opacity: 1;
    overflow-x: auto;
  }

  .sidebar .brand {
    display: none !important;
  }
  
  .nav-menu {
      display: flex;
      flex-direction: row;
      width: 100%;
      gap: 0.2rem;
      justify-content: space-between;
    padding: 0;
    margin: 0;
    align-items: center;
    height: 100%;
  }
  
  .nav-item {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-link span { display: none !important; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
  }
  .nav-link .nav-badge {
    display: block !important;
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 8px;
    width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
  }
  .nav-link i {
    font-size: 1.3rem !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }
  .nav-link.active {
    background: var(--primary-color) !important;
    border-right: none !important;
  }
  .nav-link.active i {
    color: #000 !important;
  }

  iframe.main-content {
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  main.main-content,
  .admin-container {
    height: auto !important;
    min-height: 100vh !important;
    padding: 4.5rem 1rem 110px 1rem !important;
  }

  /* iPhone / iOS Notch & Fixed Header Clearance (Generous clearance on iOS; preserves Android/other phones) */
  @supports (-webkit-touch-callout: none) {
    main.main-content,
    .admin-container {
      padding-top: max(4.5rem, calc(env(safe-area-inset-top, 20px) + 40px)) !important;
      padding-bottom: max(110px, calc(env(safe-area-inset-bottom, 20px) + 90px)) !important;
    }
  }

  html.is-ios main.main-content,
  html.is-ios .admin-container,
  html.is-ios-embedded main.main-content,
  html.is-ios-embedded .admin-container {
    padding-top: max(4.5rem, calc(env(safe-area-inset-top, 20px) + 40px)) !important;
    padding-bottom: max(110px, calc(env(safe-area-inset-bottom, 20px) + 90px)) !important;
  }

  /* 2. Reduce internal paddings */
  .hero-section {
    padding: 1.5rem !important;
  }
  
  .modal-content, .upload-modal-content {
    padding: 1.2rem !important;
    margin: 10px !important;
    width: calc(100% - 20px) !important;
  }

  /* 3. Dashboard header flex-wrap */
  .dashboard-header {
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  /* 4. Upcoming Flight Boarding Pass Vertical Layout */
  /* Hide perforated edge and cutouts */
  .upcoming-flight > div[style*="position: absolute"] {
    display: none !important;
  }
  
  /* Target the content container */
  .upcoming-flight > div[style*="display: flex"] {
    flex-direction: column !important;
  }
  
  /* Target the two columns */
  .upcoming-flight > div[style*="display: flex"] > div {
    width: 100% !important;
    padding-left: 0 !important;
    text-align: left !important;
    align-items: flex-start !important;
    margin-bottom: 0.5rem;
  }
  
  .upcoming-flight a.btn-primary {
  background-color: rgba(222, 178, 67, 0.05);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(222, 178, 67, 0.15);
  overflow: hidden;
  position: relative;
}
}

/* Privacy Hidden Text for Sensitive Inputs across all themes */
:root {
  --privacy-mask-color: rgba(255, 255, 255, 0.7);
}
body.light-mode {
  --privacy-mask-color: rgba(29, 29, 31, 0.65);
}
body.theme-girly {
  --privacy-mask-color: rgba(74, 59, 61, 0.7);
}

.privacy-hidden {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 8px var(--privacy-mask-color) !important;
  user-select: none;
  letter-spacing: 2px;
  -webkit-text-security: disc;
}

body.light-mode .privacy-hidden {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 8px rgba(29, 29, 31, 0.65) !important;
  user-select: none;
  letter-spacing: 2px;
  -webkit-text-security: disc;
}

body.theme-girly .privacy-hidden {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 8px rgba(74, 59, 61, 0.7) !important;
  user-select: none;
  letter-spacing: 2px;
  -webkit-text-security: disc;
}

/* For date pickers & Shadow DOM */
.privacy-hidden::-webkit-datetime-edit,
.privacy-hidden::-webkit-datetime-edit-fields-wrapper,
.privacy-hidden::-webkit-datetime-edit-text,
.privacy-hidden::-webkit-datetime-edit-month-field,
.privacy-hidden::-webkit-datetime-edit-day-field,
.privacy-hidden::-webkit-datetime-edit-year-field {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 8px var(--privacy-mask-color) !important;
}

body.light-mode .privacy-hidden::-webkit-datetime-edit,
body.light-mode .privacy-hidden::-webkit-datetime-edit-fields-wrapper,
body.light-mode .privacy-hidden::-webkit-datetime-edit-text,
body.light-mode .privacy-hidden::-webkit-datetime-edit-month-field,
body.light-mode .privacy-hidden::-webkit-datetime-edit-day-field,
body.light-mode .privacy-hidden::-webkit-datetime-edit-year-field {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 8px rgba(29, 29, 31, 0.65) !important;
}

body.theme-girly .privacy-hidden::-webkit-datetime-edit,
body.theme-girly .privacy-hidden::-webkit-datetime-edit-fields-wrapper,
body.theme-girly .privacy-hidden::-webkit-datetime-edit-text,
body.theme-girly .privacy-hidden::-webkit-datetime-edit-month-field,
body.theme-girly .privacy-hidden::-webkit-datetime-edit-day-field,
body.theme-girly .privacy-hidden::-webkit-datetime-edit-year-field {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 8px rgba(74, 59, 61, 0.7) !important;
}

.privacy-hidden::placeholder {
  color: var(--text-secondary) !important;
  text-shadow: none !important;
  -webkit-text-security: none !important;
}

/* Form input color-scheme for native pickers and dropdowns */
.form-input {
  color-scheme: dark;
}
body.light-mode .form-input,
body.theme-girly .form-input {
  color-scheme: light;
}

select.form-input option {
  background: var(--bg-surface, #1e293b);
  color: var(--text-primary, #ffffff);
}
body.light-mode select.form-input option {
  background: #ffffff;
  color: #1d1d1f;
}
body.theme-girly select.form-input option {
  background: #ffffff;
  color: #4a3b3d;
}
.privacy-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.privacy-wrapper input, .privacy-wrapper select {
  padding-right: 75px !important;
}
.privacy-actions {
  position: absolute;
  right: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}
.privacy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.privacy-btn:hover {
  color: var(--primary-color);
}

/* Hide all scrollbars globally */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
* {
  -ms-overflow-style: none !important; /* IE and Edge */
  scrollbar-width: none !important; /* Firefox */
}

/* GLOBAL LOADER - WORLD EARTH & AIRPLANE ORBIT DESIGN */
.global-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0e1526 0%, #060913 80%);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
}
.global-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.luxury-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: loaderCardFloat 4s ease-in-out infinite alternate;
}

@keyframes loaderCardFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.celestial-orbit-stage {
  width: 190px;
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Glow Stage (Flat 2D Stage) */
.orbit-glow-aura,
.earth-aura-glow {
  display: none;
}

/* Flat 2D Circular Flight Trajectory Ring (From User Reference Image) */
.orbit-flight-path {
  position: absolute;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  pointer-events: none;
  box-sizing: border-box;
}

/* Flat 2D 360-Degree Airplane Orbit Carrier */
.orbit-plane-spinner {
  position: absolute;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  pointer-events: none;
  animation: planeOrbitRoundFlat 3.6s linear infinite;
}

@keyframes planeOrbitRoundFlat {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Flat 2D Airplane Position along Circular Trajectory */
.orbit-plane-wrapper {
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flat-airplane-svg,
.orbit-airplane {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  color: #ffffff;
  /* Orient aircraft tangent to the circle path at 12 o'clock flying clockwise */
  transform: rotate(90deg);
  filter: none;
  display: block;
}

.plane-contrail {
  display: none;
}

/* Central Flat 2D World Earth Globe */
.world-earth-globe,
.celestial-globe {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  z-index: 5;
}

/* Hide 3D elements */
.globe-atmosphere-shine,
.globe-grid {
  display: none !important;
}

/* Rotating Continents Track (Smooth Flat 2D rotation) */
.globe-continents-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200%;
  display: flex;
  animation: rotateEarthFlat 8.5s linear infinite;
  z-index: 2;
}

@keyframes rotateEarthFlat {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.continents-svg {
  width: 50%;
  height: 100%;
  fill: #ff6b53; /* Warm Coral matching reference image */
  filter: none;
}

/* Brand & Status Section Under Loader ("WIT A TEXT WOMTH AND ANIM LOUDING") */
.loader-brand-section {
  text-align: center;
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.loader-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0;
}
.loader-brand-name span {
  color: #ff6b53;
}

/* Flat animated loading text with smooth opacity pulse */
.loader-smooth-text {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.85;
  animation: flatTextPulse 2s ease-in-out infinite alternate;
}

@keyframes flatTextPulse {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

.loader-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 50px;
  background: rgba(255, 107, 83, 0.12);
  border: 1px solid rgba(255, 107, 83, 0.3);
  color: #ff6b53;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 3px;
  text-transform: uppercase;
}

.loader-status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b53;
  box-shadow: none;
  animation: flatDotBlink 1.4s ease-in-out infinite;
}

@keyframes flatDotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Flat Clean Progress Track */
.loader-progress-track {
  width: 110px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin: 6px auto 0 auto;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: #ff6b53;
  border-radius: 3px;
  animation: flatProgressGlide 1.6s ease-in-out infinite;
}

@keyframes flatProgressGlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(230%); }
}

/* Light & Girly Theme Adaptations */
body.light-mode .orbit-flight-path {
  border-color: rgba(255, 107, 83, 0.28);
}
body.light-mode .world-earth-globe {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
body.light-mode .flat-airplane-svg,
body.light-mode .orbit-airplane {
  fill: #ff6b53;
  color: #ff6b53;
}
body.light-mode .loader-brand-name {
  color: #1d1d1f;
}
body.light-mode .loader-smooth-text {
  color: #1d1d1f;
}
body.light-mode .loader-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

body.theme-girly .continents-svg {
  fill: #d47a8a;
}
body.theme-girly .loader-brand-name span,
body.theme-girly .loader-badge-status,
body.theme-girly .loader-progress-bar {
  color: #d47a8a;
  background: rgba(212, 122, 138, 0.15);
  border-color: rgba(212, 122, 138, 0.35);
}
body.theme-girly .loader-status-pulse,
body.theme-girly .loader-progress-bar {
  background: #d47a8a;
}

/* Fallback aliases for legacy markup */
.gyro-ring-outer,
.gyro-ring-flight {
  display: none;
}
.globe-meridian,
.globe-meridian-1,
.globe-meridian-2,
.globe-equator,
.globe-hub,
.globe-radar-sweep,
.globe-core-icon {
  display: none;
}
.orbit-plane-carrier {
  position: absolute;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  pointer-events: none;
  animation: planeOrbitRoundFlat 3.6s linear infinite;
}
.supersonic-jet {
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jet-icon {
  font-size: 1.15rem;
  color: #ffffff;
  transform: rotate(90deg);
  filter: none;
}
.jet-strobe,
.jet-thrust {
  display: none;
}
.loader-content,
.loader-earth,
.loader-plane {
  display: none;
}

/* Responsive Quick Actions (100% width on all screens) */
.quick-actions {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
  width: 100% !important;
}
.quick-actions .action-btn {
  width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  .quick-actions-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.75rem !important;
  }
  .quick-actions {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .quick-actions .action-btn {
    padding: 0.75rem 0.25rem !important;
    border-radius: 12px !important;
    gap: 0.35rem !important;
  }
  .action-icon {
    font-size: 1.2rem !important;
  }
  .action-text {
    font-size: 0.72rem !important;
    white-space: normal !important;
    line-height: 1.15 !important;
  }
}
@media (max-width: 400px) {
  .quick-actions {
    gap: 0.35rem !important;
  }
  .quick-actions .action-btn {
    padding: 0.6rem 0.15rem !important;
  }
  .action-icon {
    font-size: 1.05rem !important;
  }
  .action-text {
    font-size: 0.65rem !important;
  }
}

/* IN-PAGE LUXURY 3D CELESTIAL LOADER (Universal for all sub-pages) */
.luxury-inpage-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
  animation: inpageLoaderFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes inpageLoaderFadeIn {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.luxury-inpage-loader .celestial-orbit-stage {
  width: 130px;
  height: 130px;
}

.luxury-inpage-loader .world-earth-globe,
.luxury-inpage-loader .celestial-globe {
  width: 72px;
  height: 72px;
}

.luxury-inpage-loader .orbit-flight-path,
.luxury-inpage-loader .orbit-plane-spinner,
.luxury-inpage-loader .gyro-ring-outer,
.luxury-inpage-loader .orbit-plane-carrier {
  width: 118px;
  height: 118px;
}

.luxury-inpage-loader .orbit-plane-wrapper {
  top: -11px;
}

/* Universal Mobile Floating Nav Clearance for all Pages */
@media (max-width: 768px) {
  .app-container,
  .main-content,
  .expenses-container,
  .reminders-container,
  .flights-container,
  .stays-container,
  .documents-container,
  .dashboard-container,
  .settings-container,
  .customs-container {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 20px)) !important;
    box-sizing: border-box !important;
  }
}
