/* File: wwwroot/css/site.css */

:root {
    --app-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e5e7eb;
    --text: #111827;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --primary-soft: #dbeafe;
    --success: #16a34a;
    --success-soft: #dcfce7;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --market-europe: #2563eb;
    --market-europe-soft: #dbeafe;
    --market-cis: #16a34a;
    --market-cis-soft: #dcfce7;
    --market-uk: #d97706;
    --market-uk-soft: #fef3c7;
    --market-other: #7c3aed;
    --market-other-soft: #ede9fe;
    --sidebar: #0f172a;
    --sidebar-soft: #1e293b;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --card-radius: 1.35rem;
    --card-padding-x: 1.25rem;
    --card-padding-y: 1rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 45%, #eef3f9 100%);
    color: var(--text);
    overflow-x: clip;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    width: 18rem;
    min-height: 100vh;
    flex-direction: column;
    padding: 1.25rem;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 18rem),
        linear-gradient(180deg, var(--sidebar), #111827);
    box-shadow: 1.5rem 0 4rem rgba(15, 23, 42, 0.16);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3rem;
    margin-bottom: 1.5rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 1rem 2rem rgba(37, 99, 235, 0.35);
}

.brand-mark-image {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0.75rem 1.6rem rgba(15, 23, 42, 0.22);
    flex: 0 0 auto;
}

.brand-title,
.mobile-title {
    display: block;
    min-width: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    display: block;
    color: #93a4b8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sidebar-nav {
    display: grid;
    gap: 0.35rem;
}

.sidebar-section-label {
    margin: 0.75rem 0.85rem 0.35rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    color: #cbd5e1;
    border-radius: 0.95rem;
    font-weight: 650;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-link i {
    width: 1.25rem;
    font-size: 1.05rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(0.15rem);
}

.sidebar-link.active {
    box-shadow: inset 0.2rem 0 0 #60a5fa;
}

.sidebar-group {
    display: grid;
    gap: 0.25rem;
}

.sidebar-subnav {
    display: grid;
    gap: 0.2rem;
    margin-left: 1.45rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
}

.sidebar-sub-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.75rem;
    color: #94a3b8;
    border-radius: 0.8rem;
    font-size: 0.93rem;
    font-weight: 650;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-sub-link i {
    width: 1rem;
    font-size: 0.95rem;
}

.sidebar-sub-link:hover,
.sidebar-sub-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(0.12rem);
}

.sidebar-sub-link.active {
    box-shadow: inset 0.18rem 0 0 #60a5fa;
}

.sidebar-footer {
    display: grid;
    gap: 0.85rem;
    margin-top: auto;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.07);
}

.user-chip.light {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface-muted);
}

.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: calc(0.68rem + env(safe-area-inset-top)) 0.9rem 0.68rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
        rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 0.8rem 1.9rem rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(18px) saturate(140%);
    transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.9rem;
}

.mobile-topbar .mobile-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.mobile-topbar.is-scrolled {
    border-bottom-color: rgba(203, 213, 225, 0.98);
    box-shadow: 0 1rem 2.35rem rgba(15, 23, 42, 0.09);
}

.mobile-title-stack {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.05rem;
}

.mobile-subtitle {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.mobile-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.68rem;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.82);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 900;
}

.mobile-menu-button {
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.075);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.mobile-menu-button:active {
    transform: scale(0.94);
}

.mobile-menu-button i {
    font-size: 1.35rem;
    transition: transform 200ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

body.is-mobile-nav-open .mobile-menu-button {
    background: var(--primary-soft);
    color: var(--primary-strong);
    box-shadow: 0 0.45rem 1.1rem rgba(37, 99, 235, 0.14);
}

body.is-mobile-nav-open .mobile-menu-button i {
    transform: rotate(90deg) scale(0.95);
}

.mobile-nav-sheet {
    --bs-offcanvas-width: min(91vw, 23.5rem);
    overflow: hidden;
    border: 0;
    border-radius: 0 1.65rem 1.65rem 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.10), transparent 16rem),
        rgba(255, 255, 255, 0.97);
    box-shadow: 1.35rem 0 3rem rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(22px) saturate(135%);
    transition: transform 320ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.mobile-nav-grabber {
    position: absolute;
    top: calc(0.58rem + env(safe-area-inset-top));
    left: 50%;
    z-index: 2;
    width: 2.75rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    transform: translateX(-50%);
}

.mobile-nav .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: flex-start;
    padding: calc(1.25rem + env(safe-area-inset-top)) 1rem 0.9rem;
    background: rgba(255, 255, 255, 0.90);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    backdrop-filter: blur(16px);
}

.mobile-nav-title {
    min-width: 0;
}

.mobile-nav-close {
    width: 2.4rem;
    height: 2.4rem;
    margin: -0.1rem -0.15rem 0 0;
    border-radius: 999px;
    background-color: rgba(241, 245, 249, 0.95);
    opacity: 1;
}

.mobile-nav .offcanvas-body {
    display: grid;
    align-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav .sidebar-nav {
    gap: 0.42rem;
}

.mobile-nav .sidebar-link,
.mobile-nav .sidebar-sub-link {
    min-height: 2.9rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    transition: transform 150ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.mobile-nav .sidebar-link:active,
.mobile-nav .sidebar-sub-link:active,
.mobile-nav .sidebar-link.is-tapping,
.mobile-nav .sidebar-sub-link.is-tapping {
    transform: scale(0.985);
}

.mobile-nav .sidebar-link.active,
.mobile-nav .sidebar-sub-link.active {
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.65rem 1.35rem rgba(37, 99, 235, 0.10);
}

.mobile-nav .sidebar-section-label {
    margin-top: 1rem;
    padding-left: 0.18rem;
}

.offcanvas-backdrop.show {
    opacity: 0.36;
    backdrop-filter: blur(7px);
}

@media (prefers-reduced-motion: reduce) {
    .mobile-topbar,
    .mobile-menu-button,
    .mobile-menu-button i,
    .mobile-nav-sheet,
    .mobile-nav .sidebar-link,
    .mobile-nav .sidebar-sub-link,
    .mobile-admin-tabbar,
    .mobile-admin-tabbar-link,
    .mobile-card-primary-chip,
    .mobile-details-toggle,
    .mobile-details-toggle::after {
        transition: none !important;
    }
}

.mobile-nav .sidebar-link {
    color: var(--text);
}

.mobile-nav .sidebar-link:hover,
.mobile-nav .sidebar-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    transform: none;
}

.mobile-nav .sidebar-subnav {
    border-left-color: var(--border);
}

.mobile-nav .sidebar-sub-link {
    color: var(--muted);
}

.mobile-nav .sidebar-sub-link:hover,
.mobile-nav .sidebar-sub-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    transform: none;
}

.mobile-nav .sidebar-link:active,
.mobile-nav .sidebar-sub-link:active,
.mobile-nav .sidebar-link.is-tapping,
.mobile-nav .sidebar-sub-link.is-tapping {
    transform: scale(0.985);
}


.mobile-admin-tabbar {
    position: fixed;
    right: max(0.72rem, env(safe-area-inset-right));
    bottom: calc(0.62rem + env(safe-area-inset-bottom));
    left: max(0.72rem, env(safe-area-inset-left));
    z-index: 1035;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.22rem;
    padding: 0.42rem;
    border: 1px solid rgba(203, 213, 225, 0.82);
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(248, 250, 252, 0.91)),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(20px) saturate(150%);
}

.mobile-admin-tabbar-link {
    display: grid;
    grid-template-rows: 1.15rem auto;
    place-items: center;
    gap: 0.18rem;
    min-width: 0;
    min-height: 3.35rem;
    padding: 0.42rem 0.18rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: #64748b;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 145ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mobile-admin-tabbar-link i {
    font-size: 1.08rem;
    line-height: 1;
}

.mobile-admin-tabbar-link span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-admin-tabbar-button {
    appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.mobile-admin-tabbar-link:hover,
.mobile-admin-tabbar-link.active,
.mobile-admin-tabbar-link[aria-expanded="true"] {
    color: var(--primary-strong);
    background: rgba(219, 234, 254, 0.86);
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 0.6rem 1.2rem rgba(37, 99, 235, 0.11);
}

.mobile-admin-tabbar-link:active,
.mobile-admin-tabbar-link.is-tapping {
    transform: scale(0.965);
}

body.is-mobile-nav-open .mobile-admin-tabbar {
    transform: translateY(0.25rem);
}

@media (max-width: 991.98px) {
    .app-main.has-mobile-admin-tabs .app-content {
        padding-bottom: calc(6.4rem + env(safe-area-inset-bottom));
    }

    .app-main.has-mobile-admin-tabs ~ .whatsapp-widget {
        bottom: calc(5.95rem + env(safe-area-inset-bottom));
    }
}


.app-main.with-sidebar {
    min-height: 100vh;
    padding-left: 18rem;
}

.app-main.auth-main {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.app-content {
    width: 100%;
    max-width: 1480px;
    padding: 1.5rem;
    margin: 0 auto;
}

.auth-main {
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 26rem),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.14), transparent 22rem),
        linear-gradient(135deg, #f8fbff, #edf4ff 52%, #f7f9fc);
}

.auth-main .app-content {
    width: min(100%, 1180px);
    max-width: 1180px;
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 34rem;
    margin-inline: auto;
}

.auth-card.analytics-card {
    border-radius: 1.6rem;
    box-shadow: 0 2rem 5rem rgba(15, 23, 42, 0.13);
}

.auth-hero {
    text-align: center;
}

.auth-hero h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.9rem, 8vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.auth-hero p {
    max-width: 22rem;
    margin: 0 auto;
    color: var(--muted);
}

.otp-input {
    letter-spacing: 0.35rem;
}

.page-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    margin-bottom: 1.25rem;
}

.page-kicker,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.page-subtitle {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.analytics-card,
.tc-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.analytics-card-header,
.tc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: var(--card-padding-y) var(--card-padding-x);
    border-bottom: 1px solid var(--border);
    font-weight: 800;
}

.analytics-card-header-with-info {
    align-items: center;
}

.analytics-card-title,
.analytics-card-actions {
    display: flex;
    align-items: center;
    min-width: 0;
}

.analytics-card-title {
    gap: 0.55rem;
    flex: 1 1 auto;
}

.analytics-card-title i {
    flex: 0 0 auto;
}

.analytics-card-actions {
    gap: 0.5rem;
    justify-content: flex-end;
    margin-left: auto;
    flex: 0 0 auto;
}

.tc-card-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.card-body,
.analytics-card-body,
.tc-card-body {
    padding: var(--card-padding-y) var(--card-padding-x);
}

.analytics-card > .card-body,
.analytics-card > .analytics-card-body,
.analytics-card > .tc-card-body,
.tc-card > .card-body,
.tc-card > .analytics-card-body,
.tc-card > .tc-card-body {
    padding: var(--card-padding-y) var(--card-padding-x);
}

.tc-stack > * + * {
    margin-top: 1rem;
}

.tc-form-label,
.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 650;
    color: var(--text);
}

.helper-text,
.tc-helper-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.tc-inline-note {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.tc-section-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border-color: #dbe3ee;
}

.btn {
    border-radius: 0.9rem;
    font-weight: 750;
}

.btn-sm {
    border-radius: 0.7rem;
}

.toast-panel {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.04);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-neutral {
    color: #334155;
    background: #f1f5f9;
}

.status-success {
    color: #166534;
    background: var(--success-soft);
}

.status-warning {
    color: #92400e;
    background: var(--warning-soft);
}

.status-danger {
    color: #991b1b;
    background: var(--danger-soft);
}

.market-badge {
    min-width: 4.75rem;
    justify-content: center;
}

.market-badge-turkey {
    color: var(--market-other);
    background: var(--market-other-soft);
}

.market-badge-europe {
    color: var(--market-europe);
    background: var(--market-europe-soft);
}

.market-badge-cis {
    color: var(--market-cis);
    background: var(--market-cis-soft);
}

.market-badge-uk {
    color: var(--market-uk);
    background: var(--market-uk-soft);
}

.market-badge-other {
    color: var(--market-other);
    background: var(--market-other-soft);
}

.market-badge-all {
    color: #334155;
    background: #f1f5f9;
}

.market-select {
    position: relative;
}

.market-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.375rem;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.market-select-toggle:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.16);
}

.market-select-toggle i {
    color: var(--muted);
    font-size: 0.85rem;
}

.market-select-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    gap: 0.2rem;
    padding: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.market-select.open .market-select-menu {
    display: grid;
}

.market-select-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.35rem;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0.7rem;
}

.market-select-option:hover,
.market-select-option:focus,
.market-select-option.active {
    background: var(--surface-muted);
    outline: 0;
}

.market-select .market-badge {
    min-width: 5.75rem;
}

.app-table {
    margin: 0;
}

.app-table thead th {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.sortable-header {
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    gap: 0.35rem;
    color: inherit;
    white-space: nowrap;
}

.sortable-header:hover,
.sortable-header.active {
    color: var(--primary);
}

.sortable-header i {
    font-size: 0.85rem;
}

.app-table tbody td {
    vertical-align: middle;
    border-color: #edf2f7;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 12rem;
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

.empty-state i {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: #94a3b8;
}

.empty-state strong {
    display: block;
    color: var(--text);
}

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

.metric-tile {
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.92);
}

.metric-label {
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--text);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.data-coverage-card {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.12), transparent 20rem),
        rgba(255, 255, 255, 0.94);
}

.coverage-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.coverage-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1.1rem;
    color: #166534;
    background: var(--success-soft);
    font-size: 1.65rem;
}

.coverage-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coverage-value {
    margin-top: 0.1rem;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.045em;
}

.coverage-note {
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.55;
}

.coverage-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comparable-insight-card {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 20rem),
        rgba(255, 255, 255, 0.94);
}

.comparable-scope {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.72rem 0.85rem;
    color: #475569;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.comparable-scope i {
    flex: 0 0 auto;
    color: var(--primary);
    margin-top: 0.1rem;
}

.comparable-scope span {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.comparable-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.72rem 0.85rem;
    color: #92400e;
    background: rgba(254, 243, 199, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 0.95rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.comparable-warning i {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.comparable-warning span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.volatility-value {
    font-size: clamp(1.65rem, 3.2vw, 2.65rem);
    letter-spacing: -0.04em;
}

.market-volatility-list {
    display: grid;
    gap: 0.85rem;
}

.market-volatility-item {
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.market-volatility-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.market-volatility-heading > div {
    min-width: 0;
}

.market-volatility-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.market-volatility-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    color: #991b1b;
    background: rgba(254, 226, 226, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.28);
    font-size: 0.74rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}

.market-volatility-note {
    margin-top: 0.65rem;
}

.market-volatility-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.7rem;
}

.market-volatility-review-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.34rem 0.62rem;
    border: 1px solid rgba(220, 38, 38, 0.24);
    border-radius: 999px;
    color: #991b1b;
    background: rgba(254, 226, 226, 0.78);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.market-volatility-review-link:hover,
.market-volatility-review-link:focus-visible {
    color: #7f1d1d;
    background: rgba(254, 202, 202, 0.95);
    border-color: rgba(220, 38, 38, 0.42);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.14);
    transform: translateY(-1px);
}

.market-volatility-review-link:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.18);
    outline-offset: 2px;
}


.market-volatility-item.volatility-level-stable {
    border-color: rgba(22, 163, 74, 0.28);
    background:
        linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(255, 255, 255, 0.88) 56%),
        rgba(255, 255, 255, 0.9);
}

.market-volatility-item.volatility-level-moderate {
    border-color: rgba(245, 158, 11, 0.34);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.88) 56%),
        rgba(255, 255, 255, 0.9);
}

.market-volatility-item.volatility-level-high {
    border-color: rgba(220, 38, 38, 0.32);
    background:
        linear-gradient(135deg, rgba(220, 38, 38, 0.11), rgba(255, 255, 255, 0.88) 56%),
        rgba(255, 255, 255, 0.9);
}

.market-volatility-item.volatility-level-needs-data,
.market-volatility-item.volatility-level-neutral {
    border-color: rgba(100, 116, 139, 0.26);
    background:
        linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(255, 255, 255, 0.88) 56%),
        rgba(255, 255, 255, 0.9);
}

.volatility-level-badge,
.volatility-level-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
}

.volatility-level-badge {
    margin-top: 0.2rem;
    padding: 0.28rem 0.6rem;
    font-size: 0.94rem;
    line-height: 1.1;
}

.volatility-level-pill {
    padding: 0.34rem 0.62rem;
    font-size: 0.78rem;
    line-height: 1.1;
}

.volatility-level-badge.volatility-level-stable,
.volatility-level-pill.volatility-level-stable {
    color: #166534;
    background: rgba(220, 252, 231, 0.92);
    border-color: rgba(22, 163, 74, 0.24);
}

.volatility-level-badge.volatility-level-moderate,
.volatility-level-pill.volatility-level-moderate {
    color: #92400e;
    background: rgba(254, 243, 199, 0.92);
    border-color: rgba(245, 158, 11, 0.3);
}

.volatility-level-badge.volatility-level-high,
.volatility-level-pill.volatility-level-high {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.92);
    border-color: rgba(220, 38, 38, 0.26);
}

.volatility-level-badge.volatility-level-needs-data,
.volatility-level-pill.volatility-level-needs-data,
.volatility-level-badge.volatility-level-neutral,
.volatility-level-pill.volatility-level-neutral {
    color: #475569;
    background: rgba(241, 245, 249, 0.94);
    border-color: rgba(100, 116, 139, 0.22);
}

@media (max-width: 767.98px) {
    .market-volatility-heading {
        flex-direction: column;
        gap: 0.45rem;
    }

    .market-volatility-item {
        padding: 0.75rem;
    }

    .market-volatility-review-link {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

.kpi-card {
    min-height: 8rem;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tc-guide-body {
    padding: var(--card-padding-y) var(--card-padding-x);
}

.tc-guide-section + .tc-guide-section {
    margin-top: 1.5rem;
}

.tc-guide-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.tc-guide-section p {
    margin: 0 0 0.75rem;
    color: var(--muted);
}

.tc-guide-section ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tc-guide-section li + li {
    margin-top: 0.4rem;
}

.landing-shell {
    width: 100%;
    display: grid;
    gap: 1.25rem;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: -12rem auto auto 45%;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 68%);
    pointer-events: none;
}

.landing-hero-content,
.landing-demo-panel {
    position: relative;
    z-index: 1;
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2,
.landing-auth-copy h2 {
    margin: 0;
    color: var(--text);
    font-weight: 950;
    letter-spacing: -0.055em;
}

.landing-hero h1 {
    max-width: 48rem;
    font-size: clamp(2.3rem, 5vw, 4.75rem);
    line-height: 0.95;
}

.landing-lead {
    max-width: 43rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.landing-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.landing-trust-grid > div {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
}

.landing-trust-grid strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 900;
}

.landing-trust-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.landing-demo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-window {
    width: min(100%, 24rem);
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.22);
}

.demo-window-top {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.demo-window-top span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.demo-card {
    padding: 1rem;
    border-radius: 1.2rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.45), transparent 11rem),
        linear-gradient(135deg, #2563eb, #1d4ed8);
}

.demo-label,
.demo-note {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.demo-price {
    margin: 0.35rem 0;
    font-size: 2.35rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.demo-bars {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.demo-bars div {
    position: relative;
    min-height: 2.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.95rem;
    overflow: hidden;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
}

.demo-bars div::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w);
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.42), rgba(37, 99, 235, 0.15));
}

.demo-bars span {
    position: relative;
    z-index: 1;
    font-weight: 800;
}

.landing-section {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.55);
}

.landing-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.landing-section h2,
.landing-auth-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1.05;
}

.landing-section-header p,
.landing-auth-copy p,
.landing-policy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.landing-feature-grid,
.pricing-grid {
    display: grid;
    gap: 1rem;
}

.landing-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.landing-feature-card,
.pricing-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.landing-feature-card {
    padding: 1.15rem;
}

.landing-feature-card i {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.9rem;
    border-radius: 0.95rem;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.2rem;
}

.landing-feature-card h3,
.pricing-name {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 900;
}

.landing-feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.pricing-card {
    position: relative;
    padding: 1.25rem;
}

.pricing-card.featured {
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 1.5rem 4rem rgba(37, 99, 235, 0.12);
}

.pricing-pill {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 0.78rem;
    font-weight: 900;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.pricing-code {
    margin: 0.35rem 0 0.25rem;
    color: var(--text);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 950;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pricing-note {
    margin-bottom: 1rem;
    color: var(--muted);
}

.pricing-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    display: flex;
    gap: 0.5rem;
    color: #334155;
    line-height: 1.45;
}

.pricing-card li::before {
    content: "✓";
    color: var(--success);
    font-weight: 950;
}

.landing-policy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.policy-list {
    display: grid;
    gap: 0.75rem;
}

.policy-list div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface-muted);
    font-weight: 800;
}

.policy-list i {
    color: var(--primary);
}

.landing-auth-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 28rem);
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 22rem),
        rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.landing-auth-card {
    max-width: none;
    margin: 0;
}

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

@media (max-width: 991.98px) {
    :root {
        --card-padding-x: 1rem;
        --card-padding-y: 1rem;
    }

    .app-main.with-sidebar {
        padding-left: 0;
    }

    .app-content {
        padding: 1rem;
    }

    .page-shell {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .landing-section-header,
    .landing-policy,
    .landing-auth-section {
        grid-template-columns: 1fr;
    }

    .landing-trust-grid,
    .landing-feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .landing-actions .btn {
        width: 100%;
    }

    .demo-window {
        width: 100%;
    }
}

.mobile-card-primary-chip {
    display: none;
}

@media (max-width: 767.98px) {
    .metric-strip,
    .coverage-metrics {
        grid-template-columns: 1fr;
    }

    .coverage-summary {
        align-items: flex-start;
    }

    .coverage-icon {
        width: 2.85rem;
        height: 2.85rem;
        border-radius: 0.95rem;
        font-size: 1.35rem;
    }

    .comparable-scope {
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }

    .kpi-card {
        min-height: 7.25rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .mobile-card-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .mobile-card-table tr {
        margin: 0.75rem 0;
        padding: 0.95rem;
        overflow: hidden;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 1.1rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 0.65rem 1.45rem rgba(15, 23, 42, 0.055);
    }

    .mobile-card-table tr:first-child {
        margin-top: 0;
    }

    .mobile-card-table tr:last-child {
        margin-bottom: 0;
    }

    .mobile-card-table td {
        display: grid;
        grid-template-columns: minmax(6.85rem, 38%) minmax(0, 1fr);
        align-items: flex-start;
        gap: 0.72rem;
        min-width: 0;
        padding: 0.62rem 0;
        border: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
        color: var(--text);
        text-align: right;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mobile-card-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .mobile-card-table td:first-child {
        padding-top: 0;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        min-width: 0;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 900;
        line-height: 1.25;
        letter-spacing: 0.025em;
        text-align: left;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .mobile-card-table td > * {
        min-width: 0;
        max-width: 100%;
        justify-self: end;
    }

    .mobile-card-table td.text-end,
    .mobile-card-table td .text-end {
        text-align: right !important;
    }

    .mobile-card-table td[data-label="Actions"] > *,
    .mobile-card-table td[data-label="Action"] > * {
        justify-self: stretch;
        width: 100%;
    }

    .mobile-card-table td[data-label="Actions"] .d-flex,
    .mobile-card-table td[data-label="Action"] .d-flex,
    .mobile-card-table td[data-label="Actions"] .btn-group,
    .mobile-card-table td[data-label="Action"] .btn-group {
        justify-content: flex-end;
    }

    .mobile-card-table .d-flex,
    .mobile-card-table .btn-group,
    .mobile-card-table .input-group,
    .mobile-card-table form {
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .mobile-card-table .btn {
        max-width: 100%;
        white-space: normal;
    }

    .mobile-card-table td[data-label="Actions"] .btn,
    .mobile-card-table td[data-label="Action"] .btn {
        flex: 1 1 auto;
    }

    .mobile-card-table .form-control,
    .mobile-card-table .form-select,
    .mobile-card-table textarea,
    .mobile-card-table select,
    .mobile-card-table input:not([type="checkbox"]):not([type="radio"]) {
        width: 100%;
        min-width: 0;
    }

    .mobile-card-table pre,
    .mobile-card-table code,
    .mobile-card-table .text-nowrap {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mobile-card-table td[colspan] {
        display: block;
        text-align: center;
    }

    .mobile-card-table td[colspan]::before {
        display: none;
    }

    .hotel-picker-results {
        top: 4.25rem;
        left: 0.75rem;
        right: 0.75rem;
    }

    .selected-hotel {
        align-items: flex-start !important;
    }

    .selected-hotel span {
        overflow-wrap: anywhere;
    }

    .tall-select {
        min-height: 12rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --card-padding-x: 0.9rem;
        --card-padding-y: 0.9rem;
    }

    .auth-main .app-content {
        padding: 0.75rem;
    }

    .auth-card .card-body {
        padding: 1.25rem !important;
    }

    .landing-hero,
    .landing-section,
    .landing-policy,
    .landing-auth-section {
        border-radius: 1.1rem;
        padding: 1rem;
    }

    .landing-hero h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}


/* Visual and usability refinements */
.tall-select {
    min-height: 16rem;
    overflow-y: auto;
}

.tall-select option {
    padding-block: 0.28rem;
}

.app-table th,
.app-table td {
    white-space: normal;
}

.app-table td[data-label="User"],
.app-table td[data-label="E-mail"] {
    min-width: 13rem;
    word-break: keep-all;
    overflow-wrap: normal;
}

.app-table td[data-label="Message"] {
    min-width: 32rem;
    overflow-wrap: anywhere;
}

.app-table td[data-label="Hotel"] {
    min-width: 12rem;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
    min-width: 13rem;
}

.log-table th:nth-child(8),
.log-table td:nth-child(8) {
    min-width: 34rem;
}

.visual-dashboard {
    display: grid;
    gap: 1rem;
    width: min(100%, 31rem);
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 18rem),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 2rem 4.5rem rgba(15, 23, 42, 0.16);
}

.visual-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.visual-dashboard-title {
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.visual-metric {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    background: #fff;
}

.visual-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.visual-metric strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.4rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.visual-bars {
    display: grid;
    gap: 0.75rem;
}

.visual-bar {
    display: grid;
    grid-template-columns: 6rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
    font-weight: 750;
}

.visual-bar-track {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.visual-bar-track::before {
    content: "";
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

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

.visual-workflow-step {
    position: relative;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.visual-workflow-step i {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
    border-radius: 0.95rem;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.15rem;
}

.visual-workflow-step strong {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 900;
}

.visual-workflow-step span {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}

.overview-poster {
    width: 100%;
    max-width: 28rem;
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.landing-visual-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
    gap: 1.25rem;
    align-items: center;
}

.usage-explainer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.usage-explainer-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    background: var(--surface-muted);
}

.usage-explainer-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.usage-explainer-card span {
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .visual-workflow,
    .landing-visual-pair,
    .usage-explainer {
        grid-template-columns: 1fr;
    }

    .visual-dashboard {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .tall-select {
        min-height: 14rem;
    }

    .visual-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .visual-bar {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .app-table td[data-label="User"],
    .app-table td[data-label="E-mail"],
    .app-table td[data-label="Message"],
    .app-table td[data-label="Hotel"] {
        min-width: 0;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}

/* Full-width workspace update */
.app-content {
    width: 100%;
    max-width: none;
    padding: 1.5rem 2rem;
    margin: 0;
}

.app-main.with-sidebar .app-content {
    max-width: none;
}

.page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem 2rem;
}

.auth-main .app-content {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem;
}

.tc-card,
.analytics-card,
.table-responsive {
    width: 100%;
    max-width: 100%;
}

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

.app-table {
    width: 100%;
}

/* Source Records wide table layout */
.source-records-page .source-summary-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(34rem, 1.65fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.source-records-page .source-table-card {
    width: 100%;
}

.source-records-page .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.source-records-page .app-table {
    min-width: 82rem;
}

.source-records-page .app-table th:first-child,
.source-records-page .app-table td:first-child {
    min-width: 17rem;
}

.source-records-page .app-table td {
    vertical-align: top;
}

.source-records-page .app-table td:not(:first-child) {
    min-width: 12rem;
    max-width: 20rem;
    overflow-wrap: anywhere;
}


.source-url-link {
    display: inline-block;
    max-width: 100%;
    color: var(--primary);
    font-weight: 750;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.source-url-link:hover,
.source-url-link:focus-visible {
    color: var(--primary-strong);
    text-decoration: underline;
}

.hotel-urls-table td[data-label="Coverage"] {
    min-width: 6.75rem;
}

.hotel-url-edit-page .analytics-card {
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.07);
}

@media (max-width: 767.98px) {
    .source-records-page .hotel-urls-table {
        min-width: 0;
    }

    .source-records-page .hotel-urls-table td:not(:first-child) {
        min-width: 0;
        max-width: 100%;
    }

    .source-url-link {
        text-align: right;
    }
}

/* Better child age field layout */
.child-age-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.child-age-grid > * {
    flex: 0 0 9rem;
    min-width: 9rem;
}

.child-age-grid label,
.child-age-grid .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

.child-age-grid select,
.child-age-grid .form-select {
    width: 100%;
    min-height: 2.75rem;
}

/* Easier airport selection */
.tall-select {
    min-height: 16rem;
    overflow-y: auto;
}

.tall-select option {
    padding-block: 0.28rem;
}

/* Log and wide table readability */
.app-table td[data-label="User"],
.app-table td[data-label="E-mail"] {
    min-width: 12rem;
    word-break: keep-all;
    overflow-wrap: normal;
}

.app-table td[data-label="Message"] {
    min-width: 32rem;
    overflow-wrap: anywhere;
}

.app-table td[data-label="Hotel"] {
    min-width: 12rem;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
    min-width: 13rem;
}

.log-table th:nth-child(8),
.log-table td:nth-child(8) {
    min-width: 34rem;
}

@media (min-width: 1600px) {
    .app-content,
    .page-shell {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .app-content,
    .page-shell {
        padding: 1rem;
    }

    .source-records-page .source-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .source-records-page .app-table {
        min-width: 0;
    }

    .app-table td[data-label="User"],
    .app-table td[data-label="E-mail"],
    .app-table td[data-label="Message"],
    .app-table td[data-label="Hotel"] {
        min-width: 0;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .tall-select {
        min-height: 14rem;
    }
}

@media (max-width: 575.98px) {
    .child-age-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .child-age-grid > * {
        min-width: 0;
        width: 100%;
    }
}


/* Full-width CodeBW /travel-code landing override */
.app-main.auth-main {
    display: block;
    min-height: 100vh;
    padding: 0;
}

.auth-main .app-content {
    width: 100%;
    max-width: none;
    padding: 1.5rem 2rem;
    margin: 0;
}

.landing-shell,
.landing-hero,
.landing-section,
.landing-auth-section,
.landing-policy {
    width: 100%;
    max-width: none;
}

/* CodeBW style product visual */
.product-visual {
    width: min(100%, 34rem);
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 18rem),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 2rem 4.5rem rgba(15, 23, 42, 0.16);
}

.product-visual-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.35rem 1rem;
}

.product-visual-header strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.visual-kicker {
    display: block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visual-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.visual-stat-grid > div {
    padding: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    background: #fff;
}

.visual-stat-grid span,
.visual-stat-grid small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.visual-stat-grid strong {
    display: block;
    margin: 0.15rem 0;
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.market-bars {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: #fff;
}

.market-bar {
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.market-bar span {
    color: #334155;
}

.market-bar div {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.market-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.market-bar strong {
    color: #0f172a;
}

.visual-insight {
    display: flex;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.15rem;
    color: #1e3a8a;
    background: #dbeafe;
}

.visual-insight i {
    font-size: 1.35rem;
}

.visual-insight strong,
.visual-insight span {
    display: block;
}

.visual-insight span {
    margin-top: 0.2rem;
    color: #475569;
    line-height: 1.45;
}

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

.visual-module-card {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.visual-module-card i {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.9rem;
    border-radius: 0.95rem;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.2rem;
}

.visual-module-card strong,
.visual-module-card span {
    display: block;
}

.visual-module-card strong {
    margin-bottom: 0.35rem;
    font-weight: 900;
}

.visual-module-card span {
    color: var(--muted);
    line-height: 1.55;
}

@media (min-width: 1600px) {
    .auth-main .app-content {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .auth-main .app-content {
        padding: 1rem;
    }

    .product-visual {
        width: 100%;
    }

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

@media (max-width: 575.98px) {
    .visual-module-grid,
    .visual-stat-grid {
        grid-template-columns: 1fr;
    }

    .market-bar {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}


/* Brand, corporate home and premium TravelCode landing */
.brand-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: inherit;
}

.brand-lockup:hover {
    color: inherit;
}


.codebw-logo-image {
    display: block;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.18);
    flex: 0 0 auto;
}

.codebw-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    box-shadow: 0 1rem 2rem rgba(37, 99, 235, 0.25);
}

.codebw-brand {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.travelcode-brand {
    margin-top: 0.1rem;
    color: #2563eb;
    font-size: 1.15rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.brand-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.brand-nav a {
    color: var(--muted);
}

.brand-nav a:hover {
    color: var(--primary);
}

.brand-nav-cta {
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--primary) !important;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.04);
}

.corporate-shell .landing-hero h1,
.landing-shell .landing-hero h1 {
    max-width: 58rem;
}

.corporate-shell .landing-lead,
.landing-shell .landing-lead {
    max-width: 58rem;
}

.landing-hero {
    min-height: 34rem;
    align-items: center;
}

.landing-demo-panel {
    justify-content: flex-end;
}

.product-visual {
    width: min(100%, 38rem);
}

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

.visual-module-card {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.visual-module-card i {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.9rem;
    border-radius: 0.95rem;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.2rem;
}

.visual-module-card strong,
.visual-module-card span {
    display: block;
}

.visual-module-card strong {
    margin-bottom: 0.35rem;
    font-weight: 900;
}

.visual-module-card span {
    color: var(--muted);
    line-height: 1.55;
}

.visual-workflow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
    .visual-workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991.98px) {
    .brand-topbar,
    .brand-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-nav {
        width: 100%;
        gap: 0.75rem;
    }

    .product-visual {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .visual-module-grid,
    .visual-stat-grid,
    .visual-workflow {
        grid-template-columns: 1fr;
    }

    .market-bar {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}


/* Premium corporate SaaS visual layer */
.premium-landing {
    gap: 1.5rem;
}

.premium-topbar {
    position: sticky;
    top: 1rem;
    z-index: 20;
    border-color: rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px);
}

.saas-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(26rem, 0.95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 42rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 80% 12%, rgba(37, 99, 235, 0.16), transparent 24rem),
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.10), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    box-shadow: 0 2rem 5.5rem rgba(15, 23, 42, 0.08);
}

.saas-hero-bg {
    position: absolute;
    inset: auto -8rem -12rem auto;
    width: 32rem;
    height: 32rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
    pointer-events: none;
}

.saas-hero-content,
.saas-hero-visual {
    position: relative;
    z-index: 1;
}

.saas-hero h1 {
    max-width: 58rem;
    margin: 0;
    color: var(--text);
    font-size: clamp(3rem, 6.2vw, 6rem);
    font-weight: 950;
    letter-spacing: -0.07em;
    line-height: 0.93;
}

.hero-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.hero-proof-grid > div {
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.04);
}

.hero-proof-grid span,
.hero-proof-grid small {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.hero-proof-grid strong {
    display: block;
    margin: 0.15rem 0;
    color: var(--text);
    font-size: 1.65rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.dashboard-window {
    width: min(100%, 44rem);
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at 90% 0%, rgba(96, 165, 250, 0.22), transparent 18rem),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 2rem 5rem rgba(15, 23, 42, 0.16);
}

.dashboard-window-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.35rem 1rem;
}

.dashboard-window-top strong {
    display: block;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr;
    gap: 0.75rem;
}

.dash-card {
    padding: 1rem;
    min-height: 7rem;
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    background: #fff;
}

.dash-card.big {
    background:
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.12), transparent 9rem),
        #fff;
}

.dash-card span,
.dash-card small {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.dash-card strong {
    display: block;
    margin: 0.35rem 0 0.15rem;
    color: var(--text);
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.premium-bars {
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.45);
}

.impact-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.impact-card {
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.impact-card i {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.85rem;
    border-radius: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    font-size: 1.25rem;
}

.impact-card strong,
.impact-card span {
    display: block;
}

.impact-card strong {
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 950;
}

.impact-card span {
    color: var(--muted);
    line-height: 1.55;
}

.premium-section {
    position: relative;
    overflow: hidden;
}

.premium-section::before {
    content: "";
    position: absolute;
    inset: -12rem -10rem auto auto;
    width: 22rem;
    height: 22rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    pointer-events: none;
}

.premium-module {
    min-height: 13rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.premium-module:hover {
    transform: translateY(-0.25rem);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.09);
}

.comparison-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: 2rem;
    align-items: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.10), transparent 22rem),
        rgba(255, 255, 255, 0.72);
}

.showcase-copy h2 {
    margin: 0;
    max-width: 48rem;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
}

.showcase-copy p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.showcase-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.showcase-list div {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    color: #334155;
    font-weight: 750;
}

.showcase-list i {
    color: var(--primary);
    font-size: 1.15rem;
}

.showcase-panel {
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.mini-table {
    display: grid;
    gap: 0.55rem;
}

.mini-table > div {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.7fr 0.6fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    background: #f8fafc;
}

.mini-table .mini-table-head {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #eef2ff;
}

.mini-table strong {
    color: var(--text);
}

.mini-table em {
    justify-self: start;
    font-style: normal;
}

.visual-workflow-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.premium-policy {
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.10), transparent 22rem),
        rgba(255, 255, 255, 0.86);
}

.premium-signin {
    border-radius: 1.6rem;
    box-shadow: var(--shadow-sm);
}

.corporate-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(219, 234, 254, 0.7);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1199.98px) {
    .saas-hero,
    .comparison-showcase {
        grid-template-columns: 1fr;
    }

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

    .saas-hero h1 {
        font-size: clamp(2.6rem, 8vw, 4.5rem);
    }
}

@media (max-width: 991.98px) {
    .premium-topbar {
        position: static;
    }

    .saas-hero {
        min-height: auto;
        padding: 1.25rem;
        border-radius: 1.35rem;
    }

    .hero-proof-grid,
    .impact-section,
    .dashboard-grid,
    .visual-workflow-5 {
        grid-template-columns: 1fr;
    }

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

    .mini-table > div {
        min-width: 42rem;
    }
}


/* Info popovers for analytics explanations */
.info-popover {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-left: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--primary);
    background: #fff;
    font-size: 0.95rem;
    line-height: 1;
    vertical-align: middle;
}

.chart-info-button {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 0;
    cursor: pointer;
}

.info-popover:hover,
.info-popover:focus {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.popover {
    max-width: 25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.popover-header {
    color: var(--text);
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 850;
}

.popover-body {
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .analytics-card-header-with-info {
        gap: 0.75rem;
    }

    .analytics-card-actions {
        gap: 0.4rem;
    }

    .chart-info-button {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.88rem;
    }
}


/* v6.3 layout fixes */
.premium-landing,
.corporate-shell,
.landing-shell {
    padding-left: clamp(1.25rem, 2.4vw, 3rem);
    padding-right: clamp(1.25rem, 2.4vw, 3rem);
}

.premium-landing .saas-hero {
    padding-left: clamp(2rem, 5.5vw, 6rem);
    padding-right: clamp(2rem, 5.5vw, 6rem);
}

.premium-landing .saas-hero-content {
    max-width: 58rem;
}

.child-age-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
    gap: 0.85rem;
    align-items: start;
    max-width: 32rem;
}

.child-age-field {
    min-width: 0;
}

.child-age-field label,
.child-age-field .form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    white-space: normal;
}

.child-age-field .form-select,
.child-age-field select {
    width: 100%;
    min-width: 8.5rem;
    min-height: 2.75rem;
}

.tc-stat-card {
    height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tc-stat-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tc-stat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tc-stat-value {
    margin-top: 0.35rem;
    font-size: 2.4rem;
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1;
}

.tc-stat-subtitle {
    margin-top: 0.45rem;
    color: var(--muted);
}

.tc-stat-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.2rem;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 1.4rem;
}

.provider-coverage-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.provider-coverage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    background: var(--surface-muted);
}

.provider-coverage-row span {
    color: #334155;
    font-weight: 750;
}

.provider-coverage-row strong {
    font-size: 0.95rem;
    font-weight: 900;
}

@media (max-width: 991.98px) {
    .premium-landing,
    .corporate-shell,
    .landing-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .premium-landing .saas-hero {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .child-age-grid {
        grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .child-age-grid {
        grid-template-columns: 1fr;
    }

    .child-age-field .form-select,
    .child-age-field select {
        min-width: 0;
    }
}


/* Dashboard usage and subscription cards */
.usage-kpi {
    position: relative;
    overflow: hidden;
}

.usage-kpi::after {
    content: "";
    position: absolute;
    inset: auto -2rem -3rem auto;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 70%);
    pointer-events: none;
}

.usage-kpi .kpi-value {
    color: var(--primary);
}



/* Final corporate product highlight alignment fix */
.site-product-highlight {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(28rem, 1.05fr);
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 28rem),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.site-product-copy h2 {
    max-width: 48rem;
    margin: 0;
    color: var(--text);
    font-size: clamp(2.4rem, 4vw, 4.25rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.055em;
}

.site-product-copy p {
    max-width: 44rem;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.product-benefit-list {
    display: grid;
    gap: 0.85rem;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    list-style: none;
}

.product-benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #0f172a;
    font-weight: 850;
}

.product-benefit-list li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.9rem;
    font-weight: 950;
}

.site-product-table-card {
    padding: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.08);
}

.log-table th:nth-child(10),
.log-table td:nth-child(10) {
    min-width: 28rem;
}

.log-table th:nth-child(11),
.log-table td:nth-child(11),
.log-table th:nth-child(12),
.log-table td:nth-child(12) {
    min-width: 18rem;
}

.log-url-cell a {
    display: inline-flex;
    margin-bottom: 0.35rem;
    font-weight: 850;
}

.log-url-preview {
    max-width: 28rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
    .site-product-highlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .site-product-highlight {
        padding: 1rem;
        border-radius: 1.1rem;
    }

    .site-product-copy h2 {
        font-size: 2.2rem;
    }
}


/* Admin product plans */
.product-plan-row-inactive {
    opacity: 0.64;
    background: #f8fafc;
}

.product-plan-row-inactive td {
    color: #64748b;
}

.product-plan-row-inactive input,
.product-plan-row-inactive select,
.product-plan-row-inactive textarea {
    background-color: #f1f5f9;
    color: #64748b;
}

.product-plan-status {
    width: fit-content;
    font-size: 0.65rem;
}

.payment-plan-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.payment-plan-card:hover,
.payment-plan-card:has(input:checked) {
    border-color: rgba(37, 99, 235, .75);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.payment-plan-card input {
    width: 1rem;
    height: 1rem;
}

.payment-plan-name {
    font-weight: 700;
    color: #0f172a;
}

.payment-plan-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2563eb;
}

.payment-plan-note {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.35;
}

.payment-bank-details {
    display: grid;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.payment-bank-details dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.payment-bank-details dd {
    margin-bottom: 0;
    color: #0f172a;
}

.admin-payment-action-form {
    min-width: 14rem;
}

/* File: wwwroot/css/site.css */

.whatsapp-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    width: auto;
    max-width: 20rem;
    pointer-events: none;
}

.whatsapp-backdrop,
.whatsapp-menu-header {
    display: none;
}

.whatsapp-fab {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1rem;
    color: #fff;
    background: #25d366;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.22);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .whatsapp-fab:hover,
    .whatsapp-fab:focus-visible {
        color: #fff;
        background: #1ebe5d;
        transform: translateY(-0.15rem);
        box-shadow: 0 1.25rem 2.6rem rgba(15, 23, 42, 0.28);
    }

    .whatsapp-fab i {
        font-size: 1.25rem;
    }

.whatsapp-menu {
    display: grid;
    gap: 0.65rem;
    width: min(20rem, calc(100vw - 2rem));
    margin-bottom: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.5rem) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.13s ease, transform 0.13s ease, visibility 0.13s ease;
}

.whatsapp-widget.open .whatsapp-menu,
.whatsapp-widget.is-open .whatsapp-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.whatsapp-option {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    width: min(20rem, calc(100vw - 2rem));
    padding: 0.85rem 0.95rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.14);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

    .whatsapp-option:hover,
    .whatsapp-option:focus-visible {
        color: #0f172a;
        border-color: rgba(37, 211, 102, 0.7);
        transform: translateY(-0.1rem);
    }

    .whatsapp-option i {
        display: inline-grid;
        place-items: center;
        width: 2.35rem;
        height: 2.35rem;
        color: #fff;
        background: #25d366;
        border-radius: 999px;
        flex: 0 0 auto;
    }

    .whatsapp-option span {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }

    .whatsapp-option strong,
    .whatsapp-option small {
        display: block;
    }

    .whatsapp-option small {
        color: #64748b;
    }

@media (max-width: 575.98px) {
    body.whatsapp-sheet-open {
        overflow: hidden;
    }

    .whatsapp-widget {
        right: max(0.9rem, env(safe-area-inset-right));
        bottom: calc(1rem + env(safe-area-inset-bottom));
        max-width: calc(100vw - 1.5rem);
    }

    .whatsapp-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1078;
        display: block;
        background: rgba(15, 23, 42, 0.38);
        backdrop-filter: blur(0.75px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.12s ease, visibility 0.12s ease;
    }

    .whatsapp-widget.open .whatsapp-backdrop,
    .whatsapp-widget.is-open .whatsapp-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .whatsapp-fab {
        position: fixed;
        right: max(0.9rem, env(safe-area-inset-right));
        bottom: calc(1rem + env(safe-area-inset-bottom));
        z-index: 1081;
        display: inline-grid;
        place-items: center;
        width: 3.35rem;
        height: 3.35rem;
        min-width: 3.35rem;
        min-height: 3.35rem;
        padding: 0;
        border: 2px solid rgba(255, 255, 255, 0.75);
        border-radius: 999px;
        background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
        box-shadow: 0 0.8rem 1.8rem rgba(22, 163, 74, 0.35);
    }

    .whatsapp-widget.open .whatsapp-fab,
    .whatsapp-widget.is-open .whatsapp-fab {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .whatsapp-fab span {
        display: none;
    }

    .whatsapp-fab i {
        font-size: 1.45rem;
        line-height: 1;
    }

    .whatsapp-menu {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1082;
        display: grid;
        width: 100%;
        max-height: calc(100dvh - 4.5rem);
        margin: 0;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-bottom: 0;
        border-radius: 1.5rem 1.5rem 0 0;
        box-shadow: 0 -1rem 3rem rgba(15, 23, 42, 0.24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(110%);
        transform-origin: bottom center;
        transition: transform 0.17s cubic-bezier(0.2, 0.85, 0.22, 1), opacity 0.12s ease, visibility 0.12s ease;
        touch-action: pan-y;
        will-change: transform, opacity;
    }

    .whatsapp-widget.open .whatsapp-menu,
    .whatsapp-widget.is-open .whatsapp-menu {
        opacity: var(--whatsapp-sheet-drag-opacity, 1);
        visibility: visible;
        pointer-events: auto;
        transform: translateY(var(--whatsapp-sheet-drag-y, 0)) scale(var(--whatsapp-sheet-drag-scale, 1));
    }

    .whatsapp-menu.is-swiping {
        transition: none;
    }

    .whatsapp-menu-header {
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding-top: 0.85rem;
        padding-bottom: 0.35rem;
    }

    .whatsapp-menu-header::before {
        content: "";
        position: absolute;
        top: 0.15rem;
        left: 50%;
        width: 2.75rem;
        height: 0.28rem;
        border-radius: 999px;
        background: rgba(100, 116, 139, 0.35);
        transform: translateX(-50%);
    }

    .whatsapp-menu-header strong,
    .whatsapp-menu-header small {
        display: block;
    }

    .whatsapp-menu-header strong {
        color: #0f172a;
        font-size: 1rem;
        font-weight: 800;
    }

    .whatsapp-menu-header small {
        color: #64748b;
        font-size: 0.82rem;
    }

    .whatsapp-menu-close {
        display: inline-grid;
        place-items: center;
        width: 2.35rem;
        height: 2.35rem;
        color: #0f172a;
        background: rgba(15, 23, 42, 0.06);
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 999px;
    }

    .whatsapp-option {
        width: 100%;
        box-shadow: none;
    }
}

.hotel-list-information-note {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 1rem;
    background: rgba(14, 165, 233, 0.06);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.55;
}

.hotel-list-information-note i {
    color: #0284c7;
}

.hotel-list-information-note strong {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.hotel-list-information-note .hotel-list-information-subtitle {
    margin-bottom: 0.1rem;
    color: var(--text);
    font-size: 0.84rem;
}

.hotel-list-information-note p {
    margin: 0;
    color: var(--muted);
}


.hotel-list-information-note {
    padding: 0.85rem 0.95rem;
    color: #334155;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.hotel-list-information-note p {
    margin: 0.25rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.hotel-list-information-note i {
    color: var(--primary);
}

.hotel-duplicate-merge-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: #047857;
}

.hotel-duplicate-merge-link:hover {
    color: #065f46;
}

.duplicate-merge-message {
    max-width: 26rem;
    white-space: pre-wrap;
}



.premium-decision-modal .modal-content {
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.premium-decision-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.10);
    color: #0d6efd;
    font-size: 1.6rem;
}

.premium-decision-modal[data-tone="success"] .premium-decision-icon {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.premium-decision-modal[data-tone="danger"] .premium-decision-icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.premium-decision-modal[data-tone="warning"] .premium-decision-icon {
    background: rgba(255, 193, 7, 0.18);
    color: #996404;
}


.pricing-offer-banner {
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 23, 42, 0.03));
    color: #1e293b;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.pricing-list-price,
.payment-plan-list-price {
    color: #94a3b8;
    font-weight: 700;
    text-decoration: line-through;
}

.pricing-discount,
.payment-plan-save {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 5px 10px;
    margin-top: 6px;
}


/* TravelCode landing product video */
.travelcode-video-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 0.75fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: 1.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.12), transparent 24rem),
        radial-gradient(circle at 88% 82%, rgba(14, 165, 233, 0.10), transparent 22rem),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.travelcode-video-copy h2 {
    max-width: 46rem;
    margin: 0;
    color: var(--text);
    font-size: clamp(2.4rem, 4.4vw, 4.5rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.06em;
}

.travelcode-video-copy p {
    max-width: 43rem;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.video-proof-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
}

.video-proof-list span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #0f172a;
    font-weight: 850;
}

.video-proof-list i {
    color: var(--primary);
    font-size: 1.1rem;
}

.travelcode-video-device {
    display: flex;
    justify-content: center;
}

.video-phone-frame {
    position: relative;
    width: min(100%, 24rem);
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 2.4rem;
    background:
        linear-gradient(145deg, #0f172a, #1e293b);
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.26);
}

.video-phone-frame::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    pointer-events: none;
}

.video-phone-speaker {
    position: absolute;
    top: 1.05rem;
    left: 50%;
    z-index: 2;
    width: 5.5rem;
    height: 0.38rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-50%);
}

.travelcode-intro-video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #020617;
}

@media (max-width: 991.98px) {
    .travelcode-video-section {
        grid-template-columns: 1fr;
    }

    .travelcode-video-device {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .travelcode-video-section {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .travelcode-video-device {
        justify-content: center;
    }

    .video-phone-frame {
        width: min(100%, 20rem);
        border-radius: 2rem;
    }

    .travelcode-intro-video {
        border-radius: 1.45rem;
    }
}



/* Operational log compact details */
.log-compact-scroll {
    overflow-x: visible;
}

.log-compact-table {
    table-layout: fixed;
    width: 100%;
}

.log-compact-table th,
.log-compact-table td {
    vertical-align: top;
}

.log-compact-table th:nth-child(1),
.log-compact-table td:nth-child(1) {
    width: 8.5rem;
}

.log-compact-table th:nth-child(2),
.log-compact-table td:nth-child(2) {
    width: 15rem;
}

.log-compact-table th:nth-child(3),
.log-compact-table td:nth-child(3) {
    width: 13rem;
}

.log-compact-table th:nth-child(4),
.log-compact-table td:nth-child(4) {
    width: 14rem;
}

.log-compact-table th:nth-child(5),
.log-compact-table td:nth-child(5) {
    width: 14rem;
}

.log-compact-table th:nth-child(6),
.log-compact-table td:nth-child(6) {
    width: 8rem;
}

.log-compact-table th:nth-child(8),
.log-compact-table td:nth-child(8) {
    width: 7rem;
}

.log-main-text {
    font-weight: 700;
    color: #0f172a;
}

.log-muted {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.3;
}

.log-message-summary {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.45;
}

.log-details-row > td {
    border-top: 0;
    background: #f8fafc;
}

.log-details-panel {
    margin: 0.25rem 0.75rem 1rem;
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.06);
}

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

.log-detail-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.log-detail-block {
    margin-top: 1rem;
}

.log-detail-value,
.log-detail-link {
    display: block;
    max-width: 100%;
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.log-detail-link {
    color: #2563eb;
    text-decoration: none;
}

.log-detail-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .log-compact-table {
        table-layout: auto;
    }

    .log-details-grid {
        grid-template-columns: 1fr;
    }

    .log-compact-table th,
    .log-compact-table td {
        width: auto !important;
    }
}


/* Demo and upgrade CTA visibility */
.brand-nav-primary {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .16);
}

.auth-trial-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .98));
}

.auth-trial-cta strong,
.auth-trial-cta small {
    display: block;
}

.auth-trial-kicker {
    display: block;
    margin-bottom: .15rem;
    color: #64748b;
    font-size: .85rem;
}

.dashboard-upgrade-banner {
    border: 1px solid rgba(37, 99, 235, .18);
    background: linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(255, 255, 255, .98));
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

@media (max-width: 575.98px) {
    .auth-trial-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-trial-cta .btn {
        width: 100%;
    }
}


/* Mobile UX polish */
@media (max-width: 767.98px) {
    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    .app-main,
    .app-content,
    .page-shell,
    .tc-card,
    .analytics-card,
    .table-responsive,
    .site-product-table-card,
    .source-records-page .source-summary-grid,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer,
    .landing-visual-pair,
    .log-details-grid {
        min-width: 0;
        max-width: 100%;
    }

    .app-content,
    .page-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .table-responsive,
    .log-compact-scroll {
        overflow-x: visible;
    }

    .source-records-page .source-summary-grid,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer,
    .landing-visual-pair,
    .log-details-grid {
        grid-template-columns: 1fr;
    }

    .source-records-page .app-table,
    .source-records-page .app-table th,
    .source-records-page .app-table td,
    .log-compact-table,
    .log-compact-table th,
    .log-compact-table td,
    .bandwidth-main-table,
    .bandwidth-main-table th,
    .bandwidth-main-table td,
    .product-plans-table,
    .product-plans-table th,
    .product-plans-table td,
    .proxy-edit-table,
    .proxy-edit-table th,
    .proxy-edit-table td,
    .proxy-status-table,
    .proxy-status-table th,
    .proxy-status-table td {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .app-table td[data-label="User"],
    .app-table td[data-label="E-mail"],
    .app-table td[data-label="Message"],
    .app-table td[data-label="Hotel"],
    .app-table td[data-label="Provider"],
    .app-table td[data-label="Effective server"],
    .app-table td[data-label="Base server"],
    .app-table td[data-label="Intro label"] {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mobile-card-table .status-badge,
    .mobile-card-table .badge {
        max-width: 100%;
        white-space: normal;
        text-align: right;
    }

    .mobile-card-table .form-check,
    .mobile-card-table .form-switch {
        justify-self: end;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .page-header,
    .analytics-card-header,
    .tc-card-header,
    .brand-topbar,
    .landing-actions,
    .auth-trial-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .page-header > *,
    .analytics-card-header > *,
    .tc-card-header > *,
    .brand-lockup,
    .brand-nav,
    .landing-actions .btn,
    .auth-trial-cta .btn {
        min-width: 0;
        max-width: 100%;
    }

    .page-header .btn,
    .page-header .btn-group,
    .landing-actions .btn,
    .auth-trial-cta .btn {
        width: 100%;
    }

    .brand-topbar {
        padding: 0.8rem;
    }

    .brand-lockup {
        overflow: hidden;
    }

    .brand-nav {
        width: 100%;
        gap: 0.55rem;
    }

    .brand-nav a {
        width: 100%;
        padding-block: 0.45rem;
        overflow-wrap: anywhere;
    }

    .codebw-brand,
    .travelcode-brand,
    .mobile-title,
    .tc-card-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mini-table {
        overflow-x: visible;
    }

    .mini-table > div {
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .mini-table > div > * {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mobile-card-table tr {
        padding: 0.85rem;
        border-radius: 1rem;
    }

    .mobile-card-table td {
        grid-template-columns: minmax(6.4rem, 39%) minmax(0, 1fr);
        gap: 0.62rem;
        padding: 0.58rem 0;
    }

    .mobile-card-table td::before {
        font-size: 0.68rem;
    }
}

@media (max-width: 379.98px) {
    .app-content,
    .page-shell {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .mobile-card-table tr {
        margin: 0.65rem 0;
        padding: 0.75rem;
        border-radius: 0.9rem;
    }

    .mobile-card-table td {
        grid-template-columns: minmax(5.85rem, 37%) minmax(0, 1fr);
        gap: 0.55rem;
        font-size: 0.86rem;
    }

    .mobile-card-table td::before {
        font-size: 0.64rem;
        letter-spacing: 0.015em;
    }

    .mobile-card-table td[data-label="Actions"],
    .mobile-card-table td[data-label="Action"] {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .mobile-card-table td[data-label="Actions"]::before,
    .mobile-card-table td[data-label="Action"]::before {
        margin-bottom: 0.15rem;
    }

    .mobile-card-table td[data-label="Actions"] > *,
    .mobile-card-table td[data-label="Action"] > * {
        justify-self: stretch;
    }
}

@media (max-width: 339.98px) {
    .app-content,
    .page-shell {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .mobile-card-table td {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .mobile-card-table td::before {
        margin-bottom: 0.1rem;
    }

    .mobile-card-table td > *,
    .mobile-card-table .form-check,
    .mobile-card-table .form-switch {
        justify-self: start;
    }

    .mobile-card-table td.text-end,
    .mobile-card-table td .text-end {
        text-align: left !important;
    }

    .mobile-card-table .status-badge,
    .mobile-card-table .badge {
        text-align: left;
    }
}

/* Mobile admin action bar */
@media (max-width: 767.98px) {
    .mobile-card-table td[data-label="Actions"],
    .mobile-card-table td[data-label="Action"],
    .mobile-card-table td[data-label="Details"]:not([colspan]) {
        display: block;
        margin: 0.4rem -0.2rem -0.2rem;
        padding: 0.8rem 0.2rem 0.15rem;
        border-bottom: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        text-align: left !important;
    }

    .mobile-card-table td[data-label="Actions"]::before,
    .mobile-card-table td[data-label="Action"]::before,
    .mobile-card-table td[data-label="Details"]:not([colspan])::before {
        display: block;
        margin-bottom: 0.55rem;
        color: #64748b;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        line-height: 1;
        text-align: left;
        text-transform: uppercase;
    }

    .mobile-card-table td[data-label="Actions"] > *,
    .mobile-card-table td[data-label="Action"] > *,
    .mobile-card-table td[data-label="Details"]:not([colspan]) > * {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .mobile-card-table td[data-label="Actions"] .d-flex,
    .mobile-card-table td[data-label="Action"] .d-flex,
    .mobile-card-table td[data-label="Details"]:not([colspan]) .d-flex,
    .mobile-card-table td[data-label="Actions"] .btn-group,
    .mobile-card-table td[data-label="Action"] .btn-group,
    .mobile-card-table td[data-label="Details"]:not([colspan]) .btn-group {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(7.75rem, 1fr));
        gap: 0.55rem;
        justify-content: stretch !important;
        width: 100%;
    }

    .mobile-card-table td[data-label="Actions"] .btn,
    .mobile-card-table td[data-label="Action"] .btn,
    .mobile-card-table td[data-label="Details"]:not([colspan]) .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.45rem;
        width: 100%;
        padding: 0.52rem 0.72rem;
        border-radius: 0.85rem;
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1.15;
        white-space: normal;
    }

    .product-plans-table td[data-label="Actions"],
    .proxy-edit-table td[data-label="Action"],
    .log-compact-table td[data-label="Details"]:not([colspan]) {
        position: sticky;
        right: 0;
        bottom: 0;
        z-index: 2;
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, #ffffff 28%, #ffffff 100%);
        backdrop-filter: blur(10px);
    }

    .product-plans-table td[data-label="Actions"] .d-flex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 339.98px) {
    .mobile-card-table td[data-label="Actions"] .d-flex,
    .mobile-card-table td[data-label="Action"] .d-flex,
    .mobile-card-table td[data-label="Details"]:not([colspan]) .d-flex,
    .mobile-card-table td[data-label="Actions"] .btn-group,
    .mobile-card-table td[data-label="Action"] .btn-group,
    .mobile-card-table td[data-label="Details"]:not([colspan]) .btn-group,
    .product-plans-table td[data-label="Actions"] .d-flex {
        grid-template-columns: 1fr;
    }

    .mobile-card-table td[data-label="Actions"] .btn,
    .mobile-card-table td[data-label="Action"] .btn,
    .mobile-card-table td[data-label="Details"]:not([colspan]) .btn {
        min-height: 2.35rem;
        font-size: 0.8rem;
    }
}

/* Mobile premium forms and collapsible admin cards */
.mobile-card-detail-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    .form-label,
    .col-form-label {
        margin-bottom: 0.38rem;
        color: #334155;
        font-size: 0.86rem;
        font-weight: 850;
        letter-spacing: -0.01em;
    }

    .form-control,
    .form-select {
        min-width: 0;
        min-height: 2.85rem;
        border-color: rgba(203, 213, 225, 0.95);
        border-radius: 0.95rem;
        background-color: #ffffff;
        font-size: 16px;
        box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.035);
    }

    textarea.form-control {
        min-height: 7rem;
        line-height: 1.45;
        resize: vertical;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(37, 99, 235, 0.58);
        box-shadow:
            0 0 0 0.2rem rgba(37, 99, 235, 0.12),
            0 0.65rem 1.4rem rgba(37, 99, 235, 0.08);
    }

    .input-group {
        align-items: stretch;
        min-width: 0;
        border-radius: 0.95rem;
    }

    .input-group > .form-control,
    .input-group > .form-select,
    .input-group > .btn,
    .input-group > .input-group-text {
        min-width: 0;
        min-height: 2.85rem;
    }

    .input-group > .input-group-text {
        border-color: rgba(203, 213, 225, 0.95);
        background: #f8fafc;
        color: #475569;
        font-size: 0.84rem;
        font-weight: 800;
    }

    .form-text,
    .text-muted.small,
    .field-validation-valid,
    .field-validation-error,
    .invalid-feedback {
        overflow-wrap: anywhere;
        line-height: 1.4;
    }

    .field-validation-error,
    .invalid-feedback,
    .validation-summary-errors,
    .validation-summary-valid.text-danger:not(:empty) {
        display: block;
        margin-top: 0.45rem;
        padding: 0.58rem 0.72rem;
        border: 1px solid rgba(220, 38, 38, 0.18);
        border-radius: 0.85rem;
        background: rgba(254, 242, 242, 0.92);
        color: #b91c1c !important;
        font-size: 0.84rem;
        font-weight: 700;
    }

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.05rem;
    }

    .form-check {
        display: flex;
        align-items: flex-start;
        gap: 0.68rem;
        min-width: 0;
        padding: 0.72rem 0.82rem;
        border: 1px solid rgba(203, 213, 225, 0.72);
        border-radius: 1rem;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.035);
    }

    .form-check .form-check-input {
        flex: 0 0 auto;
        width: 1.15rem;
        height: 1.15rem;
        margin-top: 0.12rem;
        margin-left: 0;
        border-color: #94a3b8;
        cursor: pointer;
    }

    .form-check .form-check-label {
        min-width: 0;
        color: #1e293b;
        font-size: 0.9rem;
        font-weight: 750;
        line-height: 1.35;
        overflow-wrap: anywhere;
        cursor: pointer;
    }

    .form-switch {
        align-items: center;
        padding: 0.78rem 0.88rem;
    }

    .form-switch .form-check-input {
        width: 2.75rem;
        height: 1.48rem;
        margin-top: 0;
        background-color: #cbd5e1;
        background-position: left center;
        border-color: transparent;
    }

    .form-switch .form-check-input:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    .form-switch .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
    }

    .mobile-card-table .form-check {
        justify-self: stretch;
        width: 100%;
        text-align: left;
    }

    .mobile-card-table .form-check .form-check-label {
        flex: 1 1 auto;
    }

    .admin-mobile-collapsible-table tr {
        position: relative;
        display: flex;
        flex-direction: column;
        transition: box-shadow 160ms ease, transform 160ms ease;
    }

    .admin-mobile-collapsible-table tr.has-mobile-details:not(.is-mobile-expanded) {
        box-shadow: 0 0.72rem 1.65rem rgba(15, 23, 42, 0.065);
    }

    .admin-mobile-collapsible-table td.mobile-card-summary-field {
        border-bottom-color: rgba(203, 213, 225, 0.9);
    }

    .admin-mobile-collapsible-table td.mobile-card-summary-field::before {
        color: #475569;
    }

    .admin-mobile-collapsible-table td.mobile-card-summary-field > * {
        font-weight: 750;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value {
        order: -20;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0.72rem;
        row-gap: 0.35rem;
        margin: -0.08rem 0 0.45rem;
        padding: 0.82rem 0.9rem;
        border: 1px solid rgba(37, 99, 235, 0.14);
        border-radius: 1rem;
        background:
            radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.16), transparent 8rem),
            linear-gradient(135deg, rgba(239, 246, 255, 0.96), #ffffff);
        color: #0f172a;
        font-size: 1rem;
        font-weight: 950;
        letter-spacing: -0.02em;
        line-height: 1.28;
        text-align: left;
        box-shadow: 0 0.7rem 1.45rem rgba(37, 99, 235, 0.08);
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value::before {
        grid-column: 1 / -1;
        color: #2563eb;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value > * {
        justify-self: start;
        font-size: inherit;
        font-weight: inherit;
        text-align: left !important;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .badge,
    .admin-mobile-collapsible-table td.mobile-card-primary-value .status-badge {
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-main {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-mobile-collapsible-table td.mobile-card-chip-source {
        display: none !important;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        align-self: center;
        max-width: 8.25rem;
        min-height: 1.72rem;
        padding: 0.3rem 0.58rem;
        border: 1px solid rgba(100, 116, 139, 0.16);
        border-radius: 999px;
        background: rgba(248, 250, 252, 0.92);
        color: #475569;
        font-size: 0.72rem;
        font-weight: 950;
        letter-spacing: -0.01em;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.07);
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-chip[data-mobile-chip-kind="metric"] {
        font-variant-numeric: tabular-nums;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-chip[data-mobile-chip-tone="success"] {
        border-color: rgba(22, 163, 74, 0.18);
        background: rgba(220, 252, 231, 0.9);
        color: #15803d;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-chip[data-mobile-chip-tone="danger"] {
        border-color: rgba(220, 38, 38, 0.18);
        background: rgba(254, 226, 226, 0.9);
        color: #b91c1c;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-chip[data-mobile-chip-tone="warning"] {
        border-color: rgba(217, 119, 6, 0.2);
        background: rgba(254, 243, 199, 0.9);
        color: #b45309;
    }

    .admin-mobile-collapsible-table td.mobile-card-primary-value .mobile-card-primary-chip[data-mobile-chip-tone="info"] {
        border-color: rgba(37, 99, 235, 0.17);
        background: rgba(219, 234, 254, 0.88);
        color: #1d4ed8;
    }

    .admin-mobile-collapsible-table td.mobile-card-summary-field:first-child {
        padding-top: 0;
    }

    .admin-mobile-collapsible-table td[data-mobile-detail="true"]:not([colspan]) {
        display: none;
        order: 100;
    }

    .admin-mobile-collapsible-table tr.is-mobile-expanded td[data-mobile-detail="true"]:not([colspan]) {
        display: grid;
        animation: adminMobileDetailIn 150ms ease-out;
    }

    .admin-mobile-collapsible-table tr.is-mobile-expanded td[data-mobile-detail="true"]:not([colspan]) + td[data-mobile-detail="true"]:not([colspan]) {
        border-top: 0;
    }

    .admin-mobile-collapsible-table .mobile-card-detail-toggle {
        order: 750;
        display: block;
        margin: 0.45rem 0 0;
        padding: 0.72rem 0 0.32rem;
        border-top: 1px dashed rgba(203, 213, 225, 0.95);
        border-bottom: 0;
        text-align: left;
    }

    .admin-mobile-collapsible-table .mobile-card-detail-toggle::before {
        display: none;
    }

    .admin-mobile-collapsible-table td[data-label="Actions"],
    .admin-mobile-collapsible-table td[data-label="Action"],
    .admin-mobile-collapsible-table td[data-label="Details"]:not([colspan]) {
        order: 800;
    }

    .mobile-details-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        width: 100%;
        min-height: 2.55rem;
        border: 1px solid rgba(37, 99, 235, 0.18);
        border-radius: 999px;
        background:
            linear-gradient(135deg, rgba(239, 246, 255, 0.96), #ffffff),
            #ffffff;
        color: #1d4ed8;
        font-size: 0.83rem;
        font-weight: 900;
        line-height: 1.15;
        box-shadow: 0 0.55rem 1.1rem rgba(37, 99, 235, 0.075);
        transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
    }

    .mobile-details-toggle:active {
        transform: scale(0.985);
        box-shadow: 0 0.35rem 0.85rem rgba(37, 99, 235, 0.09);
    }

    .mobile-details-toggle::after {
        content: "⌄";
        font-size: 1rem;
        line-height: 1;
        transform: translateY(-0.02rem);
        transition: transform 140ms ease;
    }

    .mobile-details-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    .product-plans-table td[data-label="Actions"],
    .proxy-edit-table td[data-label="Action"],
    .log-compact-table td[data-label="Details"]:not([colspan]) {
        margin-top: 0.45rem;
    }
}

@media (max-width: 379.98px) {
    .form-control,
    .form-select,
    .input-group > .form-control,
    .input-group > .form-select,
    .input-group > .btn,
    .input-group > .input-group-text {
        min-height: 2.7rem;
        border-radius: 0.85rem;
    }

    .form-check {
        padding: 0.64rem 0.68rem;
        border-radius: 0.9rem;
    }

    .mobile-details-toggle {
        min-height: 2.35rem;
        font-size: 0.8rem;
    }

    .mobile-admin-tabbar {
        right: max(0.45rem, env(safe-area-inset-right));
        left: max(0.45rem, env(safe-area-inset-left));
        padding: 0.32rem;
        border-radius: 1.15rem;
    }

    .mobile-admin-tabbar-link {
        min-height: 3.05rem;
        border-radius: 0.85rem;
        font-size: 0.62rem;
    }
}

@keyframes adminMobileDetailIn {
    from {
        opacity: 0;
        transform: translateY(-0.18rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Register auth mobile tap safety */
.auth-register-form,
.auth-register-form .auth-submit-button {
    position: relative;
    z-index: 2;
}

.auth-register-form .auth-submit-button {
    min-height: 3.2rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.auth-register-form .payment-plan-card {
    cursor: default;
}

@media (max-width: 575.98px) {
    body.auth-register-page .app-main.auth-main {
        display: block;
        min-height: 100svh;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    body.auth-register-page .auth-main .app-content {
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    }

    body.auth-register-page .whatsapp-widget {
        display: none;
    }
}


/* Public site footer */
.site-footer {
    width: min(calc(100% - 2rem), 1180px);
    margin: 0 auto clamp(1rem, 3vw, 2rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88));
    box-shadow: var(--shadow-sm);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(8.5rem, 0.8fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: flex-start;
}

.site-footer-brand {
    display: grid;
    gap: 1rem;
    max-width: 31rem;
}

.site-footer-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    width: fit-content;
    color: inherit;
}

.site-footer-lockup:hover {
    color: inherit;
}

.site-footer-logo {
    display: block;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    border-radius: 0.95rem;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 0.8rem 1.75rem rgba(15, 23, 42, 0.16);
}

.site-footer-lockup strong,
.site-footer-lockup small {
    display: block;
}

.site-footer-lockup strong {
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer-lockup small {
    margin-top: 0.08rem;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.site-footer-brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-footer-column {
    display: grid;
    gap: 0.55rem;
}

.site-footer-column h2 {
    margin: 0 0 0.25rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer-column a {
    width: fit-content;
    color: #64748b;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    transition: color 160ms ease, transform 160ms ease;
}

.site-footer-column a:hover {
    color: var(--primary);
    transform: translateX(0.12rem);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        width: min(calc(100% - 1rem), 1180px);
        margin-bottom: calc(0.75rem + env(safe-area-inset-bottom));
        padding: 1rem;
        border-radius: 1.35rem;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .site-footer-column {
        padding-top: 1rem;
        border-top: 1px solid rgba(226, 232, 240, 0.85);
    }

    .site-footer-column a {
        min-height: 2.15rem;
        display: inline-flex;
        align-items: center;
    }

    .site-footer-bottom {
        display: grid;
        justify-content: stretch;
    }
}


/* Typography readability patch */
html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-kicker,
.page-eyebrow,
.landing-kicker {
    font-size: 0.8rem;
    line-height: 1.2;
    letter-spacing: 0.09em;
}

.page-title {
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.auth-hero h1 {
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.tc-card-title {
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.landing-hero h1,
.landing-section h2,
.landing-auth-copy h2 {
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.landing-hero h1 {
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1.04;
}

.saas-hero h1 {
    font-size: clamp(2.45rem, 6vw, 5.25rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.showcase-copy h2,
.site-product-copy h2,
.travelcode-video-copy h2 {
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

@media (max-width: 575.98px) {
    .page-title {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.12;
        letter-spacing: -0.02em;
    }

    .auth-hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.25rem);
        line-height: 1.1;
    }

    .landing-hero h1,
    .saas-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .landing-section h2,
    .landing-auth-copy h2,
    .showcase-copy h2,
    .site-product-copy h2,
    .travelcode-video-copy h2 {
        font-size: clamp(1.8rem, 8.5vw, 2.5rem);
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .page-kicker,
    .page-eyebrow,
    .landing-kicker {
        font-size: 0.76rem;
        letter-spacing: 0.075em;
    }

    .page-subtitle,
    .landing-lead,
    .site-product-copy p,
    .travelcode-video-copy p {
        line-height: 1.65;
    }
}

@media (max-width: 379.98px) {
    .page-title {
        font-size: 1.45rem;
    }

    .landing-hero h1,
    .saas-hero h1 {
        font-size: clamp(1.85rem, 10vw, 2.35rem);
        letter-spacing: -0.025em;
    }

    .page-kicker,
    .page-eyebrow,
    .landing-kicker {
        font-size: 0.72rem;
    }
}

/* Footer alignment, social links, legal pages and compact app footer */
.auth-main .app-content > .site-footer {
    width: auto;
    max-width: none;
    margin: clamp(0.25rem, 1.5vw, 1rem) clamp(1.25rem, 2.4vw, 3rem) clamp(1rem, 3vw, 2rem);
}

.site-footer-inner {
    grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(8rem, 0.7fr));
}

.site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.site-footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.48rem 0.7rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    color: #334155;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 850;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-0.08rem);
}

.site-footer-bottom-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
}

.site-footer-bottom-links a {
    color: #64748b;
    font-weight: 800;
}

.site-footer-bottom-links a:hover,
.site-footer-bottom-links a:focus-visible {
    color: var(--primary);
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 750;
}

.app-footer nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
}

.app-footer a {
    color: #475569;
    font-weight: 850;
}

.app-footer a:hover,
.app-footer a:focus-visible {
    color: var(--primary);
}

.legal-page {
    gap: 1.5rem;
}

.legal-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.35fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.legal-title {
    max-width: 64rem;
    margin: 0.35rem 0 0;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 925;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.legal-lead {
    max-width: 56rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    line-height: 1.7;
}

.legal-summary-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.15rem;
    border: 1px solid rgba(219, 234, 254, 0.95);
    border-radius: 1.25rem;
    color: #1e3a8a;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(239, 246, 255, 0.86));
}

.legal-summary-card i {
    display: inline-grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.85rem;
    color: var(--primary);
    background: #ffffff;
    font-size: 1.1rem;
}

.legal-summary-card strong,
.legal-summary-card span {
    display: block;
}

.legal-summary-card strong {
    color: #0f172a;
    font-weight: 900;
}

.legal-summary-card span {
    color: #475569;
    line-height: 1.55;
}

.legal-content-card {
    background: rgba(255, 255, 255, 0.76);
}

.legal-content {
    display: grid;
    gap: 1rem;
    max-width: 74rem;
}

.legal-content h2 {
    margin: 1rem 0 0;
    color: #0f172a;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.025em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

@media (max-width: 1199.98px) {
    .site-footer-inner {
        grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.8fr));
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .auth-main .app-content > .site-footer {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .legal-hero-card {
        grid-template-columns: 1fr;
    }

    .app-footer {
        margin-top: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .auth-main .app-content > .site-footer {
        margin-right: 0;
        margin-left: 0;
    }

    .site-footer-social,
    .site-footer-social a,
    .site-footer-bottom-links,
    .app-footer,
    .app-footer nav {
        width: 100%;
    }

    .site-footer-social a {
        justify-content: center;
    }

    .site-footer-bottom-links {
        justify-content: flex-start;
    }

    .app-footer nav {
        justify-content: center;
    }

    .app-footer {
        display: grid;
        margin-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }

    .legal-title {
        font-size: clamp(1.85rem, 10vw, 2.55rem);
        line-height: 1.08;
        letter-spacing: -0.03em;
    }
}



/* Mobile app footer for every user */
.mobile-app-footer {
    display: none;
}

@media (max-width: 767.98px) {
    .site-footer-public {
        display: none;
    }

    .mobile-app-footer {
        display: grid;
    }

    .app-footer {
        gap: 0.28rem;
        justify-items: center;
        margin-top: 0.85rem;
        padding: 0.52rem 0.68rem;
        border-radius: 0.75rem;
        text-align: center;
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .app-footer span {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .app-footer nav {
        justify-content: center;
        gap: 0.16rem 0.55rem;
    }

    .app-footer a {
        display: inline-flex;
        align-items: center;
        min-height: 1.35rem;
        font-size: 0.73rem;
        line-height: 1.2;
    }

    .app-footer-mobile-hidden {
        display: none !important;
    }

    .app-main.has-mobile-admin-tabs .app-footer {
        margin-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
}


/* Mobile spacing consistency pass */
@media (max-width: 767.98px) {
    :root {
        --mobile-page-gutter: clamp(0.72rem, 3.8vw, 1rem);
        --mobile-section-gap: 0.85rem;
        --mobile-card-padding-x: 0.9rem;
        --mobile-card-padding-y: 0.85rem;
        --mobile-card-radius: 1rem;
    }

    .app-content {
        padding: 0.9rem var(--mobile-page-gutter);
    }

    .app-content > .page-shell,
    .auth-main .app-content > .landing-shell,
    .auth-main .app-content > .premium-landing,
    .auth-main .app-content > .corporate-shell {
        padding-right: 0;
        padding-left: 0;
    }

    .page-shell,
    .landing-shell,
    .premium-landing,
    .corporate-shell,
    .tc-stack {
        gap: var(--mobile-section-gap);
    }

    .page-header {
        gap: 0.75rem;
        margin-bottom: 0.95rem;
    }

    .page-subtitle {
        margin-top: 0.25rem;
        line-height: 1.55;
    }

    .analytics-card,
    .tc-card,
    .kpi-card,
    .landing-section,
    .landing-auth-section,
    .landing-policy,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer,
    .visual-workflow,
    .product-visual,
    .visual-dashboard,
    .demo-window {
        border-radius: var(--mobile-card-radius);
    }

    .analytics-card-header,
    .tc-card-header,
    .analytics-card > .card-body,
    .analytics-card > .analytics-card-body,
    .analytics-card > .tc-card-body,
    .tc-card > .card-body,
    .tc-card > .analytics-card-body,
    .tc-card > .tc-card-body,
    .card-body {
        padding: var(--mobile-card-padding-y) var(--mobile-card-padding-x);
    }

    .analytics-card-header,
    .tc-card-header {
        gap: 0.65rem;
    }

    .tc-stack > * + * {
        margin-top: var(--mobile-section-gap);
    }

    .row.g-3,
    .row.g-4,
    .row.gx-3,
    .row.gx-4 {
        --bs-gutter-x: 0.85rem;
    }

    .row.g-3,
    .row.g-4,
    .row.gy-3,
    .row.gy-4 {
        --bs-gutter-y: 0.85rem;
    }

    .metric-strip,
    .landing-trust-grid,
    .landing-feature-grid,
    .pricing-grid,
    .source-records-page .source-summary-grid,
    .log-details-grid,
    .usage-explainer,
    .landing-visual-pair,
    .visual-dashboard-grid {
        gap: 0.75rem;
    }

    .kpi-card,
    .tc-stat-card,
    .landing-feature-card,
    .pricing-card {
        min-height: auto;
        padding: 0.9rem;
    }

    .landing-hero,
    .landing-section,
    .landing-policy,
    .landing-auth-section,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer {
        padding: clamp(0.95rem, 4vw, 1.2rem);
    }

    .landing-hero,
    .landing-auth-section,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer {
        gap: 1rem;
    }

    .landing-section-header {
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .landing-lead,
    .site-product-copy p,
    .travelcode-video-copy p {
        margin-top: 0.75rem;
    }

    .landing-actions {
        gap: 0.6rem;
        margin-top: 1rem;
    }

    .landing-trust-grid {
        margin-top: 1rem;
    }

    .mobile-card-table tr {
        margin: 0.65rem 0;
    }

    .mobile-card-table td {
        padding-top: 0.52rem;
        padding-bottom: 0.52rem;
    }

    .empty-state {
        min-height: 9rem;
        padding: 1.25rem 0.9rem;
    }

    .modal-dialog {
        margin-right: var(--mobile-page-gutter);
        margin-left: var(--mobile-page-gutter);
    }
}

@media (max-width: 575.98px) {
    :root {
        --mobile-page-gutter: 0.68rem;
        --mobile-section-gap: 0.72rem;
        --mobile-card-padding-x: 0.82rem;
        --mobile-card-padding-y: 0.78rem;
        --mobile-card-radius: 0.95rem;
    }

    .mobile-topbar {
        gap: 0.62rem;
        padding: calc(0.58rem + env(safe-area-inset-top)) 0.72rem 0.58rem;
    }

    .icon-btn {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.78rem;
    }

    .mobile-role-pill {
        min-height: 1.8rem;
        padding-right: 0.55rem;
        padding-left: 0.55rem;
        font-size: 0.68rem;
    }

    .app-content {
        padding-top: 0.72rem;
        padding-bottom: 0.72rem;
    }

    .page-header,
    .analytics-card-header,
    .tc-card-header {
        gap: 0.6rem;
    }

    .page-header {
        margin-bottom: 0.78rem;
    }

    .auth-card .card-body {
        padding: 1rem !important;
    }

    .landing-hero,
    .landing-section,
    .landing-policy,
    .landing-auth-section,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer {
        padding: 0.9rem;
    }

    .landing-feature-card,
    .pricing-card,
    .tc-stat-card,
    .kpi-card {
        padding: 0.82rem;
    }

    .btn:not(.mobile-admin-tabbar-link):not(.whatsapp-fab) {
        min-height: 2.55rem;
    }

    .form-text,
    .helper-text,
    .tc-helper-text,
    .tc-inline-note {
        margin-top: 0.35rem;
    }

    .app-main:not(.has-mobile-admin-tabs) ~ .whatsapp-widget {
        bottom: calc(3.45rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 379.98px) {
    :root {
        --mobile-page-gutter: 0.55rem;
        --mobile-section-gap: 0.62rem;
        --mobile-card-padding-x: 0.72rem;
        --mobile-card-padding-y: 0.72rem;
    }

    .landing-hero,
    .landing-section,
    .landing-policy,
    .landing-auth-section,
    .site-product-highlight,
    .travelcode-video-section,
    .usage-explainer {
        padding: 0.78rem;
    }

    .mobile-card-table tr {
        margin: 0.52rem 0;
    }
}

/* Mobile footer centering fix */
@media (max-width: 575.98px) {
    .app-footer {
        place-items: center;
        align-content: center;
        justify-content: center;
        text-align: center;
    }

    .app-footer span,
    .app-footer nav {
        width: 100%;
        text-align: center;
    }

    .app-footer nav {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .app-footer a {
        justify-content: center;
        text-align: center;
    }
}



/* Dashboard charts */
.chart-wrap {
    position: relative;
    width: 100%;
    min-height: 18rem;
}

@media (max-width: 575.98px) {
    .chart-wrap {
        min-height: 15.5rem;
    }
}


/* Flight Split analytics */
.flight-analytics-section .metric-value {
    font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

.flight-chart-wrap {
    min-height: 17rem;
}

@media (max-width: 767.98px) {
    .flight-analytics-section .analytics-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .flight-analytics-section .analytics-card-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .flight-chart-wrap {
        min-height: 15rem;
    }
}


.flight-market-analytics {
    display: grid;
    gap: 1rem;
}

.flight-market-tabs {
    gap: .5rem;
}

.flight-market-tabs .nav-link {
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 999px;
    color: #475569;
    font-weight: 800;
    padding: .45rem .8rem;
}

.flight-market-tabs .nav-link.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.flight-market-tabs .nav-link.daily-lowest-market-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-stable {
    color: #166534;
    background: rgba(220, 252, 231, 0.7);
    border-color: rgba(22, 163, 74, 0.26);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-moderate {
    color: #92400e;
    background: rgba(254, 243, 199, 0.72);
    border-color: rgba(245, 158, 11, 0.32);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-high {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.74);
    border-color: rgba(220, 38, 38, 0.3);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-needs-data,
.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-neutral {
    color: #475569;
    background: rgba(241, 245, 249, 0.86);
    border-color: rgba(100, 116, 139, 0.24);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-stable.active {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-moderate.active {
    color: #111827;
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-high.active {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-needs-data.active,
.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-neutral.active {
    color: #fff;
    background: #64748b;
    border-color: #64748b;
    box-shadow: 0 10px 22px rgba(100, 116, 139, 0.2);
}

.daily-lowest-market-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
}

.daily-lowest-market-tab-warning {
    font-size: 0.78rem;
    line-height: 1;
}

.market-tab-count {
    background: rgba(15, 23, 42, .08);
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    margin-left: .35rem;
    padding: .1rem .4rem;
}

.flight-market-tabs .nav-link.active .market-tab-count {
    background: rgba(255, 255, 255, .18);
}

.flight-market-tabs .nav-link.daily-lowest-market-tab.volatility-level-moderate.active .market-tab-count {
    color: #111827;
    background: rgba(255, 255, 255, 0.34);
}

.flight-market-tab-content {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .flight-market-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .25rem;
    }

    .flight-market-tabs .nav-link {
        white-space: nowrap;
    }
}



/* Processing estimate */
.process-estimate {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .10), transparent 18rem),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.process-estimate-top,
.process-estimate-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.process-estimate-title {
    color: var(--text);
    font-weight: 800;
}

.process-estimate-percent {
    display: inline-flex;
    align-items: center;
    min-width: 3.25rem;
    justify-content: center;
    padding: .25rem .65rem;
    border-radius: 999px;
    color: var(--primary-strong);
    background: var(--primary-soft);
    font-weight: 800;
}

.process-estimate-bar {
    height: .65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    overflow: hidden;
}

.process-estimate-meta {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.process-estimate-note {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .process-estimate-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .process-estimate-percent {
        justify-content: flex-start;
    }

    .process-estimate-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.admin-filter-chip-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.admin-filter-chip-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 0.125rem;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.admin-filter-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-filter-chip-remove {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: scale(0.75);
  transition: max-width 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.admin-filter-chip:hover .admin-filter-chip-remove,
.admin-filter-chip:focus .admin-filter-chip-remove,
.admin-filter-chip:focus-visible .admin-filter-chip-remove {
  max-width: 1rem;
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 575.98px) {
  .admin-filter-chip-list {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 0.375rem;
  }

  .admin-filter-chip-label {
    width: 100%;
  }

  .admin-filter-chip {
    justify-content: flex-start;
    align-items: flex-start;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .admin-filter-chip > i {
    flex: 0 0 auto;
    margin-top: 0.05rem;
  }

  .admin-filter-chip-text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-filter-chip-remove {
    flex: 0 0 auto;
    margin-top: 0.02rem;
  }

  .admin-filter-chip-empty {
    display: block;
    width: 100%;
  }
}
