:root {
    --brand-navy: #0A192F;
    --brand-gold: #C5A059;
    --brand-gold-dark: #a88446;
    --text-main: #2D3748;
    --text-muted: #718096;
    --bg-light: #F8FAFC;
    --bg-soft: #F3F6FA;
    --border: #E2E8F0;
    --white: #ffffff;
    --danger: #9B2C2C;
    --success: #166534;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 8px 24px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 16px 40px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 22px 50px rgba(10, 25, 47, 0.10);
    --step-anim: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea, table, th, td, label, a, span, p, div, strong, small, h1, h2, h3, h4, h5 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(10,25,47,1) 0%, rgba(10,25,47,.95) 58%, rgba(197,160,89,.92) 100%);
}
.auth-card {
    width: min(520px, 100%);
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.auth-brand { display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.auth-brand img { width:68px; height:68px; object-fit:contain; background:#fff; border:1px solid var(--border); border-radius:18px; padding:8px; }
.auth-brand h1 { margin:0; color:var(--brand-navy); font-size:1.55rem; font-weight:600; }
.auth-brand p { margin:6px 0 0; color:var(--text-muted); }
.dashboard { display: grid; grid-template-columns: 330px 1fr; min-height: 100vh; background: var(--white); }
.side-info {
    background: var(--brand-navy);
    color: var(--white);
    padding: 42px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow-y: auto;
}
.side-info h1, .brand-title {
    font-weight: 600;
    font-size: 1.6rem;
    border-right: 4px solid var(--brand-gold);
    padding-right: 14px;
    margin: 0 0 10px;
    line-height: 1.4;
}
.brand-subtitle, .side-info .intro-copy {
    opacity: 0.82;
    font-size: 0.92rem;
    line-height: 1.9;
}
.track-list {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
}
.track-item {
    position: relative;
    padding: 0 30px 32px 0;
    border-right: 2px solid rgba(255,255,255,0.11);
    transition: 0.3s;
    color: rgba(255,255,255,0.52);
    font-size: 0.95rem;
    line-height: 1.8;
}
.track-item.active {
    color: var(--brand-gold);
    border-right-color: var(--brand-gold);
    font-weight: 600;
}
.track-item::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    right: -7px;
    width: 12px;
    height: 12px;
    background: var(--brand-navy);
    border: 2px solid currentColor;
    border-radius: 50%;
}
.side-footer { font-size: 0.78rem; opacity: 0.58; line-height: 1.9; }
.main-form {
    padding: 44px 6.5%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.main-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.brand-inline { display: flex; align-items: center; gap: 14px; }
.brand-inline img, .logo-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px;
}
.brand-inline h2 { margin: 0; color: var(--brand-navy); font-size: 1.35rem; line-height: 1.35; }
.brand-inline p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(197,160,89,.26);
    background: rgba(197,160,89,.08);
    color: var(--brand-gold-dark);
    font-weight: 600;
    font-size: 0.92rem;
}
.badge-soft::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold); }
.form-section { display: none; max-width: 1080px; animation: slideIn var(--step-anim); }
.form-section.active { display: block; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 1.85rem; color: var(--brand-navy); margin: 0 0 8px; line-height: 1.4; font-weight: 600; }
.section-head p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.9; margin: 0; }
.grid-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-3-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.full-width { grid-column: span 2; }
.full-width-3 { grid-column: span 3; }
.field { margin-bottom: 4px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.88rem; color: #4A5568; }
.input-ctrl, .input, .select, .textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.96rem;
    transition: all 0.2s;
    background: var(--bg-light);
    font-family: inherit;
    color: var(--text-main);
}
.textarea { min-height: 120px; resize: vertical; }
.input-ctrl:focus, .input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.05);
}
.action-bar {
    margin-top: 28px;
    padding: 24px 0 0;
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.btn {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: #162a4d; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-ghost, .btn-light { background: transparent; color: #718096; border: 1px solid var(--border); }
.btn-ghost:hover, .btn-light:hover { background: #f1f5f9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--brand-gold); color: var(--brand-navy); }
.btn-warning:hover { background: #b38f50; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; line-height: 1.8; }
.alert-success { background: #EDFDF3; color: #166534; }
.alert-error { background: #FEF2F2; color: #991B1B; }
.alert-info { background: #EFF6FF; color: #1E40AF; }
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.section-title { margin: 0 0 12px; color: var(--brand-navy); font-size: 1.18rem; }
.muted { color: var(--text-muted); line-height: 1.8; }
.muted-light { color: rgba(255,255,255,.78); line-height: 1.8; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi, .kpi-card, .mini-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.kpi .label, .kpi-label { color: var(--text-muted); font-size: 0.86rem; }
.kpi .value, .kpi-value { font-size: 1.7rem; font-weight: 600; color: var(--brand-navy); margin-top: 6px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; font-size: 0.93rem; }
th { background: var(--bg-light); color: var(--brand-navy); font-weight: 600; }
.sidebar-nav { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.sidebar-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    transition: 0.2s;
    font-size: 0.98rem;
    font-weight: 600;
}
.sidebar-nav a.active, .sidebar-nav a:hover { background: rgba(197,160,89,.15); color: #fff; }
.required-star { color: var(--danger); }
.name-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.site-footer-clean {
    display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
    padding: 20px 28px; border-top:1px solid var(--border); color:var(--text-muted); font-size:.9rem; background:#fff;
}
.hero-panel {
    background: linear-gradient(135deg, rgba(10,25,47,1) 0%, rgba(10,25,47,.96) 55%, rgba(197,160,89,.9) 100%);
    color:#fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow-md); margin-bottom: 26px;
}
.hero-panel h1 { margin:0 0 10px; font-size:2rem; font-weight:600; }
.hero-panel p { margin:0; max-width:820px; line-height:2; color:rgba(255,255,255,.86); }
.list-clean { margin:0; padding-right:18px; }
.list-clean li { margin-bottom:8px; }
.inline-actions { display:flex; gap:10px; flex-wrap:wrap; }
.phone-code-box {
    display:flex; align-items:center; justify-content:center; min-height:80px;
    font-size:2rem; font-weight:700; letter-spacing: 8px; color:var(--brand-navy);
    background: rgba(197,160,89,.15); border:1px dashed rgba(197,160,89,.55); border-radius:18px;
}
.stat-inline { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.empty-box { text-align:center; color:var(--text-muted); padding:36px 16px; }
.admin-user-card { margin-top:22px; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); box-shadow:none; color:#fff; }
.admin-main { padding-top: 34px; }
.small { font-size:.86rem; }
.form-note { color: var(--text-muted); font-size: .88rem; line-height: 1.8; margin-top: 8px; }
@media (max-width: 1100px) {
    .dashboard { grid-template-columns: 1fr; }
    .side-info { position: relative; min-height: auto; }
    .grid-4, .grid-3, .grid-2, .grid-fields, .grid-3-fields { grid-template-columns: 1fr; }
    .full-width, .full-width-3 { grid-column: span 1; }
}
@media (max-width: 720px) {
    .main-form { padding: 28px 20px; }
    .name-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-panel { padding: 22px; }
    .hero-panel h1 { font-size: 1.65rem; }
}


.admin-bar-page {
    padding-top: 88px !important;
}

.admin-mini-bar {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(6, 24, 49, 0.96);
    border-bottom: 1px solid rgba(212, 170, 98, 0.26);
    box-shadow: 0 12px 28px rgba(6, 24, 49, 0.18);
    backdrop-filter: blur(10px);
}

.admin-mini-bar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.admin-mini-bar__brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 6px;
}

.admin-mini-bar__brand strong,
.admin-mini-bar__brand span {
    display: block;
}

.admin-mini-bar__brand span {
    font-size: .85rem;
    color: rgba(255,255,255,.72);
}

.admin-mini-bar__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-mini-bar__nav a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    transition: .2s ease;
    font-weight: 600;
}

.admin-mini-bar__nav a:hover,
.admin-mini-bar__nav a.active {
    color: #061831;
    background: linear-gradient(135deg, #d4aa62, #f1ddaa);
    border-color: transparent;
}

@media (max-width: 900px) {
    .admin-mini-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-mini-bar__nav {
        width: 100%;
    }
}

.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 4px rgba(155, 44, 44, 0.08) !important;
    background: #fff !important;
}

select.input-ctrl {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #475569 50%), linear-gradient(135deg, #475569 50%, transparent 50%);
    background-position: calc(14px) calc(50% - 3px), calc(8px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-left: 34px;
}

.review-value {
    font-size: 1.05rem !important;
    line-height: 1.8;
}

.map-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.map-status {
    background: rgba(197,160,89,.08);
    color: var(--brand-gold-dark);
    border: 1px dashed rgba(197,160,89,.45);
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.9;
    font-weight: 500;
}

.checkbox-card {
    padding: 18px 20px;
}

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--brand-navy);
    font-weight: 600;
    line-height: 1.9;
    cursor: pointer;
}

.check-line input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--brand-navy);
}

body.modal-open {
    overflow: hidden;
}

.overlay-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.58);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 4000;
}

.overlay-modal.is-open {
    display: flex;
}

.overlay-panel {
    width: min(920px, 100%);
    max-height: min(88vh, 900px);
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(10,25,47,.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.overlay-header,
.overlay-footer {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.overlay-footer {
    border-bottom: none;
    border-top: 1px solid var(--border);
}

.overlay-header h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1.22rem;
}

.overlay-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

.overlay-body {
    padding: 22px;
    overflow: auto;
}

.terms-scroll {
    color: var(--text-main);
    line-height: 2;
}

.terms-scroll h4 {
    margin: 0 0 8px;
    color: var(--brand-navy);
    font-size: 1.02rem;
}

.terms-scroll p {
    margin: 0 0 18px;
    color: #475569;
}

.terms-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 0.93rem;
}

.terms-rich-content th,
.terms-rich-content td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    vertical-align: top;
}

.terms-rich-content thead th {
    background: var(--brand-navy);
    color: #fff;
}

.terms-rich-content .table-secondary {
    background: #f6f8fb;
}

.terms-rich-content ol,
.terms-rich-content ul {
    margin: 0 0 18px;
    padding-right: 22px;
}

.terms-rich-content q {
    display: block;
    font-weight: 600;
    color: var(--brand-navy);
}

.map-panel {
    width: min(1080px, 100%);
}

.map-search {
    width: 100%;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
}

.map-search:focus {
    outline: none;
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 4px rgba(10, 25, 47, 0.05);
}

.map-canvas {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: linear-gradient(180deg, #eef3f8 0%, #dde7f2 100%);
}

.map-meta {
    margin-top: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

#ContentPlaceHolder1_PageData_ucZawga_PersonDataControl1_ucBirthDate_pickCalGer {
    cursor: pointer;
    background-color: #fff7ea;
}

@media (max-width: 720px) {
    .overlay-modal {
        padding: 12px;
    }

    .overlay-panel {
        border-radius: 20px;
    }

    .map-canvas {
        height: 360px;
    }
}


.pac-container {
    z-index: 5005 !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.review-value {
    font-size: 1rem !important;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .side-info {
        padding: 18px 18px 16px;
        position: sticky;
        top: 0;
        z-index: 30;
        min-height: auto;
        gap: 14px;
    }

    .track-list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 2px;
        margin-top: 18px;
        scrollbar-width: thin;
    }

    .track-item {
        border-right: none;
        padding: 10px 14px;
        white-space: nowrap;
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.72);
        margin: 0;
    }

    .track-item.active {
        background: rgba(197,160,89,.18);
    }

    .track-item::after {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        margin-top: 18px;
        padding-bottom: 4px;
    }

    .sidebar-nav li {
        flex: 0 0 auto;
    }

    .sidebar-nav a {
        white-space: nowrap;
    }

    .side-footer {
        display: none;
    }
}

@media (max-width: 720px) {
    body.auth-page {
        padding: 14px;
        align-items: stretch;
    }

    .auth-card {
        padding: 18px;
        border-radius: 20px;
        align-self: center;
    }

    .auth-brand {
        align-items: flex-start;
        gap: 12px;
    }

    .auth-brand img {
        width: 56px;
        height: 56px;
    }

    .auth-brand h1 {
        font-size: 1.25rem;
    }

    .action-bar,
    .inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-bar .btn,
    .inline-actions .btn,
    .inline-actions a.btn {
        width: 100%;
    }

    .main-topbar {
        align-items: stretch;
    }

    .brand-inline {
        align-items: flex-start;
    }

    .badge-soft {
        justify-content: center;
        width: 100%;
    }

    .table-wrap {
        margin-inline: -10px;
        padding-inline: 10px;
    }

    th, td {
        font-size: 0.86rem;
        padding: 10px 8px;
    }

    .overlay-header,
    .overlay-footer,
    .overlay-body {
        padding: 14px;
    }

    .map-search {
        font-size: 16px;
    }

    .phone-code-box {
        letter-spacing: 4px;
        font-size: 1.5rem;
    }

    .site-footer-clean {
        padding: 16px 18px;
        text-align: center;
        justify-content: center;
    }
}


@media print {
    .no-print,
    .side-info,
    .site-footer-clean,
    .admin-mini-bar,
    .overlay-modal {
        display: none !important;
    }

    .dashboard,
    .admin-shell {
        display: block !important;
        min-height: auto !important;
    }

    .main-form,
    .admin-main {
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .card,
    .mini-card,
    .kpi,
    .kpi-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}
.auth-visual {
    background: linear-gradient(180deg, rgba(8,18,38,.98), rgba(10,25,47,.92) 65%, rgba(197,160,89,.72));
    color: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}
.auth-visual__badge {
    display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);width:max-content;font-weight:600;font-size:.9rem;
}
.auth-visual h1 { margin:22px 0 10px; font-size:2rem; line-height:1.4; }
.auth-visual p { margin:0; color:rgba(255,255,255,.82); line-height:2; }
.auth-visual__list { margin:26px 0 0; padding-right:18px; color:rgba(255,255,255,.86); line-height:2; }
.auth-visual__footer { margin-top:auto; padding-top:20px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:rgba(255,255,255,.78); font-size:.92rem; }
.auth-card--app { width:100%; max-width:none; display:flex; flex-direction:column; justify-content:center; }
.auth-brand--compact h2 { margin:0; color:var(--brand-navy); font-size:1.7rem; }
.auth-brand--compact p { margin:6px 0 0; }
.map-search-row { display:flex; gap:10px; align-items:center; margin-bottom:14px; }
.map-search-row .map-search { margin-bottom:0; flex:1; }
.map-search-btn { white-space:nowrap; min-width:92px; }
.table-compact th, .table-compact td { font-size:.88rem; padding:12px 10px; }
.action-pills { display:flex; gap:8px; flex-wrap:wrap; }
.action-pill { width:36px; height:36px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); background:#fff; color:var(--brand-navy); font-size:1rem; }
.action-pill:hover { background:rgba(10,25,47,.06); }
.legacy-right-rail { position:fixed; top:118px; right:14px; z-index:1100; display:flex; flex-direction:column; gap:10px; }
.legacy-right-rail a { width:52px; height:52px; border-radius:18px; display:flex; align-items:center; justify-content:center; background:rgba(6,24,49,.96); color:#fff; box-shadow:0 12px 24px rgba(6,24,49,.18); border:1px solid rgba(212,170,98,.28); font-weight:700; }
.legacy-right-rail a.active, .legacy-right-rail a:hover { background:linear-gradient(135deg,#d4aa62,#f1ddaa); color:#061831; }
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: auto; padding: 22px; }
}
@media (max-width: 720px) {
    .auth-shell { gap: 14px; }
    .auth-visual { order:2; border-radius:22px; }
    .auth-card--app { order:1; }
    .auth-visual h1 { font-size:1.35rem; }
    .auth-visual__list { font-size:.92rem; }
    .map-search-row { flex-direction:column; }
    .map-search-btn { width:100%; }
    .legacy-right-rail { position:static; flex-direction:row; overflow:auto; padding:0 10px 10px; }
}


.identity-notice-card {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(197,160,89,.28);
    background: linear-gradient(180deg, rgba(197,160,89,.08), rgba(10,25,47,.02));
    border-radius: 16px;
}
.identity-notice-title {
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 6px;
}
.identity-notice-copy {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: .92rem;
}
.identity-status-box { min-height: 0; }
.identity-status-box.is-visible { min-height: 90px; }
.identity-status {
    border-radius: 16px;
    padding: 14px 16px;
    line-height: 1.9;
    border: 1px solid transparent;
    font-size: .92rem;
}
.identity-status strong { color: inherit; }
.identity-status.found { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.identity-status.fresh { background: #EDFDF3; border-color: #BBF7D0; color: #166534; }
.identity-status.pending { background: #FFF7ED; border-color: #FED7AA; color: #9A3412; }
.identity-status.error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }


/* polish v10 */
.auth-app-pill { display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:rgba(10,25,47,.06);color:var(--brand-navy);font-weight:700;font-size:.82rem;margin-left:auto; }
.auth-visual__mobile-logo { display:none; }
.thankyou-page { min-height:100vh; display:flex; flex-direction:column; justify-content:flex-start; }
.thankyou-shell { width:min(860px,100%); margin:36px auto 22px; padding-inline:14px; }
.thankyou-card { width:100%; }
.thankyou-page .site-footer-clean { margin-top:auto; width:100%; }
@media (max-width: 720px) {
  body.auth-page { padding:0; }
  .auth-shell--gate { width:100%; max-width:430px; min-height:100vh; margin:0 auto; display:flex; flex-direction:column; gap:0; }
  .auth-shell--gate .auth-visual { display:none; }
  .auth-shell--gate .auth-card--app { min-height:100vh; border-radius:0; box-shadow:none; border:none; padding:18px 16px 24px; background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96)); }
  .auth-shell--gate .auth-brand { margin-bottom:18px; }
  .auth-shell--gate .auth-brand--compact { position:relative; padding:18px; border-radius:24px; background:linear-gradient(135deg,#ffffff,#f7f9fc); border:1px solid rgba(10,25,47,.08); box-shadow:0 10px 34px rgba(10,25,47,.08); flex-direction:column; align-items:flex-start; }
  .auth-shell--gate .auth-brand img { width:64px; height:64px; }
  .auth-shell--gate .auth-brand--compact h2 { font-size:1.55rem; }
  .auth-shell--gate .card { border-radius:24px; padding:18px; }
  .auth-shell--gate .btn-primary { min-height:52px; border-radius:16px; }
  .auth-shell--gate .input-ctrl { min-height:52px; border-radius:16px; font-size:16px; }
  .auth-shell--gate .site-footer-clean { justify-content:center; text-align:center; }
  .thankyou-shell { margin:18px auto 14px; padding-inline:10px; }
  .thankyou-card { border-radius:22px; }
}
