:root {
  --bg: #070b16;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f2f5fb;
  --muted: #adb9d5;
  --primary: #4da1ff;
  --primary-strong: #1f73ff;
  --secondary: #f49d1a;
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 24px;
  --transition: 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, rgba(77, 161, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #02040a 0%, #081428 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(4, 10, 22, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(77, 161, 255, 0.18);
  color: var(--primary);
}

.brand h1 {
  font-size: 1rem;
  margin: 0;
}

.brand p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-input {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  min-width: 220px;
}

.main-nav a,
.mode-toggle {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color var(--transition);
}

.main-nav a:hover,
.mode-toggle:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(77, 161, 255, 0.18), transparent 24%),
    linear-gradient(140deg, rgba(255, 156, 55, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(10, 43, 95, 0.9), rgba(20, 40, 72, 0.75));
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-copy h2 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin: 0 0 1rem;
}

.hero-copy p {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2f88ff);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-link {
  color: var(--primary);
  background: transparent;
  padding: 0;
}

.hero-stats-card {
  backdrop-filter: blur(18px);
  background: rgba(6, 14, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
}

.stat-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head span {
  display: inline-block;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

.about-grid,
.services-grid,
.booking-grid,
.tour-grid,
.destination-grid,
.deals-grid,
.blog-grid,
.dashboard-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-card,
.service-card,
.booking-card,
.tour-card,
.deal-card,
.blog-card,
.destination-card,
.dashboard-card,
.contact-info,
.receipt-card,
.admin-login,
.admin-console,
.jet-copy,
.form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}

body.dark-mode {
  --bg: #05070f;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #edf2ff;
  --muted: #a3b4d5;
  --primary: #71b5ff;
  --primary-strong: #3c97ff;
  --secondary: #ffc16c;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --border: rgba(255, 255, 255, 0.14);
}

body.dark-mode .site-header {
  background: rgba(3, 7, 16, 0.95);
}

body.dark-mode .form-card,
body.dark-mode .service-card,
body.dark-mode .tour-card,
body.dark-mode .deal-card,
body.dark-mode .blog-card,
body.dark-mode .destination-card,
body.dark-mode .dashboard-card,
body.dark-mode .contact-info,
body.dark-mode .receipt-card,
body.dark-mode .admin-login,
body.dark-mode .admin-console,
body.dark-mode .jet-copy {
  background: rgba(255, 255, 255, 0.04);
}

.about-card h3,
.service-card h3,
.booking-card h3,
.tour-card h3,
.deal-card h3,
.blog-card h3,
.destination-card h3,
.dashboard-card h3,
.contact-info h3,
.jet-copy h3 {
  margin-top: 0;
}

.about-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.about-card li {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card i {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.booking-grid,
.tour-grid,
.deals-grid,
.blog-grid,
.destination-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.booking-card,
.tour-card,
.deal-card,
.blog-card,
.destination-card,
.receipt-card,
.jet-grid,
.payment-grid,
.admin-panel {
  position: relative;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.55rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-row label {
  font-weight: 600;
  color: var(--muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.form-row textarea {
  resize: vertical;
}

.tour-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tour-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tour-image.dubai { background-image: linear-gradient(180deg, #1e3a62, #3e7fff); }
.tour-image.paris { background-image: linear-gradient(180deg, #4d3b7a, #8f5fd3); }
.tour-image.london { background-image: linear-gradient(180deg, #1f3b4d, #5195de); }
.tour-image.turkey { background-image: linear-gradient(180deg, #3f3053, #8b4cc2); }
.tour-image.south-africa { background-image: linear-gradient(180deg, #2d4a3d, #4f9f85); }
.tour-image.maldives { background-image: linear-gradient(180deg, #1f5f74, #6cd1df); }

.tour-copy {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.tour-book {
  width: fit-content;
}

.jet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.jet-copy ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.jet-copy li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.payment-grid {
  grid-template-columns: 1fr 0.85fr;
}

.receipt-card {
  min-height: 300px;
}

.history-list {
  display: grid;
  gap: 0.9rem;
  max-height: 420px;
  overflow-y: auto;
}

.history-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item span {
  display: block;
  color: var(--muted);
}

.deals-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.deal-card {
  padding: 1.8rem;
}

.deal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 157, 26, 0.16);
  color: var(--secondary);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.deal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-card {
  min-height: 220px;
  display: grid;
  gap: 1.3rem;
}

.destination-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.destination-card {
  overflow: hidden;
}

.destination-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  background-repeat: no-repeat;
}

.destination-image.dubai { background-image: linear-gradient(180deg, #0a2a5f, #3f7cff); }
.destination-image.london { background-image: linear-gradient(180deg, #122d43, #4a88c9); }
.destination-image.paris { background-image: linear-gradient(180deg, #533364, #b17cd7); }
.destination-image.turkey { background-image: linear-gradient(180deg, #324a5a, #6795bf); }
.destination-image.maldives { background-image: linear-gradient(180deg, #1a5367, #68d6e2); }
.destination-image.south-africa { background-image: linear-gradient(180deg, #234f3e, #62bb8f); }
.destination-image.singapore { background-image: linear-gradient(180deg, #292d5d, #6b89ff); }
.destination-image.canada { background-image: linear-gradient(180deg, #4a1d2b, #d43d6d); }

.destination-card h3,
.destination-card p {
  margin: 1rem 0 0;
}

.testimonial-slider {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.testimonial-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 28px;
}

.testimonial-item.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 1.5rem;
}

.testimonial-item h4 {
  margin: 0 0 0.5rem;
}

.testimonial-item span {
  color: var(--secondary);
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: none;
  color: var(--text);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 160px;
  opacity: 1;
  padding: 0 1.5rem 1rem;
}

.contact-grid {
  grid-template-columns: 1fr 0.9fr;
  gap: 1.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dashboard-card {
  text-align: center;
}

.dashboard-card p {
  font-size: 2.35rem;
  margin: 1rem 0 0;
}

.dashboard-chart {
  margin-top: 2rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bars {
  display: grid;
  gap: 1rem;
}

.chart-bars div {
  display: grid;
  gap: 0.45rem;
}

.chart-bars span {
  color: var(--muted);
}

.bar {
  width: 100%;
  min-height: 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(77, 161, 255, 0.9), rgba(79, 140, 255, 0.45));
}

.admin-panel {
  display: grid;
  gap: 1.5rem;
}

.admin-login {
  display: grid;
  gap: 1rem;
  max-width: 360px;
  margin: 0 auto;
}

.admin-console {
  display: grid;
  gap: 1rem;
}

.admin-console.hidden,
.modal.hidden,
.toast.hidden,
.back-to-top.hidden,
.loading-screen.hidden {
  display: none;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-actions input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text);
  padding: 0.95rem 1rem;
}

#adminTables {
  display: grid;
  gap: 1.5rem;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.admin-table th,
.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
}

.admin-table button {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--text);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 30;
}

.site-footer {
  padding: 1.8rem 0;
  background: rgba(4, 10, 22, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-links a {
  color: var(--muted);
  font-size: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-content {
  width: min(720px, 100%);
  background: rgba(10, 18, 36, 0.98);
  border-radius: 28px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  min-width: 260px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(17, 30, 64, 0.98);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 50;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .jet-grid,
  .payment-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .about-grid,
  .services-grid,
  .booking-grid,
  .tour-grid,
  .deals-grid,
  .blog-grid,
  .destination-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem 0;
    display: none;
  }

  .main-nav.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .hero-copy h2 {
    font-size: 2.65rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
