:root {
  --bg: #07111f;
  --panel: rgba(10, 21, 37, 0.92);
  --panel-2: #0f1d31;
  --text: #f5f7fb;
  --muted: #91a5bf;
  --accent: #29d3c4;
  --accent-2: #ff7b3d;
  --success: #2ecc71;
  --danger: #ff5f6d;
  --border: rgba(255,255,255,0.1);
  --shadow: 0 22px 60px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(41,211,196,0.16), transparent 28%),
    linear-gradient(135deg, #07111f 0%, #0c1830 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.summary-card a, .list-item a { color: var(--accent); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

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

header {
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  font-size: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
a.brand:hover { opacity: 0.85; }
.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(41,211,196,0.3);
}
.brand-plane {
  display: inline-block;
  transform: rotate(-45deg);
  animation: brandPlaneFloat 3s ease-in-out infinite;
}
a.brand:hover .brand-plane {
  animation-play-state: paused;
  transform: rotate(-10deg) translate(3px, -2px) scale(1.15);
  transition: transform 0.35s ease;
}
@keyframes brandPlaneFloat {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(-3px); }
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 16px 28px rgba(41,211,196,0.2); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 1rem 0;
}
.auth-shell .login-card { width: min(420px, 100%); }

body.auth-page {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.auth-page header,
body.auth-page footer { flex-shrink: 0; }
body.auth-page footer { padding: 0.6rem 0; font-size: 0.82rem; }
body.auth-page .auth-shell {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.success-card {
  width: min(480px, 100%);
  text-align: center;
  padding: 2rem 1.5rem;
}
.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: popIn 0.5s ease;
}
.success-card .summary-card { text-align: left; }
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}
.auth-logo .brand-badge {
  width: 56px;
  height: 56px;
  font-size: 1.7rem;
}
.auth-logo-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.2rem;
}
.auth-tab {
  flex: 1;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}
.content-section {
  padding: 1rem 0 2.5rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-heading h2 { margin: 0; font-size: 1.35rem; }
.section-heading p { color: var(--muted); }

.profile-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.6rem 0.45rem 0.45rem;
  flex-shrink: 0;
}
.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.profile-info { display: grid; line-height: 1.3; }
.profile-info strong { font-size: 0.95rem; }
.profile-info .small { font-size: 0.78rem; }
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.grid { display: grid; gap: 1rem; }
.grid-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.glow-card {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(0,0,0,0.35);
}
.glow-card:hover::after { opacity: 1; }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(41,211,196,0.18), rgba(255,123,61,0.18));
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  transition: transform 0.35s ease;
}
.glow-card:hover .card-icon { transform: rotate(-8deg) scale(1.12); }

.shine-btn { position: relative; overflow: hidden; }
.shine-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.shine-btn:hover::after { left: 120%; }

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  animation: floatShape 8s ease-in-out infinite;
}
.floating-shape.one { width: 220px; height: 220px; background: var(--accent); top: -40px; right: 8%; }
.floating-shape.two { width: 180px; height: 180px; background: var(--accent-2); bottom: -20px; left: 2%; animation-delay: -3s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
#dashboard { position: relative; overflow: hidden; }
#dashboard > *:not(.floating-shape) { position: relative; z-index: 1; }

.card-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; margin-bottom: 0.35rem; }
.card-top h3 { margin: 0; font-size: 1.05rem; }
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.6rem; border-radius: 999px; background: rgba(41,211,196,0.15); color: var(--accent); font-size: 0.82rem; font-weight: 700; }
.meta { color: var(--muted); font-size: 0.94rem; margin-bottom: 0.7rem; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.9rem; }
.price { font-size: 1.1rem; font-weight: 800; }
.small { font-size: 0.9rem; color: var(--muted); }

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(41,211,196,0.1);
  border: 1px solid rgba(41,211,196,0.22);
}
.modal-pickup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.modal-pickup a { color: var(--accent); text-decoration: underline; font-weight: 700; }
.modal-total strong { font-size: 1.15rem; }

.form-grid { display: grid; gap: 0.8rem; }
label { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.95rem; min-width: 0; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font-size: 16px;
}
textarea { min-height: 90px; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2391a5bf' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 14px;
  padding-right: 2rem;
}
select option {
  background-color: var(--panel-2);
  color: var(--text);
}

.list { display: grid; gap: 0.7rem; }
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.list-item:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.08);
}

.list-item strong { display: block; }
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(46,204,113,0.14);
  color: #8af1b1;
}
.status-pill.cancelled { background: rgba(255,95,109,0.14); color: #ffb2b9; }

.notice {
  margin-top: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(41,211,196,0.12);
  color: #b6f7ef;
  border: 1px solid rgba(41,211,196,0.22);
  display: none;
}
.notice.show { display: block; }
.notice.error { background: rgba(255,95,109,0.12); color: #ffced3; border-color: rgba(255,95,109,0.22); }
.hidden { display: none !important; }

footer { padding: 1rem 0 2rem; color: var(--muted); font-size: 0.95rem; }

.table-scroll { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal {
  width: min(420px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.modal-heading {
  margin: 0;
  padding: 0.9rem 1.2rem 0.65rem;
  background: var(--panel);
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.3;
}
.modal .form-grid { padding: 0.8rem 1.2rem 1.2rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1rem; }

.payment-shell { padding: 3rem 0 2rem; }
.payment-card { max-width: 620px; margin: 0 auto; }
.payment-header h1 { margin:0 0 0.35rem; font-size:1.8rem; }
.payment-header p { color:var(--muted); margin-bottom:1rem; }
.summary-box { margin: 1rem 0; }
.summary-card { background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:16px; padding:1rem; }
.payment-form { margin-top:1rem; }

.location-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.location-copy h3 {
  margin: 0 0 0.75rem;
}
.location-copy .small { margin-bottom: 1rem; }

.location-image-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.05);
}

.location-image-card img {
  width: 100%;
  display: block;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.zoom-card:hover img { transform: scale(1.08); }

.location-tag {
  padding: 0.9rem 1rem;
  font-weight: 700;
  background: rgba(0,0,0,0.3);
  color: #fff;
  text-align: center;
  transition: background 0.35s ease;
}
.zoom-card:hover .location-tag { background: rgba(0,0,0,0.55); }

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.route-grid .location-image-card img { height: 180px; }

.ticket-card .card-top h3 { font-size: 1rem; }
.badge-danger { background: rgba(255,95,109,0.15); color: var(--danger); }

.flight-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #003f8a, #0a6ebd);
  border-radius: 20px;
  padding: 1rem 1.4rem;
  margin-bottom: 1.2rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.flight-banner-airline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #003f8a;
  border-radius: 14px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.flight-banner-badge { font-size: 1.4rem; }
.flight-banner-route { text-align: center; flex: 1; min-width: 220px; }
.flight-banner-cities { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em; }
.flight-banner-cities .arrow { margin: 0 0.4rem; }
.flight-banner-times { font-size: 0.95rem; opacity: 0.9; margin-top: 0.2rem; }
.flight-banner-terms {
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.flight-banner.airline-aie {
  background: linear-gradient(135deg, #8a1a1a, #d3401e);
}
.flight-banner.airline-aie .flight-banner-airline { color: #d3401e; }

@media (max-width: 640px) {
  .flight-banner { flex-direction: column; text-align: center; }
  .flight-banner-route { min-width: 0; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.7rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .list-item { flex-direction: column; align-items: flex-start; }
  .location-image-card img { height: 170px; }
  .route-grid .location-image-card img { height: 150px; }
  .profile-chip { max-width: 100%; }
  .profile-info .small {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
  }
  .admin-table { min-width: 560px; }
  .modal { border-radius: 18px; }
  .modal-heading { border-radius: 18px 18px 0 0; }
  .modal .form-grid { padding: 0.8rem 1rem 1rem; }
  .modal-actions { flex-direction: column-reverse; align-items: stretch; }
  .modal-actions .btn { width: 100%; }
}

