/* Shared UI components (ported scoped styles). Loaded after the theme. */

/* ---- AdminSkeletonLoader ---- */
@keyframes skeleton-shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}
.skeleton-shimmer {
  --skeleton-base: #f6f7f8;
  --skeleton-shine: #edeef1;
  display: inline-block;
  position: relative;
  background: var(--skeleton-base) linear-gradient(to right, var(--skeleton-base) 0%, var(--skeleton-shine) 20%, var(--skeleton-base) 40%, var(--skeleton-base) 100%) no-repeat;
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite forwards;
}
[data-bs-theme='dark'] .skeleton-shimmer {
  --skeleton-base: #1f2937;
  --skeleton-shine: #2b3546;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer { animation: none; }
}
.skeleton-bar { height: 12px; border-radius: 4px; }
.skeleton-circle { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.skeleton-avatar { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; }

/* ---- RouteLocationSearchModal ---- */
@keyframes route-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.route-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  animation: route-modal-fade 0.15s ease-out;
}
.route-modal-list {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.route-modal-item { cursor: pointer; transition: background-color 0.15s ease; }

/* ---- CountryAutocomplete ---- */
.country-autocomplete .form-control { cursor: pointer; }
.country-autocomplete .form-control:focus { cursor: text; }
.country-autocomplete .form-control.is-open {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}
.country-chevron { transition: transform 0.2s ease, color 0.2s ease; pointer-events: none; }
.country-validation-input {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---- Auth pages (1:1 with legacy LoginView.vue / RegisterView.vue) ----
   One form serves both layouts: desktop styles by default, the legacy mobile
   look below 768px. */
.auth-page-root {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fixed full-screen background (one image, or a cross-fading slider). */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0f172a;
}
.auth-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
}
.auth-bg-slider .auth-bg-slide {
  opacity: 0;
  animation: auth-bg-fade var(--auth-slider-duration, 24s) infinite;
  animation-delay: var(--auth-slide-delay, 0s);
}
.auth-bg-slider .auth-bg-slide:first-child { opacity: 1; }
/* Each slide: fade in, hold, fade out — 4 slides share the cycle. */
@keyframes auth-bg-fade {
  0% { opacity: 0; transform: scale(1.06); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-bg-slider .auth-bg-slide { animation: none; }
}
.auth-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.7);
}
.auth-bg-overlay.is-register { background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)); }

.login-page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.h-60px { height: 60px; }
.text-gradient-primary {
  background: linear-gradient(to right, #fff, #a5c9ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tracking-wider { letter-spacing: 0.08em; }

/* Portal tabs: desktop underline tabs / mobile segmented pills */
.auth-portal-tabs {
  background: #f1f4f9;
  display: flex;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}
.auth-portal-tab {
  flex: 1;
  text-align: center;
  padding: 14px 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  transition: 0.3s;
  color: #64748b;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}
.auth-portal-tab.active { background: #fff; color: #066ac9; border-bottom-color: #066ac9; }

/* Password / OTP method toggle */
.auth-method-toggle {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
}
.auth-method-toggle button {
  flex: 1;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #64748b;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.auth-method-toggle button.active { color: #066ac9; border-bottom-color: #066ac9; }
.auth-method-toggle button:disabled { opacity: 0.55; cursor: not-allowed; }

/* Inputs: desktop "bg-light border-0 py-3 px-4" */
.auth-input.form-control,
.auth-input.form-select {
  background-color: var(--bs-tertiary-bg, #f8f9fa);
  border: 0;
}
.auth-input.form-control:not(.auth-input-compact) { padding: 1rem 1.5rem; }
.auth-input-addon { background-color: var(--bs-tertiary-bg, #f8f9fa); border: 0; cursor: pointer; }

.auth-submit { padding-top: 1rem; padding-bottom: 1rem; }

.progress-bar-custom {
  height: 4px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.progress-fill { height: 100%; background: #0d6efd; transition: width 0.4s ease; }
.step-content { animation: auth-step-in 0.4s ease-in-out; }
@keyframes auth-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile hero banner (legacy mobile/auth/*.blade.php) */
.auth-mobile-hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  /* Shown until the video plays, and instead of it on desktop / reduced motion. */
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0284c7 100%);
  border-radius: 0 0 1.5rem 1.5rem;
}
.auth-mobile-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.auth-mobile-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%);
}
.auth-mobile-hero-content {
  position: relative;
  z-index: 2;
}
.extra-small { font-size: 0.75rem; }

/* 6-box OTP entry (verify page) */
.otp-boxes { display: flex; justify-content: center; gap: 0.5rem; }
.otp-box {
  width: 3.1rem;
  height: 3.6rem;
  padding: 0;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: 0.75rem;
  border: 2px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.otp-box:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18); background: var(--bs-body-bg); transform: translateY(-1px); }
.otp-box.is-filled { border-color: rgba(var(--bs-primary-rgb), 0.55); background: var(--bs-body-bg); }
.otp-box.is-invalid { border-color: var(--bs-danger); background-image: none; padding: 0; }
@media (max-width: 400px) {
  .otp-boxes { gap: 0.35rem; }
  .otp-box { width: 2.6rem; height: 3.1rem; font-size: 1.35rem; }
}
.otp-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--bs-success);
  background: rgba(var(--bs-success-rgb), 0.12);
}
.xx-small { font-size: 0.68rem; }

@media (max-width: 767.98px) {
  .auth-page-root { justify-content: space-between; background: #f8fafc; padding-bottom: 1.5rem; }
  [data-bs-theme='dark'] .auth-page-root { background: var(--bs-body-bg); }
  .login-page-wrapper { min-height: 0; display: block; padding: 0 !important; }
  .auth-card {
    border-radius: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    padding: 1rem !important;
  }
  .auth-portal-tabs {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 0;
    margin-bottom: 1rem;
  }
  .auth-portal-tab {
    padding: 8px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 8px;
    border-bottom: 0;
  }
  .auth-portal-tab.active { color: #0d6efd; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
  .auth-method-toggle { margin-bottom: 1.25rem; }
  .auth-method-toggle button { padding: 10px; }
  .auth-input.form-control,
  .auth-input.form-select {
    height: 48px;
    font-size: 0.95rem;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.9rem !important;
  }
  .auth-input.form-control:focus,
  .auth-input.form-select:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  }
  .input-group > .auth-input.form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
  .input-group > .auth-input.form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
  .auth-input-addon { border: 1px solid #e2e8f0; }
  .input-group > .auth-input-addon:last-child { border-left: 0; border-radius: 0 12px 12px 0; }
  .input-group > .auth-input-addon:first-child { border-right: 0; border-radius: 12px 0 0 12px; }
  .auth-submit {
    height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 12px;
    font-size: 0.95rem !important;
    letter-spacing: 0.5px;
    text-transform: none !important;
  }
}

/* ---- Supplier sign-in ---- */
.supplier-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(81, 67, 217, 0.55), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(255, 159, 28, 0.35), transparent 60%),
    linear-gradient(rgba(11, 17, 32, 0.78), rgba(11, 17, 32, 0.86));
}
.auth-slider-dots { display: flex; gap: 6px; }
.auth-slider-dots span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}
.auth-slider-dots span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  animation: auth-dot var(--auth-slider-duration, 24s) infinite;
  animation-delay: var(--auth-slide-delay, 0s);
}
@keyframes auth-dot {
  0% { transform: scaleX(0); }
  25% { transform: scaleX(1); }
  25.01%, 100% { transform: scaleX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-slider-dots { display: none; }
}

/* ---- BookingActivityTimeline ---- */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 17px;
  width: 2px;
  height: 100%;
  background-color: var(--bs-border-color, #e2e8f0);
}
.timeline-item-last::before { display: none; }
.timeline-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
  z-index: 2;
}
.bg-indigo { background-color: #6610f2; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-anim { display: inline-block; animation: spin 1s linear infinite; }

/* ==========================================================================
   Agency KYC — 1:1 with btrips_fresh views/auth/Kyc{Intro,Form,Pending,Approved}View.vue
   ========================================================================== */
.kyc-bg { position: fixed; inset: 0; z-index: 0; }
.kyc-bg img { height: 100vh; width: 100%; object-fit: cover; display: block; }
.kyc-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.93) 0%, rgba(18, 18, 18, 0.88) 50%, rgba(5, 5, 5, 0.95) 100%);
}
.spin-icon { display: inline-block; animation: kyc-spin 1s infinite linear; }
@keyframes kyc-spin { 100% { transform: rotate(360deg); } }
.animate-pulse { animation: kyc-pulse 1.8s infinite; }
@keyframes kyc-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.border-dashed { border-style: dashed !important; }
.cursor-pointer { cursor: pointer; }

/* ---- Intro (KycIntroView) ---- */
.kyc-intro-page { background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url("/assets/images/bg/06.webp") center/cover no-repeat fixed; }
.kyc-intro-page .mobile-kyc-intro { z-index: 2; }
.kyc-intro-page .mobile-kyc-card { border-radius: 20px !important; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); background: rgba(255, 255, 255, 0.98); }
.kyc-intro-page .mobile-stepper { display: flex; justify-content: space-between; position: relative; margin-bottom: 1.5rem; }
.kyc-intro-page .mobile-stepper::before { content: ""; position: absolute; top: 18px; left: 15%; right: 15%; height: 2px; background: #e2e8f0; z-index: 1; }
.kyc-intro-page .stepper-step { position: relative; z-index: 2; text-align: center; flex: 1; }
.kyc-intro-page .stepper-bubble {
  width: 36px; height: 36px; border-radius: 50%; background: #f1f5f9; color: #64748b; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; border: 2px solid #e2e8f0;
}
.kyc-intro-page .stepper-step.completed .stepper-bubble { background: #198754; color: #fff; border-color: #198754; }
.kyc-intro-page .stepper-step.active .stepper-bubble { background: #0d6efd; color: #fff; border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2); }
.btn-mobile-primary { height: 48px; border-radius: 12px !important; font-size: 0.95rem; letter-spacing: 0.5px; }
.kyc-intro-page .login-page-wrapper { min-height: 100vh; display: flex; align-items: center; }
.kyc-intro-page .auth-nav { position: absolute; top: 24px; right: 32px; z-index: 10; }
.kyc-intro-page .btn-logout {
  color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: all 0.2s ease;
}
.kyc-intro-page .btn-logout:hover { color: #fff; background: rgba(255, 255, 255, 0.15); }
.kyc-intro-page .step-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.kyc-intro-page .step-timeline::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, 0.15); }
.kyc-intro-page .step-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; position: relative; }
.kyc-intro-page .step-item:last-child { margin-bottom: 0; }
.kyc-intro-page .step-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; color: rgba(255, 255, 255, 0.6); z-index: 1;
}
.kyc-intro-page .step-item.completed .step-icon { background: #198754; border-color: #198754; color: #fff; }
.kyc-intro-page .step-item.active .step-icon { background: #0d6efd; border-color: #0d6efd; color: #fff; box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3); }
.kyc-intro-page .card-kyc { background: #fff; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); }
.text-gradient-custom { background: linear-gradient(135deg, #ffffff 0%, #a5c9ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kyc-intro-page .illustration-float { animation: kyc-float 5s ease-in-out infinite; }
@keyframes kyc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Form (KycFormView) ---- */
.kyc-form-page { background-color: transparent; }
.kyc-form-page .kyc-shadow-text, .kyc-form-page .kyc-shadow-text * { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
.flatpickr-calendar { z-index: 99999 !important; }

/* ---- Pending (KycPendingView) ---- */
.mobile-kyc-pending {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url("/assets/images/bg/06.webp") center/cover no-repeat fixed;
}
.mobile-kyc-pending .mobile-card { border: none; border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); }
.mobile-kyc-pending .logo-container { background: #fff; border-radius: 12px; padding: 8px 16px; display: inline-block; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.mobile-kyc-pending .mobile-header-banner { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); }
.mobile-kyc-pending .mobile-status-step { position: relative; flex: 1; text-align: center; }
.mobile-kyc-pending .mobile-status-step:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background-color: #e2e8f0; z-index: 1; }
.mobile-kyc-pending .mobile-status-step.completed:not(:last-child)::after { background-color: #198754; }
.mobile-kyc-pending .mobile-status-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 4px; position: relative; z-index: 2; font-size: 0.85rem; font-weight: bold; }
.btn-mobile-outline { height: 44px; border-radius: 12px; font-size: 0.85rem; }
.kyc-pending-page { background-color: #0a0a0a; }
.kyc-pending-page .pending-card { max-width: 800px; border-radius: 1.25rem; }
.kyc-pending-page .status-step { position: relative; flex: 1; text-align: center; }
.kyc-pending-page .status-step:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 3px; background-color: #e9ecef; z-index: 1; }
.kyc-pending-page .status-step.completed:not(:last-child)::after { background-color: #198754; }
.kyc-pending-page .status-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; position: relative; z-index: 2; font-size: 0.9rem; font-weight: bold; }

/* ---- Approved (KycApprovedView) ---- */
.kyc-approved-mobile-banner { background: linear-gradient(135deg, #111111 0%, #09140f 100%); border-radius: 0 0 24px 24px; }
.kyc-approved-mobile-card { border: none; border-radius: 20px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); background: #fff; }
.celebrate-icon-mobile { font-size: 80px; color: #198754; display: inline-block; line-height: 1; animation: kyc-success-pop 1.8s ease-in-out infinite; }
.btn-mobile-success { height: 52px; border-radius: 12px; font-size: 0.95rem; letter-spacing: 0.5px; background: linear-gradient(135deg, #198754, #146c43); border: none; }
.agency-badge-mobile { background: rgba(255, 255, 255, 0.2); color: #fff; font-weight: 600; font-size: 0.75rem; backdrop-filter: blur(4px); }
.kyc-approved-page { background-color: #0a0a0a; }
@keyframes kyc-success-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.kyc-approved-page .kyc-header { display: flex; align-items: center; justify-content: space-between; padding: 30px 50px; position: relative; z-index: 10; }
.kyc-approved-page .success-card {
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); animation: kyc-float 5s ease-in-out infinite; overflow: hidden;
}
.kyc-approved-page .celebrate-icon { font-size: 100px; color: #2ecc71; display: inline-block; line-height: 1; animation: kyc-success-pop 2s ease-in-out infinite; }
.btn-gradient { background: linear-gradient(135deg, #2ecc71, #27ae60); border: none; color: #fff; font-weight: 700; letter-spacing: 0.5px; transition: all 0.3s ease; }
.btn-gradient:hover { transform: scale(1.02); box-shadow: 0 12px 24px rgba(46, 204, 113, 0.4); color: #fff; }
.kyc-approved-page .agency-badge { background: rgba(255, 193, 7, 0.18); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.35); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .animate-pulse, .spin-icon, .celebrate-icon, .celebrate-icon-mobile, .kyc-approved-page .success-card, .kyc-intro-page .illustration-float { animation: none; }
}

/* KYC form: dropdowns match the large text inputs exactly. */
.kyc-form-page .form-control-lg,
.kyc-form-page .form-select-lg { min-height: 3.2rem; }

/* Return ticket traveller grid: small dropdowns match the small text and date inputs exactly. */
.dt-pax-grid .form-select-sm { padding-top: 0.4rem; padding-bottom: 0.4rem; font-size: 0.8125rem; line-height: 1.5; }

/* My Tasks */
.task-hero { background: linear-gradient(135deg, var(--bs-primary), #7c6cf0); }
.task-card { transition: box-shadow .15s ease, transform .15s ease; }
.task-card:hover { box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .08); }
.task-card-done { background: var(--bs-light) !important; }
.task-actions { opacity: .55; transition: opacity .15s ease; }
.task-card:hover .task-actions, .task-actions:focus-within { opacity: 1; }
.task-tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bs-border-color); background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: all .15s ease; }
.task-tick:hover:not(:disabled) { border-color: var(--bs-success); color: var(--bs-success); }
.task-tick.is-done { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.task-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }

/* ---- Copyright notice on sign-in / sign-up pages (AuthLegalFooter) ----
   Desktop: one row across the bottom of the photo, copyright on the left and place on the right.
   Phones: two centred lines under the links, no bar. */
.auth-legal-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: transparent !important;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.auth-legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 11px;
  padding-bottom: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 767.98px) {
  .auth-legal-footer {
    position: static;
    margin-top: 1.25rem;
    background: transparent !important;
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
  }
  .auth-legal-row { flex-direction: column; gap: 0; padding: 0 1rem; border-top: 0; text-align: center; }
}
@media (max-width: 767.98px) {
  /* Phone pages with a dark background (KYC intro / pending). */
  .auth-legal-footer.on-dark { color: rgba(255, 255, 255, 0.55); }
}

/* Supplier sign-in: white text over the photo slider on desktop; on phones the app-style hero sits on a light page. */
@media (min-width: 768px) {
  .supplier-auth-root { color: #fff; }
  .supplier-auth-foot, .supplier-auth-foot a { color: rgba(255, 255, 255, .5) !important; }
}
@media (max-width: 767.98px) {
  .supplier-auth-root { background: var(--bs-tertiary-bg, #f4f6fb); color: var(--bs-body-color); }
  .supplier-auth-root .auth-mobile-hero { margin-bottom: 0 !important; padding-bottom: 56px !important; }
  .supplier-auth-root main > .row { --bs-gutter-y: 0; --bs-gutter-x: 0; margin-top: -40px; position: relative; z-index: 2; }
  .supplier-auth-card { padding: 22px !important; }
  .supplier-auth-foot { justify-content: center !important; text-align: center; color: var(--bs-secondary-color); }
  .supplier-auth-foot a { color: var(--bs-secondary-color) !important; }
}

/* ---- Error pages (404 / 500): animated travel scene (components/ui/ErrorScene.tsx) ---------------- */
.err-scene { --err-sky1: #eef2ff; --err-sky2: #f8fafc; --err-cloud: #ffffff; --err-cloud-edge: rgba(79, 70, 229, .08); --err-code: rgba(79, 70, 229, .10); --err-route: rgba(79, 70, 229, .35); --err-plane: #4f46e5; --err-title: #0f172a; --err-text: #475569;
  min-height: calc(100vh - 140px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 48px; text-align: center; }
[data-bs-theme="dark"] .err-scene { --err-sky1: #1e1b4b; --err-sky2: #0f172a; --err-cloud: #334155; --err-cloud-edge: rgba(255, 255, 255, .05); --err-code: rgba(165, 180, 252, .12); --err-route: rgba(165, 180, 252, .4); --err-plane: #a5b4fc; --err-title: #f1f5f9; --err-text: #94a3b8; }
.err-sky { position: relative; width: min(560px, 100%); height: 260px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--err-sky1), var(--err-sky2)); box-shadow: inset 0 0 0 1px var(--err-cloud-edge); margin-bottom: 28px; }
.err-code { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(96px, 26vw, 168px); letter-spacing: -.04em; color: var(--err-code); line-height: 1; user-select: none; }
.err-cloud { position: absolute; color: var(--err-cloud); filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .06)); animation: err-drift linear infinite; }
.err-cloud.c1 { top: 22px; font-size: 54px; animation-duration: 22s; animation-delay: -4s; }
.err-cloud.c2 { top: 92px; font-size: 38px; animation-duration: 30s; animation-delay: -18s; opacity: .85; }
.err-cloud.c3 { top: 168px; font-size: 64px; animation-duration: 26s; animation-delay: -11s; }
.err-cloud.c4 { top: 58px; font-size: 30px; animation-duration: 36s; animation-delay: -27s; opacity: .7; }
@keyframes err-drift { from { transform: translateX(600px); } to { transform: translateX(-120px); } }
.err-route { position: absolute; left: 4%; right: 4%; top: 60px; width: 92%; height: 140px; }
.err-route path { fill: none; stroke: var(--err-route); stroke-width: 2.5; stroke-dasharray: 7 9; stroke-linecap: round; animation: err-dash 1.6s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes err-dash { to { stroke-dashoffset: -32; } }
.err-plane { position: absolute; left: 50%; top: 50%; font-size: 46px; color: var(--err-plane); filter: drop-shadow(0 10px 14px rgba(79, 70, 229, .25)); }
.err-lost .err-plane { animation: err-lost 7s ease-in-out infinite; }
/* Off course: loops around the code, banks and comes back. */
@keyframes err-lost {
  0% { transform: translate(-180px, 40px) rotate(20deg); }
  25% { transform: translate(-40px, -50px) rotate(-10deg); }
  50% { transform: translate(120px, -10px) rotate(80deg); }
  75% { transform: translate(40px, 60px) rotate(200deg); }
  100% { transform: translate(-180px, 40px) rotate(380deg); }
}
.err-turbulence .err-plane { transform: translate(-50%, -50%) rotate(45deg); animation: err-shake 1.4s ease-in-out infinite; }
@keyframes err-shake {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg); }
  15% { transform: translate(calc(-50% - 6px), calc(-50% + 4px)) rotate(38deg); }
  30% { transform: translate(calc(-50% + 5px), calc(-50% - 6px)) rotate(52deg); }
  45% { transform: translate(calc(-50% - 3px), calc(-50% + 7px)) rotate(41deg); }
  60% { transform: translate(calc(-50% + 6px), calc(-50% - 2px)) rotate(49deg); }
  80% { transform: translate(calc(-50% - 2px), calc(-50% - 4px)) rotate(44deg); }
}
.err-turbulence .err-sky { background: linear-gradient(180deg, color-mix(in srgb, var(--err-sky1) 70%, #fde68a), var(--err-sky2)); }
.err-turbulence .err-route path { stroke-dasharray: 3 7; }
.err-body { max-width: 460px; animation: err-rise .5s ease-out both; }
@keyframes err-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.err-title { font-size: clamp(22px, 5vw, 28px); font-weight: 800; color: var(--err-title); margin: 0 0 8px; letter-spacing: -.01em; }
.err-text { color: var(--err-text); margin: 0 0 22px; line-height: 1.55; }
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.err-ref { margin-top: 16px; font-size: 11.5px; color: var(--err-text); opacity: .75; font-family: ui-monospace, monospace; }
@media (max-width: 480px) {
  .err-sky { height: 210px; border-radius: 22px; }
  .err-plane { font-size: 38px; }
  .err-actions .btn { flex: 1 1 0; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .err-cloud, .err-route path, .err-plane, .err-body { animation: none !important; }
  .err-cloud.c1 { left: 8%; } .err-cloud.c2 { left: 70%; } .err-cloud.c3 { left: 55%; } .err-cloud.c4 { left: 30%; }
}
.err-logo { display: inline-flex; margin-bottom: 22px; animation: err-rise .5s ease-out both; }
.err-logo .navbar-brand-item { height: 36px; width: auto; }
/* Inside the admin layout: no full-screen height, a slightly shorter sky. */
.err-scene.err-compact { min-height: auto; padding: 24px 16px 32px; }
.err-compact .err-sky { height: 220px; }

/* Package form: small sub-headings inside a card section (Inclusions, Rules & Visibility). */
.pk-sub { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-emphasis-color); }
.pk-sub i { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); font-size: .9rem; }
.pk-sub-line { margin: .75rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--bs-border-color); }

/* Create Package wizard (PC; phones restyle it in mobile.css): step header with labels and an inline Back / Next row. */
.pk-steps { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--bs-body-bg); box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); }
.pk-steps-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pk-steps-top span { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); }
.pk-steps-top strong { font-size: 1rem; font-weight: 800; color: var(--bs-emphasis-color); }
.pk-steps-bar { height: 5px; margin: .6rem 0 .9rem; border-radius: 99px; background: var(--bs-secondary-bg); overflow: hidden; }
.pk-steps-bar span { display: block; height: 100%; border-radius: inherit; background: var(--bs-primary); transition: width .25s ease; }
.pk-steps-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pk-steps-list button { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; padding: .55rem .25rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); font-size: 1.05rem; transition: background-color .15s, border-color .15s, color .15s; }
.pk-steps-list button:hover { border-color: var(--bs-primary-border-subtle); color: var(--bs-primary); }
.pk-steps-list button.is-done { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.pk-steps-list button.is-on { border-color: var(--bs-primary); background: var(--bs-primary); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .25); }
.pk-step-label { font-size: .72rem; font-weight: 600; line-height: 1.2; text-align: center; }
.pk-wiz-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.pk-wiz-bar .btn { min-height: 44px; padding-inline: 1.25rem; border-radius: .75rem; }
.pk-wiz-bar .btn-primary { flex-grow: 0 !important; }

/* Package page read views: fact tiles and the day-by-day timeline. */
.pk-fact { padding: .7rem .85rem; border: 1px solid var(--bs-border-color-translucent); border-radius: .85rem; background: var(--bs-tertiary-bg); }
.pk-fact-label { font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--bs-secondary-color); }
.pk-fact-value { margin-top: .15rem; font-weight: 700; color: var(--bs-emphasis-color); overflow-wrap: anywhere; }
.pk-timeline { position: relative; }
.pk-tl-item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.25rem; }
.pk-tl-item:last-child { padding-bottom: 0; }
.pk-tl-item::before { content: ''; position: absolute; left: 2.1rem; top: 2rem; bottom: 0; border-left: 2px dashed var(--bs-border-color); }
.pk-tl-item:last-child::before { display: none; }
.pk-tl-day { flex-shrink: 0; display: grid; place-items: center; width: 4.2rem; height: 2rem; border-radius: 99px; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-size: .78rem; font-weight: 800; }
.pk-tl-body { flex: 1; min-width: 0; padding: .1rem 0 0; }

/* Airline ticket copy panel: deadline line, drop zone and the check table (green / amber / red rows). */
.tc-due { padding: .55rem .8rem; border-radius: .75rem; background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.tc-due.is-over { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.tc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 100%; min-height: 140px; padding: 1.25rem; margin: 0; text-align: center; border: 2px dashed var(--bs-primary-border-subtle); border-radius: 1rem; background: var(--bs-primary-bg-subtle); cursor: pointer; transition: border-color .15s, background-color .15s; }
.tc-drop:hover, .tc-drop:focus-visible, .tc-drop.is-drag { border-color: var(--bs-primary); background: color-mix(in srgb, var(--bs-primary-bg-subtle) 70%, var(--bs-primary) 8%); outline: none; }
.tc-drop.is-busy { cursor: progress; }
.tc-table tr.tc-warn > td { background: var(--bs-warning-bg-subtle); }
.tc-table tr.tc-error > td { background: var(--bs-danger-bg-subtle); }

/* Admin → Ticket Copies desk: count cards, clickable rows and the side panel. */
.tcd-card { transition: box-shadow .15s, transform .15s; }
.tcd-card:hover { transform: translateY(-1px); box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important; }
.tcd-card.is-on { outline: 2px solid var(--bs-primary); }
.tcd-table tbody tr { cursor: pointer; }
.tcd-table tbody tr:hover > td { background: var(--bs-tertiary-bg); }
.tcd-drawer { width: min(560px, 100vw) !important; }

/* ---- BrandLoader (components/ui/BrandLoader.tsx): the Airgroups mark loop, 1.6 s ----
   Chevron slides/fades up in (0–25%), arrowhead glides up with a small spring (20–50%), hold, both fade (75–95%). */
.brand-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.5rem 0; text-align: center; }
.brand-loader-fill { width: 100%; min-height: min(60vh, 420px); }
.brand-loader-mark { position: relative; display: block; flex-shrink: 0; }
.brand-loader-mark > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform, opacity; }
.brand-loader-tail { animation: brand-loader-tail 1.6s linear infinite; }
.brand-loader-head { animation: brand-loader-head-move 1.6s linear infinite, brand-loader-head-fade 1.6s linear infinite; }
.brand-loader-label { font-size: .875rem; font-weight: 500; color: var(--bs-secondary-color); }
@keyframes brand-loader-tail {
  0% { opacity: 0; transform: translateY(18%); }
  15% { opacity: 1; transform: translateY(7.2%); }
  25% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes brand-loader-head-move {
  0% { transform: translateY(35%); }
  20% { transform: translateY(35%); animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  50%, 100% { transform: translateY(0); }
}
@keyframes brand-loader-head-fade {
  0%, 20% { opacity: 0; }
  40%, 75% { opacity: 1; }
  95%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-loader-mark > svg { animation: none; opacity: 1; transform: none; will-change: auto; }
}

/* Sponsored group fare "pinned" card: a clear blue border on all sides (wins over Bootstrap's !important border utilities). */
.gf-sponsored.gf-sponsored.gf-sponsored, .gf-page .card.gf-sponsored, .gf-page .border.gf-sponsored { border: 2px solid #0369A1 !important; border-color: #0369A1 !important; position: relative; }
