:root {
    --navy: #0a2540;
    --navy-dark: #061a2f;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --white: #ffffff;
    --bg: #f5f7fa;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius: 18px;
    --shadow: 0 20px 45px rgba(15, 23, 42, .08);
    --font: 'Cairo', 'Tahoma', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 17.6px; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top right, rgba(249,115,22,.22), transparent 35%), linear-gradient(135deg, var(--navy), var(--navy-dark)); padding: 20px; }
.login-card { width: min(440px, 100%); background: var(--white); border-radius: 28px; padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.login-brand { text-align: center; margin-bottom: 25px; }
.brand-mark { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 16px; font-weight: 900; }
.login-brand h1 { margin: 0; color: var(--navy); }
.login-brand p, .login-hint { color: var(--muted); }
.form-stack { display: grid; gap: 10px; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none; background: #fff; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
textarea { min-height: 105px; resize: vertical; }
.btn { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; font-weight: 800; cursor: pointer; background: var(--navy); color: #fff; transition: .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); }
.btn.primary:hover { background: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn.small { padding: 9px 13px; font-size: 15.4px; }
.btn.tiny { padding: 7px 10px; font-size: 14.3px; border-radius: 10px; }
.alert { padding: 13px 15px; border-radius: 14px; margin-bottom: 16px; }
.alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 285px; background: var(--navy); color: #fff; padding: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.brand .brand-mark { margin: 0; flex: 0 0 auto; }
.brand strong { display: block; font-size: 22px; }
.brand span { color: rgba(255,255,255,.65); font-size: 14.3px; }
.nav-links { display: grid; gap: 8px; }
.nav-links a { padding: 13px 15px; border-radius: 14px; color: rgba(255,255,255,.82); transition: .2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; transform: translateX(-3px); }
.nav-links .logout-link { margin-top: 20px; color: #fed7aa; }
.main-content { flex: 1; padding: 24px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.topbar h1 { margin: 0; color: var(--navy); }
.topbar p { margin: 4px 0 0; color: var(--muted); }
.menu-toggle { display: none; }
.user-mini { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 10px 14px; min-width: 155px; }
.user-mini span { display: block; font-weight: 800; }
.user-mini small { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card, .page-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.stat-card span { color: var(--muted); display: block; }
.stat-card strong { font-size: 37.4px; color: var(--navy); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.focus::before { background: var(--info); }
.page-card { padding: 22px; margin-bottom: 20px; }
.page-card.wide { max-width: none; width: 100%; }
.two-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
th { color: var(--navy); background: #f8fafc; font-weight: 900; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 13.2px; font-weight: 900; }
.badge.success { background: #ecfdf5; color: #047857; }
.badge.strong { background: #fff7ed; color: #c2410c; }
.badge.warning { background: #fffbeb; color: #b45309; }
.badge.danger { background: #fef2f2; color: #b91c1c; }
.badge.info { background: #eff6ff; color: #1d4ed8; }
.crm-form { display: grid; gap: 18px; }
.form-section-title { color: var(--navy); font-size: 19.8px; font-weight: 900; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid label, .crm-form label { display: block; color: var(--navy); font-weight: 800; margin-bottom: 7px; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { max-width: 250px; }
.actions-cell { white-space: nowrap; }
.empty-state { padding: 20px; color: var(--muted); text-align: center; }
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.profile-head h2 { margin: 0; color: var(--navy); }
.profile-head p { margin: 5px 0 0; color: var(--muted); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-buttons, .tabs-inline { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 18px; }
.tab-btn, .tabs-inline a { border: 1px solid var(--border); background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.tab-btn.active, .tabs-inline a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; }
.details-grid div { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.details-grid span { display: block; color: var(--muted); margin-bottom: 5px; }
.details-grid strong { color: var(--navy); }
.timeline { display: grid; gap: 13px; }
.timeline-item { border-right: 4px solid var(--orange); background: #f8fafc; border-radius: 14px; padding: 14px; }
.timeline-item strong { color: var(--navy); }
.timeline-item p { margin: 7px 0; color: var(--text); }
.timeline-item small { color: var(--muted); }
.compact .timeline-item { padding: 11px; }
.note { color: var(--muted); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 12px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.narrow { max-width: 100%; }


/* ======================================================================
   OnTime CRM Tweaks - Full Width + Cairo + Logo + Enhanced Forms
   ====================================================================== */
html { scroll-behavior: smooth; }
.main-content { width: 100%; }
.single-column { display: block; width: 100%; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; flex: 0 0 auto; }
.login-logo { width: 94px; max-height: 94px; object-fit: contain; display: block; margin: 0 auto 12px; }
code { direction: ltr; display: inline-block; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 4px 8px; color: var(--navy); font-weight: 800; }
.users-layout { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 20px; align-items: start; }
.users-table-card table { min-width: 980px; }
.add-client-hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: 22px; padding: 24px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; overflow: hidden; position: relative; }
.add-client-hero::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(249,115,22,.22); left: -70px; top: -80px; }
.add-client-hero > * { position: relative; z-index: 1; }
.add-client-hero h2 { margin: 3px 0 7px; font-size: 33px; }
.add-client-hero p { margin: 0; color: rgba(255,255,255,.75); }
.eyebrow { display: inline-flex; background: rgba(249,115,22,.18); color: #fed7aa; border: 1px solid rgba(249,115,22,.45); border-radius: 999px; padding: 5px 11px; font-size: 14.3px; font-weight: 900; }
.enhanced-form { gap: 20px; }
.form-section-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.form-grid.three-cols { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.span-3 { grid-column: span 3; }
.sticky-actions { position: sticky; bottom: 12px; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 18px; padding: 12px; box-shadow: 0 20px 45px rgba(15,23,42,.12); }
.status-update-page .wide-filters input { max-width: 520px; flex: 1 1 360px; }
.section-head.relaxed { align-items: flex-start; }
.section-head.relaxed p { margin: 6px 0 0; color: var(--muted); }
.client-status-head { background: #f8fafc; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.add-client-page.page-card, .status-update-page.page-card { padding: 24px; }

@media (max-width: 1200px) {
    .form-grid.three-cols { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
    .span-3 { grid-column: span 2; }
    .users-layout { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
    .form-grid.three-cols { grid-template-columns: 1fr; }
    .span-3 { grid-column: span 1; }
    .add-client-hero { display: grid; }
    .add-client-hero h2 { font-size: 26.4px; }
    .sticky-actions { position: static; }
}


/* ======================================================================
   Admin/User Management + Filters + Danger Zone
   ====================================================================== */
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #dc2626; }
.btn.full-btn { width: 100%; }
.filters.auto-filter-form { background: #f8fafc; border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
.activity-filters input, .activity-filters select { max-width: 210px; }
.activity-filters input[type="search"] { max-width: 360px; flex: 1 1 280px; }
.pro-users-layout { grid-template-columns: 390px minmax(0, 1fr); }
.pro-form-card { position: sticky; top: 24px; }
.user-form-box { background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.users-cards-list { display: grid; gap: 14px; }
.user-admin-card { border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.05); padding: 16px; }
.user-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.user-card-head h3 { margin: 0; color: var(--navy); }
.user-card-head p { margin: 5px 0 0; color: var(--muted); }
.credentials-row { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.credentials-row div { background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-width: 0; }
.credentials-row span { display: block; color: var(--muted); font-size: 13.2px; margin-bottom: 5px; }
.credentials-row strong { color: var(--navy); overflow-wrap: anywhere; }
.user-edit-details { border: 1px dashed var(--border); border-radius: 16px; background: #fcfdff; padding: 12px; }
.user-edit-details summary { cursor: pointer; color: var(--navy); font-weight: 900; }
.mini-edit-form { margin-top: 14px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 20px; align-items: start; }
.danger-zone-card { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fff7f7); }
.reset-details { border: 1px dashed #fecaca; border-radius: 18px; padding: 14px; background: #fff; }
.reset-details summary { cursor: pointer; color: var(--danger); font-weight: 900; }
.reset-form { margin-top: 14px; }
.danger-note { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.badge.strong { background: #fff7ed; color: #c2410c; }
@media (max-width: 1200px) {
    .pro-users-layout, .settings-layout { grid-template-columns: 1fr; }
    .pro-form-card { position: static; }
    .credentials-row { grid-template-columns: 1fr; }
}


/* ======================================================================
   v4 Professional CRM refinements
   ====================================================================== */
.sidebar { display: flex; flex-direction: column; }
.nav-links { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.nav-main-links { display: grid; gap: 8px; }
.nav-links .logout-link {
    margin-top: auto;
    background: rgba(239, 68, 68, .16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, .35);
    text-align: center;
}
.nav-links .logout-link:hover,
.nav-links .logout-link.active {
    background: #ef4444;
    color: #fff;
    transform: translateX(-3px);
}
.settings-clean-page { overflow: hidden; }
.settings-hero-clean {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.settings-hero-clean h2 { margin: 8px 0 6px; color: var(--navy); }
.settings-hero-clean p, .muted-line { color: var(--muted); margin: 0; }
.settings-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.settings-summary-grid div { border: 1px solid var(--border); background: #f8fafc; border-radius: 16px; padding: 14px; }
.settings-summary-grid span { display: block; color: var(--muted); font-size: 14.3px; margin-bottom: 6px; }
.settings-summary-grid strong { color: var(--navy); }
.settings-forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.settings-form-card h3 { margin-top: 0; color: var(--navy); }
.activity-pills { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; }
.activity-pills button { border: 1px solid var(--border); background: #f8fafc; color: var(--navy); border-radius: 16px; padding: 14px; font-weight: 900; cursor: pointer; transition: .2s; text-align: right; }
.activity-pills button:hover button.active { border-color: var(--orange); color: var(--orange-dark); background: #fff7ed; transform: translateY(-1px); }
.upload-zone-card input[type="file"], .inline-upload-form input[type="file"] { background: #f8fafc; border-style: dashed; }
.status-page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: 22px; padding: 24px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.status-page-hero h2 { margin: 6px 0; }
.status-page-hero p { margin: 0; color: rgba(255,255,255,.75); }
.status-list-filters input[type="search"], .followups-search input[type="search"] { flex: 1 1 440px; max-width: none; }
.client-status-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; }
.status-client-card { border: 1px solid var(--border); background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.status-client-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.status-client-top h3 { margin: 0; color: var(--navy); }
.status-client-top p { margin: 5px 0 0; color: var(--muted); }
.status-client-meta { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); }
.status-client-meta b { color: var(--navy); }
.selected-client-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.selected-client-card { border: 1px solid var(--border); background: #f8fafc; border-radius: 22px; padding: 18px; position: sticky; top: 20px; }
.selected-client-card h3 { margin: 0; color: var(--navy); }
.selected-client-card p { color: var(--muted); margin: 6px 0 14px; }
.details-mini-list { display: grid; gap: 10px; }
.details-mini-list div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 11px; }
.details-mini-list span { display: block; color: var(--muted); font-size: 13.2px; margin-bottom: 4px; }
.details-mini-list strong { color: var(--navy); }
.files-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.files-section-head h3 { margin: 0 0 5px; color: var(--navy); }
.inline-upload-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: 520px; }
.client-files-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }
.client-file-card { border: 1px solid var(--border); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 25px rgba(15,23,42,.05); }
.file-preview { height: 180px; background: #f8fafc; border-bottom: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.file-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-preview iframe { width: 100%; height: 100%; border: 0; }
.generic-file-icon { width: 82px; height: 82px; border-radius: 22px; background: #fff7ed; color: var(--orange-dark); display: grid; place-items: center; font-weight: 900; border: 1px solid #fed7aa; }
.file-card-body { padding: 14px; }
.file-card-body strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.file-card-body small { display: block; color: var(--muted); margin: 6px 0 12px; }
@media (max-width: 1200px) {
    .settings-summary-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .settings-forms-grid, .selected-client-layout { grid-template-columns: 1fr; }
    .selected-client-card { position: static; }
    .client-status-grid, .client-files-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 700px) {
    .settings-summary-grid, .client-status-grid, .client-files-grid { grid-template-columns: 1fr; }
    .files-section-head, .status-page-hero, .settings-hero-clean { display: grid; }
}


/* ======================================================================
   v5 requested cleanup: add client spacing, phone validation, status list
   ====================================================================== */
.add-client-page.page-card {
    padding: 18px;
    margin-bottom: 18px;
}
.add-client-page .add-client-hero {
    margin-bottom: 16px;
    padding: 22px;
}
.add-client-page .enhanced-form {
    gap: 16px;
}
.add-client-page .form-section-card {
    padding: 18px;
    margin: 0;
}
.add-client-page .form-section-title {
    margin-bottom: 14px;
}
.add-client-page .form-grid.three-cols {
    gap: 14px;
}
.phone-field input[dir="ltr"] {
    text-align: left;
    direction: ltr;
}
.field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13.2px;
    font-weight: 800;
}
input.is-invalid {
    border-color: #ef4444 !important;
    background: #fff7f7;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .10) !important;
}
input.is-valid {
    border-color: #10b981;
}
.status-clients-list {
    display: grid;
    gap: 10px;
}
.status-client-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(120px, .8fr)) auto minmax(210px, auto);
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.status-row-main strong {
    display: block;
    color: var(--navy);
    font-size: 17.6px;
}
.status-row-main small, .status-row-info span {
    display: block;
    color: var(--muted);
    font-size: 13.2px;
}
.status-row-info b {
    color: var(--navy);
    font-size: 14.3px;
}
.status-row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
@media (max-width: 1200px) {
    .status-client-row {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .status-row-actions { justify-content: flex-start; }
}
@media (max-width: 700px) {
    .add-client-page.page-card { padding: 14px; }
    .status-client-row { grid-template-columns: 1fr; }
}

/* ======================================================================
   v6 basic client edit page
   ====================================================================== */
.edit-client-page.page-card {
    padding: 20px;
}
.edit-client-hero {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 16px;
}
.eyebrow.light {
    background: #fff7ed;
    color: var(--orange-dark);
    border-color: #fed7aa;
}
.edit-client-form .form-section-card {
    padding: 18px;
}
.edit-client-search input[type="search"] {
    flex: 1 1 420px;
    max-width: none;
}
.edit-clients-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.edit-client-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(130px, .8fr)) minmax(210px, auto);
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.edit-row-main strong {
    display: block;
    color: var(--navy);
    font-size: 17.6px;
}
.edit-row-main small,
.edit-row-info span {
    display: block;
    color: var(--muted);
    font-size: 13.2px;
}
.edit-row-info b {
    color: var(--navy);
    font-size: 14.3px;
}
@media (max-width: 1200px) {
    .edit-client-row {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}
@media (max-width: 700px) {
    .edit-client-row {
        grid-template-columns: 1fr;
    }
    .edit-client-page.page-card {
        padding: 14px;
    }
}

/* ======================================================================
   v8 Owner Recovery + polished login/settings/print
   ====================================================================== */
.login-card-pro { max-width: 460px; }
.login-logo-large { width: 128px !important; max-height: 128px !important; margin-bottom: 14px; }
.password-field-wrap { position: relative; display: flex; align-items: center; }
.password-field-wrap input { width: 100%; padding-left: 50px; }
.password-eye-btn { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f1f5f9; color: var(--navy); cursor: pointer; display: grid; place-items: center; font-size: 18.7px; transition: .2s; }
.password-eye-btn:hover { background: #fff7ed; color: var(--orange-dark); }
.password-eye-btn .eye-closed { display: none; }
.password-eye-btn.showing .eye-open { display: none; }
.password-eye-btn.showing .eye-closed { display: inline; }
.remember-row { display: inline-flex !important; align-items: center; gap: 9px; cursor: pointer; margin-top: 3px; color: var(--text); font-weight: 800; }
.remember-row input { width: 17px; height: 17px; accent-color: var(--orange); }
.forgot-access-link { display: inline-flex; justify-content: center; color: var(--navy); font-weight: 900; text-decoration: none; margin-top: 8px; }
.forgot-access-link:hover { color: var(--orange-dark); }
.dismissible-alert { position: relative; padding-left: 42px; }
.alert-close { position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(15, 23, 42, .08); color: inherit; font-size: 19.8px; line-height: 1; display: grid; place-items: center; }
.recovery-success-box { display: grid; gap: 5px; }
.recovery-success-box span { display: block; }
.forgot-access-card { max-width: 520px; }
.owner-recovery-panel { border: 1px solid var(--border); border-radius: 22px; padding: 18px; background: linear-gradient(180deg, #fff, #f8fafc); box-shadow: 0 16px 40px rgba(15,23,42,.07); }
.owner-recovery-head span { display: inline-flex; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; border-radius: 999px; padding: 4px 10px; font-weight: 900; font-size: 13.2px; }
.owner-recovery-head h2 { margin: 10px 0 5px; color: var(--navy); }
.owner-recovery-head p { margin: 0 0 15px; color: var(--muted); }
.recovery-code-input { text-transform: uppercase; font-weight: 900; letter-spacing: 1px; text-align: center; }
.field-error { display: block; color: var(--danger); font-size: 13.2px; margin-top: 5px; min-height: 15px; }
input.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
input.is-valid { border-color: #22c55e !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, .10); }
.settings-v8-grid { margin-bottom: 20px; }
.owner-codes-card { margin-top: 20px; background: linear-gradient(180deg, #fff, #fbfdff); }
.owner-codes-head { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.eyebrow.dark { background: rgba(10,37,64,.08); color: var(--navy); border-color: rgba(10,37,64,.15); }
.owner-codes-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline-flex; margin: 0; }
button:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.recovery-codes-grid { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 14px; }
.recovery-code-card { border: 1px solid var(--border); background: #fff; border-radius: 22px; padding: 15px; box-shadow: 0 14px 35px rgba(15, 23, 42, .06); position: relative; overflow: hidden; }
.recovery-code-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; width: 5px; height: 100%; background: var(--orange); }
.recovery-code-card.used { background: #f8fafc; opacity: .78; }
.recovery-code-card.used::before { background: #94a3b8; }
.code-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 12px; }
.code-card-top span { color: var(--muted); font-weight: 800; font-size: 14.3px; }
.recovery-code-card code { display: block; text-align: center; font-size: 19.8px; letter-spacing: .8px; padding: 10px; margin-bottom: 10px; }
.code-card-meta { display: grid; gap: 4px; color: var(--muted); font-size: 13.2px; margin-bottom: 10px; }
.badge.success { background: #ecfdf5; color: #047857; }
.badge.danger { background: #fef2f2; color: #b91c1c; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.print-codes-body { font-family: 'Cairo', sans-serif; background: #e8eef5; color: #0f172a; padding: 28px; }
.print-toolbar { max-width: 900px; margin: 0 auto 16px; display: flex; gap: 10px; justify-content: flex-start; }
.recovery-print-sheet { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 38px; box-shadow: 0 30px 80px rgba(15, 23, 42, .18); border: 1px solid #e2e8f0; }
.print-sheet-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 22px; }
.print-brand-line { display: flex; align-items: center; gap: 14px; }
.print-brand-line img { width: 74px; height: 74px; object-fit: contain; }
.print-brand-line h1 { margin: 0; color: var(--navy); font-size: 30.8px; }
.print-brand-line p { margin: 3px 0 0; color: var(--muted); font-weight: 800; }
.print-date-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 18px; padding: 12px 16px; min-width: 170px; }
.print-date-box span { display: block; color: var(--muted); font-size: 13.2px; }
.print-date-box strong { color: var(--navy); }
.print-title-block { margin: 28px 0; background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: 24px; padding: 24px; position: relative; overflow: hidden; }
.print-title-block::after { content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%; background: rgba(249,115,22,.25); left: -65px; top: -85px; }
.print-title-block > * { position: relative; z-index: 1; }
.print-title-block span { display: inline-flex; background: rgba(249,115,22,.22); border: 1px solid rgba(249,115,22,.45); border-radius: 999px; padding: 5px 11px; font-size: 13.2px; font-weight: 900; color: #fed7aa; }
.print-title-block h2 { margin: 12px 0 8px; font-size: 30.8px; }
.print-title-block p { margin: 0; color: rgba(255,255,255,.78); }
.print-codes-list { display: grid; gap: 13px; }
.print-code-row { display: grid; grid-template-columns: 34px 1fr 130px; align-items: center; gap: 14px; border: 1px solid #e2e8f0; border-radius: 18px; padding: 15px; background: #fff; }
.print-code-row.used { background: #f8fafc; color: #64748b; }
.paper-checkbox { width: 25px; height: 25px; border: 2px solid var(--navy); border-radius: 6px; background: #fff; }
.print-code-info span { display: block; color: var(--muted); font-size: 13.2px; margin-bottom: 4px; }
.print-code-info strong { color: var(--navy); font-size: 22px; letter-spacing: 1px; }
.print-code-status { justify-self: end; border: 1px solid #fed7aa; color: #c2410c; background: #fff7ed; border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: 14.3px; }
.print-code-row.used .print-code-status { border-color: #cbd5e1; background: #e2e8f0; color: #475569; }
.print-notes-box { margin-top: 22px; border: 1px solid #fed7aa; background: #fff7ed; border-radius: 20px; padding: 18px; }
.print-notes-box h3 { margin: 0 0 8px; color: #9a3412; }
.print-notes-box ul { margin: 0; padding-right: 20px; color: #7c2d12; }
.print-signature-row { display: flex; justify-content: space-between; gap: 18px; margin-top: 26px; color: var(--navy); font-weight: 900; }
.print-empty { text-align: center; padding: 30px; color: var(--muted); border: 1px dashed #cbd5e1; border-radius: 18px; }
@media (max-width: 1100px) { .recovery-codes-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); } }
@media (max-width: 720px) { .recovery-codes-grid { grid-template-columns: 1fr; } .print-codes-body { padding: 10px; } .recovery-print-sheet { padding: 20px; border-radius: 18px; } .print-sheet-header, .print-signature-row { display: grid; } .print-code-row { grid-template-columns: 30px 1fr; } .print-code-status { grid-column: 2; justify-self: start; } }
@media print {
    @page { size: A4; margin: 14mm; }
    body.print-codes-body { background: #fff; padding: 0; }
    .no-print { display: none !important; }
    .recovery-print-sheet { box-shadow: none; border: 0; border-radius: 0; padding: 0; max-width: none; }
    .print-title-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ======================================================================
   v9 refinements - login recovery, settings codes, clients table, print
   ====================================================================== */
.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin: 2px 0 4px;
}
.login-options-row .remember-row {
    margin: 0 !important;
    min-height: 30px;
    line-height: 1;
    flex: 0 0 auto;
    user-select: none;
    transform: none !important;
}
.login-options-row .remember-row:hover,
.login-options-row .remember-row:active {
    transform: none !important;
}
.login-options-row .remember-row input {
    width: 17px !important;
    min-width: 17px;
    height: 17px !important;
    margin: 0;
}
.forgot-access-link.danger-link {
    margin: 0 !important;
    color: var(--danger);
    font-weight: 900;
    line-height: 1;
    padding: 7px 0;
    white-space: nowrap;
}
.forgot-access-link.danger-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}
.login-submit-btn:hover {
    transform: none;
}
.forgot-access-full-body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font);
    background:
        radial-gradient(circle at 15% 20%, rgba(249,115,22,.20), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.16), transparent 26%),
        linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: var(--text);
}
.forgot-access-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
    gap: 28px;
    padding: 34px;
    align-items: stretch;
}
.forgot-access-hero,
.forgot-access-content {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 30px;
    overflow: hidden;
}
.forgot-access-hero {
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.forgot-access-hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(249,115,22,.25);
    bottom: -80px;
    left: -70px;
}
.forgot-access-hero > * { position: relative; z-index: 1; }
.forgot-brand-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 35px;
}
.forgot-brand-line img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: #fff;
    border-radius: 22px;
    padding: 8px;
}
.forgot-brand-line strong { display: block; font-size: 26.4px; }
.forgot-brand-line span { color: rgba(255,255,255,.72); font-weight: 700; }
.forgot-access-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; }
.forgot-access-hero p { margin: 0 0 28px; color: rgba(255,255,255,.78); font-size: 18.7px; line-height: 1.9; }
.forgot-back-btn { width: fit-content; }
.forgot-access-content {
    background: #fff;
    padding: 34px;
    display: grid;
    align-content: center;
}
.forgot-choice-panel,
.owner-recovery-full-panel {
    width: min(850px, 100%);
    margin: 0 auto;
}
.forgot-panel-head { text-align: center; margin-bottom: 22px; }
.forgot-panel-head span {
    display: inline-flex;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--orange-dark);
    border: 1px solid #fed7aa;
    font-weight: 900;
    font-size: 14.3px;
}
.forgot-panel-head h2 { margin: 12px 0 6px; color: var(--navy); font-size: 33px; }
.forgot-panel-head p { margin: 0; color: var(--muted); }
.forgot-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
}
.forgot-choice-card {
    width: 100%;
    min-height: 260px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15,23,42,.08);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    color: var(--text);
    cursor: pointer;
    transition: .2s;
}
.forgot-choice-card:hover { transform: translateY(-3px); border-color: #fed7aa; }
.forgot-choice-card h3 { color: var(--navy); margin: 12px 0 8px; font-size: 26.4px; }
.forgot-choice-card p { color: var(--muted); margin: 0 0 18px; line-height: 1.8; }
.forgot-choice-card.employee-choice-card { border-top: 5px solid var(--orange); }
.forgot-choice-card.owner-choice-card { border-top: 5px solid var(--danger); }
.choice-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    font-size: 28.6px;
}
.btn.danger-solid,
.danger-solid {
    background: var(--danger);
    color: #fff;
    border: 0;
}
.btn.danger-solid:hover,
.danger-solid:hover { background: #dc2626; }
.owner-recovery-full-panel {
    padding: 28px;
    border-radius: 28px;
}
.settings-hero-clean .eyebrow {
    color: #fff !important;
}
.admin-recovery-codes-list {
    display: grid;
    gap: 12px;
}
.admin-recovery-code-row {
    display: grid;
    grid-template-columns: 64px minmax(220px, 1fr) minmax(180px, .8fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
    position: relative;
    overflow: hidden;
}
.admin-recovery-code-row::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--orange);
}
.admin-recovery-code-row.used {
    background: #f8fafc;
    color: #64748b;
}
.admin-recovery-code-row.used::before { background: #94a3b8; }
.admin-code-index {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff7ed;
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    font-weight: 900;
}
.admin-code-main span,
.admin-code-meta small,
.muted-small {
    display: block;
    color: var(--muted);
    font-size: 13.2px;
    font-weight: 800;
}
.admin-code-main code {
    display: inline-flex;
    margin-top: 5px;
    font-size: 18.7px;
    letter-spacing: .8px;
}
.admin-code-meta { display: grid; gap: 5px; }
.admin-code-actions { display: flex; justify-content: flex-end; }
.actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    white-space: normal;
}
.actions-cell .btn { margin: 0; }
.recovery-requests-card { border-top: 5px solid var(--danger); }
.recovery-requests-list { display: grid; gap: 10px; }
.recovery-request-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px;
}
.recovery-request-row strong { color: var(--navy); }
.recovery-request-row small { display: block; color: var(--muted); margin-top: 4px; }
.recovery-print-sheet-a4 {
    max-width: 780px;
    padding: 28px;
    border-radius: 24px;
}
.elegant-print-header { padding-bottom: 16px; }
.compact-date-box { padding: 10px 14px; min-width: 150px; }
.compact-print-title {
    margin: 18px 0;
    padding: 18px;
    border-radius: 20px;
}
.compact-print-title h2 { font-size: 26.4px; margin: 9px 0 5px; }
.compact-print-title p { font-size: 14.3px; line-height: 1.8; }
.elegant-print-codes-list { gap: 9px; }
.elegant-print-code-row {
    grid-template-columns: 32px 1fr 94px;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 15px;
}
.elegant-print-code-row .paper-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}
.elegant-print-code-row .print-code-info strong {
    font-size: 19.8px;
}
.elegant-print-code-row .print-code-status {
    padding: 5px 9px;
    font-size: 13.2px;
}
.compact-print-notes {
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 16px;
}
.compact-print-notes ul { font-size: 14.3px; line-height: 1.8; }
.compact-signature-row {
    margin-top: 16px;
    font-size: 14.3px;
}
@media (max-width: 900px) {
    .forgot-access-shell { grid-template-columns: 1fr; padding: 18px; }
    .forgot-access-hero { min-height: auto; }
    .forgot-choice-grid { grid-template-columns: 1fr; }
    .admin-recovery-code-row { grid-template-columns: 1fr; }
    .admin-code-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
    .login-options-row { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media print {
    @page { size: A4; margin: 10mm; }
    .recovery-print-sheet-a4 { padding: 0; max-width: none; }
    .elegant-print-header { padding-bottom: 10px; }
    .print-brand-line img { width: 58px; height: 58px; }
    .print-brand-line h1 { font-size: 24.2px; }
    .print-title-block.compact-print-title { margin: 12px 0; padding: 14px; border-radius: 16px; }
    .print-title-block.compact-print-title h2 { font-size: 23.1px; }
    .print-code-row.elegant-print-code-row { padding: 9px 11px; page-break-inside: avoid; }
    .print-notes-box.compact-print-notes { margin-top: 12px; padding: 10px 12px; }
    .compact-signature-row { margin-top: 12px; }
}

/* ======================================================================
   v10 refinements - users page, protected passwords, stable login, guide
   ====================================================================== */
.login-logo-large { width: 166px !important; max-height: 166px !important; }
.password-eye-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.password-eye-btn .eye-closed { display: none; }
.password-eye-btn.showing .eye-open { display: none; }
.password-eye-btn.showing .eye-closed { display: block; }
.login-options-row { align-items: center !important; min-height: 28px !important; }
.login-options-row .remember-row,
.login-options-row .forgot-access-link { font-size: 14.3px !important; }
.login-options-row .remember-row,
.login-options-row .remember-row *,
.login-options-row .remember-row:hover,
.login-options-row .remember-row:active,
.login-options-row .remember-row:focus-within {
    transform: none !important;
    transition: color .18s ease, background .18s ease !important;
}
.login-options-row .remember-row input[type="checkbox"] {
    padding: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 0 0 16px;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
}
.login-options-row .remember-row input[type="checkbox"]:focus {
    box-shadow: none !important;
}
.forgot-access-link.danger-link { font-size: 14.3px !important; color: var(--danger) !important; }

.settings-hero-clean .eyebrow {
    background: var(--orange) !important;
    border-color: var(--orange-dark) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(249,115,22,.22);
}

.users-hero-v10 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: #fff;
    overflow: hidden;
    position: relative;
}
.users-hero-v10::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(249,115,22,.22);
    left: -70px;
    top: -80px;
}
.users-hero-v10 > * { position: relative; z-index: 1; }
.users-hero-v10 h2 { margin: 8px 0 6px; font-size: 33px; }
.users-hero-v10 p { margin: 0; color: rgba(255,255,255,.76); }
.users-eyebrow { background: rgba(249,115,22,.18); color: #fed7aa; border: 1px solid rgba(249,115,22,.45); }
.users-hero-actions { display: flex; align-items: center; gap: 10px; }
.users-page-v10 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.user-create-card-v10 { border-top: 5px solid var(--orange); }
.user-create-form-v10 { background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--border); border-radius: 22px; padding: 18px; }
.user-create-grid-v10 { align-items: end; }
.user-create-submit-cell { display: flex; align-items: end; }
.users-cards-grid-v10 { display: grid; grid-template-columns: repeat(2, minmax(320px, 1fr)); gap: 16px; }
.user-admin-card-v10 {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15,23,42,.06);
    padding: 18px;
    position: relative;
    overflow: hidden;
}
.user-admin-card-v10::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.user-card-head-v10 { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.user-avatar-v10 { width: 54px; height: 54px; border-radius: 18px; background: #fff7ed; color: var(--orange-dark); display: grid; place-items: center; font-size: 26.4px; font-weight: 900; }
.user-title-v10 h3 { margin: 0; color: var(--navy); }
.user-title-v10 p { margin: 4px 0 0; color: var(--muted); }
.credentials-row-v10 { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.credentials-row-v10 div { background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; padding: 11px; min-width: 0; }
.credentials-row-v10 span { display: block; color: var(--muted); font-size: 13.2px; margin-bottom: 5px; font-weight: 800; }
.credentials-row-v10 strong, .credentials-row-v10 code { color: var(--navy); overflow-wrap: anywhere; }
.masked-password { letter-spacing: 2px; color: #94a3b8 !important; }
.user-edit-details-v10 { border: 1px dashed #cbd5e1; border-radius: 18px; background: #fcfdff; padding: 13px; }
.user-edit-details-v10 summary { cursor: pointer; color: var(--navy); font-weight: 900; }
.user-card-actions-v10 { justify-content: flex-start; }

.crm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 26, 47, .58);
    display: none;
    place-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(8px);
}
.crm-modal-backdrop.open { display: grid; }
.crm-modal-box {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 35px 90px rgba(0,0,0,.28);
    position: relative;
    border: 1px solid var(--border);
}
.crm-modal-box.small-modal { width: min(430px, 100%); }
.modal-close-btn {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--navy);
    cursor: pointer;
    font-size: 24.2px;
    display: grid;
    place-items: center;
}
.modal-icon-lock {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 28.6px;
    margin-bottom: 12px;
}
.modal-icon-lock.danger { background: #fef2f2; color: var(--danger); }
.crm-modal-box h3 { margin: 0 0 8px; color: var(--navy); }
.crm-modal-box p { margin: 0 0 16px; color: var(--muted); line-height: 1.8; }
.activity-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-guide-card { border-top: 5px solid var(--info); }
.guide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-recovery-code-row { grid-template-columns: 64px minmax(280px, 1fr) minmax(180px, .8fr) auto; }
.owner-codes-card .admin-recovery-codes-list { gap: 14px; }
.compact-signature-row, .print-signature-row { display: none !important; }
@media (max-width: 1180px) { .users-cards-grid-v10 { grid-template-columns: 1fr; } .credentials-row-v10 { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
@media (max-width: 760px) { .users-hero-v10 { display: grid; } .user-card-head-v10 { grid-template-columns: 48px 1fr; } .user-card-head-v10 .badge { grid-column: 1 / -1; width: fit-content; } .credentials-row-v10 { grid-template-columns: 1fr; } .user-create-grid-v10.three-cols { grid-template-columns: 1fr; } }
@media print {
    .compact-signature-row, .print-signature-row { display: none !important; }
}

/* ======================================================================
   v11 refinements - employee recovery, protected owner codes, guide upload,
   simpler users page, extra responsive polish
   ====================================================================== */
.forgot-access-shell-v11 .forgot-choice-card { min-height: 270px; }
.forgot-access-shell-v11 .forgot-choice-card button,
.forgot-access-shell-v11 .forgot-choice-card .btn { margin-top: auto; }
.employee-recovery-head span { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.recovery-request-row-v11 { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.recovery-request-info-v11 { min-width: 0; }
.recovery-request-actions-v11 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recovery-request-actions-v11 form { margin: 0; }

.owner-codes-card-v11 { border-top: 5px solid var(--orange); }
.owner-codes-card-v11 .owner-codes-actions { justify-content: flex-start; }
.admin-recovery-codes-list-v11 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.admin-recovery-code-row-v11 { grid-template-columns: 58px minmax(220px, 1fr) minmax(180px, .7fr) auto !important; padding: 14px 16px; }
.admin-recovery-code-row-v11 code { font-size: 18.7px; letter-spacing: .7px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; width: fit-content; max-width: 100%; }
.admin-code-actions form { margin: 0; }

.admin-guide-card-v11 { border-top: 5px solid #0ea5e9; }
.guide-upload-layout-v11 { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(280px, 1.1fr); gap: 16px; align-items: stretch; }
.guide-upload-box-v11,
.guide-current-box-v11 { border: 1px solid var(--border); border-radius: 22px; background: #f8fafc; padding: 18px; display: grid; gap: 10px; }
.guide-upload-box-v11 input[type="file"] { background: #fff; border: 1px dashed #cbd5e1; padding: 14px; border-radius: 16px; }
.guide-upload-box-v11 small,
.guide-current-box-v11 small { color: var(--muted); line-height: 1.7; }
.guide-current-box-v11 h3 { margin: 0; color: var(--navy); }
.guide-current-box-v11 p { margin: 0; color: var(--text); line-height: 1.8; }

/* صفحة المستخدمين: حقول أقصر وأهدى */
.users-page-v10 { gap: 18px; }
.user-create-card-v10,
.users-list-card-v10 { overflow: hidden; }
.user-create-form-v10 { padding: 18px !important; }
.user-create-grid-v10.three-cols { grid-template-columns: repeat(auto-fit, minmax(210px, 260px)) !important; justify-content: start; align-items: end; gap: 14px; }
.user-create-grid-v10 input,
.user-create-grid-v10 select,
.mini-edit-form input,
.mini-edit-form select { min-height: 44px; }
.user-create-submit-cell { min-width: 170px; }
.user-create-submit-cell .full-btn { width: auto; min-width: 160px; }
.users-cards-grid-v10 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.user-admin-card-v10 { padding: 16px; }
.user-edit-details-v10 .form-grid.three-cols { grid-template-columns: repeat(auto-fit, minmax(190px, 240px)); justify-content: start; gap: 12px; }
.credentials-row-v10 { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.user-card-actions-v10 { display: flex; gap: 8px; flex-wrap: wrap; }

/* Responsive site-wide refinements */
@media (max-width: 1180px) {
    .guide-upload-layout-v11 { grid-template-columns: 1fr; }
    .admin-recovery-code-row-v11 { grid-template-columns: 48px 1fr !important; }
    .admin-code-meta, .admin-code-actions { grid-column: 2; }
}
@media (max-width: 900px) {
    .recovery-request-row-v11 { grid-template-columns: 1fr; }
    .recovery-request-actions-v11 { justify-content: flex-start; }
    .forgot-access-shell { min-height: auto; }
    .forgot-access-content { padding: 20px; }
}
@media (max-width: 760px) {
    .user-create-grid-v10.three-cols,
    .user-edit-details-v10 .form-grid.three-cols { grid-template-columns: 1fr !important; }
    .users-cards-grid-v10 { grid-template-columns: 1fr; }
    .user-create-submit-cell .full-btn { width: 100%; }
    .owner-codes-actions, .guide-actions { width: 100%; }
    .owner-codes-actions .btn, .guide-actions .btn { flex: 1 1 160px; }
}
@media (max-width: 520px) {
    .forgot-access-content, .forgot-access-hero { padding: 18px; }
    .forgot-choice-card { padding: 18px; }
    .admin-recovery-code-row-v11 { grid-template-columns: 1fr !important; }
    .admin-code-meta, .admin-code-actions { grid-column: auto; }
    .admin-code-index { width: fit-content; }
}

/* v16: تحديث حالة عميل بنفس تنظيم صفحة المتابعات */
.status-update-table-wrap {
    margin-top: 14px;
}
.status-update-table .client-name-link {
    color: var(--navy);
    font-weight: 900;
    text-decoration: none;
}
.status-update-table .actions-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.status-update-table .actions-cell .btn {
    margin: 0;
}
@media (min-width: 1367px) {
    .status-update-table th,
    .status-update-table td {
        vertical-align: middle;
        white-space: normal;
    }
    .status-update-table td {
        overflow-wrap: anywhere;
    }
}

/* ======================================================================
   v17 — Laptop-first professional UI layer
   Clean spacing, stable rows, readable typography, no forced card tables.
   ====================================================================== */
:root {
    --navy: #0b2945;
    --navy-dark: #071d31;
    --orange: #f56a0a;
    --orange-dark: #dc5800;
    --bg: #f3f6fa;
    --text: #172638;
    --muted: #6f7d8f;
    --border: #dfe6ee;
    --surface-soft: #f8fafc;
    --radius: 16px;
    --shadow: 0 10px 28px rgba(15, 34, 54, .055);
    --font: 'IBM Plex Sans Arabic', 'Cairo', Tahoma, sans-serif;
}
html { background: var(--bg); }
body {
    font-family: var(--font);
    line-height: 1.55;
    font-size: 16.5px;
    overflow-x: hidden;
}
button, input, textarea, select { font-family: var(--font); }

/* Shell / sidebar */
.app-shell { min-height: 100dvh; align-items: stretch; }
.sidebar {
    width: 252px;
    flex: 0 0 252px;
    padding: 18px 14px;
    background: linear-gradient(180deg, #0b2945 0%, #082138 100%);
    border-inline-start: 1px solid rgba(255,255,255,.04);
    box-shadow: -8px 0 28px rgba(6, 26, 47, .08);
}
.brand {
    gap: 11px;
    padding: 2px 4px 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.brand-logo {
    width: 47px;
    height: 47px;
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.brand strong { font-size: 18.7px; letter-spacing: -.15px; }
.brand span { font-size: 12.65px; }
.app-version { min-width: 40px; height: 20px; font-size: 11.55px; }
.sidebar-section-label {
    color: rgba(255,255,255,.42);
    font-size: 11.55px;
    font-weight: 700;
    padding: 4px 10px 8px;
}
.nav-main-links { gap: 4px; }
.nav-links a.nav-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 14.85px;
    font-weight: 600;
}
.nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
    background: rgba(255,255,255,.28);
    box-shadow: 0 0 0 4px rgba(255,255,255,.035);
}
.nav-links a.active .nav-dot { background: #fff; }
.nav-links .logout-link {
    margin-top: 10px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 14.3px;
    font-weight: 700;
}
.sidebar-backdrop { display: none; }

/* Main / header */
.main-content {
    width: calc(100% - 252px);
    padding: 18px 20px 28px;
}
.topbar {
    min-height: 68px;
    margin-bottom: 16px;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 7px 20px rgba(15,34,54,.035);
}
.topbar-title-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar h1 { font-size: 25.3px; line-height: 1.2; letter-spacing: -.2px; }
.topbar p { font-size: 12.65px; margin-top: 3px; }
.user-mini {
    min-width: 176px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 12px;
    box-shadow: none;
    background: var(--surface-soft);
}
.user-mini-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    color: #fff;
    background: var(--navy);
    font-weight: 800;
}
.user-mini span { font-size: 14.3px; line-height: 1.25; }
.user-mini small { font-size: 12.1px; }

/* Global surfaces */
.page-card, .stat-card {
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.page-card { padding: 18px; margin-bottom: 16px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0; color: var(--navy); font-size: 22px; }
.section-head p { font-size: 14.3px; }
.page-kicker {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--orange-dark);
    font-size: 12.1px;
    font-weight: 800;
    letter-spacing: .15px;
}
.btn {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 11px;
    font-size: 14.3px;
    font-weight: 700;
    box-shadow: none;
}
.btn:hover { transform: translateY(-1px); }
.btn.small { min-height: 37px; padding: 7px 12px; font-size: 13.75px; }
.btn.tiny { min-height: 33px; padding: 6px 10px; font-size: 13.2px; border-radius: 9px; }
input, textarea, select {
    border-radius: 11px;
    min-height: 43px;
    padding: 10px 12px;
    font-size: 15.4px;
}
textarea { min-height: 105px; }
.form-grid label, .crm-form label { font-size: 14.3px; margin-bottom: 6px; }
.form-section-card { border-radius: 16px; padding: 17px; box-shadow: 0 6px 18px rgba(15,34,54,.035); }
.add-client-hero, .status-page-hero { border-radius: 18px; }
.add-client-hero h2 { font-size: 28.6px; }
.filters.auto-filter-form { border-radius: 14px; padding: 10px; margin-bottom: 14px; }

/* Dashboard */
.stats-grid { gap: 12px; margin-bottom: 16px; }
.stat-card { min-height: 108px; padding: 16px 17px; border-radius: 15px; }
.stat-card::before { width: 4px; }
.stat-card span { font-size: 13.2px; }
.stat-card strong { display: block; margin-top: 4px; font-size: 31.9px; line-height: 1.2; }
.stats-grid .stat-card:nth-child(2)::before { background: #0ea5e9; }
.stats-grid .stat-card:nth-child(3)::before { background: #8b5cf6; }
.stats-grid .stat-card:nth-child(5)::before { background: #10b981; }

/* Normal tables remain tables on laptops */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}
.table-wrap table { min-width: 720px; }
th, td { padding: 11px 12px; font-size: 14.3px; vertical-align: middle; }
th { font-size: 13.2px; background: #f7f9fc; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfe; }
.actions-cell { white-space: nowrap; }

/* Clients page — dedicated laptop-first row layout */
.clients-page-card { overflow: hidden; }
.clients-head { align-items: flex-end; }
.clients-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-count {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13.2px;
}
.result-count b { color: var(--navy); font-size: 15.4px; }
.clients-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 190px auto auto;
    gap: 9px;
    align-items: center;
}
.clients-filters input, .clients-filters select { max-width: none; width: 100%; }
.client-search-group {
    display: block;
    min-width: 0;
}
.client-search-button {
    min-width: 88px;
    height: 46px;
    padding-inline: 22px;
    box-shadow: 0 8px 18px rgba(249,115,22,.18);
}

.clients-reset-button {
    min-height: 46px;
    white-space: nowrap;
}
@media (max-width: 1050px) {
    .clients-filters { grid-template-columns: minmax(240px, 1fr) 1fr 1fr auto auto; }
}
@media (max-width: 760px) {
    .clients-filters { grid-template-columns: 1fr 1fr; }
    .client-search-group { grid-column: 1 / -1; }
    .clients-filters select { min-width: 0; }
    .client-search-button, .clients-reset-button { width: 100%; }
}

.filter-search-wrap { position: relative; min-width: 0; }
.filter-search-wrap input { padding-inline-start: 38px; }
.filter-search-icon {
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 19.8px;
    pointer-events: none;
}
.clients-list { display: grid; gap: 8px; }
.client-list-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) minmax(130px, .72fr) minmax(175px, .9fr) minmax(145px, .78fr) minmax(265px, auto);
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15,34,54,.03);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.client-list-row:hover {
    border-color: #cbd6e1;
    box-shadow: 0 9px 22px rgba(15,34,54,.055);
    transform: translateY(-1px);
}
.client-list-row > * { min-width: 0; }
.client-identity-cell { display: grid; gap: 4px; min-width: 0; }
.client-name-link {
    display: block;
    max-width: 100%;
    color: var(--navy);
    font-size: 16.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-name-link:hover { color: var(--orange-dark); }
.client-business-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12.65px;
    white-space: nowrap;
    overflow: hidden;
}
.client-business-line strong,
.client-business-line span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.client-business-line strong { color: #536478; font-weight: 600; }
.client-business-line span::before { content: '•'; margin-inline-end: 6px; color: #bdc6d1; }
.client-data-cell { display: grid; gap: 4px; min-width: 0; }
.cell-label { color: var(--muted); font-size: 11.55px; font-weight: 600; }
.client-phone-link,
.client-profile-phone,
.detail-phone strong {
    direction: ltr;
    unicode-bidi: embed;
    text-align: left;
    white-space: nowrap;
    font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}
.client-phone-link { color: var(--navy); font-size: 14.85px; font-weight: 700; }
.client-badges-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.interest-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f6fa;
    border: 1px solid #e4eaf0;
    color: #526274;
    font-size: 11.55px;
    font-weight: 700;
    white-space: nowrap;
}
.followup-data-cell strong { color: var(--navy); font-size: 13.75px; white-space: nowrap; }
.followup-data-cell small { color: var(--muted); font-size: 11.55px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-row-actions { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.client-row-actions .btn { white-space: nowrap; }
.client-row-actions .quote-action { box-shadow: 0 5px 12px rgba(245,106,10,.14); }
.clients-empty { border: 1px dashed var(--border); border-radius: 14px; background: #fafbfd; }

/* Client profile */
.client-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 18px;
    background: linear-gradient(135deg, #fff 0%, #fbfcfe 100%);
}
.client-profile-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.client-profile-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eef4f9;
    border: 1px solid #dce6ef;
    color: var(--navy);
    font-weight: 800;
    font-size: 14.3px;
}
.client-profile-identity { min-width: 0; }
.client-profile-identity h2 {
    max-width: 560px;
    margin: 0;
    color: var(--navy);
    font-size: 24.2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-profile-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.client-profile-meta > * {
    color: #617083;
    font-size: 12.65px;
    white-space: nowrap;
}
.client-profile-meta > * + *::before { content: '•'; margin-inline-end: 8px; color: #c1c9d2; }
.client-profile-phone { color: var(--navy); font-weight: 700; }
.client-profile-side { display: grid; justify-items: end; gap: 9px; }
.client-profile-badges { display: flex; gap: 6px; align-items: center; }
.client-profile-hero .profile-actions { justify-content: flex-end; gap: 6px; }
.client-profile-hero .profile-actions .btn { min-height: 35px; padding: 7px 10px; font-size: 12.65px; }
.tabs.page-card { padding-top: 14px; }
.tab-buttons {
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
}
.tab-btn { flex: 0 0 auto; min-height: 37px; padding: 7px 11px; border-radius: 10px; font-size: 13.2px; }
.details-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px; }
.details-grid div { min-height: 76px; border-radius: 12px; padding: 11px 12px; }
.details-grid span { font-size: 11.55px; margin-bottom: 4px; }
.details-grid strong { font-size: 14.3px; line-height: 1.55; }
.details-grid .span-2 { grid-column: span 3; }
.timeline-item { border-radius: 12px; padding: 12px; }
.client-files-grid { gap: 11px; }
.client-file-card { border-radius: 14px; box-shadow: 0 6px 18px rgba(15,34,54,.035); }
.file-preview { height: 160px; }
.file-card-body { padding: 12px; }

/* Forms / settings polish */
.sticky-actions { border-radius: 14px; padding: 10px; }
.settings-hero-clean, .edit-client-hero { border-radius: 17px; }
.settings-summary-grid div, .details-mini-list div { border-radius: 12px; }
.user-admin-card, .status-client-card { border-radius: 15px; }

/* Login */
.login-card { border-radius: 22px; box-shadow: 0 24px 65px rgba(0,0,0,.22); }
.login-logo { border-radius: 20px; }

/* v17 small data safeguards */
td[dir="ltr"], th[dir="ltr"] { direction: ltr; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-update-table td:nth-child(2) { white-space: nowrap; direction: ltr; text-align: left; font-variant-numeric: tabular-nums; }
.status-update-table td:first-child { min-width: 160px; }
.status-update-table .client-name-link { max-width: 240px; }

/* ======================================================================
   v18 — premium login + instant local filters
   ====================================================================== */
.local-filter-empty{margin:10px 0 0!important;text-align:center!important}
tbody .local-filter-empty td{padding:22px!important;text-align:center!important;color:var(--muted)!important;background:#fbfcfe!important}

.login-body-v18{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:28px;
    background:
        radial-gradient(circle at 8% 10%, rgba(245,106,10,.10), transparent 28%),
        radial-gradient(circle at 92% 92%, rgba(10,37,64,.09), transparent 34%),
        #f4f7fb;
    overflow-x:hidden;
}
.login-shell-v18{
    width:min(1060px, 100%);
    min-height:640px;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
    background:#fff;
    border:1px solid #e1e8ef;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 34px 90px rgba(15,34,54,.16);
}
.login-showcase-v18{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    display:flex;
    align-items:center;
    padding:58px 54px;
    color:#fff;
    background:linear-gradient(145deg,#071d31 0%,#0a2540 52%,#123a5d 100%);
}
.login-showcase-v18::before{
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    opacity:.24;
    background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(to bottom,black,transparent 88%);
}
.login-showcase-v18::after{
    content:'';
    position:absolute;
    width:240px;
    height:240px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:48px;
    transform:rotate(28deg);
    left:-92px;
    bottom:-92px;
    z-index:-1;
}
.login-showcase-glow{position:absolute;border-radius:50%;filter:blur(4px);pointer-events:none;z-index:-1}
.login-showcase-glow.glow-one{width:280px;height:280px;background:rgba(245,106,10,.20);left:-120px;top:-90px}
.login-showcase-glow.glow-two{width:230px;height:230px;background:rgba(73,151,211,.14);right:-90px;bottom:40px}
.login-showcase-content{position:relative;z-index:2;max-width:520px}
.login-showcase-mark{
    width:92px;height:92px;display:grid;place-items:center;
    background:#fff;border:1px solid rgba(255,255,255,.38);border-radius:25px;
    box-shadow:0 18px 42px rgba(0,0,0,.18);margin-bottom:25px;padding:10px
}
.login-showcase-mark img{width:100%;height:100%;object-fit:contain;display:block}
.login-showcase-kicker{display:inline-flex;align-items:center;gap:9px;font:700 12.1px/1.2 Arial,sans-serif;letter-spacing:1.6px;color:#f8b27f}
.login-showcase-kicker::before{content:'';width:28px;height:3px;border-radius:8px;background:var(--orange)}
.login-showcase-v18 h2{margin:15px 0 13px;font-size:39.6px;line-height:1.48;letter-spacing:-.5px;color:#fff;max-width:500px}
.login-showcase-v18 p{margin:0;max-width:490px;color:#c4d2df;font-size:15.4px;line-height:2}
.login-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:30px}
.login-feature-grid>div{min-height:88px;padding:13px 14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.065);border-radius:16px;backdrop-filter:blur(5px)}
.login-feature-grid b{display:block;color:#f8a86d;font:800 12.1px Arial,sans-serif;margin-bottom:14px}
.login-feature-grid span{display:block;color:#fff;font-size:13.2px;font-weight:700;white-space:nowrap}
.login-security-note{display:flex;align-items:center;gap:8px;margin-top:24px;color:#aebfce;font-size:12.1px}
.login-security-note i{width:8px;height:8px;border-radius:50%;background:#37c77f;box-shadow:0 0 0 5px rgba(55,199,127,.11)}

.login-card-v18{
    width:auto!important;
    max-width:none!important;
    min-width:0;
    border-radius:0!important;
    box-shadow:none!important;
    padding:52px 46px 44px!important;
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:#fff;
}
.login-card-v18 .login-brand{text-align:right;margin-bottom:24px}
.login-card-v18 .login-logo-large{width:96px!important;height:72px!important;max-height:72px!important;object-fit:contain!important;margin:0 0 11px auto!important;border-radius:0!important}
.login-form-kicker{display:inline-flex;margin-bottom:7px;padding:5px 9px;border:1px solid #f1d5c0;background:#fff8f2;color:#c8540b;border-radius:999px;font-size:11px;font-weight:800}
.login-card-v18 .login-brand h1{font-size:33px;line-height:1.25;letter-spacing:-.3px;margin:0;color:var(--navy)}
.login-card-v18 .login-brand p{font-size:13.2px;margin:5px 0 0}
.login-card-v18 .login-form{gap:0}
.login-card-v18 .login-form>label{font-size:13.2px;font-weight:800;color:#25384a;margin:0 0 7px}
.login-card-v18 .login-form>input,
.login-card-v18 .password-field-wrap input{
    height:50px;
    border:1px solid #dbe3eb;
    border-radius:13px;
    background:#fbfcfe;
    padding:0 14px;
    margin-bottom:15px;
    outline:none;
    font-size:14.3px;
    transition:border-color .18s,box-shadow .18s,background .18s;
}
.login-card-v18 .password-field-wrap{margin-bottom:15px}
.login-card-v18 .password-field-wrap input{margin-bottom:0;padding-left:52px}
.login-card-v18 .login-form>input:focus,
.login-card-v18 .password-field-wrap input:focus{background:#fff;border-color:#f59a5a;box-shadow:0 0 0 4px rgba(245,106,10,.09)}
.login-card-v18 .password-eye-btn{left:7px;width:36px;height:36px;background:#eef3f7}
.login-card-v18 .login-options-row{margin:1px 0 18px;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:30px!important}
.login-card-v18 .login-options-row .remember-row,
.login-card-v18 .login-options-row .forgot-access-link{font-size:12.65px!important;margin:0!important}
.login-card-v18 .login-submit-btn{height:50px;border-radius:13px;font-size:15.4px;box-shadow:0 12px 24px rgba(245,106,10,.20)}
.login-card-v18 .alert{border-radius:13px;font-size:12.65px;line-height:1.7}

@media(max-width:900px){
    .login-body-v18{padding:18px}
    .login-shell-v18{grid-template-columns:1fr;width:min(520px,100%);min-height:0;border-radius:24px}
    .login-showcase-v18{padding:27px 28px;min-height:200px}
    .login-showcase-mark{width:62px;height:62px;border-radius:18px;margin-bottom:13px}
    .login-showcase-v18 h2{font-size:25.3px;margin:9px 0 6px}
    .login-showcase-v18 p{font-size:12.1px;line-height:1.8}
    .login-feature-grid,.login-security-note{display:none}
    .login-card-v18{padding:31px 28px 30px!important}
}
@media(max-width:520px){
    .login-body-v18{padding:0;background:#fff;place-items:stretch}
    .login-shell-v18{width:100%;min-height:100vh;border:0;border-radius:0;box-shadow:none}
    .login-showcase-v18{min-height:174px;padding:23px 21px}
    .login-showcase-kicker{font-size:9.9px}.login-showcase-v18 h2{font-size:22px}.login-showcase-v18 p{display:none}
    .login-card-v18{padding:27px 21px 32px!important;justify-content:flex-start}
    .login-card-v18 .login-logo-large{width:80px!important;height:58px!important;max-height:58px!important}
    .login-card-v18 .login-brand h1{font-size:28.6px}
}
