/* OzBays — Control Tower theme
   Dark theme applied sitewide: base Bootstrap components (cards, tables,
   forms, pagination, DataTables) are reskinned here so existing markup
   across the app doesn't need per-page changes. */

:root {
    --oz-bg: #0a0e18;
    --oz-bg-alt: #0d1322;
    --oz-surface: #131b2e;
    --oz-surface-soft: rgba(255, 255, 255, 0.04);
    --oz-border: rgba(255, 255, 255, 0.08);
    --oz-border-strong: rgba(255, 255, 255, 0.14);
    --oz-text: #e8ecf6;
    --oz-text-muted: #97a2b8;
    --oz-amber: #ffc72c;
    --oz-amber-strong: #ffb300;
    --oz-amber-soft: #ffe08a;
    --oz-navy-text: #16210a;
    --oz-radius: 18px;
}

body {
    font-family: 'Inter', 'Nunito', ui-sans-serif, system-ui, sans-serif;
    background: var(--oz-bg);
    color: var(--oz-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--oz-amber-soft);
}

a:hover {
    color: var(--oz-amber);
}

hr {
    border-color: var(--oz-border-strong);
}

.text-muted {
    color: var(--oz-text-muted) !important;
}

/* Ambient radar-grid backdrop, sitewide */
#content-wrapper {
    position: relative;
    overflow: hidden;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#content-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 0%, rgba(255, 199, 44, 0.14), transparent 45%),
        radial-gradient(circle at 100% 15%, rgba(59, 130, 246, 0.10), transparent 40%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 96px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 96px);
    pointer-events: none;
    z-index: 0;
}

#content-wrapper > .container {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

/* ---------- Cards ---------- */
.card {
    background: var(--oz-surface-soft);
    border: 1px solid var(--oz-border);
    border-radius: var(--oz-radius);
    color: var(--oz-text);
}

.card-link,
.card a {
    color: var(--oz-text);
}

.card .text-muted {
    color: var(--oz-text-muted) !important;
}

.list-group-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--oz-border);
    color: var(--oz-text);
}

/* ---------- Tables & DataTables ---------- */
.table {
    color: var(--oz-text);
}

.table th,
.table td {
    border-color: var(--oz-border);
}

.table thead th {
    border-color: var(--oz-border-strong);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--oz-text);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing {
    color: var(--oz-text);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--oz-surface);
    color: var(--oz-text);
    border: 1px solid var(--oz-border-strong);
    border-radius: 8px;
}

/* This DataTables build (bs4) renders pagination as Bootstrap .pagination/.page-link,
   not the classic .paginate_button markup — style the real elements. */
.pagination .page-link {
    background-color: var(--oz-surface);
    border-color: var(--oz-border-strong);
    color: var(--oz-text);
}

.pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--oz-border-strong);
    color: var(--oz-text);
}

.pagination .page-item.active .page-link {
    background-color: var(--oz-amber);
    border-color: var(--oz-amber);
    color: var(--oz-navy-text);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--oz-surface);
    border-color: var(--oz-border);
    color: var(--oz-text-muted);
}

/* Bootstrap's "light" buttons default to a white surface — darken for this theme */
.btn-light {
    background-color: var(--oz-surface);
    border-color: var(--oz-border-strong);
    color: var(--oz-text);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--oz-border-strong);
    color: var(--oz-text);
}

/* ---------- Forms & modals ---------- */
.form-control,
select.form-control,
.input-group-text {
    background-color: var(--oz-surface);
    color: var(--oz-text);
    border: 1px solid var(--oz-border-strong);
}

.form-control:focus {
    background-color: var(--oz-surface);
    color: var(--oz-text);
    border-color: var(--oz-amber);
    box-shadow: 0 0 0 0.2rem rgba(255, 199, 44, 0.25);
}

/* Bootstrap defaults readonly/disabled inputs to a light gray surface — darken for this theme */
.form-control:disabled,
.form-control[readonly] {
    background-color: var(--oz-surface);
    color: var(--oz-text);
    opacity: 1;
}

.form-control::placeholder {
    color: var(--oz-text-muted);
}

select.form-control option {
    background-color: var(--oz-surface);
    color: var(--oz-text);
}

.modal-content {
    background-color: var(--oz-surface);
    color: var(--oz-text);
    border: 1px solid var(--oz-border-strong);
}

.modal-header,
.modal-footer {
    border-color: var(--oz-border);
}

.modal-header .close {
    color: var(--oz-text);
    text-shadow: none;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .oz-display {
    font-family: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

a { transition: color .15s ease; }

/* ---------- Navbar ---------- */
nav.oz-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(10, 14, 24, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--oz-border);
    padding: 0.5rem 1.5rem;
}

nav.oz-navbar .navbar-brand img {
    height: 46px;
    filter: drop-shadow(0 2px 10px rgba(255, 199, 44, 0.25));
}

nav.oz-navbar .navbar-nav .nav-link {
    color: var(--oz-text-muted) !important;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 0.55rem 1rem !important;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0.15rem;
    /* Fixed box height so icon-only links (e.g. the bell, which has no text
       baseline to size against) render exactly as tall as icon+text links.
       line-height has no effect here since this is a flex container — the
       height itself has to be pinned, not the line box. */
    height: 2.5rem;
    box-sizing: border-box;
}

nav.oz-navbar .navbar-nav .nav-link i {
    font-size: 0.95rem;
    width: auto;
}

nav.oz-navbar .navbar-nav .nav-link:hover {
    color: var(--oz-text) !important;
    background: rgba(255, 255, 255, 0.06);
}

nav.oz-navbar .navbar-nav .nav-link.active {
    color: var(--oz-navy-text) !important;
    background: linear-gradient(135deg, var(--oz-amber-soft), var(--oz-amber));
}

nav.oz-navbar .navbar-toggler {
    border-color: var(--oz-border-strong);
}

nav.oz-navbar .dropdown-menu {
    background: var(--oz-surface);
    border: 1px solid var(--oz-border-strong);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    padding: 0.4rem;
    margin-top: 0.5rem;
}

nav.oz-navbar .dropdown-item {
    color: var(--oz-text);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

nav.oz-navbar .dropdown-item:hover,
nav.oz-navbar .dropdown-item:focus {
    background: rgba(255, 199, 44, 0.12);
    color: var(--oz-amber-soft);
}

nav.oz-navbar .dropdown-item.disabled {
    color: var(--oz-text-muted);
}

nav.oz-navbar .dropdown-divider {
    border-color: var(--oz-border-strong);
}

@media (max-width: 991px) {
    nav.oz-navbar .navbar-collapse {
        margin-top: 0.75rem;
    }
    nav.oz-navbar .navbar-nav .nav-link {
        margin: 0.15rem 0;
    }
}

/* ---------- Notification Bell ---------- */
#notification-bell {
    position: relative;
}

.oz-notification-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    font-size: 0.62rem;
    padding: 0.18em 0.4em;
    background: #e5484d;
    border: 1px solid var(--oz-bg);
}

nav.oz-navbar .oz-notification-menu {
    width: 340px;
    max-width: 90vw;
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
}

.oz-notification-header {
    padding: 0.65rem 0.9rem;
    font-weight: 600;
    color: var(--oz-text);
    border-bottom: 1px solid var(--oz-border);
}

.oz-notification-header .btn-link {
    color: var(--oz-amber-soft);
    font-weight: 500;
    text-decoration: none;
}

nav.oz-navbar .oz-notification-item,
.oz-notification-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    white-space: normal;
    border-radius: 0;
    border-bottom: 1px solid var(--oz-border);
}

.oz-notification-item-link {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    color: inherit;
    text-decoration: none;
}

a.oz-notification-item-link:hover {
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
}

.oz-notification-item-static {
    cursor: default;
}

.oz-notification-item i {
    margin-top: 0.2rem;
    color: var(--oz-text-muted);
}

.oz-notification-item.unread {
    background: rgba(255, 199, 44, 0.06);
}

.oz-notification-mark-read {
    align-self: center;
    margin-right: 0.6rem;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--oz-border-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--oz-text-muted);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.oz-notification-item:hover .oz-notification-mark-read {
    opacity: 1;
    visibility: visible;
}

.oz-notification-mark-read:hover {
    color: var(--oz-amber-soft);
    border-color: var(--oz-amber-soft);
}

.oz-notification-item.unread .oz-notification-item-title {
    color: var(--oz-amber-soft);
}

.oz-notification-item-title {
    font-weight: 600;
    color: var(--oz-text);
}

.oz-notification-item-message {
    font-size: 0.85rem;
}

.oz-notification-item-time {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.oz-batch-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.oz-batch-bar {
    width: 140px;
    height: 6px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.oz-batch-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--oz-amber-soft), var(--oz-amber));
    border-radius: 4px;
}

.oz-batch-stat-text {
    font-size: 0.8rem;
    color: var(--oz-text);
}

/* ---------- Buttons ---------- */
.oz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

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

.oz-btn-primary {
    background: linear-gradient(135deg, var(--oz-amber-soft), var(--oz-amber-strong));
    color: var(--oz-navy-text) !important;
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.25);
}

.oz-btn-primary:hover {
    box-shadow: 0 14px 36px rgba(255, 179, 0, 0.35);
}

.oz-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--oz-border-strong);
    color: var(--oz-text) !important;
}

.oz-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
}

/* ---------- Footer ---------- */
footer.oz-footer {
    position: relative;
    flex-shrink: 0;
    background: var(--oz-bg-alt);
    border-top: 1px solid var(--oz-border-strong);
    border-radius: 0;
    margin: 0;
}

footer.oz-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--oz-amber) 20%, var(--oz-amber-soft) 50%, var(--oz-amber) 80%, transparent);
    opacity: 0.75;
}

.oz-footer-inner {
    padding: 1.5rem;
}

footer.oz-footer .copyright,
footer.oz-footer .copyright * {
    color: var(--oz-text-muted) !important;
    font-size: 0.85rem;
}

.oz-footer-links-row {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.oz-footer-link {
    color: var(--oz-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.oz-footer-link:hover {
    color: var(--oz-amber);
}

.oz-footer-link:not(:first-child)::before {
    content: '\2022';
    color: var(--oz-amber);
    margin: 0 0.65rem;
    font-weight: 700;
}

/* ---------- Changelog ---------- */
.oz-changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--oz-border);
}

.oz-changelog-item {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--oz-border);
}

.oz-changelog-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.oz-changelog-date {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.8rem;
    color: var(--oz-text-muted);
    min-width: 6.5rem;
}

.oz-changelog-title {
    color: var(--oz-text);
    font-weight: 600;
    text-decoration: none;
}

.oz-changelog-title:hover {
    color: var(--oz-amber);
}

.oz-changelog-pr {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    color: var(--oz-amber-soft);
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: -0.4rem;
}

.oz-changelog-author {
    color: var(--oz-text-muted);
    font-size: 0.82rem;
}

.oz-changelog-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--oz-text-muted);
    padding: 0.15rem 0.35rem;
    line-height: 1;
    cursor: pointer;
}

.oz-changelog-toggle:hover {
    color: var(--oz-amber);
}

.oz-changelog-toggle i {
    font-size: 0.8rem;
    transition: transform .15s ease;
}

.oz-changelog-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.oz-changelog-desc {
    margin-top: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: var(--oz-surface-soft);
    border: 1px solid var(--oz-border);
    border-radius: 8px;
    color: var(--oz-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.oz-changelog-desc > *:last-child {
    margin-bottom: 0;
}

.oz-changelog-desc a {
    color: var(--oz-amber-soft);
}

.oz-changelog-desc code {
    background: rgba(255, 255, 255, 0.06);
    color: var(--oz-amber-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.oz-changelog-desc pre code {
    display: block;
    padding: 0.75rem;
    overflow-x: auto;
}

/* ---------- Homepage hero ---------- */
.oz-hero {
    padding: 3rem 0 1.5rem;
}

.oz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--oz-amber-soft);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 199, 44, 0.1);
    border: 1px solid rgba(255, 199, 44, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.oz-eyebrow .oz-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--oz-amber);
    box-shadow: 0 0 0 4px rgba(255, 199, 44, 0.18);
}

.oz-hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.9rem;
}

.oz-hero h1 .oz-amber-text {
    background: linear-gradient(135deg, var(--oz-amber-soft), var(--oz-amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.oz-hero p.lead {
    color: var(--oz-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

.oz-hero .oz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Dark glass card */
.oz-card-dark {
    background: var(--oz-surface-soft);
    border: 1px solid var(--oz-border);
    border-radius: var(--oz-radius);
    padding: 1.5rem;
    backdrop-filter: blur(6px);
}

.oz-card-dark h2, .oz-card-dark h3, .oz-card-dark h4 {
    color: var(--oz-text);
}

.oz-card-dark p {
    color: var(--oz-text-muted);
}

.oz-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--oz-text);
    margin-bottom: 1rem;
}

.oz-section-title i {
    color: var(--oz-amber);
}

/* ---------- News ---------- */
.oz-news-featured {
    position: relative;
    min-height: 260px;
    border-radius: var(--oz-radius);
    border: 1px solid var(--oz-border);
    background-size: cover;
    background-position: center;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.4rem;
    text-decoration: none !important;
    transition: transform .15s ease;
}

.oz-news-featured:hover {
    transform: translateY(-2px);
}

.oz-news-featured-title {
    color: var(--oz-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.oz-news-meta {
    color: var(--oz-text-muted);
    font-size: 0.82rem;
}

.oz-news-link-card {
    padding: 1.1rem 1.25rem;
}

.oz-news-link-title {
    display: block;
    font-weight: 700;
    color: var(--oz-text);
    margin-bottom: 0.4rem;
}

.oz-news-link-title:hover {
    color: var(--oz-amber-soft);
}

.oz-news-excerpt {
    color: var(--oz-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.oz-news-banner {
    min-height: 320px;
    border-radius: var(--oz-radius);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border: 1px solid var(--oz-border);
}

.oz-news-banner-inner {
    padding: 2rem;
}

.oz-news-banner-inner h1 {
    color: var(--oz-text);
    font-weight: 700;
}

.oz-news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.oz-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.oz-news-grid .oz-news-featured {
    min-height: 220px;
}

/* Fallback background for articles published without a custom photo */
.oz-news-no-image {
    background-color: var(--oz-bg-alt);
    background-size: cover, 42% auto;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
}

.oz-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--oz-amber-soft);
    background: rgba(255, 199, 44, 0.1);
    border: 1px solid rgba(255, 199, 44, 0.25);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

/* ---------- Airport arrivals board header ---------- */
.oz-board-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--oz-border);
    margin-bottom: 1.5rem;
}

/* The FIDS is intended to be read at a distance, so it receives a wider
   stage than the standard content pages without changing the global shell. */
.container.oz-airport-fids-page {
    width: min(100% - 2rem, 1640px);
    max-width: none;
}

.oz-board-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.4rem 0 0.75rem;
}

.oz-fids-icao {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-weight: 700;
    color: var(--oz-amber);
    letter-spacing: 0.03em;
}

.oz-board-back {
    font-size: 0.9rem;
}

.oz-board-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.oz-board-mode-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    color: var(--oz-text-muted);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.oz-board-mode-control select {
    appearance: none;
    min-width: 112px;
    padding: 0.28rem 1.65rem 0.28rem 0.5rem;
    border: 1px solid rgba(255, 199, 44, 0.55);
    border-radius: 0;
    background: var(--oz-bg-alt);
    background-image: linear-gradient(45deg, transparent 50%, var(--oz-amber) 50%), linear-gradient(135deg, var(--oz-amber) 50%, transparent 50%);
    background-position: calc(100% - 11px) 50%, calc(100% - 7px) 50%;
    background-repeat: no-repeat;
    background-size: 4px 4px, 4px 4px;
    color: var(--oz-amber-soft);
    font: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.oz-board-mode-control select:focus {
    outline: 2px solid var(--oz-amber-soft);
    outline-offset: 2px;
}

.oz-board-clock-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--oz-text-muted);
}

.oz-board-clock-time {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--oz-amber-soft);
    letter-spacing: 0.05em;
}

/* ---------- Airport FIDS board ---------- */
.oz-fids {
    --oz-fids-ink: #05080d;
    --oz-fids-grid: rgba(255, 199, 44, 0.22);
    background: var(--oz-fids-ink);
    border: 3px solid var(--oz-amber);
    border-radius: 0;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 224, 138, 0.2);
    overflow: hidden;
}

.oz-fids-terminal-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 58px;
    background: var(--oz-amber);
    color: var(--oz-navy-text);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-weight: 800;
    text-transform: uppercase;
}

.oz-fids-terminal-mark {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 1.2rem;
    background: var(--oz-bg);
    color: var(--oz-amber-soft);
    letter-spacing: 0.08em;
}

.oz-fids-terminal-title {
    padding: 0 1.1rem;
    font-size: clamp(1.15rem, 3vw, 1.7rem);
    letter-spacing: -0.06em;
}

.oz-fids-terminal-live {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0 1.2rem;
    font-size: 0.67rem;
    letter-spacing: 0.07em;
    text-align: right;
}

.oz-fids-cycle {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.1rem 0.35rem;
    min-width: 138px;
    margin-left: 0.7rem;
    padding-left: 0.7rem;
    border-left: 1px solid rgba(22, 33, 10, 0.35);
    color: var(--oz-navy-text);
    font-size: 0.56rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.oz-fids-cycle strong {
    text-align: right;
    font-size: 0.64rem;
}

.oz-fids-cycle-track {
    grid-column: 1 / -1;
    display: block;
    height: 3px;
    overflow: hidden;
    background: rgba(22, 33, 10, 0.25);
}

.oz-fids-cycle-track span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--oz-navy-text);
    transition: width 180ms linear;
}

.oz-fids-terminal-live i {
    color: var(--oz-bg);
    font-size: 0.55rem;
    vertical-align: 1px;
}

.oz-fids-scroll {
    overflow-x: auto;
}

.oz-fids-row {
    display: grid;
    grid-template-columns: 116px 1.5fr 82px 1fr 86px 100px 122px;
    align-items: center;
    gap: 0;
    min-width: 760px;
    border-bottom: 1px solid var(--oz-fids-grid);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

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

.oz-fids-row:not(.oz-fids-head):nth-child(even) {
    background: rgba(255, 199, 44, 0.035);
}

.oz-fids-row:not(.oz-fids-head) {
    min-height: 58px;
    color: var(--oz-amber-soft);
    text-shadow: 0 0 9px rgba(255, 199, 44, 0.16);
}

.oz-fids-row:not(.oz-fids-head):hover {
    background: rgba(255, 199, 44, 0.1);
}

.oz-fids-head {
    min-height: 31px;
    background: var(--oz-surface);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--oz-amber-soft);
}

.oz-fids-col {
    min-width: 0;
    padding: 0.45rem 0.7rem;
    border-right: 1px solid var(--oz-fids-grid);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oz-fids-col:last-child {
    border-right: 0;
}

.oz-fids-callsign {
    font-weight: 800;
    color: var(--oz-amber-soft);
    letter-spacing: 0.04em;
}

.oz-fids-callsign-link {
    text-decoration: none;
}

.oz-fids-callsign-link:hover,
.oz-fids-callsign-link:focus {
    color: var(--oz-amber);
    text-decoration: underline;
    outline: none;
}

.oz-fids-airline {
    display: block;
    margin-left: 36px;
    font-size: 0.6rem;
    color: rgba(255, 224, 138, 0.65);
    letter-spacing: 0.04em;
}

.oz-fids-bay {
    display: block;
    font-weight: 600;
    color: var(--oz-amber-soft);
}

.oz-fids-bay--tba {
    color: rgba(255, 224, 138, 0.58);
    font-weight: 500;
}

.oz-fids-terminal {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 224, 138, 0.58);
}

.oz-fids-time {
    display: block;
    font-weight: 600;
    color: var(--oz-amber-soft);
}

.oz-fids-time-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 224, 138, 0.58);
}

.oz-fids-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
}

.oz-fids-status--gate-open,
.oz-fids-status--arriving,
.oz-fids-status--inbound {
    color: var(--oz-amber-soft);
    background: transparent;
    border: 0;
}

.oz-fids-status--boarding,
.oz-fids-status--landed {
    color: var(--oz-amber);
    background: transparent;
    border: 0;
}

.oz-fids-status--final-call,
.oz-fids-status--arrived {
    color: var(--oz-amber-strong);
    background: transparent;
    border: 0;
}

.oz-fids-status--closed,
.oz-fids-status--departed {
    color: rgba(255, 224, 138, 0.45);
    background: transparent;
    border: 0;
}

.oz-fids-flight-ident {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.oz-fids-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 22px;
    flex: 0 0 30px;
    overflow: hidden;
    border: 1px solid var(--oz-fids-grid);
    border-radius: 0;
    color: var(--oz-amber);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.oz-fids-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.oz-fids-empty {
    padding: 3rem 1.25rem;
    text-align: center;
    color: var(--oz-amber-soft);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .oz-fids-terminal-bar {
        min-height: 48px;
    }

    .oz-fids-terminal-mark,
    .oz-fids-terminal-live {
        display: none;
    }

    .oz-fids-terminal-title {
        padding: 0 0.85rem;
    }
}

@media (min-width: 1200px) {
    .oz-airport-fids-page .oz-board-header {
        padding-top: 1.25rem;
        margin-bottom: 1.75rem;
    }

    .oz-airport-fids-page .oz-fids-terminal-bar {
        min-height: 76px;
    }

    .oz-airport-fids-page .oz-fids-terminal-mark {
        padding-inline: 1.6rem;
        font-size: 1.1rem;
    }

    .oz-airport-fids-page .oz-fids-terminal-title {
        font-size: 2.25rem;
    }

    .oz-airport-fids-page .oz-fids-terminal-live {
        padding-right: 1.6rem;
        font-size: 0.75rem;
    }

    .oz-airport-fids-page .oz-fids-row {
        grid-template-columns: 1.1fr 1.8fr 0.8fr 1.55fr 0.85fr 1fr 1.15fr;
        min-width: 0;
    }

    .oz-airport-fids-page .oz-fids-row:not(.oz-fids-head) {
        min-height: 72px;
        font-size: 1.04rem;
    }

    .oz-airport-fids-page .oz-fids-head {
        min-height: 38px;
        font-size: 0.68rem;
    }

    .oz-airport-fids-page .oz-fids-col {
        padding: 0.55rem 1rem;
    }

    .oz-airport-fids-page .oz-fids-status {
        font-size: 0.76rem;
    }

    .oz-airport-fids-page .oz-fids-airline {
        font-size: 0.67rem;
    }

    .oz-airport-fids-page .oz-fids-time-label {
        font-size: 0.7rem;
    }
}

/* ---------- Full-page gate display ---------- */
.oz-gate-display-body {
    min-height: 100vh;
    margin: 0;
    display: block;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 199, 44, 0.12), transparent 28%),
        linear-gradient(135deg, var(--oz-bg) 0%, #030509 100%);
    overflow: hidden;
}

.oz-gate-display-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: clamp(0.75rem, 1.6vw, 1.4rem);
    color: var(--oz-amber-soft);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.oz-gate-display-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: 0.45rem 0.75rem;
    border: 2px solid var(--oz-amber);
    border-bottom: 0;
    background: var(--oz-amber);
    color: var(--oz-navy-text);
    font-size: clamp(0.65rem, 1vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oz-gate-display-toolbar i {
    font-size: 0.62rem;
}

.oz-gate-display-clock {
    margin-left: auto;
}

.oz-gate-fullscreen {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(22, 33, 10, 0.42);
    background: rgba(22, 33, 10, 0.08);
    color: var(--oz-navy-text);
    padding: 0.3rem 0.55rem;
    font: inherit;
    cursor: pointer;
}

.oz-gate-fullscreen:focus,
.oz-gate-fullscreen:hover {
    outline: 2px solid var(--oz-bg);
    outline-offset: 2px;
}

#oz-gate-display-content {
    min-height: 0;
}

.oz-gate-display {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(480px, 1.08fr);
    min-height: calc(100vh - clamp(0.75rem, 1.6vw, 1.4rem) * 2 - 44px);
    border: 2px solid var(--oz-amber);
    background: #05080d;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.oz-gate-route-panel,
.oz-gate-flight-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 199, 44, 0.09), transparent 44%),
        repeating-linear-gradient(0deg, rgba(255, 199, 44, 0.055) 0, rgba(255, 199, 44, 0.055) 1px, transparent 1px, transparent 54px),
        #05080d;
}

.oz-gate-route-panel {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    border-right: 2px solid var(--oz-amber);
}

.oz-gate-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 199, 44, 0.14);
    border-bottom: 1px solid rgba(255, 199, 44, 0.4);
    font-size: clamp(0.72rem, 1.2vw, 0.95rem);
    font-weight: 800;
    text-transform: uppercase;
}

.oz-gate-route-label {
    padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2rem) 0;
    color: rgba(255, 224, 138, 0.68);
    font-size: clamp(0.72rem, 1.4vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.oz-gate-route-panel h1 {
    align-self: start;
    margin: 0;
    padding: 0.4rem clamp(1.2rem, 3vw, 2rem);
    color: var(--oz-amber-soft);
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2.8rem, 7.5vw, 8rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.oz-gate-route-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 clamp(1.2rem, 3vw, 2rem) 1rem;
    color: rgba(255, 224, 138, 0.72);
    font-size: clamp(1.1rem, 2.2vw, 2rem);
    font-weight: 800;
}

.oz-gate-primary-time {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1.2rem, 3vw, 2rem);
    background: rgba(255, 199, 44, 0.08);
    border-top: 1px solid rgba(255, 199, 44, 0.35);
}

.oz-gate-primary-time span {
    color: rgba(255, 224, 138, 0.68);
    font-size: clamp(0.8rem, 1.5vw, 1.05rem);
    font-weight: 800;
    text-transform: uppercase;
}

.oz-gate-primary-time strong {
    color: var(--oz-amber);
    font-size: clamp(3.5rem, 8vw, 8.8rem);
    line-height: 0.82;
    letter-spacing: -0.08em;
}

.oz-gate-flight-panel {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    padding: clamp(1rem, 2.2vw, 2rem);
}

.oz-gate-flight-topline {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2vw, 1.6rem);
}

.oz-gate-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(74px, 9vw, 128px);
    height: clamp(52px, 6.2vw, 88px);
    border: 2px solid rgba(255, 199, 44, 0.55);
    background: rgba(255, 255, 255, 0.04);
    color: var(--oz-amber);
    font-size: clamp(1rem, 1.8vw, 1.45rem);
    font-weight: 800;
}

.oz-gate-logo img {
    max-width: 100%;
    max-height: 100%;
}

.oz-gate-flight-number {
    color: var(--oz-amber-soft);
    font-size: clamp(2.2rem, 6vw, 6.6rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.oz-gate-airline {
    color: rgba(255, 224, 138, 0.68);
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.oz-gate-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(1rem, 2vw, 1.8rem);
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 199, 44, 0.35);
    border-bottom: 1px solid rgba(255, 199, 44, 0.35);
    color: rgba(255, 224, 138, 0.72);
    font-size: clamp(0.9rem, 1.7vw, 1.45rem);
    font-weight: 800;
}

.oz-gate-display-status {
    color: var(--oz-amber);
    text-transform: uppercase;
}

.oz-gate-display-status--closed,
.oz-gate-display-status--departed {
    color: rgba(255, 224, 138, 0.52);
}

.oz-gate-display-status--final-call,
.oz-gate-display-status--arrived {
    color: var(--oz-amber-strong);
}

.oz-gate-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: clamp(0.7rem, 1.2vw, 1rem);
    align-content: center;
    margin: clamp(1rem, 2vw, 2rem) 0;
}

.oz-gate-cell {
    min-height: clamp(118px, 16vh, 210px);
    padding: clamp(0.8rem, 1.7vw, 1.25rem);
    border: 1px solid rgba(255, 199, 44, 0.4);
    background: rgba(255, 199, 44, 0.06);
}

.oz-gate-cell span,
.oz-gate-cell em {
    display: block;
    color: rgba(255, 224, 138, 0.62);
    font-size: clamp(0.68rem, 1.1vw, 0.9rem);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.oz-gate-cell strong {
    display: block;
    margin-top: 0.45rem;
    color: var(--oz-amber-soft);
    font-size: clamp(2rem, 5.6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.oz-gate-cell--hero {
    grid-row: span 2;
}

.oz-gate-grid--departure {
    grid-template-columns: 1.25fr 1fr;
}

.oz-gate-grid--departure .oz-gate-cell--hero {
    grid-row: auto;
}

.oz-gate-cell--hero strong {
    font-size: clamp(4rem, 12vw, 13rem);
}

.oz-gate-helptext {
    margin: 0;
    color: rgba(255, 224, 138, 0.72);
    font-size: clamp(0.95rem, 1.65vw, 1.45rem);
    font-weight: 700;
}

.oz-gate-message-area {
    min-height: 3.6rem;
    display: grid;
    align-items: center;
}

.oz-gate-message-area--alert .oz-gate-helptext {
    display: none;
}

.oz-gate-updated {
    margin-top: 1rem;
    color: rgba(255, 224, 138, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oz-gate-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: clamp(0.7rem, 1.4vw, 1rem) clamp(0.85rem, 1.8vw, 1.3rem);
    border: 2px solid var(--oz-amber-strong);
    background: var(--oz-amber);
    color: var(--oz-navy-text);
    box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.18), 0 14px 32px rgba(0, 0, 0, 0.35);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: clamp(1rem, 1.85vw, 1.55rem);
    font-weight: 800;
    text-transform: uppercase;
}

.oz-gate-alert[hidden] {
    display: none;
}

.oz-gate-alert button {
    border: 0;
    background: transparent;
    color: var(--oz-navy-text);
    font: inherit;
    cursor: pointer;
}

.oz-gate-unavailable {
    display: grid;
    min-height: calc(100vh - 7rem);
    place-items: center;
    border: 2px solid var(--oz-amber);
    color: var(--oz-amber-soft);
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .oz-gate-display-body {
        overflow: auto;
    }

    .oz-gate-display {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .oz-gate-route-panel {
        border-right: 0;
        border-bottom: 2px solid var(--oz-amber);
    }

    .oz-gate-grid {
        grid-template-columns: 1fr 1fr;
    }

    .oz-gate-cell--hero {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .oz-gate-alert:not([hidden]) {
        animation: oz-gate-alert-flash 1.4s ease-in-out infinite;
    }
}

@keyframes oz-gate-alert-flash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.18); }
}
