/* =========================
   Traveler CRM - Soft UI Blue Theme (Unified)
   Based on your full CSS (deduped + modern like screenshots)
   ========================= */

/* ---------- Theme Tokens ---------- */
:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #6b7280;

    --border: rgba(15, 23, 42, .08);
    --border2: rgba(15, 23, 42, .06);

    --shadow: 0;
    --shadow2: 0;
    --shadow3: 0;

    /* Primary blue like screenshots */
    --primary: white;
    --primary2: white;
    --primarySoft: #374151;
    --primarySoft2: rgba(0, 0, 0, 0.18);

    /* Status colors (optional) */
    --successSoft: rgba(16, 185, 129, .12);
    --success: #047857;

    --warningSoft: rgba(245, 158, 11, .14);
    --warning: #92400e;

    --dangerSoft: rgba(239, 68, 68, .12);
    --danger: #b91c1c;

    --radius: 5px;
    --radius2: 5px;
}

/* ---------- Base ---------- */
body {
    background: var(--bg) !important;
    color: var(--text);
}

a {
    color: inherit;
}

.min0 {
    min-width: 0;
}

/* =========================
   COMMON: Cards / Sections / Shadows
   ========================= */
.adv-card,
.adv-section,
.pscan-card,
.pscan-sideCard,
.vindex-tableCard,
.fadv-card,
.acm-content,
.lgn-outerCard,
.lgn-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 5px;
}

/* Reduce shadow if needed */
.fadv-card.noShadow {}

/* =========================
   HERO HEADERS (Unified)
   ========================= */
.adv-hero,
.pscan-hero,
.acm-hero,
.lgn-hero {
    border-radius: var(--radius);
    padding: 18px 18px;
    background: linear-gradient(90deg, var(--primary), var(--primary2));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.adv-hero::after,
.pscan-hero::after,
.acm-hero::after,
.lgn-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .22), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .10), transparent 45%);
    pointer-events: none;
}

/* Inner wrappers */
.adv-hero-inner,
.pscan-hero-inner,
.acm-heroInner,
.lgn-hero-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: #000000;
}

/* Titles */
.adv-title,
.pscan-title,
.acm-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: .2px;
    color: #000000;
}

.adv-title {
    font-size: 18px;
}

.pscan-title {
    font-size: 20px;
}

.acm-title {
    font-size: 18px;
}

.lgn-title {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: .2px;
}

.adv-breadcrumb,
.pscan-subtitle,
.acm-subtitle,
.lgn-subtitle {
    margin-top: 6px;
    opacity: .92;
    font-size: 13px;
    font-weight: 700;
}

.adv-breadcrumb a {
    color: rgba(0, 0, 0, 0.95);
    text-decoration: none;
    font-weight: 800;
}

.adv-breadcrumb span {
    color: rgba(0, 0, 0, 0.95);
    text-decoration: none;
    font-weight: 800;
}

.adv-breadcrumb .sep {
    opacity: .8;
}

/* Close buttons inside hero */
.pscan-close,
.acm-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* =========================
   ICON PILL (Unified)
   ========================= */
.adv-ic,
.pscan-tipIconPill,
.vindex-ic,
.fadv-ic,
.pscan-drop-icon {
    background: var(--bg);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.adv-ic {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 20px;
}

.vindex-ic {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 22px;
}

.fadv-ic {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
}

.pscan-tipIconPill {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
}

.pscan-drop-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 26px;
}

/* =========================
   BUTTONS (Unified)
   ========================= */
.adv-btn-primary,
.adv-btn-gold,
.vindex-btn-gold,
.fadv-btnGold,
.acm-btnGold,
.pscan-btn-primary,
.lgn-btn {
    border-radius: 14px !important;
    border: 0 !important;
    background: blue;
    color: #030101 !important;
    font-weight: 900 !important;
}

.adv-btn-outline,
.pscan-btn-outline,
.acm-btnOutline,
.fadv-collapseBtn {
    border-radius: 14px !important;
    border: 1px solid var(--border) !important;
    background: #fff !important;
    font-weight: 900 !important;
    color: var(--text) !important;
}

.adv-btn-outline:hover,
.pscan-btn-outline:hover,
.acm-btnOutline:hover,
.fadv-collapseBtn:hover {
    background: var(--bg) !important;
}

/* Danger button (keep) */
.vindex-btn-danger {
    border-radius: 14px !important;
    font-weight: 900 !important;
    padding: 10px 12px !important;
}

/* =========================
   BADGES / PILLS (Unified)
   ========================= */
.adv-badge,
.vindex-pill,
.pscan-pill,
.fadv-badge,
.adv-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    background: var(--bg);
    color: #374151;
    border: 1px solid var(--border);
    font-weight: 900;
    font-size: 12px;
}

.vindex-pill.soft {
    background: var(--bg);
    color: #374151;
    border: 1px solid var(--border);
}

/* Hero pill white */
.adv-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}

.adv-pill i {
    font-size: 16px;
}

/* =========================
   LAYOUT (Content Shell)
   ========================= */
.adv-shell {
    overflow: visible;
}

.adv-container {
    padding-top: 18px;
    padding-bottom: 28px;
}

.adv-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.adv-gap {
    margin-top: 12px;
}

.adv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

/* Sticky */
.adv-sticky {
    position: sticky;
    z-index: 6;
}

/* =========================
   CARD HEADERS / SECTIONS
   ========================= */
.adv-card-h,
.pscan-card-header,
.vindex-tableHead,
.fadv-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.adv-card-title,
.vindex-th-left,
.fadv-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.adv-card-b,
.pscan-content,
.fadv-body,
.acm-body {
    padding: 16px;
    background: var(--bg);
}

/* Section header */
.adv-sec-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.adv-sec-title {
    font-weight: 900;
    margin: 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.adv-h-title {
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.adv-h-sub {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
}

/* =========================
   FILTER PANELS
   ========================= */
.adv-filter,
.fadv-body,
.vindex-filterWrap,
.adv-drop {
    background: var(--bg);
}

.adv-filter-inner,
.vindex-filterWrap {
    border-radius: 16px;
    border: 1px solid var(--border2);
    background: linear-gradient(180deg, rgba(11, 94, 215, .04), rgba(11, 94, 215, .01));
    padding: 12px;
}

/* Collapse button in filter */
.fadv-collapseBtn {
    border-radius: 999px !important;
    padding: 8px 12px !important;
    cursor: pointer;
}

/* Filter actions */
.fadv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Reset button (danger soft) */
.fadv-btnReset {
    border-radius: 14px !important;
    border: 1px solid rgba(239, 68, 68, .22) !important;
    background: rgba(239, 68, 68, .08) !important;
    color: var(--danger) !important;
    font-weight: 900 !important;
    padding: 10px 12px !important;
}

/* =========================
   ALERTS
   ========================= */
.adv-alert {
    border-radius: var(--radius);
    border: 1px solid rgba(245, 158, 11, .25);
    background: rgba(245, 158, 11, .10);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.adv-alert .msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--warning);
    font-weight: 900;
}

.adv-alert .msg i {
    font-size: 20px;
    margin-top: 2px;
}

/* =========================
   DROPZONES / PREVIEW
   ========================= */
.adv-drop-inner,
.pscan-drop {
    border-radius: 16px;
    border: 2px dashed rgba(11, 94, 215, .30);
    background: linear-gradient(180deg, rgba(11, 94, 215, .06), rgba(11, 94, 215, .02));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 16px;
}

.pscan-drop {
    min-height: 230px;
    transition: .15s ease;
    cursor: pointer;
}

.pscan-drop.drag {
    transform: translateY(-2px);
    border-color: rgba(11, 94, 215, .55);
}

.adv-drop-big {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--primarySoft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.adv-drop-t,
.pscan-drop-title {
    font-weight: 900;
    color: var(--text);
    margin: 0;
}

.adv-drop-s,
.pscan-drop-hint {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.adv-prev,
.pscan-videoWrap,
.pscan-previewImg {
    border-radius: 16px;
    overflow: hidden;
    background: #0b0f1a;
}

.adv-prev {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv-prev-img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.pscan-video {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.pscan-frame {
    width: min(520px, 88%);
    height: min(260px, 52%);
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, .7);
    position: relative;
}

.pscan-frame::before,
.pscan-frame::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(11, 94, 215, .95);
}

.pscan-frame::before {
    top: -2px;
    left: -2px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 14px;
}

.pscan-frame::after {
    bottom: -2px;
    right: -2px;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 14px;
}

/* =========================
   TABS (Tasks-like)
   ========================= */
.pscan-tabs {
    display: flex;
    gap: 8px;
    background: #eef2f7;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border2);
}

.pscan-tab {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pscan-tab.active {
    background: #fff;
    color: var(--text);
}

/* =========================
   MODALS
   ========================= */
.pscan-modal .modal-dialog {
    max-width: 980px;
}

.pscan-modal .modal-content {
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.pscan-body {
    background: var(--bg);
}

.pscan-shell {
    padding: 16px;
}

.pscan-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 12px;
}

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

.pscan-camFooter,
.pscan-footer,
.acm-footer {
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pscan-hintLine {
    color: var(--muted);
    font-size: 12.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add Client modal */
.acm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 1050;
}

.acm-modal {
    position: fixed;
    inset: 0;
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.acm-dialog {
    width: min(920px, 100%);
}

.acm-body {
    background: var(--bg);
}

.acm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.acm-alert {
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, .18);
    background: rgba(239, 68, 68, .08);
    padding: 12px;
    margin-bottom: 12px;
}

.acm-alertTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: var(--danger);
}

.acm-alertText {
    margin-top: 4px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
    opacity: .9;
}

/* =========================
   TABLES / LISTS
   ========================= */
.adv-table thead th {
    font-weight: 900;
    color: var(--text);
    background: rgba(15, 23, 42, .03);
    border-bottom: 1px solid var(--border) !important;
}

.adv-table tbody td {
    border-bottom: 1px solid var(--border2) !important;
}

/* Empty line */
.adv-emptyLine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px dashed rgba(15, 23, 42, .12);
    color: var(--muted);
    font-weight: 900;
}

/* =========================
   Visa Index (your classes kept)
   ========================= */
.vindex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vindex-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.vindex-btn-gold {
    padding: 10px 12px !important;
}

.vindex-pill {
    padding: 8px 12px;
}

.vindex-tableHead {
    padding: 14px 16px;
}

.vindex-ttl {
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.vindex-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.vindex-tableWrap {
    padding: 0;
}

/* Client cell */
.vindex-client {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vindex-client-name {
    font-weight: 900;
    color: var(--text);
}

.vindex-client-sub {
    font-size: 12px;
    color: var(--muted);
}

.vindex-client-sub a {
    color: var(--muted);
    text-decoration: underline;
}

/* Files */
.vindex-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vindex-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
}

.vindex-link:hover {
    text-decoration: underline;
}

.vindex-muted {
    color: #9ca3af;
    font-size: 12px;
}

/* Status badges */
.vindex-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    border: 1px solid rgba(15, 23, 42, .10);
}

.vindex-badge.primary {
    background: var(--primarySoft);
    color: var(--primary);
    border-color: var(--primarySoft2);
}

.vindex-badge.success {
    background: var(--successSoft);
    color: var(--success);
    border-color: rgba(16, 185, 129, .20);
}

.vindex-badge.warning {
    background: var(--warningSoft);
    color: var(--warning);
    border-color: rgba(245, 158, 11, .24);
}

.vindex-badge.danger {
    background: var(--dangerSoft);
    color: var(--danger);
    border-color: rgba(239, 68, 68, .22);
}

.vindex-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================
   Filter Advanced (your structure)
   ========================= */
.fadv-header {
    padding: 14px 16px;
}

.fadv-titleWrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fadv-title {
    font-weight: 900;
    color: var(--text);
}

.fadv-sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
}

.fadv-badge {
    padding: 8px 12px;
}

/* =========================
   Guest + Login (Soft)
   ========================= */
.gst-shell {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 14px;
    background: #eef0f3;
}

.gst-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(11, 94, 215, .14), transparent 44%),
        radial-gradient(circle at 85% 18%, rgba(15, 23, 42, .10), transparent 48%);
    pointer-events: none;
}

/* Frame controls logo overlap */
.gst-frame {
    position: relative;
    width: min(980px, 100%);
    display: flex;
    justify-content: center;
}

.gst-logoFloat {
    position: absolute;
    top: -58px;
    left: 50%;
    transform: translateX(-50%);
    width: 112px;
    height: 112px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gst-logo {
    width: 112px;
    height: 112px;
    border-radius: 999px;
}

.gst-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 62px;
}

.lgn-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.lgn-outerCard {
    width: min(980px, 100%);
    border-radius: 22px;
    padding: 44px 22px;
}

.lgn-card {
    width: min(640px, 100%);
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
}

.lgn-hero {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.lgn-heroText {
    text-align: right;
}

.lgn-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .30);
    background: rgba(255, 255, 255, .16);
    font-weight: 900;
    font-size: 13px;
    min-width: 120px;
    justify-content: center;
}

.lgn-status {
    margin: 12px 16px 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--successSoft);
    border: 1px solid rgba(16, 185, 129, .18);
    color: var(--success);
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lgn-body {
    padding: 18px 18px 16px;
    background: var(--bg);
}

.lgn-field {
    margin-bottom: 14px;
}

.lgn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.lgn-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #374151;
}

.lgn-link {
    font-weight: 900;
    color: black;
    text-decoration: none;
}

.lgn-link:hover {
    text-decoration: underline;
}

.lgn-actions {
    margin-top: 16px;
}

.lgn-btn {
    width: 100%;
    padding: 13px 16px !important;
}

.lgn-footNote {
    margin-top: 14px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
    text-align: center;
}

/* =========================
   Misc: KV / Links / Notes
   ========================= */
.adv-kv {
    margin-top: 6px;
}

.adv-kv-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(15, 23, 42, .10);
}

.adv-kv-row:last-child {
    border-bottom: 0;
}

.adv-kv-row span {
    color: var(--muted);
    font-weight: 800;
}

.adv-kv-row strong {
    color: var(--text);
    font-weight: 900;
}

.adv-link {
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
}

.adv-link:hover {
    text-decoration: underline;
}

.adv-note {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 14px;
    padding: 12px;
    font-weight: 800;
    color: var(--text);
    min-height: 70px;
}

.adv-dim {
    color: #9ca3af;
    font-weight: 800;
}

.adv-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.adv-mrz,
.adv-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: .3px;
}

/* =========================
   Tips Side (kept, blue)
   ========================= */
.pscan-side {
    padding: 12px;
}

.pscan-tipsList {
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pscan-tipRow {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: start;
    cursor: pointer;
    position: relative;
}

.pscan-tipRow.active {
    border-color: rgba(11, 94, 215, .30);
}

.pscan-tipKey {
    font-weight: 900;
    color: #374151;
    font-size: 14px;
}

.pscan-tipDetails {
    position: relative;
    width: 100%;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    color: #374151;
    font-size: 13px;
    line-height: 1.7;
}

/* Alerts in side */
.pscan-alert {
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, .25);
    background: rgba(245, 158, 11, .10);
    padding: 12px;
    margin-bottom: 10px;
}

.pscan-alert-title {
    font-weight: 900;
    color: var(--warning);
    margin-bottom: 4px;
}

.pscan-alert-text {
    color: var(--warning);
    font-size: 13px;
    line-height: 1.6;
}

.pscan-alert-list {
    margin: 8px 0 0;
    padding-inline-start: 18px;
    color: var(--warning);
    font-size: 12.5px;
}

/* =========================
   Mobile tweaks
   ========================= */
@media (max-width: 768px) {

    .adv-hero,
    .pscan-hero,
    .acm-hero,
    .lgn-hero {
        padding: 14px;
    }

    .adv-fileImg,
    .adv-empty {
        height: 220px;
    }
}

/* =========================
   Your existing helper blocks (kept as-is)
   ========================= */

/* rc */
.rc {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.rc-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    min-width: 0;
}

.rc-code {
    font-weight: 800;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    flex: 0 0 auto;
}

.rc-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    min-width: 0;
}

.rc-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
}

.rc-line {
    height: 10px;
    border-left: 2px dashed #d1d5db;
}

.rc-arrow {
    font-size: 12px;
    line-height: 12px;
}

.rc-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rc-tag {
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.rc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 2px 0;
}

/* Contract rooms */
.contract-rooms-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr .7fr;
    gap: 12px;
    align-items: center;
}

.contract-rooms-head {
    font-weight: 700;
    color: var(--muted);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.contract-rooms-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.contract-rooms-row .form-control,
.contract-rooms-row select {
    width: 100% !important;
    min-width: 0 !important;
}

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

    .contract-rooms-head {
        display: none;
    }

    .contract-rooms-row {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 10px;
    }
}

/* rs */
.rs-simple {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rs-line-1 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #0f172a;
    min-width: 0;
    line-height: 1.3;
}

.rs-line-2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}

.rs-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-more {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primarySoft);
    padding: 1px 6px;
    border-radius: 8px;
}

.rs-ic {
    font-size: 16px;
    opacity: .8;
    flex: 0 0 auto;
}

@media (max-width: 576px) {
    .rs-line-1 {
        font-size: 13px;
    }

    .rs-line-2 {
        font-size: 11px;
    }
}


/* ===== Login Card ===== */
.lgn-card {
    width: min(520px, 92vw);
    margin: 24px auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

/* ===== Hero Header ===== */
.lgn-hero {
    padding: 20px 22px;
    background: linear-gradient(var(--primary), var(--primary2));
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.lgn-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lgn-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.lgn-subtitle {
    font-size: 13px;
    color: #4b5563;
}

.lgn-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(0, 0, 0, .07);
    backdrop-filter: blur(6px);
}

.lgn-badgeText {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}

/* ===== Status ===== */
.lgn-status {
    margin: 14px 18px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

/* ===== Body ===== */
.lgn-body {
    padding: 18px;
}

.lgn-field {
    margin-bottom: 14px;
}

/* لو TextInput / InputPassword بيرندروا Bootstrap input */
.lgn-body .form-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.lgn-body .form-control {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fbfbfb;
    transition: .18s ease;
}

.lgn-body .form-control:focus {
    background: #fff;
    border-color: rgba(59, 130, 246, .55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}

.lgn-body .is-invalid:focus {
    border-color: rgba(239, 68, 68, .7);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .14);
}

/* ===== Row: forgot + remember ===== */
.lgn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 14px;
}

.lgn-link {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.lgn-link:hover {
    text-decoration: underline;
}

.lgn-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    font-size: 13px;
    color: #374151;
}

/* ===== Actions ===== */
.lgn-actions {
    margin-top: 8px;
}

.lgn-btn {
    width: 100%;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .20);
}

.lgn-btn:active {
    transform: translateY(1px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

/* ===== Footnote ===== */
.lgn-footNote {
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed rgba(0, 0, 0, .10);
}

/* Responsive tweaks */
@media (max-width: 420px) {
    .lgn-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .lgn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .lgn-remember {
        justify-content: flex-end;
    }
}


.price-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: #fff;
}

.price-label {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #111;
    opacity: .85;
}

.price-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    background: #fff;
}

.price-label {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #111;
    opacity: .85;
}

.room-cell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.room-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-top .btn {
    white-space: nowrap;
}

.icon-btn {
    width: 42px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.services-panel {
    grid-column: 1 / -1;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fbfbfb);
    padding: 12px;
    margin-top: 6px;
}

.services-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.svc-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 10px;
    background: var(--bg);
}

.svc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.svc-name {
    font-weight: 900;
    font-size: 13px;
    color: #111;
}

.svc-sub {
    font-size: 11px;
    color: rgba(0, 0, 0, .55);
    margin-top: 2px;
}

.sw {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
}

.sw input {
    display: none;
}

.sw span {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
    transition: .2s;
}

.sw span:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    transition: .2s;
}

.sw input:checked+span {
    background: #244a86;
}

.sw input:checked+span:before {
    transform: translateX(20px);
}

.svc-prices {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.svc-prices .form-control {
    border-radius: 10px;
}

/* LTR fix: لو العنصر واخد class submenu-left افتح الـ dropdown ناحية الشمال */
html[dir="ltr"] #layout-menu li.menu-item.submenu-left>ul.menu-sub {
    left: auto !important;
    right: 0 !important;
}

/* لو عندك submenus متداخلة (level 2/3) وعايزها تفتح شمال برضه */
html[dir="ltr"] #layout-menu li.menu-item.submenu-left ul.menu-sub li.menu-item>ul.menu-sub {
    left: auto !important;
    right: 100% !important;
    /* افتح ناحية الشمال بالنسبة للأب */
}