/* ========================================
   AceJet Design System
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #6B9FBF;
    --accent-hover: #7FB2CF;
    --accent-light: rgba(107,159,191,0.10);
    --dark: #13151b;
    --text: #e0e0e0;
    --text-secondary: #a2abb4;
    --border: rgba(255,255,255,0.12);
    --bg: #1a1d27;
    --bg-subtle: #21242e;
    --white: #272b36;
    --green: #4CAF7D;
    --green-light: rgba(76,175,125,0.12);
    --red: #E57373;
    --red-light: rgba(229,115,115,0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e0e0e0;
    background: #1a1d27;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

/* --- Layout --- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Nav --- */
.nav {
    background: #1a1d27;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #b0b8c1;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-links .btn {
    color: #fff;
}

.nav-links .btn:hover {
    color: #fff;
}

/* --- Nav Toggle (hamburger) --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-inner.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-inner.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-inner.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Nav Dropdowns --- */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    cursor: pointer;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    margin-bottom: 2px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #21242e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 6px 0;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b0b8c1;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
}

.nav-dropdown-all {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4px;
    padding-top: 10px !important;
    color: #7B8FA1 !important;
    font-size: 0.8rem !important;
}

.nav-dropdown-right {
    left: auto;
    right: 0;
    transform: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
    text-decoration: none;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-outline {
    background: var(--white);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.btn-danger {
    background: var(--red);
}

.btn-danger:hover {
    background: #b9261e;
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-white {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-white:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.form-group .helptext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

textarea {
    height: auto;
    padding: 10px 12px;
}

::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="date"]::-webkit-datetime-edit {
    color: var(--text);
}

input[type="date"]:invalid::-webkit-datetime-edit,
input[type="date"][value=""]::-webkit-datetime-edit {
    color: var(--text-secondary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 143, 161, 0.2);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.card + .card {
    margin-top: 12px;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent);
}

.badge-green {
    background: var(--green-light);
    color: var(--green);
}

.badge-red {
    background: var(--red-light);
    color: var(--red);
}

/* --- Messages --- */
.verification-banner {
    background: #78520a;
    color: #fef3c7;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.verification-banner a {
    color: #fde68a;
    text-decoration: underline;
    white-space: nowrap;
}

.messages {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 24px 0;
}

.message {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.message-success {
    background: var(--green-light);
    color: var(--green);
}

.message-error {
    background: var(--red-light);
    color: var(--red);
}

.message-info {
    background: var(--accent-light);
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background: var(--bg, #12141A);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 48px 0 24px;
    margin-top: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.footer-tagline {
    margin: 0;
    color: var(--text-secondary);
}
.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover {
    color: var(--text-primary);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
}
@media (max-width: 768px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Landing Page
   ======================================== */

/* --- Hero --- */
.landing-hero {
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123,143,161,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123,143,161,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px 64px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

.landing-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

.landing-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.landing-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.landing-stat {
    text-align: center;
}

.landing-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.landing-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* --- Sections --- */
.landing-section {
    padding: 72px 24px;
}

.landing-section-alt {
    background: var(--bg-subtle);
}

.landing-section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.landing-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.landing-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Problem --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.problem-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-light);
    color: var(--red);
    border-radius: 10px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Pricing --- */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    max-width: 340px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    background: var(--white);
    position: relative;
}

.pricing-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 12px 0 4px;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    font-size: 0.9rem;
    padding: 7px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-subtle);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "\2713";
    color: var(--green);
    font-weight: 700;
    margin-right: 10px;
}

/* --- Final CTA --- */
.landing-final-cta {
    padding: 72px 24px;
    background: var(--dark);
    color: #fff;
}

.landing-final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.landing-final-cta p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Search Page
   ======================================== */
.search-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px;
}

.search-header {
    margin-bottom: 24px;
}

.search-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.search-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.search-filters .filter-group {
    flex: 1 1 0;
    min-width: 140px;
    position: relative;
}

.search-filters .filter-group.filter-wide {
    flex: 2 1 0;
}


.search-filters label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-filters input,
.search-filters select {
    width: 100%;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Leg cards */
.leg-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.leg-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border-color: var(--accent);
    text-decoration: none;
    color: inherit;
}

.leg-card + .leg-card {
    margin-top: 12px;
}

/* Top section: date, route, price */
.leg-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 24px;
}

.leg-card-main {
    flex: 1;
    min-width: 0;
}

.leg-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.leg-route {
    display: flex;
    align-items: center;
}

.leg-endpoint {
    min-width: 0;
}

.leg-icao {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-top: 2px;
}

.leg-city {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* CSS-drawn arrow: line with triangle head */
.leg-arrow {
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
}

.leg-arrow span {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--border);
    position: relative;
}

.leg-arrow span::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--border);
}

/* Price */
.leg-price {
    text-align: right;
    flex-shrink: 0;
}

.leg-price-amount {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.leg-price-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.leg-price-cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.15s;
}

.leg-card:hover .leg-price-cta {
    background: var(--accent-hover);
}

/* Bottom details bar */
.leg-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 10px 24px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.leg-detail-chip {
    padding: 0 16px;
}

.leg-detail-chip + .leg-detail-chip {
    border-left: 1px solid var(--border);
}

.leg-detail-chip.badge {
    padding: 3px 10px;
    margin: 0 16px;
    border-left: none;
}

.leg-detail-chip.badge + .leg-detail-chip {
    border-left: none;
}

/* Leg detail — route hero card */
.route-hero-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    background: var(--bg-subtle);
    padding: 32px 32px 32px;
}

.route-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.route-hero-endpoints {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.route-hero-airport {
    min-width: 0;
}

.route-hero-icao {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.route-hero-city {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.route-hero-name {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.route-hero-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
    min-width: 100px;
}

.route-hero-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.route-hero-line {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1;
}

.route-hero-line::before,
.route-hero-line::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--border);
}

.route-hero-line span {
    display: flex;
    align-items: center;
    line-height: 0;
}

.route-hero-distance {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.route-hero-price-block {
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.route-hero-price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.route-hero-price-note {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Leg details strip */
.leg-details-strip {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    margin-bottom: 24px;
}

.leg-details-item {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    border-right: 1px solid var(--border);
}

.leg-details-item:last-child {
    border-right: none;
}

.leg-details-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.leg-details-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

/* Route map */
.route-map-section {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.route-map {
    width: 100%;
    height: 320px;
}

/* Leg info grid (aircraft + operator) */
.leg-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-section {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.detail-section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.detail-row .label {
    color: var(--text-secondary);
}

.detail-row .value {
    font-weight: 600;
}

.contact-cta {
    margin-top: 24px;
    padding: 24px;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-cta h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Alerts
   ======================================== */
.alerts-page {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 24px;
}

.alerts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.alerts-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.alert-card {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-card + .alert-card {
    margin-top: 12px;
}

.alert-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.alert-actions {
    display: flex;
    gap: 8px;
}

/* Alert form */
.form-page {
    max-width: 600px;
    margin: 32px auto;
    padding: 0 24px;
}

.form-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Checkbox list */
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-list label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
}

/* ========================================
   Account / Billing
   ======================================== */
.account-page {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 24px;
}

.account-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.account-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.account-section {
    margin-bottom: 32px;
}

.account-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Email management page */
.email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.12s;
}

.email-row:last-child {
    border-bottom: none;
}

.email-row:hover {
    background: var(--bg-subtle);
}

.email-row--selected {
    background: rgba(123, 143, 161, 0.08);
}

.email-row input[type="radio"] {
    width: auto;
    height: auto;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--accent);
}

.email-address {
    flex: 1;
    font-size: 0.9rem;
}

.email-badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(123, 143, 161, 0.2);
    color: var(--accent);
}

.badge-verified {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.badge-unverified {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.email-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.add-email-form {
    max-width: 400px;
}

.api-key-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s;
}

.api-key-box:hover {
    border-color: var(--accent);
}

.api-key-box code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
    color: #e0e0e0;
}

.regen-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* MCP key warning */
.mcp-key-warning {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Copy button */
.copy-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Code blocks with copy button */
.code-block {
    position: relative;
    margin: 10px 0 16px;
}

.code-block .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* MCP setup guide accordion */
.mcp-setup-guide {
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.mcp-setup-guide summary {
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcp-setup-guide summary::-webkit-details-marker {
    display: none;
}

.mcp-setup-guide summary::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(-45deg);
    transition: transform 0.15s;
    flex-shrink: 0;
}

.mcp-setup-guide[open] summary::before {
    transform: rotate(45deg);
}

.mcp-setup-guide[open] summary {
    border-bottom: 1px solid var(--border);
}

.mcp-setup-guide summary:hover {
    color: var(--accent);
}

.mcp-setup-content {
    padding: 4px 20px 24px;
}

.mcp-setup-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--text);
}

.mcp-setup-content h3:first-child {
    margin-top: 16px;
}

.mcp-setup-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.mcp-setup-content p code,
.mcp-setup-content li code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
}

.mcp-setup-content pre {
    background: var(--dark);
    color: #e0e0e0;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 0;
    white-space: pre;
    line-height: 1.5;
}

.mcp-setup-content pre code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    white-space: pre;
}

.mcp-detail-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 10px 0 16px;
}

.mcp-detail-list .detail-row {
    padding: 10px 14px;
    font-size: 0.875rem;
}

.mcp-detail-list .detail-row + .detail-row {
    border-top: 1px solid var(--border);
}

.mcp-detail-list .detail-row code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
}

.mcp-tools-list {
    margin: 10px 0 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.mcp-tool-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    font-size: 0.875rem;
    align-items: baseline;
}

.mcp-tool-item + .mcp-tool-item {
    border-top: 1px solid var(--border);
}

.mcp-tool-item strong {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.mcp-tool-item span {
    color: var(--text-secondary);
}

/* ========================================
   Auth Pages (allauth overrides)
   ======================================== */
.auth-page {
    max-width: 420px;
    margin: 48px auto;
    padding: 0 24px;
}

.auth-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.auth-page form {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.auth-page .btn {
    width: 100%;
    margin-top: 8px;
}

/* Terms page */
.terms-page {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 24px;
    line-height: 1.7;
}

.terms-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.terms-updated {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.terms-page h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
}

.terms-page p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.terms-page ul {
    margin: 0 0 12px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.terms-page li {
    margin-bottom: 4px;
}

/* Checkbox form group */
.form-group-checkbox {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Signup perks */
.signup-perks {
    margin-bottom: 24px;
}

.signup-perk {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.signup-perk:last-child {
    border-bottom: none;
}

.signup-perk strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.signup-perk span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.auth-page .auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Subscribe Page
   ======================================== */
.subscribe-page {
    max-width: 700px;
    margin: 48px auto;
    padding: 0 24px;
    text-align: center;
}

.subscribe-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscribe-page > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
}

/* ========================================
   HTMX Loading
   ======================================== */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ========================================
   Responsive (single breakpoint: 768px)
   ======================================== */
@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2rem;
    }

    .landing-hero-inner {
        padding: 48px 24px 40px;
    }

    .landing-ctas {
        flex-direction: column;
        align-items: center;
    }

    .landing-stats {
        gap: 24px;
    }

    .landing-stat-value {
        font-size: 1.4rem;
    }

    .landing-section {
        padding: 48px 24px;
    }

    .landing-section-header h2 {
        font-size: 1.5rem;
    }

    .problem-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .search-filters {
        flex-direction: column;
    }

    .search-filters .filter-group {
        min-width: 100%;
    }

    .leg-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .leg-price {
        text-align: left;
    }

    .leg-details {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .leg-detail-chip {
        padding: 0 8px 0 0;
    }

    .leg-detail-chip + .leg-detail-chip {
        border-left: none;
    }

    .leg-city {
        font-size: 1rem;
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .leg-route {
        flex-wrap: wrap;
        gap: 4px;
    }

    .leg-endpoint {
        flex: 1 1 40%;
    }

    .leg-icao {
        font-size: 0.72rem;
    }

    .detail-grid,
    .leg-info-grid {
        grid-template-columns: 1fr;
    }

    .route-hero-main {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .route-hero-endpoints {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .route-hero-airport {
        text-align: center;
    }

    .route-hero-middle {
        padding: 0;
    }

    .route-hero-line span {
        width: 40px;
    }

    .route-hero-name {
        max-width: 100%;
    }

    .route-hero-price-block {
        text-align: center;
        align-items: center;
    }

    .leg-details-strip {
        flex-wrap: wrap;
    }

    .leg-details-item {
        flex: 1 1 45%;
        border-bottom: 1px solid var(--border);
    }

    .route-map {
        height: 240px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 24px 16px;
        gap: 0;
    }

    .nav-inner.nav-open .nav-links {
        display: flex;
    }

    .nav-links a,
    .nav-links .nav-dropdown-toggle {
        display: block;
        padding: 12px 0;
        height: auto;
        font-size: 0.95rem;
        text-align: left;
    }

    .nav-links > a,
    .nav-links > .nav-dropdown {
        border-bottom: 1px solid var(--border);
    }

    .nav-links > a:last-child,
    .nav-links > :last-child {
        border-bottom: none;
    }

    .nav-links .btn {
        margin-top: 12px;
        text-align: center;
        width: 100%;
        padding: 12px 20px;
    }

    .nav-dropdown {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 8px 16px;
    }

    .nav-dropdown-menu a {
        padding: 8px 0;
        font-size: 0.9rem;
        border-bottom: none;
    }

    .alert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contact-methods {
        flex-direction: column;
    }
}

/* ========================================
   Admin Dashboard
   ======================================== */
.dashboard-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.dashboard-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}

.dashboard-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.dashboard-tab:hover {
    color: var(--text);
    text-decoration: none;
}

.dashboard-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

/* Metric grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 4px;
}

.metric-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-subtle);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .text-muted {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 4px;
}

.data-table .error-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table .empty-cell {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px;
}

/* Status dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
}

.status-dot.green {
    background: var(--green);
}

.status-dot.red {
    background: var(--red);
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.filter-bar .filter-group {
    flex: 1;
    min-width: 140px;
}

.filter-bar .filter-actions {
    flex: 0;
    min-width: auto;
}

.filter-bar label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Error blocks */
.error-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    background: var(--white);
}

.error-block summary {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    list-style: none;
}

.error-block summary::-webkit-details-marker {
    display: none;
}

.error-block[open] summary {
    border-bottom: 1px solid var(--border);
}

.error-summary-name {
    font-weight: 600;
    flex: 1;
}

.error-summary-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.error-block-body {
    padding: 16px 20px;
}

/* Resolved error styling */
.error-resolved {
    opacity: 0.55;
}

.error-resolved:hover {
    opacity: 0.85;
}

/* Muted badge (resolved/dismissed) */
.badge-muted {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Error block action buttons */
.error-block-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 12px;
}

/* HTMX request state for buttons */
.btn.htmx-request {
    opacity: 0.5;
    pointer-events: none;
}

.error-pre {
    background: var(--dark);
    color: #e0e0e0;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre;
    margin: 0;
}

@media (max-width: 768px) {
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .filter-group {
        min-width: 100%;
    }
}

/* --- Content Pages --- */
.content-hero {
    background: linear-gradient(135deg, #1a1d27 0%, #282d3a 100%);
}

.content-hero-sub {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
}

.content-prose {
    max-width: 100%;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-prose h2 {
    color: var(--text);
    margin-bottom: 16px;
}

.content-prose p {
    margin-bottom: 16px;
}

/* --- Directory Pages --- */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.directory-card {
    display: block;
    padding: 20px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.directory-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.directory-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e8eaed;
    margin: 0;
}

.directory-card-sub {
    font-size: 0.8rem;
    color: #8a919a;
    margin: 4px 0 0;
}

.directory-card-secondary {
    border-color: rgba(255,255,255,0.04);
}

.directory-card-secondary h3 {
    font-weight: 500;
    color: #b0b8c1;
}

.directory-card-stats {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #7B8FA1;
}

.directory-stat {
    white-space: nowrap;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Hero Search Form --- */
.hero-search {
    margin: 32px auto 0;
    width: 100%;
    max-width: 520px;
}

.hero-search-fields {
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-search-field {
    flex: 1;
}

.hero-search-field input {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 0;
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.hero-search-field input::placeholder {
    color: #999;
}

.hero-search-field input:focus {
    outline: none;
    box-shadow: none;
}

.hero-search .btn {
    white-space: nowrap;
    height: 52px;
    padding: 0 28px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
}

.hero-search .btn:hover {
    background: var(--accent-hover);
}

@media (max-width: 500px) {
    .hero-search-fields {
        flex-direction: column;
    }
    .hero-search .btn {
        width: 100%;
        border-radius: 0;
    }
}

/* Leg card CTA (anon users) */
.leg-card-cta {
    text-align: center;
    flex-shrink: 0;
}

.leg-cta-btn {
    display: block;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background 0.15s;
}

.leg-card:hover .leg-cta-btn {
    background: var(--accent-hover);
}


/* --- Event Filters --- */
.event-filters {
    max-width: 800px;
    margin: 0 auto 32px;
}

.event-search-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 16px 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.event-filter-group {
    flex: 1;
    min-width: 0;
}

.event-filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.event-filter-actions {
    flex-shrink: 0;
}

.event-filter-actions .btn {
    height: 42px;
}

.venue-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.venue-chip {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.15s, color 0.15s;
}

.venue-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.venue-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.venue-chip.active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

@media (max-width: 768px) {
    .event-search-form {
        flex-direction: column;
    }

    .event-filter-group {
        min-width: 100%;
    }
}

/* --- Tracker Preview Embed --- */
.tracker-preview {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
}

.tracker-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.tracker-preview:hover iframe {
    pointer-events: auto;
}

.tracker-preview-overlay {
    position: absolute;
    bottom: 70px;
    right: 12px;
    z-index: 10;
    text-decoration: none;
}

.tracker-preview-expand {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}

.tracker-preview-overlay:hover .tracker-preview-expand {
    background: var(--accent);
}

@media (max-width: 768px) {
    .tracker-preview {
        aspect-ratio: auto;
        height: 80vh;
    }
    .tracker-preview-overlay {
        bottom: 60px;
    }
}

/* --- Content Legs --- */
.content-legs {
    max-width: 100%;
}

/* ========================================
   Aircraft Pages
   ======================================== */

/* Tail number hero with background image */
.tail-hero {
    background-size: cover;
    background-position: center;
    position: relative;
}

.tail-hero-overlay {
    background: linear-gradient(135deg, rgba(18,20,26,0.92) 0%, rgba(18,20,26,0.78) 100%);
    backdrop-filter: blur(2px);
}

.tail-hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    color: #fff;
}

.tail-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.tail-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.tail-hero-sub a {
    text-decoration: none;
}

.tail-hero-operator {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

.tail-hero-operator a {
    text-decoration: none;
}

/* Quick facts bar */
.tail-quick-facts {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.tail-fact {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
}

.tail-fact:last-child {
    border-right: none;
}

.tail-fact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.tail-fact-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* Compact specs grid for inline in detail section */
.specs-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.specs-grid-compact .spec-item {
    padding: 12px 10px;
}

/* Specs section headings */
.specs-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 24px;
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.specs-heading:first-of-type {
    margin-top: 16px;
}

/* Amenity chips */
.amenities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.amenity-yes {
    background: rgba(200, 170, 110, 0.15);
    color: var(--accent);
    border: 1px solid rgba(200, 170, 110, 0.3);
}

.amenity-no {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.specs-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 12px;
    font-style: italic;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    margin: 0 6px;
    color: var(--border);
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* Specs grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.spec-item {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    display: block;
    text-align: center;
    padding: 28px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-decoration: none;
    color: inherit;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Type grid (shared for types and aircraft cards) */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.type-grid .card + .card,
.category-grid .card + .card {
    margin-top: 0;
}

.type-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.type-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    text-decoration: none;
    color: inherit;
}

.type-card-header {
    padding: 20px 20px 16px;
}

.type-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.type-card-manufacturer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.type-card-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.type-card-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-right: 1px solid var(--border);
}

.type-card-spec:last-child {
    border-right: none;
}

.type-card-spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.type-card-spec-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.type-card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* Aircraft card */
.aircraft-card {
    display: block;
    padding: 16px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.aircraft-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-decoration: none;
    color: inherit;
}

.aircraft-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.aircraft-card-tail {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.aircraft-card-details {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* Operator card */
.operator-card {
    display: block;
    padding: 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.operator-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-decoration: none;
    color: inherit;
}

.operator-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.operator-card-details {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.operator-card-base {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Operator fleet type card */
.operator-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}

.operator-type-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-decoration: none;
}

.operator-type-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 32px;
    text-align: center;
}

.operator-type-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* Review card */
.review-card {
    padding: 20px;
    margin-bottom: 12px;
}

.review-card-header {
    margin-bottom: 8px;
}

.review-card-rating {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.review-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.review-card-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.review-card-sub-ratings {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Review form */
.review-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.review-form .form-group {
    margin-bottom: 10px;
}

.review-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.review-ratings-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.review-rating-cell label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .review-row-2 {
        grid-template-columns: 1fr;
    }
    .review-row-3 {
        grid-template-columns: 1fr;
    }
    .review-ratings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.field-error {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Star ratings — gold display */
.stars-gold {
    color: var(--accent);
}

/* Star rating input */
.star-input {
    display: inline-flex;
    gap: 4px;
}

.star-input .star {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--border);
    transition: color 0.1s;
    user-select: none;
}

.star-input .star.active {
    color: var(--accent);
}

.star-input .star.hover {
    color: var(--accent);
    opacity: 0.7;
}

/* Photo upload */
.photo-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.photo-upload-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

.photo-upload-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

/* NTSB card */
.ntsb-card {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.ntsb-card:last-child {
    border-bottom: none;
}

.ntsb-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.ntsb-date {
    font-weight: 600;
    font-size: 0.9rem;
}

.ntsb-card-details {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.ntsb-cause {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.ntsb-link {
    font-size: 0.85rem;
}

/* Safety summary stats row */
.safety-summary {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.safety-stat {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid var(--border);
}

.safety-stat:last-child {
    border-right: none;
}

.safety-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.safety-stat-good {
    color: var(--green);
}

.safety-stat-warn {
    color: var(--red);
}

.safety-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .safety-summary {
        flex-wrap: wrap;
    }
    .safety-stat {
        min-width: 33%;
        border-bottom: 1px solid var(--border);
    }
}

/* Safety detail rows */
.safety-details {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.safety-detail-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.safety-detail-item:last-child {
    border-bottom: none;
}

.safety-detail-label {
    flex-shrink: 0;
    width: 200px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.safety-detail-value {
    color: var(--text);
}

.safety-detail-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .safety-detail-item {
        flex-direction: column;
        gap: 2px;
    }
    .safety-detail-label {
        width: auto;
    }
}

/* Contact gated */
.contact-gated {
    text-align: center;
    padding: 20px;
    background: var(--accent-light);
    border-radius: var(--radius);
}

.contact-gated p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Empty leg funnel section */
.empty-leg-funnel {
    margin-top: 32px;
}

.empty-leg-funnel h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Autocomplete */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.autocomplete-results:not(:empty) {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--bg-subtle);
    text-decoration: none;
}

.autocomplete-item strong {
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    min-width: 44px;
}

.autocomplete-item span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.autocomplete-item-metro {
    background: var(--accent-light);
}

.autocomplete-item-metro strong {
    min-width: auto;
}

/* Hero search position relative for autocomplete */
.hero-search {
    position: relative;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Fleet table inherits data-table styles */
.fleet-table {
    margin-top: 0;
}

@media (max-width: 768px) {
    .tail-hero h1 {
        font-size: 1.6rem;
    }

    .tail-quick-facts {
        flex-wrap: wrap;
    }

    .tail-fact {
        flex: 1 1 33%;
        border-bottom: 1px solid var(--border);
    }

    .tail-fact:nth-child(3) {
        border-right: none;
    }

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

    .category-grid {
        grid-template-columns: 1fr;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Feed Page
   ======================================== */
.feed-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 24px;
}

.feed-header {
    margin-bottom: 24px;
}

.feed-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.feed-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.feed-filters {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    overflow: visible;
}

.feed-filter-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    overflow: visible;
}

.feed-filter-group + .feed-filter-group {
    border-top: 1px solid var(--border);
}

.feed-filter-label {
    min-width: 80px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 7px;
    flex-shrink: 0;
}

.feed-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.feed-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
}

.feed-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--accent);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}

.feed-chip-remove:hover {
    background: rgba(200, 150, 62, 0.2);
}

.feed-add-wrapper {
    position: relative;
    min-width: 160px;
}

.feed-add-wrapper .autocomplete-results {
    min-width: 300px;
    right: auto;
}

.feed-add-input {
    width: 160px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.82rem;
    font-family: inherit;
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s;
}

.feed-add-input:focus {
    outline: none;
    border-color: var(--accent);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(123, 143, 161, 0.2);
}

.feed-add-input::placeholder {
    color: var(--text-secondary);
}

.feed-add-select {
    height: 32px;
    padding: 0 28px 0 10px;
    font-size: 0.82rem;
    font-family: inherit;
    border: 1px dashed var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b949e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.feed-add-select:focus {
    outline: none;
    border-color: var(--accent);
    border-style: solid;
}

/* Feed filter accordion */
.feed-filter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.feed-filter-header-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.feed-filter-summary-chips {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.feed-filters-collapsed .feed-filter-summary-chips {
    display: flex;
}

.feed-chip-mini {
    padding: 3px 10px;
    font-size: 0.78rem;
}

.feed-chip-mini .feed-chip-remove {
    display: none;
}

.feed-filter-arrow {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.feed-filter-chevron {
    margin-left: auto;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.15s;
}

.feed-filters-collapsed .feed-filter-chevron {
    transform: rotate(-45deg);
}

.feed-filter-body {
    margin-top: 8px;
}

.feed-filters-collapsed .feed-filter-body {
    display: none;
}

/* Feed onboarding empty state */
.feed-onboarding {
    text-align: center;
    padding: 64px 24px;
}

.feed-onboarding-icon {
    color: var(--border);
    margin-bottom: 16px;
}

.feed-onboarding h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.feed-onboarding p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feed-filter-group {
        flex-direction: column;
        gap: 6px;
    }

    .feed-filter-label {
        padding-top: 0;
    }

    .feed-add-input {
        width: 100%;
    }

    .feed-add-wrapper {
        width: 100%;
    }
}

/* --- Type Fleet Grid --- */
.type-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.type-fleet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.type-fleet-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
}
.type-fleet-tail {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}
.type-fleet-operator {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

/* --- About Aircraft / Prose Section --- */
.about-aircraft {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.about-aircraft h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.about-aircraft p {
    color: var(--text-secondary);
    line-height: 1.7;
}
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.about-list li {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.about-list li strong {
    color: var(--text);
}

/* --- Ownership Timeline --- */
.ownership-timeline {
    border-left: 2px solid var(--border);
    padding-left: 20px;
}
.ownership-record {
    position: relative;
    padding-bottom: 16px;
}
.ownership-record::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 4px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.ownership-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.ownership-type {
    font-weight: 600;
    margin-top: 2px;
}
.ownership-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* --- Category Bar Chart --- */
.category-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.category-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.category-bar-label {
    width: 120px;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.category-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
    overflow: hidden;
}
.category-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    min-width: 4px;
}
.category-bar-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}

/* --- Market stat bar --- */
.market-stat-bar {
    display: flex;
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.market-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    border-right: 1px solid var(--border);
}
.market-stat:last-child {
    border-right: none;
}
.market-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    text-align: center;
}
.market-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 6px;
    text-align: center;
}
@media (max-width: 600px) {
    .market-stat-bar {
        flex-wrap: wrap;
    }
    .market-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--border);
    }
    .market-stat:nth-child(2) { border-right: none; }
    .market-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* --- Comparison bar --- */
.compare-bar {
    display: flex;
    margin-top: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.compare-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border-right: 1px solid var(--border);
}
.compare-item:last-child {
    border-right: none;
}
.compare-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.compare-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.compare-this {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}
.compare-vs {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.compare-avg {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}
@media (max-width: 600px) {
    .compare-bar {
        flex-wrap: wrap;
    }
    .compare-item {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--border);
    }
    .compare-item:nth-child(2) { border-right: none; }
    .compare-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* --- Leg filters --- */
.leg-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.leg-filter-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
}
.leg-filter-input:focus {
    outline: none;
    border-color: var(--accent);
}
@media (max-width: 600px) {
    .leg-filters { flex-direction: column; }
}

/* --- Route chips / Top routes --- */
.top-routes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.route-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
}

/* --- Operator Review Card --- */
.op-review-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.op-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.op-review-title {
    font-size: 1rem;
    font-weight: 600;
}
.op-review-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.op-review-body {
    line-height: 1.6;
    color: var(--text);
}
.op-review-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Operator Review Form --- */
.op-review-form {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}
.op-review-form h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.star-rating-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.star-rating-group label {
    width: 140px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.star-input {
    display: flex;
    gap: 4px;
}
.star-input button {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--border);
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.15s;
}
.star-input button.active {
    color: var(--accent);
}

/* --- Depreciation Calculator --- */
.dep-hero {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 16px;
    background: var(--dark);
    border-radius: var(--radius-lg);
    color: #fff;
}
.dep-hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.dep-hero-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.dep-hero-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}
.dep-hero-sub strong {
    color: #fff;
}
.dep-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.dep-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.dep-summary-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.dep-summary-value {
    font-size: 1.15rem;
    font-weight: 700;
}
.dep-warning {
    padding: 12px 16px;
    background: var(--accent-light);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.5;
}
.dep-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.dep-table thead th {
    padding: 10px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.dep-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
}
.dep-table .dep-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
    .dep-hero-number {
        font-size: 1.8rem;
    }
    .dep-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dep-table {
        font-size: 0.78rem;
    }
    .dep-table thead th,
    .dep-table tbody td {
        padding: 8px 6px;
    }
}


/* ========================================
   Group Trip Calculator
   ======================================== */

.group-hero {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.group-hero-cheaper {
    background: var(--green-light);
}

.group-hero-breakeven {
    background: var(--accent-light);
}

.group-hero-premium {
    background: var(--bg-subtle);
}

.group-hero-message {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.group-hero-cheaper .group-hero-message {
    color: var(--green);
}

.group-hero-breakeven .group-hero-message {
    color: var(--accent);
}

.group-hero-route {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.group-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.group-summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.group-summary-card-accent {
    background: var(--accent-light);
    border-color: var(--accent);
}

.group-summary-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.group-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.group-summary-card-accent .group-summary-value {
    color: var(--accent);
}

.group-summary-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.group-chart {
    background: var(--bg-subtle);
    border-radius: var(--radius);
    padding: 8px;
}

.group-chart svg text {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
    .group-hero-message {
        font-size: 1.1rem;
    }
    .group-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   Door-to-Door Travel Time
   ======================================== */

.tt-hero {
    text-align: center;
    padding: 32px 24px;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.tt-hero-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.tt-hero-time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 6px;
}

.tt-hero-sub {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.tt-hero-route {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.tt-timelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tt-timeline-col {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.tt-timeline-header {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.tt-timeline-icon {
    margin-right: 6px;
}

.tt-segment {
    margin-bottom: 12px;
}

.tt-segment-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.tt-segment-bar-wrap {
    height: 6px;
    background: var(--bg-subtle);
    border-radius: 3px;
    overflow: hidden;
}

.tt-segment-bar {
    height: 100%;
    border-radius: 3px;
    min-width: 4px;
}

.tt-segment-bar-grey {
    background: #B0B0C0;
}

.tt-segment-bar-blue {
    background: #4A7FBA;
}

.tt-segment-bar-orange {
    background: #E6930A;
}

.tt-segment-bar-gold {
    background: var(--accent);
}

.tt-segment-label {
    font-size: 0.82rem;
    color: var(--text);
}

.tt-segment-time {
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

@media (max-width: 768px) {
    .tt-hero-time {
        font-size: 1.8rem;
    }
    .tt-timelines {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   Private Aviation Navigator
   ======================================== */

.nav-wizard {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 16px;
    min-height: 60vh;
}

.nav-wizard .nav-step {
    max-width: 720px;
    margin: 0 auto;
}

/* Progress bar */
.nav-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 48px;
    position: relative;
}

.nav-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.nav-progress-text {
    position: absolute;
    right: 0;
    top: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Step visibility + transitions */
.nav-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.nav-step.nav-exit {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-step h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.nav-step-hint {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.nav-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: inline-block;
    font-family: inherit;
}

.nav-back:hover {
    color: var(--accent);
}

/* Welcome screen */
.nav-welcome {
    text-align: center;
    padding: 48px 0 32px;
}

.nav-welcome h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.nav-welcome-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.nav-welcome-models {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.nav-welcome-models span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.nav-start-btn {
    font-size: 1.05rem;
    padding: 14px 48px;
}

.nav-welcome-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 12px;
}

/* Option cards */
.nav-options {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.nav-card {
    padding: 20px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
}

.nav-card:hover {
    border-color: var(--accent);
}

.nav-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 1px var(--accent);
}

.nav-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.nav-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Priority ranking */
.nav-priorities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nav-priority-badge {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 24px;
    text-align: center;
}

/* Slider */
.nav-slider-wrap {
    text-align: center;
    margin: 32px 0;
}

.nav-slider {
    width: 100%;
    max-width: 400px;
    accent-color: var(--accent);
}

.nav-slider-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 12px;
    color: var(--accent);
}

/* Route inputs */
.nav-route-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.nav-route-header span:nth-child(1) { flex: 3; min-width: 0; }
.nav-route-header span:nth-child(2) { flex-shrink: 0; width: 1.1rem; }
.nav-route-header span:nth-child(3) { flex: 3; min-width: 0; }
.nav-route-header span:nth-child(4) { flex: 1; min-width: 60px; max-width: 90px; text-align: center; }

.nav-route-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.nav-route-input {
    flex: 3;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.nav-route-input:focus {
    outline: none;
    border-color: var(--accent);
}

.nav-route-arrow {
    color: var(--text-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-route-freq {
    flex: 1;
    min-width: 60px;
    max-width: 90px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
}

.nav-route-freq:focus {
    outline: none;
    border-color: var(--accent);
}

.nav-remove-route {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}

.nav-remove-route:hover {
    color: var(--red);
}

.nav-add-route {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
}

.nav-add-route:hover {
    text-decoration: underline;
}

.nav-route-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.nav-skip-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    font-family: inherit;
}

.nav-skip-btn:hover {
    color: var(--accent);
}

.nav-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Navigation buttons */
.nav-next-btn {
    margin-top: 24px;
}

/* Phase 1: Bot verification */
.nav-verify {
    text-align: center;
    padding: 60px 0;
}

.nav-verify h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.nav-verify p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

#turnstile-box {
    display: flex;
    justify-content: center;
}

/* Phase 2: Animated analysis */
.nav-analysis {
    text-align: center;
    padding: 80px 0 60px;
}

.nav-analysis-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.nav-analysis-status {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    transition: opacity 0.3s ease;
    min-height: 1.6em;
}

.nav-analysis-status.nav-analysis-fade-out {
    opacity: 0;
}

.nav-analysis-bar {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.nav-analysis-bar-fill {
    width: 40%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: nav-analysis-slide 1.5s ease-in-out infinite;
}

@keyframes nav-analysis-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ---- Navigator Results ---- */

.nav-result-hero {
    text-align: center;
    padding: 32px 24px;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.nav-result-hero-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.nav-result-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.nav-result-hero-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.nav-result-hero-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Profile summary */
.nav-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.nav-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.nav-profile-card-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.nav-profile-card-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Comparison table */
.nav-comparison {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.nav-comparison table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.nav-comparison th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.nav-comparison td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.nav-comparison td:nth-child(2) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nav-comparison tr:last-child td {
    border-bottom: none;
}

.nav-comparison tr.nav-row-recommended {
    background: var(--accent-light);
}

.nav-comparison tr.nav-row-eliminated td {
    color: var(--text-secondary);
    opacity: 0.65;
}

.nav-model-name {
    font-weight: 600;
}

/* Grey out score bar for non-viable models */
.nav-row-eliminated .nav-score-fill {
    background: var(--text-secondary);
}

.nav-recommended-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-elimination-reason {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-style: italic;
}

.nav-score-bar {
    width: 60px;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-score-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--accent);
}

.nav-score-text {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.nav-score-cell {
    white-space: nowrap;
    min-width: 100px;
}

/* Tax snapshot */
.nav-tax-snapshot {
    background: var(--green-light);
    border: 1px solid var(--green);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.nav-tax-snapshot-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.nav-tax-snapshot-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

.nav-tax-snapshot-note {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Matching legs */
.nav-legs-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.nav-legs-title {
    font-weight: 700;
    margin-bottom: 12px;
}

.nav-leg-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav-leg-card:last-child {
    border-bottom: none;
}

.nav-leg-route {
    font-weight: 600;
}

.nav-leg-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.nav-leg-price {
    font-weight: 600;
    color: #fff;
}

/* CTA section */
/* Narrative sections (LLM-generated content) */
.nav-narrative {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.nav-narrative-label {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.nav-narrative-body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
}

.nav-cta {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.nav-cta h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.nav-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Cross-links */
.nav-cross-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.nav-cross-link {
    display: block;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s;
}

.nav-cross-link:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.nav-cross-link-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.nav-cross-link-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Restart button */
.nav-restart {
    text-align: center;
    padding: 16px 0;
}

.nav-restart button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.nav-restart button:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-welcome h1 {
        font-size: 1.5rem;
    }
    .nav-step h2 {
        font-size: 1.2rem;
    }
    .nav-priorities {
        grid-template-columns: 1fr;
    }
    .nav-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-result-hero-title {
        font-size: 1.4rem;
    }
    .nav-result-hero-score {
        font-size: 2rem;
    }
    .nav-route-row {
        flex-wrap: wrap;
    }
    .nav-route-input {
        flex: 1 1 40%;
    }
    .nav-route-freq {
        flex: 0 0 60px;
        min-width: 60px;
    }
    .nav-cross-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AceJet Homepage Redesign
   Bloomberg Terminal meets modern SaaS
   ======================================== */

/* --- New CSS Variables --- */
:root {
    --cyan: #6B9FBF;
    --cyan-hover: #7FB2CF;
    --cyan-glow: rgba(107, 159, 191, 0.15);
    --cyan-dim: #89B5CC;
    --aj-black: #13151b;
    --aj-near-black: #1a1d27;
    --aj-dark-bg: #151720;
    --aj-gray-900: #21242e;
    --aj-gray-800: #272b36;
    --aj-gray-700: #353a47;
    --aj-gray-600: #9ca3ab;
    --aj-gray-500: #a2abb4;
    --aj-gray-400: #b0b8c1;
    --aj-gray-300: #BBBBBB;
    --aj-gray-200: #DDDDDD;
    --aj-light-bg: #21242e;
    --aj-white: #FFFFFF;
    --aj-border-dark: rgba(255,255,255,0.12);
    --aj-border-light: rgba(255,255,255,0.15);
}

/* --- Utility --- */
.aj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.aj-center {
    text-align: center;
}

/* --- Buttons --- */
.aj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.aj-btn--cyan {
    background: var(--cyan);
    color: #fff;
}

.aj-btn--cyan:hover {
    background: var(--cyan-hover);
    text-decoration: none;
    color: #fff;
    box-shadow: none;
}

.aj-btn--lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.aj-btn--ghost {
    background: transparent;
    color: var(--aj-white);
    border: 1px solid var(--aj-gray-600);
}

.aj-btn--ghost:hover {
    border-color: var(--aj-gray-400);
    color: var(--aj-white);
    text-decoration: none;
}

/* --- Links --- */
.aj-link {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}

.aj-link:hover {
    color: var(--cyan-hover);
    text-decoration: none;
}

.aj-link--light {
    color: var(--cyan-dim);
}

.aj-link--light:hover {
    color: var(--cyan);
}

/* --- Typography --- */
.aj-h2 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.aj-h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.aj-p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--aj-gray-400);
}

.aj-section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
}

.aj-small-note {
    font-size: 0.8rem;
    margin-top: 16px;
    text-align: center;
}

/* --- Sections --- */
.aj-section {
    padding: 96px 0;
}

.aj-section--dark {
    background: var(--aj-near-black);
    color: var(--aj-white);
}

.aj-section--dark .aj-section-desc {
    color: var(--aj-gray-400);
}

.aj-section--dark .aj-small-note {
    color: var(--aj-gray-600);
}

.aj-section--light {
    background: var(--aj-gray-900);
    color: var(--aj-white);
}

.aj-section--light .aj-section-desc {
    color: var(--aj-gray-400);
}

.aj-section--light .aj-small-note {
    color: var(--aj-gray-600);
}

.aj-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.aj-section-header .aj-section-desc {
    margin: 0 auto;
}

.aj-section-header--left {
    text-align: left;
    max-width: 640px;
}

.aj-section-header--left .aj-section-desc {
    margin: 0;
}

/* ============ HERO ============ */
.aj-hero {
    background: var(--aj-black);
    color: var(--aj-white);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--aj-gray-800);
}

.aj-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(123,143,161,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123,143,161,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.aj-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 32px 72px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.aj-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(123,143,161,0.25);
    border-radius: 100px;
    margin-bottom: 28px;
}

.aj-hero-h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.aj-hero-sub {
    font-size: 1.1rem;
    color: var(--aj-gray-400);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 40px;
}

/* --- Search Box --- */
.aj-search-box {
    max-width: 580px;
    margin: 0 auto;
}

.aj-search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.aj-search-tab {
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--aj-gray-900);
    color: var(--aj-gray-400);
    border: 1px solid var(--aj-gray-700);
    border-bottom: 1px solid var(--aj-gray-700);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: -0.01em;
}

.aj-search-tab:first-child {
    border-radius: 8px 0 0 0;
}

.aj-search-tab:last-child {
    border-radius: 0 8px 0 0;
}

.aj-search-tab:not(:first-child) {
    border-left: none;
}

.aj-search-tab.aj-active {
    background: var(--aj-gray-800);
    color: var(--cyan);
    border-bottom-color: var(--aj-gray-800);
}

.aj-search-tab:hover:not(.aj-active) {
    color: var(--aj-gray-200);
}

.aj-search-form {
    display: flex;
    border: 1px solid var(--aj-gray-700);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: var(--aj-gray-800);
}

.aj-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.aj-search-icon {
    position: absolute;
    left: 16px;
    color: var(--aj-gray-600);
    pointer-events: none;
    flex-shrink: 0;
}

.aj-search-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border: none;
    background: transparent;
    color: var(--aj-white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: none;
}

.aj-search-input-wrap input::placeholder {
    color: var(--aj-gray-600);
}

.aj-search-input-wrap input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.aj-search-btn {
    padding: 0 28px;
    height: 54px;
    background: var(--cyan);
    color: var(--aj-black);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.aj-search-btn:hover {
    background: var(--cyan-hover);
}

/* --- Hero Path Cards --- */
/* --- Hero Search --- */
.aj-hero-search {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid var(--aj-gray-700);
    border-radius: 8px;
    overflow: hidden;
    background: var(--aj-gray-900);
    transition: border-color 0.2s;
}

.aj-hero-search:focus-within {
    border-color: var(--cyan);
}

.aj-hero-search-input,
.aj-hero-search-input[type="text"] {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--aj-white);
    outline: none;
    box-shadow: none;
    margin: 0;
    transition: none;
}

.aj-hero-search-input::placeholder {
    color: var(--aj-gray-500);
}

.aj-hero-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--cyan);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

.aj-hero-search-btn:hover {
    background: var(--cyan-hover);
}

.aj-hero-search-btn svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .aj-hero-search-btn {
        padding: 0 16px;
    }
}

/* --- Hero Stats --- */
.aj-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
}

.aj-hero-stat {
    text-align: center;
}

.aj-stat-val {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--aj-white);
}

.aj-stat-lbl {
    display: block;
    font-size: 0.72rem;
    color: var(--aj-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.aj-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--aj-gray-700);
}

/* ============ FEATURES 3-COL ============ */
.aj-features-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* --- 4-column feature cards --- */
.aj-features-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.aj-feature-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--aj-gray-900);
    border: 1px solid var(--aj-gray-700);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.aj-feature-card:hover {
    border-color: var(--cyan);
    text-decoration: none;
    color: inherit;
}

.aj-feature-card .aj-h3 {
    color: var(--aj-white);
    margin-bottom: 10px;
}

.aj-feature-card .aj-p {
    color: var(--aj-gray-400);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 auto;
    padding-bottom: 16px;
}

.aj-feature-card .aj-link {
    font-size: 0.88rem;
}

.aj-feature-col {
    padding: 32px;
    border: 1px solid var(--aj-gray-700);
    border-radius: 10px;
    transition: border-color 0.2s;
}

.aj-feature-col:hover {
    border-color: var(--cyan);
}

.aj-feature-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aj-near-black);
    color: var(--cyan);
    border-radius: 8px;
    margin-bottom: 20px;
}

.aj-feature-col .aj-h3 {
    color: var(--aj-white);
}

.aj-feature-col .aj-p {
    margin-bottom: 16px;
}

/* ============ COMPARISON TABLE ============ */
.aj-comp-table-wrap {
    position: relative;
    margin: 40px 0 32px;
    border: 1px solid var(--aj-gray-700);
    border-radius: 8px;
    overflow: hidden;
}

.aj-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.aj-comp-table thead th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aj-gray-400);
    background: var(--aj-gray-900);
    border-bottom: 1px solid var(--aj-gray-700);
}

.aj-comp-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--aj-gray-700);
    color: var(--aj-gray-300);
}

.aj-comp-table tbody tr:last-child td {
    border-bottom: none;
}

.aj-comp-table tbody tr:hover {
    background: var(--aj-gray-800);
}

.aj-comp-provider {
    font-weight: 600;
    color: var(--aj-white) !important;
}

.aj-comp-rate {
    font-weight: 700;
    color: var(--aj-white) !important;
    font-variant-numeric: tabular-nums;
}

.aj-comp-link {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
}

.aj-comp-link:hover {
    text-decoration: underline;
    color: var(--cyan);
}

.aj-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.aj-tag--yes {
    background: rgba(123, 143, 161, 0.15);
    color: var(--cyan);
}

.aj-tag--no {
    background: rgba(255,255,255,0.06);
    color: var(--aj-gray-600);
}

.aj-comp-table-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--aj-light-bg));
    pointer-events: none;
}

/* --- Comparison Callouts --- */
.aj-comp-callouts {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

.aj-comp-callout {
    display: flex;
    flex-direction: column;
}

.aj-comp-callout-val {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cyan);
}

.aj-comp-callout-lbl {
    font-size: 0.78rem;
    color: var(--aj-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.aj-comp-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ============ TOOLS GRID ============ */
.aj-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aj-tool-card {
    display: block;
    padding: 28px;
    border: 1px solid var(--aj-gray-700);
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.aj-tool-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan);
    text-decoration: none;
    color: inherit;
}

.aj-tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aj-near-black);
    color: var(--cyan);
    border-radius: 8px;
    margin-bottom: 16px;
}

.aj-tool-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--aj-white);
    letter-spacing: -0.015em;
}

.aj-tool-card p {
    font-size: 0.9rem;
    color: var(--aj-gray-400);
    line-height: 1.5;
    margin: 0;
}

/* ============ STEPS ============ */
.aj-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.aj-step {
    flex: 1;
    max-width: 320px;
    padding: 0 24px;
}

.aj-step-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.aj-step .aj-h3 {
    color: var(--aj-white);
    margin-bottom: 8px;
}

.aj-step-connector {
    width: 1px;
    height: 100px;
    background: var(--aj-gray-700);
    flex-shrink: 0;
    margin-top: 16px;
}

/* ============ LIVE DATA TICKER ============ */
.aj-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 12px;
}

.aj-live-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: aj-pulse 2s infinite;
}

@keyframes aj-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.aj-ticker {
    border: 1px solid var(--aj-gray-700);
    border-radius: 10px;
    overflow: hidden;
}

.aj-ticker-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 80px;
    padding: 12px 24px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aj-gray-400);
    background: var(--aj-gray-800);
    border-bottom: 1px solid var(--aj-gray-700);
}

.aj-ticker-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 80px;
    padding: 16px 24px;
    font-size: 0.9rem;
    align-items: center;
    border-bottom: 1px solid var(--aj-gray-800);
    color: var(--aj-gray-300);
    transition: background 0.15s;
}

.aj-ticker-row:last-child {
    border-bottom: none;
}

.aj-ticker-row:hover {
    background: var(--aj-gray-800);
}

.aj-ticker-route strong {
    color: var(--aj-white);
    font-weight: 700;
}

.aj-ticker-icao {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.aj-ticker-arrow {
    color: var(--aj-gray-400);
    margin: 0 6px;
}

.aj-ticker-price {
    font-weight: 700;
    color: var(--aj-white);
    font-variant-numeric: tabular-nums;
}

.aj-ticker-view {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.aj-ticker-view:hover {
    text-decoration: underline;
    color: var(--cyan);
}

/* ============ ROUTES ============ */
.aj-routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.aj-route-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--aj-gray-700);
    border-radius: 8px;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.aj-route-card:hover {
    border-color: var(--cyan);
}

.aj-route-pair {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--aj-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.aj-route-pair span {
    color: var(--aj-gray-600);
    margin: 0 4px;
}

.aj-route-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.aj-route-price {
    color: var(--cyan);
    font-weight: 700;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.aj-route-count {
    color: var(--aj-gray-600);
}

/* ============ EVENTS ============ */
.aj-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.aj-event-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
    padding: 20px 24px;
    border: 1px solid var(--aj-gray-700);
    border-radius: 8px;
    text-decoration: none;
    color: var(--aj-white);
    transition: all 0.2s;
}

.aj-event-card:hover {
    border-color: var(--cyan);
    text-decoration: none;
    color: var(--aj-white);
}

.aj-event-name {
    font-weight: 600;
    font-size: 1rem;
}

.aj-event-meta {
    width: 100%;
    font-size: 0.82rem;
    color: var(--aj-gray-500);
    order: 2;
}

.aj-event-arrow {
    color: var(--aj-gray-400);
    transition: color 0.2s;
    margin-left: auto;
}

.aj-event-card:hover .aj-event-arrow {
    color: var(--cyan);
}

/* ============ CTA SECTION ============ */
.aj-section--cta {
    background: var(--aj-near-black);
    color: var(--aj-white);
    border-top: 1px solid var(--aj-gray-800);
}

.aj-cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.aj-cta-inner .aj-section-desc {
    color: var(--aj-gray-400);
    margin: 0 auto 32px;
}

.aj-cta-form {
    display: flex;
    justify-content: center;
}

/* ============ EXPANDED FOOTER ============ */
.aj-footer {
    background: var(--aj-black);
    color: var(--aj-gray-400);
    padding: 64px 0 32px;
    border-top: 1px solid var(--aj-gray-800);
}

.aj-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.aj-footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.aj-footer-tagline {
    font-size: 0.85rem;
    color: var(--aj-gray-600);
}

.aj-footer-independent {
    font-size: 0.78rem;
    color: var(--aj-gray-600);
    margin-top: 4px;
}

.aj-footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aj-gray-400);
    margin-bottom: 16px;
}

.aj-footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--aj-gray-400);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.aj-footer-col a:hover {
    color: var(--aj-white);
    text-decoration: none;
}

.aj-footer-bottom {
    border-top: 1px solid var(--aj-gray-800);
    padding-top: 24px;
    font-size: 0.8rem;
    color: var(--aj-gray-600);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .aj-features-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    .aj-routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aj-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .aj-hero-h1 {
        font-size: 2.6rem;
    }

    .aj-hero-inner {
        padding: 56px 20px 48px;
    }

    .aj-h2 {
        font-size: 1.8rem;
    }

    .aj-section {
        padding: 64px 0;
    }

    .aj-container {
        padding: 0 20px;
    }

    .aj-features-3col {
        grid-template-columns: 1fr;
    }

    .aj-features-4col {
        grid-template-columns: 1fr;
    }

    .aj-tools-grid {
        grid-template-columns: 1fr;
    }

    .aj-steps {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .aj-step {
        padding: 0;
        max-width: none;
    }

    .aj-step-connector {
        display: none;
    }

    .aj-routes-grid {
        grid-template-columns: 1fr;
    }

    .aj-events-grid {
        grid-template-columns: 1fr;
    }

    .aj-ticker-header,
    .aj-ticker-row {
        grid-template-columns: 2fr 1fr 80px;
    }

    .aj-ticker-header span:nth-child(2),
    .aj-ticker-header span:nth-child(3),
    .aj-ticker-row span:nth-child(2),
    .aj-ticker-row span:nth-child(3) {
        display: none;
    }

    .aj-hero-stats {
        gap: 20px;
    }

    .aj-stat-val {
        font-size: 1.3rem;
    }

    .aj-comp-table-wrap {
        overflow-x: auto;
    }

    .aj-comp-callouts {
        flex-direction: column;
        gap: 16px;
    }

    .aj-comp-ctas {
        flex-direction: column;
        gap: 12px;
    }

    .aj-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .aj-search-tabs {
        overflow-x: auto;
    }
}

@media (max-width: 500px) {
    .aj-hero-h1 {
        font-size: 2.2rem;
    }

    .aj-search-form {
        flex-direction: column;
    }

    .aj-search-btn {
        height: 48px;
        border-radius: 0;
    }

    .aj-hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .aj-stat-divider {
        width: 40px;
        height: 1px;
    }
}


/* ========================================
   Jet Cards (jc- prefix)
   Palette: steel blue #6B9FBF, slate greys
   ======================================== */

.jc-hero {
    background: linear-gradient(180deg, #1e2130 0%, #171a24 60%, #12141A 100%);
    padding: 72px 24px 52px;
    text-align: center;
    border-bottom: 1px solid rgba(123,143,161,0.12);
    position: relative;
}

.jc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6B9FBF, transparent);
    border-radius: 0 0 4px 4px;
}

.jc-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.jc-hero p {
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.jc-toolbar {
    padding: 20px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.jc-search-row {
    margin-bottom: 12px;
}

.jc-search-row input[type="text"] {
    width: 100%;
    background: #272b36;
    border: 1px solid rgba(255,255,255,0.12);
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
}

.jc-search-row input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.jc-filters-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.jc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jc-filter-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.jc-filter-group select {
    background: #272b36;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: inherit;
}

.jc-filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.jc-result-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--text-secondary);
    align-self: flex-end;
    padding-bottom: 6px;
}

.jc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
}

.jc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.88rem;
}

.jc-table thead {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.jc-table th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.jc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
    text-align: center;
}

.jc-table .jc-col-left {
    text-align: left;
}

.jc-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.jc-program-name {
    font-weight: 600;
    color: #fff;
}

.jc-program-name a {
    color: #fff;
}

.jc-program-name a:hover {
    color: var(--accent);
    text-decoration: none;
}

.jc-company {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.jc-rate-cell {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.jc-rate-note {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.4);
}

/* Badges — steel/slate tonal palette */
.jc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.jc-badge-fixed { background: rgba(123,143,161,0.12); color: #A8BCCF; border-color: rgba(123,143,161,0.2); }
.jc-badge-floating { background: rgba(160,170,185,0.1); color: #8E9BB0; border-color: rgba(160,170,185,0.18); }
.jc-badge-capped { background: rgba(107,159,191,0.1); color: #89B5CC; border-color: rgba(107,159,191,0.18); }

/* Yes/No indicators — muted steel tones */
.jc-yes {
    color: #A8BCCF;
}

.jc-no {
    color: rgba(255,255,255,0.22);
}

.jc-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #272b36;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.jc-compare-bar.active {
    display: flex;
}

.jc-compare-bar span {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
}

.jc-compare-bar .btn {
    min-width: 140px;
}

/* Detail page */
.jc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.jc-detail-card {
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 22px;
    transition: border-color 0.2s;
}

.jc-detail-card:hover {
    border-color: rgba(123,143,161,0.18);
}

.jc-detail-card h3 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B9FBF;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(107,159,191,0.12);
}

.jc-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.jc-detail-row:last-child {
    border-bottom: none;
}

.jc-detail-row .label {
    color: rgba(255,255,255,0.5);
}

.jc-detail-row .value {
    font-weight: 600;
    color: #e0e4ec;
    text-align: right;
    max-width: 60%;
}

/* Pricing table in detail */
.jc-pricing-table-wrap {
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 32px;
    overflow: hidden;
}

.jc-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.jc-pricing-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.jc-pricing-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.jc-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.jc-pricing-table tbody tr:hover {
    background: rgba(123,143,161,0.04);
}

.jc-pricing-table .rate {
    font-weight: 700;
    font-size: 1.15rem;
    color: #A8BCCF;
}

.jc-pricing-table .models {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* Pros / Cons — steel tones */
.jc-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.jc-pros, .jc-cons {
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 22px;
}

.jc-pros-cons h3 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.jc-pros h3 {
    color: #89B5CC;
}

.jc-cons h3 {
    color: rgba(255,255,255,0.4);
}

.jc-pros-cons ul {
    list-style: none;
    padding: 0;
}

.jc-pros-cons li {
    padding: 7px 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.jc-pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #89B5CC;
    font-weight: 700;
    font-size: 1rem;
}

.jc-cons li::before {
    content: '\2212';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
    font-weight: 700;
    font-size: 1rem;
}

/* Compare table — reused in compare + vs pages */
.jc-compare-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    padding: 20px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
}

/* Provider cards */
.jc-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.jc-provider-card {
    background: #21242e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.jc-provider-card:hover {
    border-color: rgba(123,143,161,0.3);
    transform: translateY(-2px);
}

.jc-provider-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.jc-provider-card h3 a {
    color: #fff;
}

.jc-provider-card h3 a:hover {
    color: var(--accent);
    text-decoration: none;
}

.jc-provider-meta {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.jc-provider-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.jc-provider-stats {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.jc-pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 24px 0;
}

.jc-pagination a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.jc-pagination a:hover {
    background: rgba(123,143,161,0.1);
    border-color: rgba(123,143,161,0.3);
}

/* Overview section */
.jc-overview {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin-bottom: 36px;
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 24px;
    border-left: 3px solid rgba(107,159,191,0.3);
}

/* Comparable programs */
.jc-comparable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.jc-comparable-card {
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
}

.jc-comparable-card:hover {
    border-color: rgba(123,143,161,0.2);
    transform: translateY(-1px);
}

.jc-comparable-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.jc-comparable-card h4 a {
    color: #fff;
}

.jc-comparable-card h4 a:hover {
    color: var(--accent);
    text-decoration: none;
}

.jc-comparable-card .jc-company {
    margin-bottom: 8px;
}

.jc-comparable-card .jc-rate-cell {
    font-size: 0.85rem;
}

/* Breadcrumbs */
.jc-breadcrumbs {
    padding: 14px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.jc-breadcrumbs a {
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: color 0.15s;
}

.jc-breadcrumbs a:hover {
    color: #6B9FBF;
    text-decoration: none;
}

.jc-breadcrumbs span {
    margin: 0 6px;
    opacity: 0.5;
}

/* Section titles */
.jc-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 40px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: -0.01em;
}

.jc-section-title:first-of-type {
    margin-top: 0;
}

/* At a Glance */
.jc-at-a-glance {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #1e2230 0%, #21242e 100%);
    border: 1px solid rgba(123,143,161,0.15);
    border-radius: 12px;
    margin-top: -28px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.jc-glance-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.jc-glance-item:last-child {
    border-right: none;
}

.jc-glance-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #A8BCCF;
    margin-bottom: 6px;
}

.jc-glance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

/* Cost Breakdown */
.jc-cost-breakdown {
    background: linear-gradient(135deg, #1b1e28 0%, #1e2232 100%);
    border: 1px solid rgba(123,143,161,0.15);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.jc-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.jc-cost-row:last-of-type:not(.jc-cost-total) {
    border-bottom: none;
}

.jc-cost-label {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
}

.jc-cost-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.jc-cost-total {
    border-top: 2px solid rgba(107,159,191,0.2);
    border-bottom: none;
    margin-top: 8px;
    padding-top: 18px;
}

.jc-cost-total .jc-cost-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.jc-cost-total .jc-cost-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #A8BCCF;
    text-shadow: 0 0 20px rgba(107,159,191,0.15);
}

.jc-cost-note {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.4;
}

/* About Company */
.jc-about-company {
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 36px;
}

.jc-about-desc {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.jc-about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.jc-about-meta a {
    color: #6B9FBF;
}

/* FAQ */
.jc-faq-list {
    background: #1b1e28;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 4px 24px;
    margin-bottom: 36px;
}

.jc-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.jc-faq-item:last-child {
    border-bottom: none;
}

.jc-faq-item summary {
    padding: 18px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e0e4ec;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.15s;
}

.jc-faq-item summary:hover {
    color: #fff;
}

.jc-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.jc-faq-item[open] summary::after {
    content: '\2212';
    color: #6B9FBF;
}

.jc-faq-item summary::-webkit-details-marker {
    display: none;
}

.jc-faq-answer {
    padding: 0 0 18px;
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Empty state */
.jc-empty {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .jc-hero h1 {
        font-size: 1.6rem;
    }

    .jc-detail-grid {
        grid-template-columns: 1fr;
    }

    .jc-pros-cons {
        grid-template-columns: 1fr;
    }

    .jc-provider-grid {
        grid-template-columns: 1fr;
    }

    .jc-comparable-grid {
        grid-template-columns: 1fr;
    }

    .jc-at-a-glance {
        flex-wrap: wrap;
        margin-top: -20px;
    }

    .jc-glance-item {
        flex: 1 1 45%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 20px 12px;
    }

    .jc-glance-item:nth-child(even) {
        border-right: none;
    }

    .jc-glance-value {
        font-size: 1.15rem;
    }

    .jc-pros, .jc-cons {
        padding: 18px;
    }

    .jc-about-meta {
        flex-direction: column;
        gap: 4px;
    }

    .jc-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jc-filter-group select {
        width: 100%;
    }

    .jc-result-count {
        margin-left: 0;
        text-align: center;
    }

    .jc-compare-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .jc-hero {
        padding: 40px 16px 28px;
    }

    .jc-hero h1 {
        font-size: 1.35rem;
    }
}

/* =============================================
   MARKET INDEX (mkt- prefix)
   ============================================= */

.mkt-hero {
    background: #12141A;
}

.mkt-pulse-text {
    color: #8a8f9e;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.mkt-section-sub {
    font-size: 0.88rem;
    color: #8a8f9e;
    margin-top: 4px;
}

.mkt-chart-wrap {
    position: relative;
    width: 100%;
}

.mkt-up {
    color: #7BA17B;
}

.mkt-down {
    color: #C47B7B;
}

/* Category section */
.mkt-category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.mkt-category-chart {
    position: relative;
    min-height: 280px;
}

.mkt-category-donut-wrap {
    max-width: 220px;
    justify-self: center;
    align-self: center;
}

.mkt-category-changes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.mkt-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(123, 143, 161, 0.06);
    border: 1px solid #2a2d3a;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.82rem;
}

.mkt-cat-tag-name {
    color: #cdd6f4;
}

.mkt-cat-tag-delta {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Routes leaderboard */
.mkt-routes-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mkt-route-row {
    display: grid;
    grid-template-columns: 220px 1fr 48px 64px;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #1e2130;
}

.mkt-route-row:last-child {
    border-bottom: none;
}

.mkt-route-cities {
    color: #cdd6f4;
    font-size: 0.95rem;
    font-weight: 500;
}

.mkt-route-codes {
    color: #6a6f80;
    font-size: 0.78rem;
    margin-top: 2px;
    font-family: monospace;
}

.mkt-route-bar-wrap {
    height: 6px;
    background: #1e2130;
    border-radius: 3px;
    overflow: hidden;
}

.mkt-route-bar {
    height: 100%;
    background: linear-gradient(90deg, #5B9BD5, #4EAAB0);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.mkt-route-count {
    color: #cdd6f4;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mkt-route-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #cdd6f4;
    background: rgba(123, 143, 161, 0.12);
    border: 1px solid rgba(123, 143, 161, 0.25);
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}

.mkt-route-btn:hover {
    background: rgba(123, 143, 161, 0.22);
    border-color: rgba(123, 143, 161, 0.4);
}

/* Airports with bars */
.mkt-airports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.mkt-airports-grid h3 {
    font-size: 0.88rem;
    color: #8a8f9e;
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mkt-airport-row {
    display: grid;
    grid-template-columns: 140px 1fr 36px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 33, 48, 0.6);
}

.mkt-airport-row:last-child {
    border-bottom: none;
}

.mkt-airport-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}

.mkt-airport-info:hover .mkt-airport-code {
    color: #5B9BD5;
}

.mkt-airport-code {
    color: #cdd6f4;
    font-family: monospace;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s;
}

.mkt-airport-city {
    color: #6a6f80;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-airport-bar-wrap {
    height: 5px;
    background: #1e2130;
    border-radius: 3px;
    overflow: hidden;
}

.mkt-airport-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.mkt-airport-bar-dep {
    background: linear-gradient(90deg, #5B9BD5, #4EAAB0);
}

.mkt-airport-bar-arr {
    background: linear-gradient(90deg, #9B8EC4, #7B8FA1);
}

.mkt-airport-count {
    color: #8a8f9e;
    font-size: 0.85rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Market facts */
.mkt-facts-row {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.mkt-fact-card {
    background: rgba(91, 155, 213, 0.06);
    border: 1px solid rgba(91, 155, 213, 0.15);
    border-radius: 10px;
    padding: 24px 32px;
    text-align: center;
    flex: 1;
    max-width: 260px;
}

.mkt-fact-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #cdd6f4;
    margin-bottom: 4px;
}

.mkt-fact-label {
    display: block;
    font-size: 0.85rem;
    color: #8a8f9e;
}

/* Methodology */
.mkt-methodology {
    color: #8a8f9e;
    font-size: 0.88rem;
    line-height: 1.7;
}

.mkt-methodology summary {
    cursor: pointer;
    color: #8a8f9e;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 0;
}

.mkt-methodology summary:hover {
    color: #cdd6f4;
}

.mkt-methodology p {
    margin-top: 12px;
    color: #6a6f80;
}

.content-callout {
    background: rgba(123, 143, 161, 0.08);
    border: 1px solid rgba(123, 143, 161, 0.2);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.content-callout p {
    margin: 0;
    color: #cdd6f4;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .mkt-airports-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mkt-category-grid {
        grid-template-columns: 1fr;
    }

    .mkt-category-donut-wrap {
        max-width: 180px;
        margin: 0 auto;
    }

    .mkt-route-row {
        grid-template-columns: 1fr 48px 56px;
    }

    .mkt-route-bar-wrap {
        display: none;
    }

    .mkt-facts-row {
        flex-direction: column;
        align-items: center;
    }

    .mkt-fact-card {
        max-width: 100%;
        width: 100%;
    }

    .content-callout {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ── Calendar View ─────────────────────────────────────── */

.cal-view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.cal-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.cal-toggle-btn:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.cal-toggle-active {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.cal-container {
    margin-top: 4px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-month-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.cal-nav-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.15s;
}

.cal-nav-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cal-dow {
    padding: 10px 8px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg-subtle);
}

.cal-cell {
    min-height: 100px;
    padding: 8px;
    background: var(--bg);
    vertical-align: top;
    cursor: default;
    transition: background 0.15s;
}

.cal-cell-dim {
    opacity: 0.3;
}

.cal-cell-past {
    opacity: 0.4;
}

.cal-cell-today {
    background: var(--accent-light);
}

.cal-cell-has-legs {
    cursor: pointer;
}

.cal-cell-has-legs:hover {
    background: var(--bg-subtle);
}

.cal-cell-selected {
    background: var(--accent-light);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.cal-cell-selected.cal-cell-has-legs:hover {
    background: var(--accent-light);
}

.cal-cell-today.cal-cell-has-legs:hover {
    background: rgba(107, 159, 191, 0.18);
}

.cal-day-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.cal-day-count {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.cal-leg-mini {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.cal-leg-more {
    font-size: 0.68rem;
    color: var(--accent);
    margin-top: 2px;
}

.cal-footer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 14px;
    text-align: center;
}

/* Day detail panel */
.cal-day-panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cal-day-panel-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.cal-day-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.cal-day-panel-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cal-day-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile: compact calendar */
@media (max-width: 640px) {
    .cal-cell {
        min-height: 52px;
        padding: 4px;
    }

    .cal-leg-mini {
        display: none;
    }

    .cal-leg-more {
        display: none;
    }

    .cal-day-num {
        font-size: 0.75rem;
    }

    .cal-day-count {
        font-size: 0.62rem;
        padding: 0 5px;
    }

    .cal-dow {
        padding: 6px 2px;
        font-size: 0.65rem;
    }
}

/* ========================================
   AceJet WiFi Tracker
   ======================================== */

.wifi-hero {
    background: linear-gradient(180deg, #181B22 0%, #12141A 100%);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
}
.wifi-hero h1 {
    font-size: 2.5rem;
    margin: 6px 0 12px;
    line-height: 1.15;
}
.wifi-hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
}
.wifi-hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 24px;
}
.wifi-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.wifi-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.wifi-breadcrumb a:hover { color: var(--accent); }

.wifi-lookup-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin-top: 12px;
}
.wifi-lookup-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.wifi-lookup-input:focus { outline: 1px solid var(--accent); }

.wifi-section-sub {
    color: var(--text-secondary);
    margin: 4px 0 24px;
    max-width: 680px;
}

.wifi-results { padding: 32px 0 64px; }

.wifi-result-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.wifi-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.wifi-result-eyebrow {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 4px;
}
.wifi-result-card h2 { font-size: 1.4rem; }
.wifi-result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.wifi-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    line-height: 1.25;
}
.wifi-badge:hover { border-color: var(--accent); }
.wifi-badge-name { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.wifi-badge-speed, .wifi-badge-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 2px;
}

.wifi-result-detail {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 8px;
}
.wifi-result-detail h3 { font-size: 1.05rem; margin-bottom: 8px; }
.wifi-result-detail p { color: var(--text-secondary); margin-bottom: 12px; }
.wifi-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.wifi-result-meta strong { color: var(--text); font-weight: 600; }
.wifi-result-source {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-style: italic;
}

.wifi-result-empty p { color: var(--text-secondary); margin-bottom: 10px; }

.wifi-systems-grid h2 { margin-bottom: 16px; }

.wifi-system-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.wifi-system-tile {
    display: block;
    padding: 18px 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.wifi-system-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.wifi-system-tile h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text); }
.wifi-system-tile-provider {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.wifi-system-tile-speed { font-size: 0.85rem; color: var(--text); margin-bottom: 6px; }
.wifi-system-tile-count { font-size: 0.8rem; color: var(--text-secondary); }

/* Quality tier accents */
.wifi-tier-excellent { border-left: 3px solid #4CAF7D; }
.wifi-tier-good { border-left: 3px solid #6B9FBF; }
.wifi-tier-mediocre { border-left: 3px solid #d4a44a; }
.wifi-tier-poor { border-left: 3px solid #E57373; }
.wifi-tier-unknown { border-left: 3px solid var(--border); }

.wifi-tier-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
}
a.wifi-tier-tag:hover { border-color: var(--accent); }
.wifi-tier-tag.wifi-tier-excellent { color: #5fc792; border-color: rgba(76,175,125,0.4); background: rgba(76,175,125,0.08); }
.wifi-tier-tag.wifi-tier-good { color: #7fb2cf; border-color: rgba(107,159,191,0.4); background: rgba(107,159,191,0.08); }
.wifi-tier-tag.wifi-tier-mediocre { color: #e1be75; border-color: rgba(212,164,74,0.4); background: rgba(212,164,74,0.08); }
.wifi-tier-tag.wifi-tier-poor { color: #f0a0a0; border-color: rgba(229,115,115,0.4); background: rgba(229,115,115,0.08); }

.wifi-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 22px;
}
.wifi-stat { display: flex; flex-direction: column; min-width: 110px; }
.wifi-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.wifi-stat-value { font-size: 1.45rem; font-weight: 700; color: var(--text); margin-top: 2px; }

.wifi-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0 32px;
}
.wifi-pros, .wifi-cons {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
}
.wifi-pros h3, .wifi-cons h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.wifi-pros h3 { color: #5fc792; }
.wifi-cons h3 { color: #f0a0a0; }
.wifi-pros ul, .wifi-cons ul {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.93rem;
}
.wifi-pros li, .wifi-cons li {
    padding: 5px 0 5px 18px;
    position: relative;
}
.wifi-pros li::before { content: '+'; color: #5fc792; position: absolute; left: 0; font-weight: 700; }
.wifi-cons li::before { content: '−'; color: #f0a0a0; position: absolute; left: 0; font-weight: 700; }

@media (max-width: 720px) {
    .wifi-proscons { grid-template-columns: 1fr; }
}

.wifi-airline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.wifi-airline-card {
    display: block;
    padding: 18px 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.wifi-airline-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.wifi-airline-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.wifi-airline-iata {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.wifi-airline-card h3 { font-size: 1.05rem; color: var(--text); margin: 0; }
.wifi-airline-count { font-size: 0.85rem; color: var(--text-secondary); }
.wifi-airline-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.wifi-breakdown-table, .wifi-fleet-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 12px 0 24px;
    font-size: 0.92rem;
}
.wifi-breakdown-table th, .wifi-fleet-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.wifi-breakdown-table td, .wifi-fleet-table td {
    padding: 9px 16px;
    border-bottom: 1px solid var(--border);
}
.wifi-breakdown-table tr:last-child td,
.wifi-fleet-table tr:last-child td { border-bottom: none; }
.wifi-breakdown-table a, .wifi-fleet-table a { color: var(--accent); text-decoration: none; }

/* Fleet table column widths — Tail and Year are constrained, Aircraft and WiFi share the rest. */
.wifi-fleet-table { table-layout: fixed; }
.wifi-fleet-table .wifi-col-tail { width: 110px; }
.wifi-fleet-table .wifi-col-year { width: 80px; }
.wifi-fleet-table .wifi-col-aircraft { width: 38%; }
.wifi-fleet-table .wifi-col-wifi { width: auto; }
.wifi-fleet-tail { font-variant-numeric: tabular-nums; }
.wifi-fleet-year { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.wifi-fleet-model { color: var(--text); }
.wifi-fleet-wifi { white-space: normal; }
.wifi-fleet-none {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}
.wifi-fleet-row-empty .wifi-fleet-tail a,
.wifi-fleet-row-empty .wifi-fleet-model { color: var(--text-secondary); }
.wifi-fleet-row-empty { opacity: 0.65; }
.wifi-fleet-row-empty:hover { opacity: 1; }

/* Soften the wifi-tier-tag inside the fleet table — they were reading as buttons. */
.wifi-fleet-table .wifi-tier-tag {
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 500;
    border-width: 0;
    background: var(--tier-soft, rgba(255,255,255,0.04));
    color: var(--tier, var(--text));
}
.wifi-fleet-table .wifi-tier-tag:hover {
    background: var(--tier-soft, rgba(255,255,255,0.06));
    color: var(--tier, var(--text));
    text-decoration: underline;
}

.wifi-cta {
    margin-top: 32px;
    padding: 28px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.wifi-cta h2 { margin-bottom: 8px; }
.wifi-cta p { color: var(--text-secondary); margin-bottom: 14px; }

.wifi-private-section { margin-top: 32px; padding: 22px; background: rgba(255,255,255,0.02); border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* Aircraft tail page wifi card */
.tail-wifi-section {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.tail-wifi-section h2 { font-size: 1.2rem; margin-bottom: 12px; }
.tail-wifi-section .wifi-result-badges { margin-bottom: 12px; }


/* ========================================
   WiFi Index — Redesign (KPIs + tile v2)
   ======================================== */

/* Headline KPI strip */
.wifi-kpis-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}
.wifi-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.wifi-kpi {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid var(--border);
}
.wifi-kpi:last-child { border-right: none; }
.wifi-kpi-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.wifi-kpi-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
@media (max-width: 900px) {
    .wifi-kpis { grid-template-columns: repeat(2, 1fr); }
    .wifi-kpi:nth-child(2) { border-right: none; }
    .wifi-kpi:nth-child(1), .wifi-kpi:nth-child(2) { border-bottom: 1px solid var(--border); }
    .wifi-kpi-value { font-size: 1.9rem; }
}

.wifi-section { padding: 56px 0; }
.wifi-section + .wifi-section { padding-top: 0; }
.wifi-section-header { margin-bottom: 24px; }
.wifi-section-header h2 {
    font-size: 1.65rem;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.wifi-section-header p {
    color: var(--text-secondary);
    max-width: 720px;
    font-size: 0.95rem;
}
.wifi-subhead {
    font-size: 1.05rem;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 4px;
    font-weight: 600;
}
.wifi-subhead-note {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

/* --- Quality tier color tokens (single source of truth) --- */
.wifi-tier-excellent { --tier: #5fc792; --tier-soft: rgba(95,199,146,0.10); --tier-edge: rgba(95,199,146,0.35); }
.wifi-tier-good      { --tier: #7fb2cf; --tier-soft: rgba(127,178,207,0.10); --tier-edge: rgba(127,178,207,0.35); }
.wifi-tier-mediocre  { --tier: #e1be75; --tier-soft: rgba(225,190,117,0.10); --tier-edge: rgba(225,190,117,0.35); }
.wifi-tier-poor      { --tier: #f0a0a0; --tier-soft: rgba(240,160,160,0.10); --tier-edge: rgba(240,160,160,0.35); }
.wifi-tier-unknown,
.wifi-tier-future    { --tier: #8a93a3; --tier-soft: rgba(138,147,163,0.08); --tier-edge: rgba(138,147,163,0.30); }

.wifi-tint-excellent { background: linear-gradient(180deg, rgba(95,199,146,0.05), transparent 60%) var(--bg-subtle); }
.wifi-tint-good      { background: linear-gradient(180deg, rgba(127,178,207,0.05), transparent 60%) var(--bg-subtle); }
.wifi-tint-mediocre  { background: linear-gradient(180deg, rgba(225,190,117,0.05), transparent 60%) var(--bg-subtle); }
.wifi-tint-poor      { background: linear-gradient(180deg, rgba(240,160,160,0.05), transparent 60%) var(--bg-subtle); }
.wifi-tint-unknown,
.wifi-tint-future    { background: var(--bg-subtle); }

.wifi-tier-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--tier, var(--text-secondary));
    background: var(--tier-soft, rgba(255,255,255,0.04));
    border: 1px solid var(--tier-edge, var(--border));
}

/* --- WiFi system cards v2 --- */
.wifi-system-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.wifi-system-cardv2 {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 20px 22px 22px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--tier, var(--border));
    border-radius: var(--radius-lg);
    transition: transform 0.15s, border-color 0.15s;
    min-height: 200px;
}
.wifi-system-cardv2:hover {
    transform: translateY(-2px);
    border-color: var(--tier, var(--accent));
}
.wifi-system-cardv2-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.wifi-system-cardv2-tech {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.wifi-system-cardv2-count {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.wifi-system-cardv2-count-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 12px;
}
.wifi-system-cardv2-name {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
}
.wifi-system-cardv2-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.wifi-system-cardv2-meta .dot { color: rgba(255,255,255,0.18); }

.wifi-system-cardv2-muted { min-height: 130px; }
.wifi-system-cardv2-muted .wifi-system-cardv2-name { margin-top: 4px; }
.wifi-system-cards-muted .wifi-system-cardv2 { opacity: 0.78; }
.wifi-system-cards-muted .wifi-system-cardv2:hover { opacity: 1; }

/* --- Airline cards v2 --- */
.wifi-airline-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.wifi-airline-cardv2 {
    display: flex;
    flex-direction: column;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.15s, border-color 0.15s;
}
.wifi-airline-cardv2:hover {
    transform: translateY(-2px);
    border-color: var(--tier, var(--accent));
}
.wifi-airline-cardv2-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.wifi-airline-cardv2-headline { flex: 1; min-width: 0; }
.wifi-airline-figure-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.wifi-airline-figure strong {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.wifi-airline-figure-row .wifi-airline-cardv2-pct {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tier, var(--text));
    font-variant-numeric: tabular-nums;
}

/* Stacked wifi-mix bar */
.wifi-stacked-bar {
    display: flex;
    height: 8px;
    width: 100%;
    background: rgba(255,255,255,0.04);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}
.wifi-stack-seg { display: block; height: 100%; }
.wifi-stack-seg.wifi-tier-excellent { background: #5fc792; }
.wifi-stack-seg.wifi-tier-good      { background: #7fb2cf; }
.wifi-stack-seg.wifi-tier-mediocre  { background: #e1be75; }
.wifi-stack-seg.wifi-tier-poor      { background: #f0a0a0; }
.wifi-stack-seg.wifi-tier-unknown,
.wifi-stack-seg.wifi-tier-future    { background: #8a93a3; }
.wifi-stack-seg-unknown { background: rgba(255,255,255,0.08); }

.wifi-mix-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}
.wifi-mix-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.wifi-mix-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    display: inline-block;
}
.wifi-mix-dot.wifi-tier-excellent { background: #5fc792; }
.wifi-mix-dot.wifi-tier-good      { background: #7fb2cf; }
.wifi-mix-dot.wifi-tier-mediocre  { background: #e1be75; }
.wifi-mix-dot.wifi-tier-poor      { background: #f0a0a0; }
.wifi-mix-dot.wifi-tier-unknown,
.wifi-mix-dot.wifi-tier-future    { background: #8a93a3; }

.wifi-coverage-bar-sm { height: 4px; }

/* WiFi system editorial prose + FAQ */
.wifi-prose {
    max-width: 760px;
    margin: 32px 0;
}
.wifi-prose h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.wifi-prose p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}
.wifi-prose p strong { color: var(--text); }

.wifi-faq {
    max-width: 760px;
    margin: 48px 0 32px;
}
.wifi-faq h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.wifi-faq-item {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.wifi-faq-item:first-of-type { border-top: 1px solid var(--border); }
.wifi-faq-item summary {
    cursor: pointer;
    list-style: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    padding-right: 32px;
    position: relative;
    user-select: none;
}
.wifi-faq-item summary::-webkit-details-marker { display: none; }
.wifi-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1;
}
.wifi-faq-item[open] summary::after { content: '−'; color: var(--accent); }
.wifi-faq-item[open] summary { color: var(--accent); }
.wifi-faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: 10px;
    font-size: 0.95rem;
}
.wifi-faq-answer p { margin-bottom: 8px; }
.wifi-airline-iata-lg {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tier-soft, var(--accent-light));
    color: var(--tier, var(--accent));
    border: 1px solid var(--tier-edge, var(--border));
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.wifi-airline-cardv2-headline h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 2px;
    font-weight: 600;
}
.wifi-airline-primary {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.wifi-airline-primary strong { color: var(--text); font-weight: 600; }

.wifi-airline-cardv2-pct-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.wifi-coverage-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
}
.wifi-coverage-bar > span {
    display: block;
    height: 100%;
    background: var(--tier, var(--accent));
    border-radius: 99px;
}

/* Pending airlines strip */
.wifi-pending-strip {
    margin-top: 24px;
    padding: 16px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}
.wifi-pending-strip a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.18);
}
.wifi-pending-strip a:hover { color: var(--text); border-bottom-color: var(--accent); }
.wifi-pending-label {
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 12px;
    font-weight: 600;
}

/* Airline fleet table toolbar (search + pagination) */
.wifi-fleet-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.wifi-fleet-search {
    flex: 1 1 280px;
    max-width: 360px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
}
.wifi-fleet-search:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.wifi-fleet-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.wifi-fleet-meta .dot { margin: 0 6px; color: rgba(255,255,255,0.2); }
.wifi-fleet-empty {
    padding: 22px;
    background: var(--bg-subtle);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
}
.wifi-fleet-pagination {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wifi-fleet-pagination-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
