/* Tayarati design tokens + component styles (supplements Tailwind CDN). */
:root {
  --brand: #2aacd5;
  --brand-600: #1f8fb7;
  --brand-light: #92d9f0;
  --surface: #ffffff;
  --page: #f4f6f8;
  --border: #e2e8f0;
  --muted: #64748b;
}

html { scroll-behavior: smooth; }
body { font-family: 'Vazirmatn', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[dir="ltr"] body { letter-spacing: 0; }

/* Hero background: brand gradient with soft light blobs */
.hero-bg {
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(146, 217, 240, .55), transparent 60%),
    radial-gradient(700px 320px at 95% 0%, rgba(255, 255, 255, .25), transparent 60%),
    linear-gradient(135deg, #2aacd5 0%, #1f8fb7 55%, #17708f 100%);
}

/* Form controls */
.field-label { display: block; font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .35rem; }
.field-input {
  width: 100%; height: 3rem; padding: 0 .9rem; border-radius: .75rem;
  border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font-size: .95rem;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42, 172, 213, .2); }
.field-input:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
select.field-input { appearance: auto; }

.tab-btn {
  padding: .55rem 1rem; border-radius: .6rem; font-size: .9rem; font-weight: 600;
  color: #475569; transition: all .15s;
}
.tab-btn:hover { background: #f1f5f9; }
.tab-btn[aria-selected="true"], .tab-btn.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(42, 172, 213, .35); }

.swap-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid #cbd5e1; background: #fff; color: var(--brand-600); transition: transform .3s, background .15s;
}
.swap-btn:hover { background: #eef9fd; transform: rotate(180deg); }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stepper { display: flex; align-items: center; gap: .6rem; }
.stepper button {
  width: 2.1rem; height: 2.1rem; border-radius: 999px; border: 1px solid var(--brand);
  color: var(--brand-600); font-size: 1.1rem; line-height: 1; background: #fff;
}
.stepper button:hover:not(:disabled) { background: #eef9fd; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; border-color: #cbd5e1; color: #94a3b8; }
.stepper output { min-width: 1.5rem; text-align: center; font-weight: 700; }

/* Flight card */
.flight-card {
  background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.1rem;
  display: grid; gap: .9rem; transition: box-shadow .15s, border-color .15s;
}
.flight-card:hover { box-shadow: 0 8px 24px -10px rgba(15, 74, 95, .25); border-color: var(--brand-light); }
@media (min-width: 900px) {
  .flight-card { grid-template-columns: 170px 1fr 170px; align-items: center; }
}
.airline-logo {
  width: 42px; height: 42px; border-radius: .7rem; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-charter { background: #fef3c7; color: #92400e; }
.badge-system { background: #d6f1fa; color: #0f4a5f; }
.seats-low { color: #b91c1c; font-weight: 700; }

/* Routes & promo */
.route-card {
  background: #fff; border: 1px solid var(--border); border-radius: 1rem; padding: 1.1rem;
  transition: transform .15s, box-shadow .15s; cursor: pointer; text-align: start; width: 100%;
}
.route-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(15, 74, 95, .35); }

.promo { border-radius: 1rem; padding: 1.4rem; color: #fff; min-height: 170px; display: flex; flex-direction: column; gap: .5rem; }
.promo-a { background: linear-gradient(135deg, #2aacd5, #17708f); }
.promo-b { background: linear-gradient(135deg, #0f4a5f, #1f8fb7); }
.promo-c { background: linear-gradient(135deg, #92d9f0, #2aacd5); color: #0f2f3d; }
.promo-icon {
  width: 3rem; height: 3rem; border-radius: .9rem; background: rgba(255, 255, 255, .22);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}

.social {
  width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #1e293b; display: grid;
  place-items: center; font-size: .72rem; font-weight: 700; color: #e2e8f0;
}
.social:hover { background: var(--brand); color: #fff; }
.seal { font-size: .72rem; border: 1px dashed #475569; border-radius: .5rem; padding: .3rem .6rem; color: #cbd5e1; }
.pay-chip { font-size: .72rem; background: #1e293b; border-radius: .4rem; padding: .25rem .5rem; color: #e2e8f0; }

/* Payment option */
.pay-option { display: flex; align-items: center; gap: .6rem; border: 1px solid #cbd5e1; border-radius: .75rem; padding: .75rem; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--brand); background: #eef9fd; box-shadow: 0 0 0 2px rgba(42, 172, 213, .2); }
.pay-option input { accent-color: var(--brand); }

/* Modal & toast */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card {
  background: #fff; width: 100%; border-radius: 1.1rem; padding: 1.4rem; max-height: 92vh; overflow: auto;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4);
}
.close-btn { width: 2rem; height: 2rem; border-radius: 999px; color: #475569; }
.close-btn:hover { background: #f1f5f9; }
.auth-tab { padding: .5rem; border-radius: .5rem; font-weight: 600; color: #475569; font-size: .9rem; }
.auth-tab.active { background: #fff; color: var(--brand-600); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.toast {
  position: fixed; bottom: 1.25rem; inset-inline-start: 50%; transform: translateX(-50%);
  background: #0f172a; color: #fff; padding: .7rem 1.1rem; border-radius: .75rem; z-index: 80;
  font-size: .9rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); max-width: 90vw;
}
[dir="rtl"] .toast { transform: translateX(50%); }

.spinner {
  width: 1rem; height: 1rem; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff;
  border-radius: 999px; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

#results { scroll-margin-top: 5rem; }

/* Staff page buttons */
.filter-btn { padding: .45rem .9rem; border-radius: .6rem; font-size: .85rem; font-weight: 600; color: #475569; background: #fff; border: 1px solid #cbd5e1; }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary { height: 2.1rem; padding: 0 .9rem; border-radius: .5rem; background: var(--brand); color: #fff; font-weight: 600; font-size: .8rem; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { height: 2.1rem; padding: 0 .9rem; border-radius: .5rem; border: 1px solid #cbd5e1; color: #475569; font-weight: 600; font-size: .8rem; }
.btn-ghost:hover { background: #f1f5f9; }
#rows td, #rows th { vertical-align: middle; }

/* Phone header: keep brand, language, login/menu; account chip and logout move to the mobile menu */
@media (max-width: 639px) {
  #userChip, #logoutBtn { display: none !important; }
  #langToggle { padding-inline: .6rem; }
  #loginBtn { padding-inline: .7rem; white-space: nowrap; font-size: .8rem; }
  header [data-i18n="brand_sub"] { display: none; }
  header .max-w-7xl { gap: .5rem; }
}
@media (max-width: 1023px) {
  #filters.open { display: block; }
}
