:root {
    --ink: #172033;
    --muted: #687386;
    --brand: #1458d4;
    --brand-dark: #0d2f75;
    --surface: #ffffff;
    --line: #dce3ee;
    --page: #f4f7fb;
    --success: #147c4d;
    --warning: #a86700;
    --danger: #b42318;
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-navbar {
    background: #0e2347;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: 118px;
    height: 34px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8fafc;
}

.hero-logo {
    width: min(260px, 70vw);
    height: auto;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.2rem 0.4rem;
}

.hero-section {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #102a54 0%, #1458d4 55%, #0b8b82 100%);
    color: #fff;
}

.platform-hero {
    min-height: 92vh;
}

.hero-section h1 {
    max-width: 780px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;
    font-weight: 800;
}

.hero-copy {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
}

.eyebrow,
.eyebrow-dark {
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.78rem;
    font-weight: 800;
}

.eyebrow {
    color: #b8f7ee;
}

.eyebrow-dark {
    color: var(--brand);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(18px);
}

.validator-result {
    color: rgba(255, 255, 255, 0.82);
    min-height: 72px;
}

.validator-result.valid {
    color: #bbf7d0;
}

.validator-result.invalid {
    color: #fecaca;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-weight: 800;
}

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

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

.feature-card,
.how-grid > div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.feature-card span {
    color: var(--brand);
    font-weight: 800;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0.6rem;
}

.feature-card p,
.how-grid p {
    color: var(--muted);
    margin-bottom: 0;
}

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

.site-footer {
    padding: 1.5rem 0;
    background: #0e2347;
    color: rgba(255, 255, 255, 0.78);
}

.decision-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 0.35rem;
}

.transfer-line,
.quick-link-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.transfer-line:last-child,
.quick-link-row:last-child {
    border-bottom: 0;
}

.transfer-line span {
    color: rgba(255, 255, 255, 0.68);
}

.auth-section,
.page-shell {
    padding: 2rem 0 4rem;
}

.auth-section {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
}

.auth-card,
.content-panel,
.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.06);
}

.auth-card {
    width: min(100% - 2rem, 460px);
    padding: 2rem;
}

.auth-card h1,
.page-heading h1 {
    font-weight: 800;
}

.narrow {
    max-width: 980px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.metric {
    padding: 1rem;
}

.metric span {
    color: var(--muted);
    display: block;
}

.metric strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.8rem;
}

.content-panel {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.track-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.track-panel h2 {
    margin: 0;
    font-weight: 800;
}

.track-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.track-page-form {
    max-width: 860px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.setup-progress {
    width: 100%;
    max-width: none;
    height: 10px;
}

.setup-steps {
    display: grid;
    gap: 0.85rem;
}

.setup-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 0.8rem;
    align-items: start;
}

.setup-step > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--ink);
    font-weight: 800;
    border: 1px solid var(--line);
}

.setup-step.done > span {
    background: var(--mint);
    border-color: var(--mint);
}

.setup-step p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.security-form input[type="checkbox"] {
    margin-right: 0.5rem;
}

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

.billing-metrics > div {
    border: 1px solid var(--line);
    padding: 1rem;
    background: #fafafa;
}

.billing-metrics span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.billing-metrics strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.05rem;
}

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

.invoice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #fafafa;
}

.invoice-row p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.table-search {
    max-width: 320px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 700;
    font-size: 0.82rem;
}

.status-completed {
    background: #e9f8ef;
    color: var(--success);
}

.status-initiated {
    background: #eaf1ff;
    color: var(--brand);
}

.status-processing {
    background: #fff6df;
    color: var(--warning);
}

.status-dispatched {
    background: #eef2ff;
    color: #4338ca;
}

.status-received_by_bank {
    background: #ecfeff;
    color: #0e7490;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.stacked-form input[type="checkbox"] {
    width: auto;
    display: inline-block;
}

.stacked-form .helptext,
.stacked-form ul {
    color: var(--muted);
    font-size: 0.85rem;
}

.receipt-context {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.receipt-context span,
.receipt-context small {
    color: var(--muted);
}

.mini-progress {
    width: min(150px, 100%);
    height: 6px;
    background: #e5eaf2;
    border-radius: 999px;
    overflow: hidden;
}

.mini-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #0b8b82);
}

.tracking-header,
.detail-grid,
.admin-update-grid {
    display: grid;
    gap: 1rem;
}

.tracking-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 1.5rem;
}

.tracking-header h2 {
    margin: 0.75rem 0 0;
    font-weight: 800;
}

.tracking-percent {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
}

.tracking-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    position: relative;
}

.tracking-step {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem;
    background: #f8fafc;
}

.tracking-step strong,
.tracking-step small {
    display: block;
}

.tracking-step small {
    color: var(--muted);
    margin-top: 0.35rem;
}

.tracking-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    margin-bottom: 0.7rem;
    color: #64748b;
    font-weight: 800;
}

.tracking-complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.tracking-current {
    background: #eff6ff;
    border-color: #93c5fd;
}

.tracking-complete .tracking-dot,
.tracking-current .tracking-dot {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

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

.details-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0.75rem 1rem;
    margin: 0;
}

.details-list dt {
    color: var(--muted);
}

.details-list dd {
    margin: 0;
    font-weight: 600;
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.75rem;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--brand);
    margin-top: 0.4rem;
}

.admin-update-grid {
    grid-template-columns: 220px 1fr;
    align-items: start;
}

.admin-update-grid select,
.admin-update-grid textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
}

@media (max-width: 768px) {
    .page-heading,
    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

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

    .feature-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .tracking-header,
    .detail-grid,
    .track-panel,
    .dashboard-grid,
    .admin-update-grid {
        grid-template-columns: 1fr;
    }

    .track-search-form {
        grid-template-columns: 1fr;
    }

    .invoice-row,
    .billing-metrics {
        grid-template-columns: 1fr;
    }

    .tracking-rail {
        grid-template-columns: 1fr;
    }

    .table-search {
        max-width: none;
    }
}

/* Robust application layer */
.app-body {
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 34rem),
        linear-gradient(180deg, #f4f7fb 0%, #f8f9fa 42%);
}

.app-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.app-sidebar-header .app-brand {
    border-bottom: 0;
    padding: 0;
    margin: 0;
}

.app-sidebar-close,
.app-menu-toggle {
    display: none;
}

.topbar-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-nav a.active,
.app-nav a.active:hover {
    background: linear-gradient(135deg, var(--swift-blue), var(--swift-dark));
    color: #fff;
    box-shadow: 0 0.6rem 1.2rem rgba(13, 110, 253, 0.18);
}

.app-nav a.active i {
    color: #fff;
}

.app-main {
    max-width: 1680px;
    width: 100%;
}

.dashboard-hero {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.98), rgba(10, 88, 202, 0.92)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 48px);
    color: #fff;
}

.dashboard-hero .text-primary,
.dashboard-hero .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.dashboard-hero .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
}

.dashboard-hero .btn-swift {
    background: #fff;
    border-color: #fff;
    color: var(--swift-dark);
}

.operation-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.operation-command {
    display: flex;
    gap: 1rem;
    min-height: 142px;
    padding: 1.15rem;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--swift-card-shadow);
    border: 1px solid rgba(13, 110, 253, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.operation-command:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.85rem 1.8rem rgba(13, 110, 253, 0.13);
}

.operation-command.primary {
    background: #0d6efd;
    color: #fff;
}

.operation-command > span {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f1ff;
    color: var(--swift-blue);
    font-size: 1.35rem;
}

.operation-command.primary > span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.operation-command strong,
.operation-command small {
    display: block;
}

.operation-command small {
    margin-top: 0.45rem;
    color: var(--swift-secondary);
    line-height: 1.45;
}

.operation-command.primary small {
    color: rgba(255, 255, 255, 0.78);
}

.network-card {
    overflow: hidden;
}

.network-lane {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 0.6fr minmax(150px, 1fr) 0.6fr minmax(150px, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #f8fbff, #eef5ff),
        repeating-linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0 1px, transparent 1px 42px);
}

.lane-node {
    min-height: 150px;
    display: grid;
    place-items: center;
    gap: 0.35rem;
    text-align: center;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--swift-card-shadow);
}

.lane-node i {
    color: var(--swift-blue);
    font-size: 1.8rem;
}

.lane-node small {
    color: var(--swift-secondary);
}

.lane-line {
    height: 2px;
    background: #b6d4fe;
    position: relative;
}

.lane-line span {
    position: absolute;
    inset: -5px auto auto 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--swift-blue);
}

.risk-list {
    display: grid;
    gap: 0.9rem;
}

.risk-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 14px;
    background: #f8f9fa;
    border: 1px solid var(--line);
}

.risk-list span {
    color: var(--swift-secondary);
    font-weight: 600;
}

.risk-list strong {
    font-size: 1.35rem;
    color: var(--swift-blue);
}

.product-toolbar .card-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.product-search {
    position: relative;
}

.product-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--swift-secondary);
}

.product-search .form-control {
    padding-left: 2.6rem;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.product-card-top {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.product-card .btn {
    margin-top: auto !important;
}

@media (max-width: 1200px) {
    .operation-command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .network-lane {
        grid-template-columns: 1fr;
    }

    .lane-line {
        width: 2px;
        height: 36px;
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .app-layout {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 320px);
        height: 100vh;
        transform: translateX(-104%);
        transition: transform 180ms ease;
        z-index: 1045;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 1040;
    }

    .sidebar-open .app-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-sidebar-close,
    .app-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .product-toolbar .card-body {
        grid-template-columns: 1fr;
    }

    .product-categories {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .operation-command-grid {
        grid-template-columns: 1fr;
    }

    .operation-command {
        min-height: auto;
    }
}

/* Support and contact */
.contact-card {
    width: min(100%, 820px);
    margin: 0 auto;
}

.contact-card .card-body {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.ticket-status,
.priority-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.ticket-status-open {
    background: #e7f1ff;
    color: #084298;
}

.ticket-status-in_progress {
    background: #cff4fc;
    color: #055160;
}

.ticket-status-resolved {
    background: #d1e7dd;
    color: #0f5132;
}

.ticket-status-closed {
    background: #e9ecef;
    color: #495057;
}

.priority-low {
    background: #e9ecef;
    color: #495057;
}

.priority-medium {
    background: #fff3cd;
    color: #664d03;
}

.priority-high {
    background: #f8d7da;
    color: #842029;
}

.ticket-thread-card .card-body {
    display: grid;
    gap: 1rem;
}

.ticket-message {
    display: flex;
}

.ticket-message > div {
    max-width: 78%;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--swift-card-shadow);
}

.ticket-message strong,
.ticket-message small {
    display: block;
}

.ticket-message small {
    color: var(--swift-secondary);
    margin: 0.2rem 0 0.6rem;
}

.ticket-message p {
    margin: 0;
    white-space: pre-wrap;
}

.user-message {
    justify-content: flex-start;
}

.user-message > div {
    background: #f8f9fa;
    border: 1px solid var(--line);
}

.admin-message {
    justify-content: flex-end;
}

.admin-message > div {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
}

.internal-message {
    justify-content: center;
}

.internal-message > div {
    background: #fff3cd;
    border: 1px dashed #ffda6a;
}

.reply-box {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.contact-message-list {
    display: grid;
    gap: 1rem;
}

.contact-message {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.contact-message.unread {
    border-color: #b6d4fe;
    background: #f4f8ff;
}

@media (max-width: 768px) {
    .ticket-message > div {
        max-width: 100%;
    }

    .contact-message {
        grid-template-columns: 1fr;
    }
}

/* Final UI consolidation */
.app-workspace {
    background:
        linear-gradient(180deg, rgba(231, 241, 255, 0.55), rgba(248, 249, 250, 0) 320px),
        #f8f9fa;
}

.app-main {
    margin: 0 auto;
}

.page-shell {
    padding: 0;
}

.app-main .page-shell > .container,
.dashboard-page {
    max-width: 1500px;
    margin-inline: auto;
}

.narrow {
    max-width: 1040px !important;
}

.app-main .page-heading {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
        repeating-linear-gradient(135deg, rgba(13, 110, 253, 0.06) 0 1px, transparent 1px 40px);
}

.app-main .page-heading::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -90px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
}

.app-main .page-heading > * {
    position: relative;
    z-index: 1;
}

.app-main .page-heading h1 {
    margin: 0;
    font-size: clamp(1.75rem, 2.5vw, 2.65rem);
}

.eyebrow-dark,
.text-uppercase.text-primary {
    letter-spacing: 0.02em;
}

.content-panel,
.card {
    border: 1px solid rgba(13, 110, 253, 0.07);
}

.content-panel {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.panel-header {
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    font-size: 1.05rem;
}

.summary-grid {
    gap: 1rem;
}

.metric {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 1.2rem;
}

.metric::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -42px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: #e7f1ff;
}

.metric span,
.metric strong {
    position: relative;
    z-index: 1;
}

.metric strong {
    color: var(--swift-blue);
}

.table-responsive {
    border-radius: 14px;
}

.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 0.95rem 0.85rem;
}

.table tbody td {
    vertical-align: middle;
}

.action-row {
    gap: 0.45rem;
}

.action-row form {
    display: inline-flex;
}

.decision-form {
    grid-template-columns: minmax(150px, 1fr) auto;
}

.stacked-form label,
.form-label {
    font-weight: 650;
    color: #344054;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea,
.content-panel input,
.content-panel select,
.content-panel textarea {
    border-color: #d0d5dd;
}

.stacked-form input:focus,
.stacked-form select:focus,
.stacked-form textarea:focus,
.content-panel input:focus,
.content-panel select:focus,
.content-panel textarea:focus {
    border-color: var(--swift-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 1rem 2rem rgba(16, 24, 40, 0.14);
}

.dropdown-item {
    border-radius: 10px;
}

.dropdown-menu {
    padding: 0.45rem;
}

.message-stack .alert,
.container.mt-3 .alert {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--swift-card-shadow);
}

.admin-command-strip {
    margin-bottom: 1.25rem;
}

.admin-command-strip a {
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: var(--swift-card-shadow);
}

.admin-command-strip a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.85rem 1.8rem rgba(13, 110, 253, 0.13);
}

.contact-card,
.track-lookup-card,
.auth-card {
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.support-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.ticket-thread-card {
    min-height: 520px;
}

.ticket-message > div {
    line-height: 1.55;
}

.contact-message {
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-message:hover {
    border-color: #b6d4fe;
    box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.09);
}

.receipt-context {
    border-radius: 14px;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid var(--line);
}

.file-preview {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px dashed #adb5bd;
}

@media (max-width: 768px) {
    .app-main .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .app-main .page-heading .btn,
    .app-main .page-heading .d-flex {
        width: 100%;
    }

    .app-main .page-heading .d-flex .btn {
        flex: 1 1 auto;
    }

    .decision-form {
        grid-template-columns: 1fr;
    }

    .table > :not(caption) > * > * {
        padding: 0.8rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.25rem;
    }
}

/* Swift-inspired visual system */
:root {
    --ink: #303838;
    --muted: #75898d;
    --brand: #2f3b3c;
    --brand-dark: #2f3b3c;
    --mint: #b8f8ec;
    --mint-strong: #a8f1e5;
    --surface: #ffffff;
    --line: #e6e9e8;
    --page: #f7f7f7;
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
}

.app-navbar {
    min-height: 112px;
    background: #fff;
    border-bottom: 1px solid #ece3dc;
    box-shadow: none;
}

.app-navbar .container {
    max-width: 1580px;
}

.app-navbar .nav-link {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 0.8rem;
}

.app-navbar .nav-link:hover {
    color: #000;
}

.navbar-toggler {
    border-color: #d8dddd;
}

.navbar-toggler-icon {
    filter: none;
}

.brand-logo {
    width: 170px;
    height: 58px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.btn-login-pill,
.btn-mint,
.btn-white-pill {
    border-radius: 999px;
    padding: 0.82rem 1.55rem;
    font-weight: 500;
    border: 0;
}

.btn-primary {
    background: #2f3b3c;
    border-color: #2f3b3c;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1e2728;
    border-color: #1e2728;
    color: #fff;
}

.btn-outline-primary {
    border-color: #2f3b3c;
    color: #2f3b3c;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: #2f3b3c;
    border-color: #2f3b3c;
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mint);
    box-shadow: 0 0 0 0.2rem rgba(184, 248, 236, 0.45);
}

.btn-login-pill {
    background: #2f3b3c;
    color: #fff;
}

.btn-login-pill:hover {
    background: #1e2728;
    color: #fff;
}

.btn-mint {
    background: var(--mint);
    color: var(--ink);
}

.btn-mint:hover {
    background: var(--mint-strong);
    color: var(--ink);
}

.btn-white-pill {
    background: #fff;
    color: var(--ink);
    min-width: 160px;
}

.swift-hero {
    position: relative;
    min-height: 730px;
    overflow: hidden;
    background: #222;
}

.swift-hero-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 18, 18, 0.28), rgba(15, 18, 18, 0.18) 45%, rgba(15, 18, 18, 0.38)),
        radial-gradient(circle at 18% 34%, rgba(245, 219, 174, 0.98) 0 8%, transparent 21%),
        radial-gradient(circle at 28% 55%, rgba(124, 82, 52, 0.9) 0 11%, transparent 29%),
        radial-gradient(circle at 65% 48%, rgba(215, 224, 214, 0.94) 0 13%, transparent 31%),
        radial-gradient(circle at 92% 66%, rgba(172, 154, 54, 0.95) 0 12%, transparent 34%),
        linear-gradient(120deg, #62412f 0%, #91a7a8 45%, #241b18 70%, #9d8a2a 100%);
    filter: blur(1.6px) saturate(0.92);
    transform: scale(1.02);
}

.swift-hero-content {
    position: relative;
    z-index: 1;
    min-height: 730px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.swift-hero h1 {
    width: min(760px, 92vw);
    color: #fff;
    font-weight: 300;
    font-size: clamp(3.2rem, 6vw, 5.4rem);
    line-height: 1.12;
    margin-bottom: 1.6rem;
}

.swift-hero-content > p {
    width: min(690px, 92vw);
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.15rem, 1.5vw, 1.45rem);
    line-height: 1.55;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.announcement-band {
    background: #fff;
    padding: 3.7rem 0;
}

.announcement-inner {
    max-width: 1580px;
    min-height: 360px;
    background: var(--mint);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4rem;
    padding: 4.5rem 7rem;
}

.announcement-inner h2 {
    max-width: 920px;
    font-size: clamp(2.5rem, 4vw, 4.1rem);
    font-weight: 300;
    line-height: 1.08;
}

.announcement-inner p {
    max-width: 850px;
    margin-top: 2rem;
    font-size: 1.35rem;
    line-height: 1.6;
}

.sector-strip {
    background: #ffffff;
    padding: 0 0 5rem;
}

.sector-grid {
    max-width: 1580px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.sector-grid > div {
    min-height: 150px;
    padding: 2rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.sector-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    font-weight: 800;
}

.sector-grid strong {
    display: block;
    margin-top: 1.4rem;
    font-size: 1.35rem;
    font-weight: 400;
}

.solutions-section {
    background: #f5f5f5;
    padding: 7rem 0 4.5rem;
}

.solutions-section .container,
.cards-section .container {
    max-width: 1580px;
}

.solutions-heading {
    display: grid;
    grid-template-columns: minmax(300px, 0.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 4rem;
    margin-bottom: 4rem;
}

.solutions-heading h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    margin: 0;
}

.solution-tabs {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 800;
}

.solution-tabs span {
    padding-bottom: 1.8rem;
}

.solution-tabs .active {
    border-bottom: 5px solid var(--ink);
}

.solution-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    background: #fff;
}

.solution-copy {
    padding: 7rem;
}

.muted-label {
    color: var(--muted);
    font-weight: 500;
}

.solution-copy h3 {
    font-size: clamp(3rem, 4.2vw, 4.4rem);
    font-weight: 300;
    line-height: 1.1;
}

.solution-copy p:last-child {
    font-size: 1.35rem;
    line-height: 1.55;
    color: var(--ink);
}

.solution-visual {
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.35) 0 4%, transparent 8%),
        radial-gradient(circle at 42% 72%, rgba(255, 255, 255, 0.22) 0 6%, transparent 12%),
        linear-gradient(135deg, rgba(184, 248, 236, 0.95), rgba(145, 217, 204, 0.6)),
        repeating-linear-gradient(135deg, rgba(48, 56, 56, 0.16) 0 18px, transparent 18px 110px);
}

.cards-section {
    background: #fff;
    padding: 4.5rem 0 8rem;
}

.institution-section {
    background: #2f3b3c;
    color: #ffffff;
    padding: 6rem 0;
}

.institution-grid {
    max-width: 1580px;
    display: grid;
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
    gap: 5rem;
}

.institution-grid h2 {
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    font-weight: 300;
    line-height: 1.1;
}

.institution-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.institution-list > div {
    min-height: 330px;
    padding: 2rem;
    background: #344344;
}

.institution-list span {
    color: var(--mint);
    font-weight: 800;
}

.institution-list strong {
    display: block;
    margin: 5rem 0 1.2rem;
    font-size: 1.55rem;
    font-weight: 500;
}

.institution-list p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.55;
}

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

.swift-card {
    min-height: 420px;
    background: #f7f7f7;
    border: 1px solid transparent;
    padding: 3.3rem 2.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.swift-card h3 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 500;
    margin: 1.6rem 0 1.4rem;
}

.swift-card p {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.55;
}

.swift-card a {
    color: var(--ink);
    text-decoration: none;
    margin-top: auto;
    font-size: 1.1rem;
}

.bic-card {
    background: #fff;
    border-color: var(--line);
}

.bic-search {
    width: 100%;
    margin: 1.4rem 0 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.bic-search input {
    border: 0;
    padding: 1.05rem 1.4rem;
    font-size: 1.1rem;
    outline: 0;
}

.bic-search button {
    border: 0;
    background: var(--mint);
    font-size: 1.9rem;
}

.bic-result.valid {
    color: #147c4d;
}

.bic-result.invalid {
    color: #b42318;
}

.site-footer {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    padding: 6rem 0;
    background:
        linear-gradient(90deg, rgba(32, 42, 42, 0.95), rgba(60, 74, 74, 0.78)),
        linear-gradient(135deg, transparent 0 20%, rgba(184, 248, 236, 0.45) 20% 42%, transparent 42% 66%, rgba(184, 248, 236, 0.55) 66%),
        repeating-linear-gradient(135deg, #2f3b3c 0 140px, #8fc9bd 140px 280px, #526260 280px 420px);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    gap: 5rem;
    align-items: center;
}

.site-footer h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.12;
}

.footer-title {
    font-size: 1.45rem;
    font-weight: 600;
}

.footer-links {
    display: grid;
    gap: 0.65rem;
    margin: 1.4rem 0 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.social-row {
    display: flex;
    gap: 1.5rem;
}

.social-row span {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
}

.hero-section,
.platform-hero {
    background: transparent;
}

.page-shell {
    background: #f7f7f7;
}

.content-panel,
.metric,
.auth-card {
    box-shadow: none;
    border-color: var(--line);
}

.app-body {
    background: #eef2f1;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.8rem 1.25rem;
    background: #ffffff;
    border-right: 1px solid var(--line);
    z-index: 10;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.4rem 1rem;
}

.app-brand img {
    width: 175px;
    height: auto;
    object-fit: contain;
}

.app-section-label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-nav {
    display: grid;
    gap: 0.25rem;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
}

.app-nav a span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef6f4;
    color: var(--ink);
}

.app-nav a:hover {
    background: #f2fbf8;
}

.app-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    background: #f7f7f7;
}

.app-sidebar-footer span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.app-sidebar-footer strong {
    display: block;
    margin-top: 0.2rem;
    word-break: break-word;
}

.app-workspace {
    min-width: 0;
}

.app-topbar {
    position: sticky;
    top: 0;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    z-index: 8;
}

.topbar-kicker {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.app-main {
    padding: 2rem;
}

.app-main .page-shell {
    padding: 0;
    background: transparent;
}

.app-main .container {
    max-width: none;
    padding: 0;
}

.message-stack {
    margin-bottom: 1rem;
}

.app-main .page-heading {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
}

.app-main .page-heading h1 {
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 350;
}

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

.command-strip a {
    display: grid;
    gap: 0.45rem;
    min-height: 145px;
    padding: 1.2rem;
    color: var(--ink);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--line);
}

.command-strip a:hover {
    border-color: #b8f8ec;
    background: #f6fffc;
}

.command-strip span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.command-strip strong {
    font-size: 1.05rem;
}

.command-strip small {
    color: var(--muted);
    line-height: 1.45;
}

.app-main .summary-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.app-main .metric {
    padding: 1.35rem;
    background: #ffffff;
}

.app-main .metric strong {
    font-size: 2.35rem;
    font-weight: 350;
}

.app-main .content-panel {
    padding: 1.45rem;
    background: #ffffff;
}

.app-main .track-panel {
    border-left: 6px solid var(--mint);
}

.ops-intelligence {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.ops-map-panel,
.ops-side-panel {
    border: 1px solid var(--line);
    background: #ffffff;
}

.ops-map-panel {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    overflow: hidden;
}

.ops-map-panel > div:first-child {
    padding: 1.6rem;
}

.ops-map-panel h2,
.ops-side-panel h2 {
    font-size: clamp(1.6rem, 2vw, 2.25rem);
    font-weight: 350;
    margin-bottom: 1rem;
}

.ops-map-panel p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.corridor-map {
    position: relative;
    min-height: 300px;
    background:
        linear-gradient(135deg, rgba(184, 248, 236, 0.95), rgba(184, 248, 236, 0.25)),
        repeating-linear-gradient(135deg, rgba(47, 59, 60, 0.12) 0 2px, transparent 2px 58px);
}

.corridor-map::before {
    content: "";
    position: absolute;
    left: 16%;
    right: 14%;
    top: 52%;
    height: 2px;
    background: rgba(47, 59, 60, 0.62);
}

.node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(47, 59, 60, 0.18);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(47, 59, 60, 0.12);
}

.node::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 0.5rem;
    border-radius: 999px;
    background: var(--mint);
    border: 2px solid var(--ink);
}

.node-origin {
    left: 8%;
    top: 28%;
}

.node-correspondent {
    left: 38%;
    top: 55%;
}

.node-beneficiary {
    right: 8%;
    top: 30%;
}

.ops-side-panel {
    padding: 1.6rem;
}

.posture-list {
    display: grid;
    gap: 0.8rem;
}

.posture-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #f7f7f7;
    border: 1px solid var(--line);
}

.posture-list span {
    color: var(--muted);
}

.posture-list strong {
    color: #147c4d;
}

.admin-command-strip a {
    min-height: 132px;
}

.app-main .table {
    --bs-table-bg: transparent;
}

.app-main .table thead th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    border-bottom-color: var(--line);
}

.app-main .table tbody tr {
    border-color: var(--line);
}

.app-main .table tbody tr:hover {
    background: #f5fbf9;
}

@media (max-width: 992px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
    }

    .app-topbar {
        position: relative;
        padding: 1rem;
    }

    .app-main {
        padding: 1rem;
    }

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

    .app-navbar {
        min-height: 84px;
    }

    .announcement-inner,
    .solutions-heading,
    .solution-feature,
    .sector-grid,
    .institution-grid,
    .institution-list,
    .ops-intelligence,
    .ops-map-panel,
    .cards-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .announcement-inner {
        padding: 3rem 2rem;
    }

    .solution-copy {
        padding: 3rem 2rem;
    }

    .swift-hero,
    .swift-hero-content {
        min-height: 610px;
    }
}

@media (max-width: 576px) {
    .app-topbar,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions,
    .topbar-actions .btn,
    .page-heading .btn {
        width: 100%;
    }

    .command-strip,
    .app-main .summary-grid,
    .sector-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 126px;
    }

    .swift-card {
        min-height: auto;
    }
}

/* Bootstrap financial dashboard theme */
:root {
    --swift-blue: #0d6efd;
    --swift-dark: #0a58ca;
    --swift-secondary: #6c757d;
    --swift-success: #198754;
    --swift-warning: #ffc107;
    --swift-danger: #dc3545;
    --swift-bg: #f8f9fa;
    --swift-card-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.075);
    --ink: #212529;
    --muted: #6c757d;
    --brand: #0d6efd;
    --brand-dark: #0a58ca;
    --mint: #e7f1ff;
    --mint-strong: #cfe2ff;
    --surface: #ffffff;
    --line: #dee2e6;
    --page: #f8f9fa;
}

body,
.app-body {
    background: var(--swift-bg);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.card,
.content-panel,
.metric,
.auth-card,
.swift-card-shell {
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--swift-card-shadow);
}

.btn,
.form-control,
.form-select,
.input-group-text {
    border-radius: 12px;
}

.input-group .form-control,
.input-group .btn {
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.input-group .btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.btn-swift,
.btn-primary {
    background: var(--swift-blue);
    border-color: var(--swift-blue);
    color: #ffffff;
}

.btn-swift:hover,
.btn-swift:focus,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--swift-dark);
    border-color: var(--swift-dark);
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--swift-blue);
    border-color: var(--swift-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--swift-blue);
    border-color: var(--swift-blue);
    color: #ffffff;
}

.text-primary,
.eyebrow-dark {
    color: var(--swift-blue) !important;
}

.app-layout {
    grid-template-columns: 280px minmax(0, 1fr);
}

.app-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    box-shadow: 0.25rem 0 1.5rem rgba(13, 110, 253, 0.04);
}

.app-brand {
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
}

.app-section-label {
    color: var(--swift-secondary);
}

.app-nav a,
.app-nav-logout button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #344054;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}

.app-nav a i,
.app-nav-logout button i {
    width: 22px;
    color: var(--swift-blue);
    font-size: 1.05rem;
}

.app-nav a:hover,
.app-nav-logout button:hover {
    background: #e7f1ff;
    color: var(--swift-dark);
}

.app-sidebar-footer {
    border-radius: 12px;
    background: #f8f9fa;
}

.app-topbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.user-menu-btn {
    border: 1px solid var(--line);
}

.app-main {
    padding: 1.5rem;
}

.app-main .page-heading {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--swift-card-shadow);
}

.app-main .page-heading h1,
.dashboard-hero h1 {
    font-weight: 700;
    letter-spacing: 0;
}

.dashboard-page {
    display: grid;
    gap: 1.5rem;
}

.dashboard-hero .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.dashboard-hero-actions,
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.stat-card .card-body {
    min-height: 132px;
    display: grid;
    gap: 0.35rem;
}

.stat-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e7f1ff;
    color: var(--swift-blue);
    font-size: 1.25rem;
}

.stat-card span {
    color: var(--swift-secondary);
    font-weight: 600;
}

.stat-card strong {
    font-size: 2.1rem;
    line-height: 1;
}

.quick-track-card h2,
.section-title-row h2,
.card-body > h2 {
    font-weight: 700;
}

.recent-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recent-chip-row a {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: var(--swift-dark);
    text-decoration: none;
    font-weight: 600;
}

.dashboard-table {
    min-width: 860px;
}

.dashboard-table thead th,
.app-main .table thead th {
    color: var(--swift-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dashboard-table tbody tr:hover,
.app-main .table tbody tr:hover {
    background: #f4f8ff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-weight: 700;
    font-size: 0.78rem;
}

.status-initiated {
    background: var(--swift-secondary);
    color: #ffffff;
}

.status-processing {
    background: #0dcaf0;
    color: #052c65;
}

.status-dispatched {
    background: var(--swift-warning);
    color: #212529;
}

.status-received_by_bank {
    background: var(--swift-blue);
    color: #ffffff;
}

.status-completed {
    background: var(--swift-success);
    color: #ffffff;
}

.status-failed {
    background: var(--swift-danger);
    color: #ffffff;
}

.quick-link-row {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.quick-link-row a {
    color: var(--swift-blue);
    font-weight: 600;
    text-decoration: none;
}

.setup-step > span {
    background: #e7f1ff;
    border-color: #cfe2ff;
    color: var(--swift-blue);
}

.setup-step.done > span {
    background: var(--swift-success);
    border-color: var(--swift-success);
    color: #ffffff;
}

.setup-steps.compact {
    gap: 0.65rem;
}

.form-column {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.validator-inline.valid {
    color: var(--swift-success);
}

.validator-inline.invalid {
    color: var(--swift-danger);
}

.track-center {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.track-lookup-card {
    width: min(100%, 760px);
}

.track-lookup-card .card-body {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.lookup-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: #e7f1ff;
    color: var(--swift-blue);
    font-size: 1.8rem;
}

.transaction-detail-layout .card-body {
    padding: 1.5rem;
}

.details-list {
    grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
}

.profile-list {
    margin-top: 1rem;
}

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

.stepper-item {
    position: relative;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
    color: var(--swift-secondary);
}

.stepper-item span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid #ced4da;
    border-radius: 999px;
    background: #ffffff;
    color: var(--swift-secondary);
    font-weight: 800;
}

.stepper-complete span {
    background: var(--swift-success);
    border-color: var(--swift-success);
    color: #ffffff;
}

.stepper-current span {
    background: var(--swift-blue);
    border-color: var(--swift-blue);
    color: #ffffff;
}

.stepper-item strong {
    font-size: 0.85rem;
}

.estimated-box {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #e7f1ff;
    color: var(--swift-dark);
    font-weight: 700;
}

.timeline-marker {
    background: var(--swift-blue);
}

.tracking-percent {
    color: var(--swift-blue);
}

.progress {
    height: 0.85rem;
    border-radius: 999px;
}

.progress-bar {
    background-color: var(--swift-blue);
}

.billing-metrics > div {
    border-radius: 12px;
    background: #f8f9fa;
}

.subscription-dashboard-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}

.subscription-notice .card-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.subscription-notice i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e7f1ff;
    color: var(--swift-blue);
    font-size: 1.35rem;
}

.product-card {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.75rem rgba(13, 110, 253, 0.12);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
}

.product-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: #e7f1ff;
    color: var(--swift-blue);
    font-size: 1.55rem;
}

.product-card .card-title {
    font-weight: 700;
}

.product-card .card-text {
    flex: 1;
}

.product-card .badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 992px) {
    .stats-grid,
    .stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero .card-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscription-dashboard-card .card-body {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    .stats-grid,
    .stepper {
        grid-template-columns: 1fr;
    }

    .track-search-form {
        grid-template-columns: 1fr;
    }

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