/* Loan Fund Platform — premium RTL design system inspired by the supplied UI theme. */
@font-face{font-family:'Vazirmatn';src:url('../fonts/Vazirmatn-Variable-Full.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{font-family:'Vazirmatn',sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;font-optical-sizing:auto;--navy:#0f2048;--navy-2:#162d62;--accent:#315fd2;--accent-soft:#a9c4ff;--accent-deep:#1d3c88;--accent-contrast:#0b1b47;--accent-rgb:49,95,210;--accent-soft-rgb:169,196,255;--royal:var(--accent);--royal-2:var(--accent-soft);--emerald:var(--accent);--emerald-2:var(--accent-soft);--radius:20px;--ease:.22s ease}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;font-size:14px;line-height:1.85;transition:background var(--ease),color var(--ease)}a{color:var(--royal);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(var(--accent-rgb),.28);outline-offset:2px}
html[data-theme="light"]{--bg:#f2f5fb;--surface:#fff;--surface-2:#f8faff;--surface-3:#edf2fa;--ink:#0a1430;--muted:#66738e;--line:#e2e8f2;--shadow:0 18px 50px rgba(15,32,72,.07);--sidebar:#0c1735;--sidebar-ink:#dce5fb;--sidebar-muted:#8290b5;--input:#fbfcff;--input-line:#dce4f0;--topbar:rgba(255,255,255,.84);--success-bg:#e7fbf1;--success-ink:#08784e;--danger-bg:#fff0f0;--danger-ink:#a52e3d}
html[data-theme="dark"]{--bg:#040a1c;--surface:#0d1a3a;--surface-2:#0a1733;--surface-3:#14264f;--ink:#eef2fb;--muted:#8f99b8;--line:rgba(110,150,255,.17);--shadow:0 20px 55px rgba(0,0,0,.35);--sidebar:#07122d;--sidebar-ink:#e4ebff;--sidebar-muted:#8c9bc2;--input:#081631;--input-line:rgba(255,255,255,.13);--topbar:rgba(10,23,58,.9);--success-bg:rgba(14,186,126,.13);--success-ink:#9af0c9;--danger-bg:rgba(214,69,69,.14);--danger-ink:#ffb9c0}
body{background:var(--bg);color:var(--ink)}

/* Brand palette tokens; all three options drive the shared application design system. */
html[data-palette="royal"]{--accent:#315fd2;--accent-soft:#a9c4ff;--accent-deep:#1d3c88;--accent-contrast:#0b1b47;--accent-rgb:49,95,210;--accent-soft-rgb:169,196,255;--accent-light:#c6d7ff}
html[data-palette="emerald"]{--accent:#0a9870;--accent-soft:#a7f3d0;--accent-deep:#075744;--accent-contrast:#032b1f;--accent-rgb:10,152,112;--accent-soft-rgb:167,243,208;--accent-light:#c6f7e2}
/* Shared brand */
.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;min-width:0}.brand-mark{width:44px;height:44px;flex:0 0 44px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:var(--accent-contrast);font-size:25px;font-weight:900;box-shadow:0 8px 22px rgba(var(--accent-rgb),.28)}.brand-copy{display:flex;flex-direction:column;line-height:1.5}.brand-copy b{font-size:15px;font-weight:900}.brand-copy small{font-size:10px;color:var(--muted);font-weight:500}
/* Authenticated shell */
.app-body{min-height:100vh}.sidebar{position:fixed;inset:0 0 0 auto;width:270px;padding:24px 18px 18px;background:var(--sidebar);color:var(--sidebar-ink);display:flex;flex-direction:column;z-index:80;box-shadow:-12px 0 40px rgba(3,10,31,.08);overflow-y:auto}.brand-sidebar{padding:2px 8px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-sidebar .brand-copy small{color:var(--sidebar-muted)}.sidebar-profile{display:flex;align-items:center;gap:11px;padding:18px 8px 22px}.profile-avatar,.top-user-avatar{display:grid;place-items:center;border-radius:14px;font-weight:900;background:linear-gradient(145deg,var(--accent),var(--accent-soft));color:white}.profile-avatar{width:42px;height:42px}.sidebar-profile>span:nth-child(2){display:flex;flex-direction:column;line-height:1.5;min-width:0}.sidebar-profile b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile small{font-size:10px;color:var(--sidebar-muted)}.profile-dot{width:7px;height:7px;margin-inline-start:auto;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.11)}.sidebar-label{color:var(--sidebar-muted);font-size:10px;font-weight:900;padding:4px 12px 10px;letter-spacing:.04em}.side-nav{display:grid;gap:6px}.side-nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;color:var(--sidebar-muted);font-size:12px;font-weight:700;transition:var(--ease)}.side-nav a:hover{background:rgba(255,255,255,.06);color:white}.side-nav a.active{color:#fff;background:linear-gradient(100deg,rgba(var(--accent-rgb),.22),rgba(var(--accent-rgb),.2));box-shadow:inset -3px 0 var(--accent)}.nav-icon{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.07);font-size:15px}.side-nav a.active .nav-icon{background:var(--accent);color:#fff}.sidebar-spacer{flex:1;min-height:22px}.sidebar-note{display:flex;gap:10px;padding:13px;border:1px solid rgba(110,150,255,.18);border-radius:14px;background:rgba(255,255,255,.035);margin:12px 0}.note-icon{color:#34d399;font-size:18px}.sidebar-note div{display:flex;flex-direction:column}.sidebar-note b{font-size:10px}.sidebar-note small{font-size:9px;line-height:1.7;color:var(--sidebar-muted)}.sidebar-logout button{width:100%;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);color:#c4cde4;border-radius:12px;padding:10px;text-align:right;font-size:11px;font-weight:700}.sidebar-logout button:hover{background:rgba(214,69,69,.13);color:#ffc3c8}.sidebar-logout button span{margin-left:8px}.sidebar-version{color:#66749a;text-align:center;font-size:9px;padding-top:13px}.main-shell{margin-right:270px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;position:sticky;top:0;z-index:60;padding:0 clamp(18px,3vw,38px);display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--topbar);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.topbar-start,.topbar-actions{display:flex;align-items:center;gap:14px}.topbar-start>div{display:flex;flex-direction:column;line-height:1.4}.topbar-kicker{font-size:10px;color:var(--muted)}.topbar-start strong{font-size:14px}.topbar-actions{gap:13px}.secure-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);padding:5px 10px;border-radius:100px;color:var(--muted);font-size:10px}.secure-chip i{width:6px;height:6px;border-radius:50%;background:var(--emerald);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.1)}.top-user{display:flex;align-items:center;gap:9px}.top-user-avatar{width:36px;height:36px;border-radius:12px}.top-user>span:last-child{display:flex;flex-direction:column;line-height:1.4}.top-user b{font-size:11px}.top-user small{font-size:9px;color:var(--muted)}.theme-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:100px;background:var(--surface);color:var(--ink);font-size:10px;font-weight:800;transition:var(--ease)}.theme-toggle:hover{border-color:var(--emerald);transform:translateY(-1px)}.theme-icon{font-size:15px}.mobile-menu{display:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:7px 11px}.content-container{width:100%;max-width:1480px;margin:0 auto;padding:30px clamp(18px,3vw,38px) 44px;flex:1}.app-footer{display:flex;justify-content:space-between;gap:12px;padding:18px clamp(18px,3vw,38px);border-top:1px solid var(--line);color:var(--muted);font-size:10px}
/* Guest/auth shell */
.guest-body{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 10% 0%,rgba(var(--accent-rgb),.09),transparent 32%),radial-gradient(ellipse at 90% 90%,rgba(var(--accent-rgb),.08),transparent 30%),var(--bg)}.guest-topbar{height:76px;padding:0 clamp(16px,5vw,70px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--topbar);backdrop-filter:blur(16px)}.guest-actions{display:flex;align-items:center;gap:18px}.guest-actions>a{font-size:11px;font-weight:800;color:var(--muted)}.guest-actions>a:hover{color:var(--emerald)}.guest-container{width:min(1160px,94%);margin:auto;min-height:calc(100vh - 138px);display:flex;align-items:center;justify-content:center;padding:38px 0}.guest-footer{text-align:center;border-top:1px solid var(--line);padding:15px;color:var(--muted);font-size:10px}
/* Typography and page structure */
h1,h2,h3,p{margin-top:0}h1{font-size:25px;line-height:1.5;margin-bottom:7px;font-weight:900;letter-spacing:-.5px}h2{font-size:17px;font-weight:900;margin-bottom:12px}h3{font-size:14px;font-weight:900}.eyebrow{display:inline-block;color:var(--emerald);font-size:10px;font-weight:900;letter-spacing:.02em}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.page-heading h1{margin:2px 0 4px}.page-heading p{margin:0;color:var(--muted);font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-heading h2{margin:0}.muted{font-size:11px;color:var(--muted)}.section{margin-top:28px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
/* Cards, hero, metrics */
.panel,.premium-card,.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow)}.panel{margin:18px 0}.premium-card{position:relative;overflow:hidden}.premium-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--emerald),var(--royal),#a78bfa)}.hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(30px,5vw,64px);border-radius:26px;background:linear-gradient(125deg,#0f2048 2%,#182e63 58%,var(--accent-deep));color:#fff;box-shadow:0 24px 65px rgba(10,30,75,.2)}.hero:after{content:"";position:absolute;z-index:-1;width:380px;height:380px;border-radius:50%;background:rgba(var(--accent-rgb),.15);filter:blur(50px);inset:-190px auto auto:-100px}.hero .eyebrow{color:var(--accent-soft)}.hero h1{font-size:clamp(26px,4vw,40px);max-width:700px}.hero p{max-width:700px;color:#c0cbe6;font-size:13px}.hero .actions{margin-top:22px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:19px 0}.stat,.kpi{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px 19px;box-shadow:var(--shadow)}.stat:before,.kpi:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--emerald),var(--royal))}.stat span,.kpi small{display:block;color:var(--muted);font-size:10px}.stat strong,.kpi h2{display:block;margin:6px 0 0;font-size:25px;color:var(--ink);font-weight:900}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.cards .panel{margin:0}.form-panel{max-width:1050px}.narrow-panel{max-width:570px}.narrow{max-width:520px;margin:30px auto}.table-card{margin-top:12px;border:1px solid var(--line);border-radius:16px}
/* Buttons and tags */
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:12px;padding:10px 17px;background:var(--surface-3);color:var(--ink);font-size:11px;font-weight:900;line-height:1.6;transition:transform var(--ease),box-shadow var(--ease),background var(--ease);cursor:pointer}.button:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(15,32,72,.12);text-decoration:none}.button-primary{background:linear-gradient(120deg,var(--accent),var(--accent-deep));color:#fff;box-shadow:0 8px 20px rgba(var(--accent-rgb),.2)}.button-primary:hover{background:linear-gradient(120deg,var(--accent-soft),var(--accent));color:#fff}.button-ghost,.button.secondary{background:var(--surface);border-color:var(--line);color:var(--ink)}.button-block{width:100%;padding:13px}.button-icon{font-size:19px;line-height:1}.tag,.code-pill{display:inline-flex;align-items:center;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);padding:4px 10px;border-radius:100px;font-size:9px;font-weight:800}.code-pill{border-radius:7px;font-family:Vazirmatn,sans-serif;direction:ltr}.status-pill{display:inline-flex;padding:4px 10px;border-radius:100px;font-size:9px;font-weight:900}.status-active{background:rgba(var(--accent-rgb),.13);color:#0a9b6c}.status-inactive{background:rgba(214,69,69,.12);color:#d64545}.table-action{font-size:10px;font-weight:900;color:var(--royal)}
/* Forms */
form{margin:0}.stack-form{display:grid;gap:6px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.field,label.field,.date-field{display:flex;flex-direction:column;gap:7px;margin:13px 0;color:var(--ink);font-size:11px;font-weight:800;min-width:0}.field>span:first-child,.field-label,.date-field>span:first-child{display:block}.field i{font-style:normal;color:#e15c6a}.field small{font-size:9px;color:var(--muted);font-weight:500}.input,input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;min-width:0;margin:0;padding:11px 13px;border:1px solid var(--input-line);border-radius:12px;background:var(--input);color:var(--ink);font:inherit;font-size:11px;line-height:1.6;outline:none;transition:border var(--ease),box-shadow var(--ease),background var(--ease)}.input:hover,input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{border-color:rgba(var(--accent-rgb),.45)}.input:focus,input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:var(--emerald);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.11)}.input::placeholder,input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}.input.ltr,.ltr{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}.ltr-cell{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.field-hint{display:block;color:var(--muted);font-size:9px;font-weight:500;line-height:1.7}.field-hint-block{align-self:end;padding:11px 13px;border:1px dashed var(--line);border-radius:12px;background:var(--surface-2)}textarea{resize:vertical;min-height:80px}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-left:30px}.check-row{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:600;color:var(--muted)}input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:var(--emerald);margin:0}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.employment-field{margin:17px 0 24px}.radio-card-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.radio-card{position:relative;display:flex;align-items:center;gap:10px;margin:0;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);cursor:pointer;transition:var(--ease)}.radio-card:has(input:checked){border-color:var(--emerald);background:rgba(var(--accent-rgb),.08);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.08)}.radio-card input{position:absolute;opacity:0;pointer-events:none}.radio-visual{width:17px;height:17px;border:1.5px solid var(--muted);border-radius:50%;flex:0 0 17px;position:relative}.radio-card input:checked+.radio-visual{border-color:var(--emerald)}.radio-card input:checked+.radio-visual:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--emerald)}.radio-card>span:last-child{display:flex;flex-direction:column;gap:1px}.radio-card b{font-size:10px}.radio-card small{font-size:9px;color:var(--muted);font-weight:500}.switch-check{display:inline-flex;align-items:center;cursor:pointer}.switch-check input{position:absolute;opacity:0}.switch-check span{width:34px;height:19px;background:var(--surface-3);border:1px solid var(--line);border-radius:100px;position:relative;transition:var(--ease)}.switch-check span:after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:var(--muted);top:2px;right:2px;transition:var(--ease)}.switch-check input:checked+span{background:rgba(var(--accent-rgb),.2);border-color:var(--emerald)}.switch-check input:checked+span:after{right:17px;background:var(--emerald)}.date-field{margin:0;min-width:130px}.date-field>span:first-child:empty{display:none}.date-control{position:relative;display:block}.date-control .input{padding-left:38px}.date-control-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted);font-size:14px}.jalali-input{direction:ltr;text-align:center;font-variant-numeric:tabular-nums}.table-input{min-width:115px}.date-field .date-control{min-width:130px}
/* Section separators / modal form sections */
.modal-section-title{display:flex;align-items:center;gap:12px;margin:8px 0 8px}.section-index{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,rgba(var(--accent-rgb),.17),rgba(var(--accent-rgb),.12));color:var(--emerald);font-size:10px;font-weight:900}.modal-section-title>div{display:flex;flex-direction:column;line-height:1.5}.modal-section-title b{font-size:12px}.modal-section-title small{color:var(--muted);font-size:9px;font-weight:500}.modal-section-spaced{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
/* Tables */
.table-wrap{width:100%;overflow-x:auto;border-radius:14px}table{width:100%;border-collapse:separate;border-spacing:0;min-width:650px;font-size:10px}th,td{text-align:right;padding:12px 13px;border-bottom:1px solid var(--line);vertical-align:middle}th{position:sticky;top:0;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:900;white-space:nowrap}td{color:var(--ink)}tbody tr:hover td{background:rgba(var(--accent-rgb),.025)}tbody tr:last-child td{border-bottom:0}.empty-cell{text-align:center!important;color:var(--muted);padding:28px!important}.pagination-wrap{padding-top:18px}.pagination-wrap nav{display:flex;justify-content:center}.pagination-wrap nav>div:first-child{display:none}.pagination-wrap nav>div:last-child{display:flex;gap:5px}.pagination-wrap a,.pagination-wrap span[aria-current],.pagination-wrap span[aria-disabled]{padding:6px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-size:10px;color:var(--ink)}
/* Modal: scrollable, responsive and accessible */
.lux-modal{width:min(760px,calc(100% - 26px));max-width:none;max-height:min(88vh,900px);padding:0;border:1px solid var(--line);border-radius:23px;background:var(--surface);color:var(--ink);box-shadow:0 35px 110px rgba(0,0,0,.35);overflow:hidden}.lux-modal::backdrop{background:rgba(2,8,26,.68);backdrop-filter:blur(8px)}.modal-shell{max-height:min(88vh,900px);display:flex;flex-direction:column}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 25px;border-bottom:1px solid var(--line);background:linear-gradient(125deg,var(--surface),var(--surface-2))}.modal-header h2{font-size:19px;margin:2px 0}.modal-header p{font-size:10px;color:var(--muted);margin:0}.modal-close{width:36px;height:36px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--muted);font-size:22px;line-height:1}.modal-close:hover{background:var(--danger-bg);color:var(--danger-ink)}.modal-body{padding:18px 25px;overflow-y:auto;overscroll-behavior:contain}.modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 25px;border-top:1px solid var(--line);background:var(--surface-2)}
/* Auth cards */
.auth-card{width:min(500px,100%);padding:34px;border-radius:25px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);position:relative;overflow:hidden}.auth-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--emerald),var(--royal),#9b8cff)}.auth-mark{width:52px;height:52px;border-radius:17px;display:grid;place-items:center;margin-bottom:17px;background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:var(--accent-contrast);font-size:28px;box-shadow:0 12px 28px rgba(var(--accent-rgb),.24)}.auth-card h1{font-size:23px;margin:5px 0}.auth-card .muted{line-height:2;margin-bottom:19px}.auth-foot{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:10px;text-align:center;color:var(--muted)}.auth-foot a{color:var(--emerald);font-weight:900}.otp-input{text-align:center;letter-spacing:.6em;font-size:22px!important;font-weight:900;direction:ltr}
/* Feedback */
.alert{display:flex;align-items:flex-start;gap:10px;padding:13px 16px;border-radius:13px;margin:0 0 16px;font-size:11px}.alert.success{background:var(--success-bg);color:var(--success-ink);border:1px solid rgba(var(--accent-rgb),.15)}.alert.error{background:var(--danger-bg);color:var(--danger-ink);border:1px solid rgba(214,69,69,.15)}.alert-icon{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:900;background:rgba(var(--accent-rgb),.15)}.alert.error .alert-icon{background:rgba(214,69,69,.14)}.alert ul{margin:5px 0 0;padding-right:18px}.activation-code{display:inline-block;font-size:23px;letter-spacing:5px;font-weight:900;background:var(--surface);padding:4px 14px;border-radius:8px;margin:8px 0;color:var(--emerald);direction:ltr}
/* Legacy-compatible classes used in existing screens */
.inline{display:inline}.link-button{border:0;background:none;color:inherit;font:inherit;cursor:pointer}.link-button.dark{color:var(--royal)}.eyebrow+.page-heading{margin-top:0}
@media(max-width:1100px){.sidebar{width:240px}.main-shell{margin-right:240px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.sidebar{transform:translateX(105%);transition:transform .25s ease;width:270px}.sidebar.open{transform:translateX(0)}.main-shell{margin-right:0}.mobile-menu{display:inline-flex}.topbar{height:70px}.top-user>span:last-child,.secure-chip{display:none}.content-container{padding:22px 16px 35px}.guest-topbar{padding:0 16px}.guest-actions{gap:9px}.guest-actions>a{font-size:9px}.theme-toggle{padding:7px 9px}.theme-label{display:none}.app-footer{padding:14px 16px}.radio-card-group{grid-template-columns:1fr}.modal-body{padding:15px 17px}.modal-header,.modal-footer{padding:16px 17px}}
@media(max-width:580px){h1{font-size:21px}.stats{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:14px}.stat strong{font-size:21px}.form-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading>.button{width:100%}.panel{padding:16px;border-radius:16px}.auth-card{padding:26px 20px}.guest-topbar{height:68px}.guest-topbar .brand-copy small{display:none}.guest-actions>a:first-of-type{display:none}.modal-footer{flex-wrap:wrap}.modal-footer .button{flex:1}.form-actions{flex-wrap:wrap}.form-actions .button{flex:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ─────────────────────────────────────────────────────────────
   UI/UX refinement 1.2 — luxury public/auth/account experience
   ───────────────────────────────────────────────────────────── */
:root{--lux-ease:cubic-bezier(.2,.75,.25,1)}
.guest-body{background:radial-gradient(ellipse at 12% 12%,rgba(var(--accent-rgb),.10),transparent 34%),radial-gradient(ellipse at 88% 72%,rgba(var(--accent-rgb),.09),transparent 30%),var(--bg)}
.guest-topbar{height:82px;padding-inline:clamp(18px,6vw,100px);position:sticky;top:0;z-index:100;box-shadow:0 8px 30px rgba(12,28,65,.035)}
.guest-topbar .brand-mark{width:46px;height:46px;border-radius:16px}.guest-topbar .brand-copy b{font-size:16px;letter-spacing:-.3px}.guest-topbar .brand-copy small{font-size:10px}
.guest-actions{gap:10px}.guest-actions>a{padding:10px 16px;border-radius:12px;font-size:11px;transition:all .2s var(--lux-ease)}.guest-actions .guest-link{background:linear-gradient(135deg,#0f2048,#24457f);color:#fff;box-shadow:0 8px 20px rgba(15,32,72,.16)}.guest-actions .guest-admin-link{border:1px solid var(--line);color:var(--ink);background:var(--surface)}.guest-actions>a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,32,72,.12)}.guest-nav-toggle{display:none}
.guest-container{width:min(1240px,92%);max-width:1240px;min-height:calc(100vh - 175px);display:block;padding:48px 0 68px}.guest-footer{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;padding:24px 20px;background:linear-gradient(115deg,#0b1736,#142b57);color:#aebbd8;border:0;font-size:10px}.guest-footer .footer-brand{display:flex;align-items:center;gap:9px;color:#fff}.guest-footer .brand-mark{width:32px;height:32px;flex-basis:32px;border-radius:11px;font-size:18px}.guest-footer small{color:#7f91b7}
.home-hero{min-height:470px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:30px;position:relative;isolation:isolate;overflow:hidden;padding:clamp(28px,5vw,68px);border-radius:34px;background:linear-gradient(120deg,#0a1736 0%,#122957 56%,var(--accent-deep) 115%);box-shadow:0 30px 80px rgba(10,30,75,.20);color:#fff}.home-hero:before{content:"";position:absolute;z-index:-1;width:540px;height:540px;border-radius:50%;border:1px solid rgba(255,255,255,.08);left:-190px;top:-260px;box-shadow:0 0 0 42px rgba(255,255,255,.018),0 0 0 88px rgba(255,255,255,.014)}.home-hero-glow{position:absolute;z-index:-1;width:330px;height:330px;right:25%;bottom:-240px;border-radius:50%;background:rgba(var(--accent-rgb),.28);filter:blur(65px)}.home-hero-copy{max-width:650px}.hero-overline{display:inline-flex;align-items:center;gap:9px;padding:7px 13px;border:1px solid rgba(var(--accent-soft-rgb),.2);border-radius:100px;background:rgba(255,255,255,.055);color:var(--accent-soft);font-size:10px;font-weight:800}.hero-overline i,.visual-live i{width:7px;height:7px;border-radius:50%;background:#35d9a0;box-shadow:0 0 0 4px rgba(53,217,160,.12)}.home-hero h1{font-size:clamp(30px,4.2vw,48px);line-height:1.55;margin:22px 0 12px;font-weight:950;letter-spacing:-1.2px}.home-hero h1 em{font-style:normal;color:var(--accent-soft)}.home-hero-copy>p{max-width:590px;color:#c1cce2;font-size:13px;line-height:2.2}.home-hero-actions{display:flex;align-items:center;gap:20px;margin-top:27px}.home-primary{padding:13px 22px;border-radius:14px;font-size:12px;color:#fff;background:linear-gradient(120deg,var(--accent),var(--accent-soft));box-shadow:0 12px 28px rgba(var(--accent-rgb),.22)}.home-admin-link{color:#dbe6fb;font-size:11px;font-weight:800}.home-admin-link span{margin-right:6px;color:var(--accent-soft)}.home-trust-row{display:flex;gap:20px;flex-wrap:wrap;margin-top:30px;color:#aebbd8;font-size:10px}.home-trust-row i{font-style:normal;color:#70e2b4;margin-left:5px}.home-visual{min-height:340px;position:relative;display:grid;place-items:center}.visual-ring{position:absolute;border:1px solid rgba(166,210,255,.16);border-radius:50%;aspect-ratio:1}.ring-a{width:310px;box-shadow:0 0 0 30px rgba(255,255,255,.018),0 0 0 65px rgba(255,255,255,.012)}.ring-b{width:235px;border-style:dashed;transform:rotate(24deg)}.visual-card{position:relative;width:min(300px,90%);padding:24px;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,.07));backdrop-filter:blur(20px);box-shadow:0 24px 65px rgba(0,0,0,.22)}.visual-card-top,.visual-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#c4d2ed;font-size:9px}.visual-live{display:flex;align-items:center;gap:7px;color:var(--accent-soft)}.visual-live i{width:6px;height:6px}.visual-icon{width:62px;height:62px;display:grid;place-items:center;margin:26px 0 13px;border-radius:20px;background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:var(--accent-contrast);font-size:34px;box-shadow:0 14px 30px rgba(var(--accent-rgb),.2)}.visual-card strong{display:block;color:white;font-size:16px}.visual-card>small{display:block;color:#b4c3df;font-size:9px;margin-top:4px}.visual-lines{display:grid;gap:7px;margin:22px 0}.visual-lines i{height:5px;border-radius:10px;background:rgba(255,255,255,.13)}.visual-lines i:first-child{width:90%}.visual-lines i:nth-child(2){width:70%}.visual-lines i:nth-child(3){width:48%}.visual-card-bottom{border-top:1px solid rgba(255,255,255,.13);padding-top:13px;color:#aebbd8}.visual-card-bottom b{color:var(--accent-soft)}.floating-chip{position:absolute;display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(14,30,64,.72);backdrop-filter:blur(12px);color:#e8f1ff;font-size:9px;box-shadow:0 12px 30px rgba(0,0,0,.15)}.floating-chip span{color:var(--accent-soft);font-size:14px}.chip-top{top:20px;right:-3px}.chip-bottom{bottom:24px;left:-8px}
.home-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0 52px}.home-benefits article{display:flex;align-items:flex-start;gap:13px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.benefit-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:14px;background:rgba(var(--accent-rgb),.10);color:var(--emerald);font-size:20px}.home-benefits b{font-size:11px}.home-benefits p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.9}.home-announcements{margin-top:15px}.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:17px}.home-section-heading h2{font-size:20px;margin:4px 0 0}.announcement-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.announcement-card,.announcement-empty{padding:21px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.announcement-date{font-size:9px;color:var(--emerald);font-weight:800}.announcement-card h3{margin:10px 0 7px;font-size:13px}.announcement-card p{color:var(--muted);font-size:10px;line-height:2}.announcement-card>a{display:inline-flex;gap:8px;color:var(--royal);font-size:10px;font-weight:900}.announcement-empty{grid-column:1/-1;display:grid;justify-items:center;text-align:center;gap:5px;padding:35px;color:var(--muted)}.announcement-empty>span{font-size:27px;color:var(--emerald)}.announcement-empty b{color:var(--ink);font-size:12px}.announcement-empty small{font-size:10px}
.auth-stage{width:min(1020px,100%);display:grid;grid-template-columns:.92fr 1.08fr;align-items:stretch;gap:0;border:1px solid var(--line);border-radius:30px;overflow:hidden;background:var(--surface);box-shadow:0 30px 90px rgba(15,32,72,.13)}.auth-showcase{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;padding:42px;background:linear-gradient(150deg,#0b1736 0%,#18366a 58%,var(--accent-deep) 130%);color:#fff;min-height:560px}.auth-showcase:after{content:"";position:absolute;z-index:-1;width:340px;height:340px;border-radius:50%;background:rgba(var(--accent-rgb),.2);filter:blur(65px);bottom:-200px;right:-100px}.showcase-content{position:relative;z-index:2}.showcase-kicker{color:var(--accent-soft);font-size:10px;font-weight:900;letter-spacing:.05em}.showcase-symbol{width:75px;height:75px;display:grid;place-items:center;margin:30px 0 22px;border:1px solid rgba(255,255,255,.19);border-radius:24px;background:linear-gradient(135deg,rgba(var(--accent-rgb),.35),rgba(255,255,255,.08));color:var(--accent-soft);font-size:42px;box-shadow:0 15px 40px rgba(0,0,0,.12)}.showcase-content h2{font-size:27px;line-height:1.7;margin-bottom:12px}.showcase-content p{max-width:330px;color:#bfcee8;font-size:11px;line-height:2.2}.showcase-points{display:grid;gap:13px;margin-top:30px;color:#d9e5f8;font-size:10px}.showcase-points span{display:flex;gap:9px}.showcase-points span::first-letter{color:var(--accent-soft)}.showcase-orbit{position:absolute;border:1px solid rgba(255,255,255,.09);border-radius:50%;pointer-events:none}.orbit-one{width:390px;height:390px;left:-210px;top:-180px;box-shadow:0 0 0 34px rgba(255,255,255,.018)}.orbit-two{width:260px;height:260px;left:-145px;top:-115px;border-style:dashed}.auth-card-lux{width:auto;max-width:none;border:0;border-radius:0;padding:clamp(30px,5vw,62px);box-shadow:none;display:flex;flex-direction:column;justify-content:center}.auth-card-lux:before{display:none}.auth-card-head{display:flex;align-items:center;gap:15px;margin-bottom:15px}.auth-card-head .auth-mark{margin:0;flex:0 0 54px}.auth-card-head h1{font-size:25px;margin:3px 0 0}.admin-mark{background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:#10275d}.auth-lead{color:var(--muted);font-size:11px;line-height:2.1;margin:0 0 18px}.auth-card-lux .stack-form{gap:2px}.auth-card-lux .field{margin:10px 0}.input-with-icon{position:relative}.input-with-icon>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);z-index:2;color:var(--muted);font-size:14px}.input-with-icon input{padding-right:42px!important;min-height:49px!important;border-radius:13px!important;background:var(--surface-2)!important}.auth-submit{min-height:50px;margin-top:12px;border-radius:13px;font-size:12px;box-shadow:0 12px 25px rgba(var(--accent-rgb),.17)}.auth-submit span{font-size:17px}.auth-foot{margin-top:19px;padding-top:17px}.auth-switch{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin-top:17px;font-size:9px;color:var(--muted)}.auth-switch a{font-weight:900;color:var(--royal)}.auth-security-note{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:21px;color:var(--muted);font-size:9px}.auth-security-note span{color:var(--emerald);font-size:14px}.compact-auth-stage{max-width:900px}.compact-auth-stage .auth-showcase{min-height:490px}.compact-auth-stage .auth-card-lux{padding:42px}
/* Inline validation */
.field-error{display:block;min-height:0;color:#d34c5d!important;font-size:10px!important;font-weight:700!important;line-height:1.7}.field-error:empty{display:none}.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:#d34c5d!important;box-shadow:0 0 0 3px rgba(211,76,93,.09)!important}.field.is-valid input,.field.is-valid select,.field.is-valid textarea{border-color:rgba(var(--accent-rgb),.65)}.validation-summary-inline{margin:0 0 15px;padding:10px 13px;border-radius:12px;background:var(--danger-bg);color:var(--danger-ink);font-size:10px}.server-error-summary{display:none}
/* Account menu and profile/security */
.user-menu{position:relative}.user-menu summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:5px 9px;border:1px solid transparent;border-radius:14px;transition:all .2s}.user-menu summary::-webkit-details-marker{display:none}.user-menu[open] summary,.user-menu summary:hover{background:var(--surface);border-color:var(--line)}.user-menu-copy{display:flex;flex-direction:column;line-height:1.5}.user-menu-copy b{font-size:10px}.user-menu-copy small{font-size:9px;color:var(--muted)}.menu-chevron{color:var(--muted);font-size:15px}.user-menu-popover{position:absolute;left:0;top:calc(100% + 12px);width:250px;padding:9px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:0 20px 55px rgba(8,20,48,.18);z-index:150;animation:menuIn .16s var(--lux-ease)}@keyframes menuIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.menu-user-heading{display:grid;gap:3px;padding:11px 12px 13px;border-bottom:1px solid var(--line);margin-bottom:6px}.menu-user-heading b{font-size:11px}.menu-user-heading small{font-size:9px;color:var(--muted);direction:ltr;text-align:right}.user-menu-popover>a,.user-menu-popover form button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-size:10px;font-weight:700;text-align:right}.user-menu-popover>a:hover{background:var(--surface-2);color:var(--royal)}.user-menu-popover form button{color:#c84b59}.user-menu-popover form button:hover{background:var(--danger-bg)}.user-menu-popover a span,.user-menu-popover button span{font-size:15px;color:var(--muted)}.profile-hero{display:flex;align-items:center;gap:18px;padding:25px;margin-bottom:18px}.profile-hero-avatar{width:65px;height:65px;display:grid;place-items:center;border-radius:21px;background:linear-gradient(145deg,var(--accent),#8ca9ff);color:#fff;font-size:27px;font-weight:900;box-shadow:0 12px 25px rgba(var(--accent-rgb),.2)}.profile-hero h2{margin:3px 0;font-size:18px}.profile-hero p{margin:0;color:var(--muted);font-size:10px}.profile-status{display:flex;align-items:center;gap:7px;margin-right:auto;color:var(--success-ink);font-size:9px;font-weight:800}.profile-status i{width:7px;height:7px;border-radius:50%;background:var(--emerald)}.profile-details{margin:0}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-detail{display:grid;gap:4px;padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.profile-detail small{color:var(--muted);font-size:9px}.profile-detail b{font-size:11px}.profile-details>.field-hint{margin-top:15px}.security-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:17px;align-items:stretch}.security-intro{padding:26px;background:linear-gradient(145deg,#0d2048,#1b3c70);color:#fff}.security-emblem{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:rgba(var(--accent-rgb),.2);color:var(--accent-soft);font-size:28px;margin-bottom:20px}.security-intro h2{font-size:17px}.security-intro p,.security-intro li{color:#c0cce4;font-size:10px;line-height:2.1}.security-intro ul{padding-right:17px;margin-top:20px}.security-form{margin:0}.inline-notice{padding:11px 13px;margin-bottom:14px;border-radius:12px;background:rgba(var(--accent-rgb),.08);color:var(--muted);font-size:10px;line-height:1.9}
.mobile-scrim{display:none}
@media(max-width:900px){.home-hero{grid-template-columns:1fr .75fr;padding:35px}.home-visual{transform:scale(.9)}.auth-stage{grid-template-columns:.8fr 1.2fr}.auth-showcase{padding:30px}.auth-card-lux{padding:34px}.security-layout{grid-template-columns:1fr 1.3fr}}
@media(max-width:700px){.guest-topbar{height:auto;min-height:70px;padding:12px 16px;flex-wrap:wrap;gap:10px}.guest-topbar .brand{flex:1}.guest-nav-toggle{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-size:10px;font-weight:800}.guest-actions{display:none;order:3;width:100%;padding:10px 0 3px;border-top:1px solid var(--line);gap:8px}.guest-actions.open{display:flex}.guest-actions>a{flex:1;text-align:center;padding:10px 7px}.guest-actions .theme-toggle{margin-left:auto}.guest-container{width:calc(100% - 28px);padding:25px 0 42px;min-height:calc(100vh - 165px)}.home-hero{grid-template-columns:1fr;padding:29px 23px;border-radius:24px;gap:0}.home-hero h1{font-size:32px}.home-hero-copy>p{font-size:11px}.home-visual{min-height:265px;transform:scale(.86);margin-top:8px}.home-benefits{grid-template-columns:1fr;margin:16px 0 38px;gap:9px}.home-benefits article{padding:14px}.home-section-heading{align-items:flex-start;flex-direction:column}.auth-stage{grid-template-columns:1fr;border-radius:23px}.auth-showcase{min-height:190px;padding:25px 26px}.showcase-symbol{display:none}.showcase-content h2{font-size:20px;margin:12px 0 4px}.showcase-content p{font-size:10px;margin-bottom:0}.showcase-points{display:none}.orbit-one{width:250px;height:250px;top:-160px}.orbit-two{width:190px;height:190px;top:-130px}.auth-card-lux{padding:28px 23px}.compact-auth-stage .auth-showcase{min-height:160px}.compact-auth-stage .auth-card-lux{padding:27px 22px}.guest-footer{gap:8px;flex-direction:column}.security-layout{grid-template-columns:1fr}.security-intro{padding:20px}.security-intro ul{margin:10px 0 0}.profile-hero{padding:17px;gap:12px}.profile-hero-avatar{width:52px;height:52px;flex-basis:52px;border-radius:16px}.profile-status{font-size:0}.profile-status i{width:9px;height:9px}.profile-grid{grid-template-columns:1fr}.user-menu-copy,.menu-chevron{display:none}.user-menu summary{padding:3px}.user-menu-popover{position:fixed;top:68px;left:12px;right:12px;width:auto}.topbar{padding:0 13px}.topbar-actions{gap:7px}.app-footer{flex-wrap:wrap}.mobile-scrim{position:fixed;inset:0;background:rgba(4,10,28,.48);z-index:75;backdrop-filter:blur(2px)}.mobile-scrim.visible{display:block}.sidebar{z-index:90}}
@media(max-width:390px){.home-hero h1{font-size:28px}.home-hero-actions{gap:12px}.home-trust-row{gap:9px;flex-direction:column}.auth-card-head h1{font-size:21px}.auth-card-head .auth-mark{width:47px;height:47px;flex-basis:47px}.topbar-start strong{font-size:12px}.theme-label{display:none}}

/* ─────────────────────────────────────────────────────────────
   UI/UX refinement 1.3 — shared luxury dialogs and role shortcuts
   ───────────────────────────────────────────────────────────── */
.topbar{gap:clamp(10px,1.4vw,20px)}
.top-quick-nav{display:flex;align-items:center;gap:6px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none;padding:5px 0}
.top-quick-nav::-webkit-scrollbar{display:none}
.quick-nav-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:9px 12px;border:1px solid transparent;border-radius:12px;color:var(--muted);font-size:10px;font-weight:800;transition:all .2s var(--lux-ease)}
.quick-nav-link>span{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--surface-3);color:var(--royal);font-size:13px}
.quick-nav-link:hover{background:var(--surface);border-color:var(--line);color:var(--ink);transform:translateY(-1px)}
.quick-nav-link.active{background:linear-gradient(135deg,rgba(var(--accent-rgb),.10),rgba(var(--accent-rgb),.08));border-color:rgba(var(--accent-rgb),.18);color:var(--ink)}
.quick-nav-link.active>span{background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:var(--accent-contrast)}

/* Account menu: refined trigger, premium panel and clear destinations */
.user-menu summary{gap:10px;padding:5px 11px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface),var(--surface-2));box-shadow:0 4px 14px rgba(15,32,72,.045)}
.user-menu summary:hover,.user-menu[open] summary{border-color:rgba(var(--accent-rgb),.35);box-shadow:0 9px 24px rgba(15,32,72,.09)}
.user-menu .top-user-avatar{width:39px;height:39px;border-radius:13px;background:linear-gradient(145deg,var(--accent),var(--accent));box-shadow:0 7px 18px rgba(var(--accent-rgb),.18)}
.user-menu-copy b{font-size:10px;font-weight:900;color:var(--ink)}
.user-menu-copy small{font-size:9px;color:var(--muted)}
.menu-chevron{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:var(--surface-3);font-size:13px;transition:transform .2s ease}
.user-menu[open] .menu-chevron{transform:rotate(180deg);color:var(--emerald)}
.user-menu-popover{width:286px;padding:10px;border:1px solid rgba(110,150,255,.17);border-radius:20px;background:linear-gradient(160deg,var(--surface),var(--surface-2));box-shadow:0 25px 70px rgba(4,12,34,.24)}
.menu-user-heading{position:relative;overflow:hidden;gap:5px;padding:14px 14px 15px;margin:-1px -1px 8px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:linear-gradient(120deg,#0b1736,#17396a 72%,var(--accent-deep));color:#fff}
.menu-user-heading:after{content:"";position:absolute;left:-28px;top:-46px;width:115px;height:115px;border:1px solid rgba(var(--accent-soft-rgb),.19);border-radius:50%;box-shadow:0 0 0 16px rgba(255,255,255,.025),0 0 0 32px rgba(255,255,255,.02);pointer-events:none}
.menu-user-role{position:relative;z-index:1;color:var(--accent-soft);font-size:8px;font-weight:800}
.menu-user-heading b{position:relative;z-index:1;font-size:12px;color:#fff}
.menu-user-heading small{position:relative;z-index:1;color:#c0cce4;font-size:9px}
.menu-primary-link{display:flex!important;align-items:center;gap:9px!important;padding:11px 12px!important;border:1px solid rgba(var(--accent-rgb),.19)!important;background:linear-gradient(105deg,rgba(var(--accent-rgb),.10),rgba(var(--accent-rgb),.07))!important;color:var(--ink)!important;font-weight:900!important}
.menu-primary-link>span:first-child{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:linear-gradient(135deg,var(--accent),var(--accent-soft));color:var(--accent-contrast)!important}
.menu-primary-link>span:nth-child(2){flex:1}
.menu-primary-link i{font-style:normal;color:var(--emerald);font-size:15px}
.menu-divider{height:1px;margin:9px 5px;background:var(--line)}
.user-menu-popover>a:not(.menu-primary-link),.user-menu-popover form button{padding:10px 12px;border-radius:11px;transition:background .18s ease,transform .18s ease}
.user-menu-popover>a:not(.menu-primary-link):hover{background:var(--surface-3);transform:translateX(-2px)}
.user-menu-popover form{margin-top:5px;padding-top:5px;border-top:1px solid var(--line)}
.user-menu-popover form button{color:#cf4b5b}
.user-menu-popover form button:hover{background:var(--danger-bg)}

/* One shared dialog frame: fixed header/footer with a genuinely scrollable body */
dialog.lux-modal{width:min(820px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);margin:auto;padding:0;border:1px solid rgba(143,169,222,.28);border-radius:25px;background:var(--surface);color:var(--ink);box-shadow:0 35px 110px rgba(1,8,27,.42);overflow:hidden}
dialog.lux-modal[open]{display:flex;flex-direction:column}
dialog.lux-modal::backdrop{background:rgba(3,9,27,.74);backdrop-filter:blur(9px)}
.modal-shell{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;max-height:calc(100dvh - 28px);overflow:hidden}
.modal-header{position:relative;isolation:isolate;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px clamp(18px,3vw,30px);border:0;border-bottom:1px solid rgba(255,255,255,.12);background:radial-gradient(circle at 8% 15%,rgba(var(--accent-rgb),.23),transparent 33%),linear-gradient(115deg,#0a1734 0%,#183b70 65%,#075747 130%);color:#fff}
.modal-header:after{content:"";position:absolute;z-index:-1;left:-55px;top:-110px;width:230px;height:230px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 22px rgba(255,255,255,.025),0 0 0 45px rgba(255,255,255,.018);pointer-events:none}
.modal-heading-content{display:flex;align-items:center;gap:14px;min-width:0}
.modal-emblem{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid rgba(var(--accent-soft-rgb),.35);border-radius:16px;background:linear-gradient(145deg,rgba(var(--accent-rgb),.28),rgba(255,255,255,.08));color:var(--accent-soft);font-size:23px;box-shadow:0 9px 25px rgba(0,0,0,.14)}
.modal-header .eyebrow{display:inline-block;color:var(--accent-soft);font-size:9px;font-weight:900;letter-spacing:.04em}
.modal-header h2{margin:2px 0 3px;color:#fff;font-size:18px;font-weight:900;line-height:1.7}
.modal-header p{margin:0;color:#c4d2e9;font-size:10px;line-height:1.9}
.modal-close{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:23px;line-height:1;transition:all .2s ease}
.modal-close:hover{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.17);transform:rotate(90deg)}
.modal-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:24px clamp(18px,3vw,30px);scrollbar-width:thin;scrollbar-color:rgba(var(--accent-rgb),.32) transparent}
.modal-body::-webkit-scrollbar{width:7px}.modal-body::-webkit-scrollbar-thumb{border-radius:20px;background:rgba(var(--accent-rgb),.28)}
.modal-footer{position:relative;z-index:2;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px clamp(18px,3vw,30px);border:0;border-top:1px solid var(--line);background:var(--surface-2);box-shadow:0 -8px 24px rgba(15,32,72,.035)}
.modal-footer .button{min-height:43px;padding:10px 19px;border-radius:12px;font-size:10px;font-weight:900}
.modal-cancel{margin-inline-start:auto;order:0}
.modal-submit{margin-inline-end:auto;order:1;display:inline-flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 9px 22px rgba(var(--accent-rgb),.18)}
.modal-submit-icon{font-size:16px;line-height:1;transition:transform .2s ease}.modal-submit:hover .modal-submit-icon{transform:translateX(-3px)}
.modal-body .modal-section-title:first-child{margin-top:0}
.modal-body .modal-section-spaced{margin-top:23px;padding-top:19px}

@media(max-width:1050px){.topbar{gap:8px}.top-quick-nav{gap:3px}.quick-nav-link{padding:8px 9px;font-size:9px}.quick-nav-link>span{width:20px;height:20px}}
@media(max-width:780px){
    .topbar{height:auto;min-height:70px;flex-wrap:wrap;align-content:center;padding:9px 14px;gap:8px}
    .topbar-start{flex:1 1 auto;min-width:145px}.topbar-actions{flex:0 0 auto;gap:7px}
    .top-quick-nav{order:3;flex:1 0 100%;width:100%;padding:5px 0 2px;border-top:1px solid var(--line);gap:6px}
    .quick-nav-link{flex:0 0 auto;padding:7px 10px;border-color:var(--line);background:var(--surface);font-size:9px}
    .secure-chip{display:none}
    .user-menu summary{padding:3px 6px}.user-menu-copy,.menu-chevron{display:none}.user-menu .top-user-avatar{width:36px;height:36px}
    .user-menu-popover{position:fixed;top:65px;left:12px;right:12px;width:auto;max-width:380px;margin-inline-start:auto;max-height:calc(100dvh - 85px);overflow-y:auto}
}
@media(max-width:700px){
    .guest-actions>a:first-of-type{display:flex!important;visibility:visible!important;opacity:1!important}
    .guest-actions .guest-link{flex:1 1 100%;min-width:0;justify-content:center}
    .guest-actions{align-items:stretch;flex-wrap:wrap}
    .guest-actions .theme-toggle{margin-inline-start:auto}
}
@media(max-width:560px){
    dialog.lux-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:19px}
    .modal-shell{max-height:calc(100dvh - 16px)}
    .modal-header{padding:16px 15px;gap:10px}.modal-heading-content{gap:10px}.modal-emblem{width:40px;height:40px;flex-basis:40px;border-radius:13px;font-size:19px}
    .modal-header h2{font-size:15px}.modal-header p{font-size:9px;line-height:1.8}.modal-close{width:33px;height:33px;flex-basis:33px}
    .modal-body{padding:18px 15px}.modal-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8px;padding:11px 13px}
    .modal-footer .button{width:100%;min-width:0;min-height:42px;padding:9px 7px;font-size:9px}
    .modal-cancel{grid-column:1;grid-row:1;margin:0}.modal-submit{grid-column:2;grid-row:1;margin:0}
}
@media(max-height:620px){dialog.lux-modal{max-height:calc(100dvh - 12px)}.modal-shell{max-height:calc(100dvh - 12px)}.modal-header{padding-block:13px}.modal-body{padding-block:14px}.modal-footer{padding-block:10px}}


/* Appearance selector: personal palette and independent light sidebar option */
.appearance-menu{position:relative;flex:0 0 auto}
.appearance-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:7px;min-height:39px;padding:7px 11px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,var(--surface),var(--surface-2));color:var(--ink);font-size:10px;font-weight:900;cursor:pointer;box-shadow:0 5px 16px rgba(15,32,72,.045);transition:all .2s ease}
.appearance-menu>summary::-webkit-details-marker{display:none}
.appearance-menu>summary:hover,.appearance-menu[open]>summary{border-color:rgba(var(--accent-rgb),.4);box-shadow:0 9px 22px rgba(var(--accent-rgb),.1);transform:translateY(-1px)}
.appearance-trigger-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:rgba(var(--accent-rgb),.12);color:var(--accent);font-size:15px}
.appearance-menu>summary>i{font-style:normal;color:var(--muted);font-size:13px}
.appearance-popover{position:absolute;z-index:180;top:calc(100% + 11px);left:0;width:292px;padding:13px;border:1px solid var(--line);border-radius:19px;background:linear-gradient(155deg,var(--surface),var(--surface-2));box-shadow:0 24px 65px rgba(4,12,34,.22);animation:menuIn .16s ease}
.appearance-heading{display:grid;gap:2px;padding:2px 3px 12px;border-bottom:1px solid var(--line)}
.appearance-heading b{font-size:11px;font-weight:900;color:var(--ink)}
.appearance-heading small{font-size:9px;color:var(--muted)}
.appearance-section-label{padding:11px 3px 7px;font-size:9px;font-weight:900;color:var(--muted)}
.appearance-options{display:grid;gap:6px}
.appearance-option,.sidebar-style-option{width:100%;display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ink);text-align:right;transition:all .18s ease}
.appearance-option:hover,.sidebar-style-option:hover{background:var(--surface-3);border-color:var(--line)}
.appearance-option[aria-pressed="true"]{background:rgba(var(--accent-rgb),.07);border-color:rgba(var(--accent-rgb),.25)}
.palette-swatch{width:30px;height:30px;flex:0 0 30px;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 4px 12px rgba(15,32,72,.12)}
.palette-swatch-royal{background:linear-gradient(140deg,#183a93 0%,#315fd2 58%,#a9c4ff 100%)}
.palette-swatch-emerald{background:linear-gradient(140deg,#075744 0%,#0a9870 58%,#a7f3d0 100%)}
.appearance-option-copy{display:grid;flex:1;gap:1px;min-width:0}
.appearance-option-copy b{font-size:10px;font-weight:900}
.appearance-option-copy small{font-size:8px;color:var(--muted)}
.appearance-option-check{display:grid;place-items:center;width:20px;height:20px;border-radius:7px;background:var(--surface-3);color:transparent;font-size:12px;font-weight:900}
.appearance-option[aria-pressed="true"] .appearance-option-check{background:var(--accent);color:#fff}
.appearance-divider{height:1px;margin:10px 2px;background:var(--line)}
.sidebar-style-option{padding:9px 8px}
.sidebar-style-preview{width:30px;height:30px;flex:0 0 30px;display:grid;align-content:center;gap:3px;padding:6px 5px;border:1px solid #dce4f0;border-radius:8px;background:#fff}
.sidebar-style-preview i{display:block;height:3px;border-radius:4px;background:#a9b8d1}
.sidebar-style-preview i:first-child{width:100%;background:var(--accent)}
.sidebar-style-preview i:nth-child(2){width:75%}.sidebar-style-preview i:nth-child(3){width:90%}
.appearance-switch{width:34px;height:19px;flex:0 0 34px;padding:2px;border-radius:20px;background:var(--surface-3);transition:background .2s ease}
.appearance-switch i{display:block;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.17);transition:transform .2s ease}
.sidebar-style-option[aria-pressed="true"] .appearance-switch{background:var(--accent)}
.sidebar-style-option[aria-pressed="true"] .appearance-switch i{transform:translateX(-15px)}

/* Light vertical navigation, independent from the page light/dark mode */
html[data-sidebar="light"] .sidebar{background:linear-gradient(180deg,#fff 0%,#f5f8ff 100%);color:#18294c;border-left:1px solid #e2e9f4;box-shadow:-15px 0 42px rgba(25,49,91,.09)}
html[data-sidebar="light"] .brand-sidebar{border-bottom-color:#e4eaf4}
html[data-sidebar="light"] .brand-sidebar .brand-copy b{color:#15264a}
html[data-sidebar="light"] .brand-sidebar .brand-copy small{color:#7c89a3}
html[data-sidebar="light"] .sidebar-profile b{color:#1a2d53}
html[data-sidebar="light"] .sidebar-profile small,html[data-sidebar="light"] .sidebar-label{color:#7887a3}
html[data-sidebar="light"] .side-nav a{color:#64738f}
html[data-sidebar="light"] .side-nav a:hover{background:#edf2fb;color:#1a2d53}
html[data-sidebar="light"] .side-nav a.active{color:var(--accent-deep);background:linear-gradient(100deg,rgba(var(--accent-rgb),.13),rgba(var(--accent-rgb),.045));box-shadow:inset -3px 0 var(--accent)}
html[data-sidebar="light"] .nav-icon{background:#edf2fa;color:#667895}
html[data-sidebar="light"] .side-nav a.active .nav-icon{background:var(--accent);color:#fff}
html[data-sidebar="light"] .sidebar-note{border-color:#e2e9f4;background:#f8faff}
html[data-sidebar="light"] .sidebar-note b{color:#263a60}
html[data-sidebar="light"] .sidebar-note small{color:#7786a2}
html[data-sidebar="light"] .sidebar-version{color:#9aa6bb}
html[data-sidebar="light"] .sidebar-logout button{border-color:#e2e8f2;background:#fff;color:#687792}
html[data-sidebar="light"] .sidebar-logout button:hover{background:#fff1f2;color:#bd4354}

/* Centered icon and title on every authentication form */
.auth-card-head{flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;margin-bottom:17px}
.auth-card-head>div{display:flex;flex-direction:column;align-items:center}
.auth-card-head .auth-mark{margin:0 auto 2px;flex:0 0 54px}
.auth-card-head .eyebrow,.auth-card-head h1{text-align:center}
.auth-card-head h1{margin:2px 0 0}

@media(max-width:780px){
    .topbar-actions{gap:6px}
    .appearance-menu>summary{min-height:36px;padding:6px 8px;gap:5px}
    .appearance-popover{position:fixed;top:72px;left:12px;right:12px;width:auto;max-width:340px;margin-inline-start:auto}
    .appearance-trigger-label{font-size:9px}
}
@media(max-width:560px){
    .appearance-menu>summary{padding:5px 7px}
    .appearance-trigger-label{display:none}
    .appearance-popover{top:66px;left:10px;right:10px;max-width:none}
    .guest-actions .appearance-menu{margin-inline-end:auto}
}


/* Consistent luxury action controls for list, detail and management screens. */
.button,.action-button,.table-actions a,.table-actions button,.row-actions a,.row-actions button,.actions a,.actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:10px;font-weight:850;line-height:1.4;text-decoration:none;white-space:nowrap;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease}
.button:hover,.action-button:hover,.table-actions a:hover,.table-actions button:hover,.row-actions a:hover,.row-actions button:hover,.actions a:hover,.actions button:hover{transform:translateY(-1px);border-color:rgba(var(--accent-rgb),.38);box-shadow:0 7px 18px rgba(12,30,70,.09)}
.button-primary,.action-button-primary{border-color:transparent;background:linear-gradient(120deg,var(--accent),var(--accent-soft));color:#fff;box-shadow:0 7px 18px rgba(var(--accent-rgb),.18)}
.button-danger,.action-button-danger{border-color:rgba(210,70,85,.18);background:var(--danger-bg);color:#bd4354}
.button-ghost{background:transparent;color:var(--muted)}
.table-actions,.row-actions,.actions{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap}
.table-actions form,.row-actions form,.actions form{display:inline-flex;margin:0}
@media(max-width:700px){.table-actions,.row-actions,.actions{gap:6px}.table-actions a,.table-actions button,.row-actions a,.row-actions button,.actions a,.actions button{min-height:34px;padding:7px 9px;font-size:9px}}

.table-action,.button-icon{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid rgba(var(--accent-rgb),.18);border-radius:9px;background:rgba(var(--accent-rgb),.07);color:var(--accent);font-size:10px;font-weight:850;white-space:nowrap;transition:all .18s ease}.table-action:hover,.button-icon:hover{transform:translateY(-1px);background:rgba(var(--accent-rgb),.14);box-shadow:0 6px 15px rgba(var(--accent-rgb),.1)}.table-action-muted{background:var(--surface-2);border-color:var(--line);color:var(--muted)}

/* v1.6 operational pages: audit, system reports and import approval */
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}
.shortcut-card{display:flex;flex-direction:column;gap:7px;min-height:132px;padding:18px;border:1px solid var(--border-color,#e4e9f0);border-radius:18px;background:var(--surface,#fff);color:inherit;text-decoration:none;box-shadow:0 8px 24px rgba(20,38,65,.045);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.shortcut-card:hover{transform:translateY(-2px);border-color:var(--accent,#2c5689);box-shadow:0 14px 32px rgba(20,38,65,.09)}
.shortcut-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--accent-soft,#edf3fb);color:var(--accent,#244f83);font-size:19px}
.shortcut-card b{font-size:14px}.shortcut-card small{font-size:12px;color:var(--muted,#7d8795)}
.audit-filter-panel{margin-bottom:18px}.audit-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}.audit-filter-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.audit-subject{font-size:12px}.settings-panel{max-width:840px}
.button:disabled,.button[disabled]{opacity:.48;cursor:not-allowed;filter:grayscale(.2);box-shadow:none}
@media(max-width:1100px){.dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dashboard-shortcuts{grid-template-columns:1fr 1fr;gap:9px}.shortcut-card{min-height:116px;padding:13px;border-radius:15px}.audit-filter-grid{grid-template-columns:1fr}.audit-filter-actions{width:100%}.audit-filter-actions .button{flex:1}.audit-filter-panel{padding:14px}.settings-panel{padding:16px}}

.money-value{white-space:nowrap;font-variant-numeric:tabular-nums}.money-value small{font-size:10px;color:var(--muted,#7d8795);font-weight:500;margin-inline-start:3px}
.audit-json{max-width:100%;max-height:420px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;border-radius:14px;background:var(--surface-soft,#f4f6fa);border:1px solid var(--border-color,rgba(100,116,139,.2));font-size:12px;line-height:1.8;color:var(--text-primary,#172033)}


/* Palette extension: warm metallic gold, the third corporate color option. */
html[data-palette="gold"]{--accent:#b68a35;--accent-soft:#f2d58e;--accent-deep:#78561b;--accent-contrast:#2b1d05;--accent-rgb:182,138,53;--accent-soft-rgb:242,213,142;--accent-light:#f7e4b3}
.palette-swatch-gold{background:linear-gradient(140deg,#765016 0%,#b68a35 58%,#f2d58e 100%)}

/* Final enterprise shell: four controls only, compact breadcrumb and mobile drawer. */
.sidebar{width:300px;padding:25px 18px 19px}
.main-shell{margin-right:300px}
.sidebar-label{font-size:12.5px;font-weight:800;padding:8px 14px 12px}
.side-nav{gap:7px}
.side-nav a{min-height:50px;padding:13px 15px;font-size:15px;font-weight:700;gap:13px;border-radius:14px}
.nav-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;font-size:20px}
.sidebar-profile{padding:20px 8px 24px}
.sidebar-profile b{font-size:13px}
.sidebar-profile small{font-size:10.5px}
.sidebar-note b{font-size:11px}.sidebar-note small{font-size:9.5px}
.topbar{height:76px;gap:18px;padding-inline:clamp(14px,2.6vw,34px)}
.topbar-start{min-width:0;display:flex;align-items:center;gap:13px}
.topbar-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap}
.topbar-breadcrumb a{font-size:10px;font-weight:800;color:var(--muted)}
.topbar-breadcrumb>span{color:var(--muted);font-size:18px;opacity:.65}
.topbar-breadcrumb strong{max-width:min(42vw,520px);overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:900;color:var(--ink)}
.topbar-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.header-icon-button{position:relative;width:43px;height:43px;display:grid;place-items:center;flex:0 0 43px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,var(--surface),var(--surface-2));color:var(--ink);box-shadow:0 5px 16px rgba(15,32,72,.055);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.header-icon-button:hover,.header-icon-button[aria-expanded="true"]{transform:translateY(-2px);border-color:rgba(var(--accent-rgb),.4);box-shadow:0 10px 22px rgba(var(--accent-rgb),.12)}
.header-icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle{padding:0;border-radius:14px;font-size:0}
.theme-toggle .theme-icon{font-size:20px;line-height:1}
.mobile-menu{width:42px;height:42px;align-items:center;justify-content:center;font-size:17px}
.profile-avatar-wrap{position:relative;display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px}
.top-user-avatar{width:40px;height:40px;border-radius:14px;font-size:15px;box-shadow:0 7px 18px rgba(var(--accent-rgb),.2)}
.profile-presence-dot{position:absolute;left:-2px;bottom:-2px;width:11px;height:11px;border:2px solid var(--surface);border-radius:50%;background:#22c781;box-shadow:0 0 0 2px rgba(34,199,129,.12)}
.profile-presence-dot.is-development,.menu-connection-status i.is-development{background:#d79a35;box-shadow:0 0 0 2px rgba(215,154,53,.15)}
.user-menu{position:relative}
.user-menu summary{gap:9px;padding:3px 5px 3px 8px;border:1px solid transparent;border-radius:15px}
.user-menu-copy b{font-size:11px;font-weight:900}.user-menu-copy small{font-size:9px}
.user-menu .menu-chevron{width:20px;height:20px}
.menu-connection-status{display:flex;align-items:center;gap:7px;margin-top:5px;font-size:8px;color:#cbd7ec}
.menu-connection-status i{width:7px;height:7px;border-radius:50%;background:#22c781}
.notification-menu{position:relative}
.notification-menu>summary{list-style:none;cursor:pointer}
.notification-menu>summary::-webkit-details-marker{display:none}
.header-notification-badge{position:absolute;top:-5px;left:-5px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--surface);border-radius:20px;background:#d94d60;color:#fff;font-size:8px;line-height:1;font-weight:900}
.notification-popover{position:absolute;top:calc(100% + 12px);left:0;width:320px;padding:11px;border:1px solid var(--line);border-radius:19px;background:linear-gradient(155deg,var(--surface),var(--surface-2));box-shadow:0 24px 65px rgba(4,12,34,.22);z-index:190;animation:menuIn .16s ease}
.notification-popover-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 9px 12px;border-bottom:1px solid var(--line)}
.notification-popover-heading>div{display:grid;gap:2px}.notification-popover-heading b{font-size:11px;font-weight:900}.notification-popover-heading small{font-size:8px;color:var(--muted)}
.notification-popover-heading>span{min-width:25px;height:25px;display:grid;place-items:center;border-radius:9px;background:rgba(var(--accent-rgb),.1);color:var(--accent);font-size:10px;font-weight:900}
.notification-item{display:flex;align-items:flex-start;gap:9px;padding:10px 8px;border-bottom:1px solid var(--line);color:var(--ink);border-radius:10px}
.notification-item:hover{background:var(--surface-3)}.notification-item-mark{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:rgba(var(--accent-rgb),.1);color:var(--accent)}
.notification-item>span:last-child{display:grid;gap:3px;min-width:0}.notification-item b{font-size:9px;line-height:1.8}.notification-item small{font-size:8px;color:var(--muted)}
.notification-empty{padding:18px 10px;text-align:center;font-size:9px;color:var(--muted)}
.notification-all{display:flex;align-items:center;justify-content:space-between;padding:10px 9px 4px;font-size:9px;font-weight:900;color:var(--accent)}

/* AppQuickAccess is a native Blade component: the project is Blade-first and does not ship Vue. */
.quick-access-wrap{position:relative;flex:0 0 auto}
.quick-access-trigger{font-size:0}
.quick-access-trigger svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.quick-access-panel{position:absolute;top:calc(100% + 12px);right:0;width:380px;max-height:min(78vh,720px);overflow-y:auto;overscroll-behavior:contain;padding:15px;border:1px solid rgba(var(--accent-rgb),.2);border-radius:22px;background:linear-gradient(155deg,var(--surface),var(--surface-2));box-shadow:0 28px 80px rgba(4,12,34,.25);z-index:210;animation:menuIn .16s ease}
.quick-access-panel[hidden]{display:none!important}
.quick-access-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 13px;border-bottom:1px solid var(--line)}
.quick-access-heading>div{display:grid;gap:2px}.quick-access-heading b{font-size:13px;font-weight:900}.quick-access-heading small{font-size:9px;color:var(--muted)}
.quick-access-close{width:29px;height:29px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);font-size:19px}
.quick-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px 0 14px}
.quick-access-item{position:relative;min-width:0;min-height:94px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 5px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface),var(--surface-2));color:var(--ink);text-align:center;transition:transform .18s ease,border-color .18s ease,background .18s ease;cursor:pointer}
.quick-access-item:hover,.quick-access-item:focus-visible{transform:translateY(-2px);border-color:rgba(var(--accent-rgb),.38);background:rgba(var(--accent-rgb),.055);text-decoration:none}
.quick-access-icon{width:43px;height:43px;display:grid;place-items:center;border:1px solid rgba(var(--accent-rgb),.16);border-radius:14px;background:linear-gradient(145deg,rgba(var(--accent-rgb),.11),rgba(var(--accent-rgb),.035));color:var(--accent);box-shadow:inset 0 1px rgba(255,255,255,.55)}
.quick-access-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.quick-access-label{max-width:100%;font-size:9px;line-height:1.6;font-weight:900;white-space:normal}
.quick-access-badge{position:absolute;top:5px;left:5px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:20px;background:#d94d60;color:#fff;font-size:8px;font-weight:900;box-shadow:0 3px 8px rgba(217,77,96,.2)}
.quick-access-info{margin:0 0 12px;padding:10px 12px;border:1px solid rgba(var(--accent-rgb),.18);border-radius:12px;background:rgba(var(--accent-rgb),.06);color:var(--muted);font-size:9px;line-height:1.9}
.quick-access-appearance{padding-top:12px;border-top:1px solid var(--line)}
.quick-access-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.quick-access-section-title span{font-size:10px;font-weight:900}.quick-access-section-title small{font-size:8px;color:var(--muted)}
.quick-palette-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.quick-palette{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:5px 4px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-size:8px;font-weight:900;cursor:pointer}
.quick-palette[aria-pressed="true"]{border-color:rgba(var(--accent-rgb),.5);background:rgba(var(--accent-rgb),.07);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.12)}
.quick-palette .palette-swatch{width:17px;height:17px;flex:0 0 17px;border-radius:6px}
.quick-sidebar-style{margin-top:8px;padding:8px 7px;border-color:var(--line);background:var(--surface)}

/* Card, table and operation controls: one premium treatment across all authenticated panels. */
.panel,.premium-card,.card{border-radius:20px;box-shadow:0 15px 38px rgba(9,28,67,.075),0 3px 9px rgba(9,28,67,.035);border-color:rgba(117,143,188,.2)}
.panel.premium-card,.premium-card{position:relative;isolation:isolate}
.panel.premium-card:before,.premium-card:before{height:3px;background:linear-gradient(90deg,var(--accent-soft),var(--accent),var(--accent-deep))}
.stat,.kpi{border-radius:19px;box-shadow:0 14px 32px rgba(9,28,67,.065),0 2px 8px rgba(9,28,67,.03);border-color:rgba(117,143,188,.2)}
.table-wrap{border:1px solid var(--line);border-radius:15px;overflow-x:auto;background:var(--surface)}
table{border-collapse:separate;border-spacing:0;min-width:100%}
thead th{position:relative;background:linear-gradient(180deg,var(--surface-3),var(--surface-2));color:var(--ink);font-weight:900;border-bottom:1px solid var(--line);padding:13px 14px}
tbody td{padding:12px 14px;border-bottom:1px solid rgba(117,143,188,.13);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}tbody tr{transition:background .16s ease}tbody tr:hover{background:rgba(var(--accent-rgb),.035)}
.table-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:6px 11px;border:1px solid rgba(var(--accent-rgb),.2);border-radius:10px;background:linear-gradient(135deg,rgba(var(--accent-rgb),.11),rgba(var(--accent-rgb),.055));color:var(--accent-deep);font-size:9px;font-weight:900;white-space:nowrap;transition:all .18s ease}
.table-action:hover{border-color:rgba(var(--accent-rgb),.45);background:var(--accent);color:#fff;box-shadow:0 7px 16px rgba(var(--accent-rgb),.18);transform:translateY(-1px)}
.actions .button,.form-actions .button,.modal-footer .button{min-height:41px;border-radius:12px;padding-inline:16px;font-size:10px;font-weight:900}
.button-primary{box-shadow:0 9px 21px rgba(var(--accent-rgb),.21)}
.button-danger{border-color:rgba(210,66,82,.22)!important;background:linear-gradient(125deg,#d94d60,#ac2f49)!important;color:#fff!important;box-shadow:0 8px 18px rgba(190,53,73,.16)}
.button-success{border-color:rgba(20,158,107,.2)!important;background:linear-gradient(125deg,#129b70,#08734f)!important;color:#fff!important;box-shadow:0 8px 18px rgba(8,130,88,.16)}
.pagination-wrap{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap;padding-top:17px}
.pagination-wrap nav{display:flex;align-items:center;gap:5px}.pagination-wrap a,.pagination-wrap span[aria-current],.pagination-wrap span[aria-disabled]{min-width:34px;min-height:34px;display:grid;place-items:center;padding:4px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:9px;font-weight:800}.pagination-wrap span[aria-current]{background:var(--accent);border-color:var(--accent);color:#fff}.pagination-wrap a:hover{border-color:var(--accent);color:var(--accent)}

@media(max-width:1100px){.sidebar{width:300px}.main-shell{margin-right:300px}}
@media(max-width:780px){
    .sidebar{width:min(300px,86vw);transform:translateX(105%)}.sidebar.open{transform:translateX(0)}.main-shell{margin-right:0}
    .topbar{height:70px;padding:0 13px;gap:8px}.topbar-start{gap:8px}.topbar-breadcrumb{gap:6px}.topbar-breadcrumb a{display:none}.topbar-breadcrumb>span{display:none}.topbar-breadcrumb strong{max-width:38vw;font-size:11px}
    .topbar-actions{gap:6px}.header-icon-button{width:39px;height:39px;flex-basis:39px;border-radius:12px}.profile-avatar-wrap{width:37px;height:37px;flex-basis:37px}.top-user-avatar{width:37px;height:37px;border-radius:12px}
    .quick-access-panel{position:fixed;top:66px;right:12px;left:12px;width:auto;max-height:75vh;overflow-y:auto;border-radius:19px}
    .notification-popover,.user-menu-popover{position:fixed;top:66px;left:12px;right:12px;width:auto;max-width:none}
    .user-menu-copy,.user-menu .menu-chevron{display:none}.user-menu summary{padding:2px}
}
@media(max-width:420px){
    .topbar{padding-inline:9px}.topbar-breadcrumb strong{max-width:32vw;font-size:10px}.topbar-actions{gap:5px}.header-icon-button{width:36px;height:36px;flex-basis:36px}.theme-toggle .theme-icon{font-size:18px}
    .quick-access-panel{padding:12px}.quick-access-grid{gap:6px}.quick-access-item{min-height:86px}.quick-palette{font-size:7px;gap:4px}
}


/* Final card polish: the top accent always follows the active brand palette. */
.panel:not(.premium-card),.card:not(.premium-card){position:relative}
.panel:not(.premium-card):before,.card:not(.premium-card):before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--accent-deep),var(--accent),var(--accent-soft));pointer-events:none}
.panel.premium-card:before,.premium-card:before{background:linear-gradient(90deg,var(--accent-deep),var(--accent),var(--accent-soft))}
.table-wrap .button,.table-wrap button:not(.table-action),.table-wrap a.button{min-height:34px;padding:7px 11px;border-radius:10px;font-size:9px;font-weight:900}
.table-action-danger{border-color:rgba(210,66,82,.2)!important;background:linear-gradient(135deg,rgba(217,77,96,.12),rgba(172,47,73,.07))!important;color:#b53249!important}
.table-action-danger:hover{background:linear-gradient(125deg,#d94d60,#ac2f49)!important;color:#fff!important}


/* Paginated remote member selectors for large tenant directories. */
.remote-member-picker{display:grid;gap:9px;max-width:760px;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface),var(--surface-2))}
.remote-member-picker>label,.remote-member-picker .field{display:grid;gap:7px;margin:0}
.remote-member-picker input[type="search"]{width:100%}
.remote-member-results{min-height:128px;max-height:190px;overflow:auto}
.remote-member-picker select option{padding:7px 9px}
.remote-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.remote-picker-footer small{font-size:9px;line-height:1.8;color:var(--muted)}
.office-guarantor-picker{max-width:680px;margin-top:15px}
.office-guarantor-picker .inline-form-row{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.office-guarantor-picker .inline-form-row .field{flex:1 1 280px}
.remote-picker-footer [hidden]{display:none!important}
@media(max-width:640px){.remote-member-picker{padding:11px}.office-guarantor-picker .inline-form-row{display:grid;grid-template-columns:1fr}.office-guarantor-picker .inline-form-row .field{min-width:0}}

/* Theme control is icon-only in both authenticated and public headers. */
.theme-label{display:none!important}
.guest-actions .theme-toggle{width:40px;height:40px;min-width:40px;display:grid;place-items:center;padding:0;font-size:0}
.guest-actions .theme-toggle .theme-icon{font-size:20px;line-height:1}

/* v1.8 visual refinement — compact navigation, readable data and viewport-safe quick access. */
@media (min-width: 781px) {
    .quick-access-panel {
        position: fixed;
        right: auto;
        width: 380px;
        max-width: calc(100vw - 24px);
        max-height: min(78vh, 720px);
        z-index: 260;
        transform-origin: top right;
    }
}

/* The sidebar remains spacious, while its navigation is slightly more restrained. */
.sidebar { padding: 23px 17px 18px; }
.sidebar-label { font-size: 12px; padding: 7px 13px 10px; }
.side-nav { gap: 6px; }
.side-nav a {
    min-height: 46px;
    padding: 10px 13px;
    gap: 11px;
    border-radius: 13px;
    font-size: 13.5px;
    font-weight: 750;
}
.nav-icon {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    border-radius: 11px;
    font-size: 18px;
}
.sidebar-profile { padding: 18px 8px 21px; }
.sidebar-profile b { font-size: 12.5px; }
.sidebar-profile small { font-size: 10px; }
.sidebar-note b { font-size: 10.5px; }
.sidebar-note small { font-size: 9.5px; }

/* Quick-access grid follows the reference's luxurious, balanced 3×3 rhythm. */
.quick-access-panel {
    padding: 17px;
    border-color: rgba(var(--accent-rgb), .24);
    border-radius: 21px;
    background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: 0 26px 72px rgba(4, 12, 34, .28), 0 0 0 1px rgba(255,255,255,.28) inset;
}
.quick-access-heading { padding-bottom: 14px; }
.quick-access-heading b { font-size: 15px; }
.quick-access-heading small { font-size: 10px; }
.quick-access-close { width: 32px; height: 32px; border-radius: 10px; }
.quick-access-grid { gap: 9px; padding: 14px 0 15px; }
.quick-access-item {
    min-height: 98px;
    gap: 7px;
    padding: 11px 6px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15,32,72,.035);
}
.quick-access-icon {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb),.14), rgba(var(--accent-rgb),.045));
}
.quick-access-label { font-size: 11px; line-height: 1.65; }
.quick-access-badge { top: 6px; left: 6px; min-width: 19px; height: 19px; font-size: 9px; }
.quick-access-info { font-size: 11px; line-height: 1.9; }
.quick-access-section-title span { font-size: 12px; }
.quick-access-section-title small { font-size: 9px; }
.quick-palette { min-height: 41px; font-size: 9.5px; }
.quick-sidebar-style .appearance-option-copy b { font-size: 10.5px; }
.quick-sidebar-style .appearance-option-copy small { font-size: 9px; }

/* Improve reading comfort in data tables, card summaries and secondary labels. */
table { font-size: 12px; }
th { font-size: 10.5px; padding: 13px 14px; }
td { font-size: 12px; padding: 13px 14px; line-height: 1.85; }
td small, td .muted, .table-wrap .muted { font-size: 10.5px; line-height: 1.75; }
.empty-cell { font-size: 12px; }
.tag, .code-pill, .status-pill { font-size: 10.5px; }
.table-action { min-height: 35px; padding: 7px 12px; font-size: 10.5px; }
.table-actions a, .table-actions button, .row-actions a, .row-actions button { font-size: 10.5px; }
.muted { font-size: 12px; }
.eyebrow { font-size: 11px; }
.page-heading p { font-size: 12px; }
.section-heading h2 { font-size: 17px; }
.section-heading .muted, .section-heading small { font-size: 11px; }
.stat span, .kpi small { font-size: 11.5px; }
.stat strong, .kpi h2 { font-size: 25px; }
.stat small, .kpi b { font-size: 11px; }
.shortcut-card small, .shortcut-card p { font-size: 11px; }
.profile-detail small, .profile-detail span { font-size: 11px; }
.code-pill { font-size: 10.5px; }

/* Actions and controls gain clearer hierarchy without changing their behavior. */
.button, .action-button, .table-actions a, .table-actions button, .row-actions a, .row-actions button, .actions a, .actions button {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 850;
}
.button-primary, .button-success { box-shadow: 0 9px 22px rgba(var(--accent-rgb), .19); }
.button-ghost, .button.secondary { background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.table-wrap { border-radius: 16px; box-shadow: 0 8px 24px rgba(15,32,72,.035); }
.table-wrap thead th { font-size: 10.5px; letter-spacing: -.1px; }
.table-wrap tbody tr:nth-child(even) { background: rgba(var(--accent-rgb), .018); }
.table-wrap tbody tr:hover { background: rgba(var(--accent-rgb), .055); }

@media (max-width: 780px) {
    .quick-access-panel {
        position: fixed;
        top: 66px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: 75vh;
        overflow-y: auto;
    }
}
@media (max-width: 560px) {
    table { font-size: 11.5px; }
    td { font-size: 11.5px; padding: 10px 11px; }
    td:before { font-size: 10.5px; }
    .quick-access-label { font-size: 10.5px; }
    .sidebar { padding-inline: 15px; }
}

/* Reference-inspired finish: deep ink surfaces, restrained highlights and stronger data hierarchy. */
html[data-theme="light"] .panel,
html[data-theme="light"] .premium-card,
html[data-theme="light"] .card {
    border-color: rgba(var(--accent-rgb), .13);
    box-shadow: 0 16px 38px rgba(15,32,72,.065), 0 3px 10px rgba(15,32,72,.025);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .premium-card,
html[data-theme="dark"] .card {
    border-color: rgba(var(--accent-rgb), .19);
    box-shadow: 0 20px 48px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.018);
}
.panel, .premium-card, .card { transition: border-color .2s ease, box-shadow .2s ease; }
.panel:hover, .premium-card:hover, .card:hover { border-color: rgba(var(--accent-rgb), .23); }
.premium-card:before, .panel:before, .card:before {
    background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
}
.table-wrap thead th:first-child { border-top-right-radius: 10px; }
.table-wrap thead th:last-child { border-top-left-radius: 10px; }
.table-action, .table-actions a, .table-actions button, .row-actions a, .row-actions button {
    box-shadow: 0 3px 9px rgba(var(--accent-rgb), .055);
}
.table-action:focus-visible, .table-actions button:focus-visible, .row-actions button:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), .22);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .quick-access-item, .panel, .premium-card, .card, .side-nav a, .header-icon-button { transition: none !important; }
}

/* v1.9 member request form: radio cards, verified guarantor tags and consistent menu sizing. */
.user-menu .menu-chevron { display: none !important; }
.user-menu-popover > a:not(.menu-primary-link),
.user-menu-popover form button {
    min-height: 43px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.7;
}
.user-menu-popover > a:not(.menu-primary-link) > span,
.user-menu-popover form button > span { font-size: 17px; }
.menu-connection-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 7px 12px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
}
.menu-connection-status b { margin-right: auto; font-size: 11px; font-weight: 900; }
.menu-connection-status.is-secure { border-color: rgba(34,199,129,.22); background: rgba(34,199,129,.08); color: #14865e; }
.menu-connection-status.is-development { border-color: rgba(215,154,53,.24); background: rgba(215,154,53,.09); color: #a56b12; }
.menu-connection-status.is-development i { background: #d79a35; box-shadow: 0 0 0 3px rgba(215,154,53,.14); }
.menu-connection-status.is-secure i { background: #22c781; box-shadow: 0 0 0 3px rgba(34,199,129,.14); }
.menu-connection-status i { flex: 0 0 8px; }
.quick-access-logout-form { min-width: 0; margin: 0; }
.quick-access-logout-form .quick-access-logout { width: 100%; font-family: inherit; }
.quick-access-logout .quick-access-icon { color: #c84b59; border-color: rgba(200,75,89,.2); background: rgba(200,75,89,.07); }
.quick-access-logout:hover { border-color: rgba(200,75,89,.4); background: rgba(200,75,89,.06); }

.loan-application-panel { overflow: visible; }
.loan-choice-section { margin: 20px 0 24px; }
.loan-choice-section + .loan-choice-section { padding-top: 2px; }
.loan-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.loan-choice-card { position: relative; display: block; min-width: 0; cursor: pointer; }
.loan-choice-card[hidden] { display: none !important; }
.loan-choice-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.loan-choice-content {
    min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 13px 14px;
    border: 1px solid var(--line); border-radius: 15px;
    background: linear-gradient(145deg,var(--surface),var(--surface-2));
    box-shadow: 0 5px 15px rgba(9,28,67,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.loan-choice-card:hover .loan-choice-content { transform: translateY(-1px); border-color: rgba(var(--accent-rgb),.38); }
.loan-choice-radio:checked + .loan-choice-content { border-color: var(--accent); background: linear-gradient(135deg,rgba(var(--accent-rgb),.105),rgba(var(--accent-rgb),.035)); box-shadow: 0 8px 20px rgba(var(--accent-rgb),.11), inset 0 0 0 1px rgba(var(--accent-rgb),.18); }
.loan-choice-radio:focus-visible + .loan-choice-content { outline: 3px solid rgba(var(--accent-rgb),.23); outline-offset: 2px; }
.loan-choice-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; background: rgba(var(--accent-rgb),.1); color: var(--accent); font-size: 20px; }
.loan-choice-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.loan-choice-copy b { font-size: 13px; font-weight: 900; color: var(--ink); }
.loan-choice-copy small { color: var(--muted); font-size: 10.5px; line-height: 1.8; }
.loan-choice-check { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: 12px; }
.loan-choice-radio:checked + .loan-choice-content .loan-choice-check { border-color: var(--accent); background: var(--accent); color: #fff; }
.product-choice-card .loan-choice-content { min-height: 88px; }
.guarantor-selection-section { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,var(--surface),var(--surface-2)); }
.guarantor-capacity-note { margin: 10px 0; color: var(--accent); font-size: 12px; font-weight: 850; }
.guarantor-code-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.guarantor-code-entry .field { margin: 0; }
.guarantor-picker-status { margin-top: 8px; min-height: 28px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.guarantor-picker-status.is-error { color: #c34252; font-weight: 800; }
.guarantor-picker-status.is-success { color: #16875f; }
.guarantor-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 7px 0 12px; }
.guarantor-tag,.guarantor-slot-empty { display: inline-flex; align-items: center; gap: 8px; min-height: 37px; padding: 6px 10px; border: 1px solid rgba(var(--accent-rgb),.23); border-radius: 11px; background: rgba(var(--accent-rgb),.08); color: var(--ink); font-size: 11px; font-weight: 800; }
.guarantor-tag-remove { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 7px; background: rgba(195,66,82,.11); color: #c34252; font-size: 17px; line-height: 1; cursor: pointer; }
.guarantor-slot-empty { border-style: dashed; border-color: var(--line); background: var(--surface); color: var(--muted); font-weight: 600; }
.loan-application-panel .field-hint { font-size: 11px; line-height: 1.9; }
.loan-application-panel .modal-section-title { margin-bottom: 13px; }
@media(max-width:680px) {
    .loan-choice-grid { grid-template-columns: 1fr; gap: 8px; }
    .loan-choice-content { min-height: 68px; padding: 11px; }
    .guarantor-code-entry { grid-template-columns: 1fr; }
    .guarantor-code-entry .button { width: 100%; }
    .guarantor-selection-section { padding: 12px; }
}


/* v1.9.1: polished local Jalali picker and improved member-panel readability. */
.user-menu-popover > a:not(.menu-primary-link),
.user-menu-popover form button {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.75;
}
.user-menu-popover > a:not(.menu-primary-link) > span,
.user-menu-popover form button > span { font-size: 18px; }
.user-menu summary { list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::marker { content: ''; }

/* Official @majidh1/jalalidatepicker skin — local assets, themed by the active palette. */
jdp-overlay { z-index: 6499 !important; }
jdp-container {
    --jdp-day-size: 45px;
    --jdp-color-0: var(--surface);
    --jdp-color-1: var(--surface-2);
    --jdp-color-2: var(--surface-3);
    --jdp-color-3: var(--line);
    --jdp-color-4: var(--muted);
    --jdp-color-5: var(--ink);
    --jdp-primary: var(--accent);
    --jdp-red: #d94e63;
    z-index: 6500 !important;
    border: 1px solid rgba(var(--accent-rgb), .26);
    border-radius: 17px;
    box-shadow: 0 24px 72px rgba(4, 12, 34, .28), 0 0 0 1px rgba(255,255,255,.12) inset;
    font-family: inherit;
}
jdp-container .jdp-days-header {
    border-radius: 9px;
    color: var(--muted);
    font-weight: 900;
}
jdp-container .jdp-year select,
jdp-container .jdp-month select,
jdp-container .jdp-time select {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 3px 6px;
    display: inline-block;
    text-align: center;
    background: var(--surface-2);
    background-image: none;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    line-height: 1.5;
    appearance: menulist;
}
jdp-container .jdp-day,
jdp-container .jdp-day-name {
    font-family: inherit;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}
jdp-container .jdp-day.selected {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
    color: #fff !important;
    border-radius: 9px;
}
jdp-container .jdp-day:not(.disabled-day):hover {
    background: rgba(var(--accent-rgb), .11);
    transform: translateY(-1px);
}
jdp-container .jdp-btn-today,
jdp-container .jdp-btn-empty,
jdp-container .jdp-btn-close {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border-radius: 9px;
    font-family: inherit;
    font-weight: 800;
}
jdp-container .jdp-btn-empty {
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--line);
}
.date-control input[data-jdp] { cursor: pointer; padding-left: 40px; }
.date-control:focus-within { border-color: rgba(var(--accent-rgb), .45); }

.member-panel-body table { font-size: 13px; }
.member-panel-body th { font-size: 11.5px; padding: 14px 14px; }
.member-panel-body td { font-size: 13px; line-height: 1.9; padding: 15px 14px; }
.member-panel-body td small,
.member-panel-body td .muted { font-size: 12px; line-height: 1.85; }
.member-panel-body .status-pill,
.member-panel-body .tag { font-size: 11px; }
.member-panel-body .code-pill { font-size: 12px; }
.member-panel-body time[data-gregorian-date] { display: inline-block; min-width: 88px; direction: ltr; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .1px; color: var(--ink); }
.member-panel-body .table-action { min-height: 37px; padding: 8px 13px; font-size: 11.5px; }
.member-panel-body .pagination-wrap a,
.member-panel-body .pagination-wrap span[aria-current],
.member-panel-body .pagination-wrap span[aria-disabled] { font-size: 11.5px; padding: 8px 12px; }
@media (max-width: 640px) {
    jdp-container { --jdp-day-size: 43px; border-radius: 17px 17px 0 0; }
    .member-panel-body tbody td { font-size: 13px; padding: 11px 13px; }
    .member-panel-body tbody td::before { font-size: 12px; font-weight: 800; }
}

/* Member announcement banners: refined, accessible, and placed above the member dashboard heading. */
.member-notice-stack{display:grid;gap:11px;margin:0 0 23px}
.member-notice-heading{display:flex;align-items:center;gap:10px;padding:2px 3px 5px;color:var(--ink)}
.notice-heading-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:rgba(var(--accent-rgb),.10);color:var(--accent);font-size:17px}
.member-notice-heading>div{display:grid;gap:0}.member-notice-heading b{font-size:12px;font-weight:900}.member-notice-heading small{font-size:9px;color:var(--muted)}
.notice-heading-count{margin-inline-start:auto;display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:9px;background:var(--surface-3);color:var(--muted);font-size:9px;font-weight:900}
.member-notice-banner{position:relative;isolation:isolate;display:flex;align-items:center;gap:16px;padding:19px 21px;border:1px solid rgba(var(--accent-rgb),.16);border-radius:19px;background:linear-gradient(112deg,rgba(var(--accent-rgb),.075),rgba(255,255,255,.72) 62%,rgba(var(--accent-rgb),.035));box-shadow:0 10px 30px rgba(12,30,75,.045);overflow:hidden}
html[data-theme="dark"] .member-notice-banner{background:linear-gradient(112deg,rgba(var(--accent-rgb),.18),rgba(17,31,63,.93) 62%,rgba(var(--accent-rgb),.10));border-color:rgba(var(--accent-rgb),.25)}
.member-notice-banner:after{content:"";position:absolute;z-index:-1;inset:auto auto -70px -35px;width:190px;height:190px;border:1px solid rgba(var(--accent-rgb),.09);border-radius:50%;box-shadow:0 0 0 18px rgba(var(--accent-rgb),.025),0 0 0 38px rgba(var(--accent-rgb),.018);pointer-events:none}
.member-notice-banner.is-pinned{border-color:rgba(190,151,70,.30);background:linear-gradient(112deg,rgba(198,161,83,.13),rgba(255,255,255,.78) 62%,rgba(var(--accent-rgb),.045))}
html[data-theme="dark"] .member-notice-banner.is-pinned{background:linear-gradient(112deg,rgba(190,151,70,.16),rgba(17,31,63,.94) 62%,rgba(var(--accent-rgb),.10))}
.member-notice-emblem{display:grid;place-items:center;flex:0 0 47px;width:47px;height:47px;border:1px solid rgba(var(--accent-rgb),.16);border-radius:15px;background:rgba(var(--accent-rgb),.10);color:var(--accent);font-size:23px}
.member-notice-banner.is-pinned .member-notice-emblem{background:rgba(190,151,70,.14);border-color:rgba(190,151,70,.26);color:#a47a29}
.member-notice-copy{flex:1;min-width:0}.member-notice-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:9px;font-weight:700}.member-notice-meta>span:first-child{color:var(--accent);font-weight:900}.member-notice-meta strong{padding:2px 7px;border-radius:6px;background:rgba(190,151,70,.15);color:#9a7127;font-size:8px}
.member-notice-copy h2{margin:5px 0 4px;font-size:14px;font-weight:900;line-height:1.8;color:var(--ink)}.member-notice-copy p{margin:0;color:var(--muted);font-size:10px;line-height:2;max-width:1000px;white-space:normal}
.member-notice-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:10px}.member-notice-actions>small{font-size:8px;color:var(--muted)}
.notice-link-button{display:inline-flex;align-items:center;gap:10px;padding:7px 13px;border:1px solid rgba(var(--accent-rgb),.18);border-radius:10px;background:linear-gradient(135deg,var(--accent),var(--accent-deep));color:#fff!important;font-size:9px;font-weight:900;box-shadow:0 6px 16px rgba(var(--accent-rgb),.18);transition:transform .18s ease,box-shadow .18s ease}
.notice-link-button:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(var(--accent-rgb),.25)}.notice-link-button span{font-size:14px;line-height:1}
.member-notice-image{flex:0 0 118px;width:118px;height:92px;border-radius:13px;overflow:hidden;border:1px solid rgba(var(--accent-rgb),.13);box-shadow:0 7px 20px rgba(15,32,72,.10)}.member-notice-image img{display:block;width:100%;height:100%;object-fit:cover}
.announcement-image-editor{display:grid;gap:10px;justify-items:start;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.announcement-image-editor img{max-width:260px;max-height:150px;border-radius:10px;object-fit:cover}.announcement-card-image{display:block;width:100%;height:145px;object-fit:cover;border-radius:12px;margin-bottom:13px;border:1px solid var(--line)}
.product-management-section{margin-top:23px}.product-admin-card{margin-bottom:13px;padding:20px}.product-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.product-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.product-title-row h3{margin:0;font-size:14px;font-weight:900}.product-admin-heading p{margin:5px 0 0;font-size:9px}.product-id{font-size:9px;color:var(--muted);padding:4px 9px;background:var(--surface-2);border-radius:8px}.product-admin-form{padding-bottom:15px;border-bottom:1px solid var(--line)}.product-status-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;padding-top:13px}.button-danger-soft{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border:1px solid rgba(195,64,77,.18);border-radius:11px;background:var(--danger-bg);color:var(--danger-ink);font-size:9px;font-weight:900}.product-add-panel{margin-top:16px}.member-status-field{margin:15px 0;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
@media(max-width:760px){.member-notice-banner{align-items:flex-start;gap:11px;padding:15px}.member-notice-emblem{width:39px;height:39px;flex-basis:39px;font-size:19px}.member-notice-image{width:82px;height:78px;flex-basis:82px}.member-notice-copy h2{font-size:12px}.member-notice-copy p{font-size:9px}}
@media(max-width:520px){.member-notice-banner{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px}.member-notice-emblem{grid-column:1;grid-row:1}.member-notice-copy{grid-column:2;grid-row:1}.member-notice-image{grid-column:1/-1;grid-row:2;width:100%;height:115px}.member-notice-meta{gap:6px}.member-notice-actions{margin-top:8px}}
.notice-secondary-link{font-size:9px;font-weight:800;color:var(--muted)}.notice-secondary-link:hover{color:var(--accent)}
.announcement-full-card{max-width:1040px;margin-inline:auto;padding:clamp(20px,4vw,36px)}.announcement-full-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:18px}.announcement-full-image{display:block;width:100%;max-height:430px;object-fit:contain;border-radius:17px;background:var(--surface-2);margin-bottom:22px}.announcement-full-body{font-size:12px;line-height:2.5;color:var(--ink);overflow-wrap:anywhere}.announcement-full-expiry{margin-top:22px;padding:11px 14px;border-radius:11px;background:var(--surface-2);color:var(--muted);font-size:9px}.announcement-full-card .form-actions{justify-content:flex-start;margin-top:22px}
.announcement-list-title{display:flex;align-items:center;gap:10px;min-width:190px}.announcement-list-title img{width:48px;height:38px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.form-grid-full{grid-column:1/-1}

/* Request management: two clear work queues, compact guarantor names, and mobile-first member cards. */
.request-tabs-panel{padding:18px 22px}.request-tabs{display:flex;gap:9px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:15px}.request-tab{display:inline-flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:900;transition:all .18s ease}.request-tab b{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:8px;background:var(--surface-3);font-size:9px}.request-tab:hover{border-color:rgba(var(--accent-rgb),.3);color:var(--accent)}.request-tab.is-active{border-color:rgba(var(--accent-rgb),.3);background:linear-gradient(135deg,rgba(var(--accent-rgb),.12),rgba(var(--accent-rgb),.045));color:var(--accent);box-shadow:0 5px 16px rgba(var(--accent-rgb),.07)}.request-tab.is-active b{background:var(--accent);color:#fff}.request-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.request-toolbar-copy{display:grid;gap:4px}.request-toolbar-copy strong{font-size:11px;font-weight:900;color:var(--ink)}.request-toolbar-copy small{font-size:9px;color:var(--muted)}.request-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}.request-admin-table{min-width:930px}.request-admin-table th,.request-admin-table td{vertical-align:middle}.request-select-column{width:42px;text-align:center}.request-code-pill{display:inline-block;min-width:86px;text-align:center;letter-spacing:.5px;font-size:10px;direction:ltr}.request-guarantor-cell{min-width:150px;max-width:250px}.request-guarantor-name{display:inline-flex;align-items:center;gap:5px;margin:2px 3px 2px 0;padding:4px 7px;border-radius:8px;background:var(--surface-2);font-size:9px;white-space:nowrap}.request-guarantor-name small{font-size:8px;color:var(--muted)}.request-batch-note{margin-top:17px}.request-batch-fields{margin-top:15px}.request-batch-fields .field-hint{display:block}.request-tabs-panel+.panel{margin-top:16px}.request-admin-table .table-action{white-space:nowrap}.request-admin-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);cursor:pointer}
.member-request-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.member-request-card{min-width:0;padding:17px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:0 8px 25px rgba(17,38,78,.045);display:grid;gap:13px;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.member-request-card:hover{transform:translateY(-2px);border-color:rgba(var(--accent-rgb),.23);box-shadow:0 12px 28px rgba(17,38,78,.075)}.member-request-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:11px;border-bottom:1px solid var(--line)}.member-request-code-label,.member-request-label{font-size:9px;color:var(--muted);font-weight:800}.member-request-code{direction:ltr;letter-spacing:.55px;max-width:60%;overflow-wrap:anywhere;text-align:center}.member-request-card-main{display:grid;grid-template-columns:1fr 1fr;gap:12px}.member-request-card-main>div{display:grid;gap:5px;min-width:0}.member-request-card-main strong{font-size:11px;line-height:1.9;color:var(--ink);overflow-wrap:anywhere}.member-request-card-bottom{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:11px;border-top:1px solid var(--line)}.member-request-date{font-size:9px;color:var(--muted);margin-inline-start:auto}.member-request-detail{padding:7px 10px;min-height:32px;font-size:9px}.member-request-detail span{font-size:13px}.empty-member-requests{display:grid;justify-items:center;text-align:center;gap:10px;padding:38px 20px}.empty-member-requests p{margin:0}.empty-member-requests .button{margin-top:4px}
@media(max-width:800px){.member-request-list{grid-template-columns:1fr}.request-toolbar{align-items:flex-start;flex-direction:column}.request-toolbar-actions{width:100%}.request-toolbar-actions .button{flex:1}.request-tabs{display:grid;grid-template-columns:1fr 1fr}.request-tab{justify-content:center;padding:9px 8px}.request-tabs-panel{padding:15px}.request-batch-fields{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.member-request-card{padding:14px;border-radius:14px}.member-request-card-main{grid-template-columns:1fr}.member-request-card-bottom{gap:8px}.member-request-detail{margin-inline-start:auto}.request-batch-fields{grid-template-columns:1fr}.request-toolbar-actions .button{font-size:9px;padding-inline:9px}}

/* Phase 6 — compact filters, inline approval and member-facing premium cards */
.request-filter-form{display:grid;gap:14px}
.request-employment-filter{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
.request-employment-filter .member-filter-label{margin:0;white-space:nowrap}
.request-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px;align-items:end}
.request-filter-grid>.field{min-width:0;margin:0}
.request-filter-grid .field>span{font-size:10px}
.request-filter-actions{display:flex;justify-content:flex-start;gap:8px;margin-top:0}
.segmented-radio-group{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.segmented-radio{position:relative;display:inline-flex;cursor:pointer}
.segmented-radio input{position:absolute;opacity:0;inset:0;pointer-events:none}
.segmented-radio span{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:850;white-space:nowrap;transition:all .18s ease}
.segmented-radio input:checked+span{border-color:rgba(var(--accent-rgb),.38);background:linear-gradient(135deg,rgba(var(--accent-rgb),.15),rgba(var(--accent-rgb),.06));color:var(--accent-deep);box-shadow:0 4px 11px rgba(var(--accent-rgb),.08)}
.segmented-radio input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.request-guarantor-inline-form{display:flex;gap:4px;align-items:center;margin:3px 0}
.request-guarantor-inline-form .input{width:auto;min-width:105px;min-height:28px;padding:3px 6px;font-size:8px}
.request-guarantor-inline-form .table-action{min-height:27px;padding:3px 8px;font-size:8px}
.request-admin-table th,.request-admin-table td{white-space:normal}
.member-filter-form{display:grid;gap:15px}
.member-filter-group{display:grid;gap:8px}
.member-filter-label{font-size:10px;font-weight:900;color:var(--ink)}
.segmented-radio-wrap{max-width:100%;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.member-filter-actions{display:flex;gap:8px}
.member-admin-table{min-width:760px}
.member-admin-table td,.member-admin-table th{vertical-align:middle}
.member-pending-table{min-width:820px}
.member-pending-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}
.phone-approval-batch-actions{display:grid;gap:10px;margin-top:16px;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.phone-approval-batch-actions>.field{max-width:520px}
.phone-approval-batch-actions .form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button-danger{background:rgba(207,64,80,.09);border-color:rgba(207,64,80,.22);color:#b52e45}
.button-danger:hover{background:#b52e45;color:#fff}
.button:disabled,.table-action:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.member-fund-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.member-fund-card{position:relative;display:grid;gap:14px;min-width:0;padding:17px;border:1px solid var(--line);border-radius:17px;background:linear-gradient(145deg,var(--surface),var(--surface-2));box-shadow:0 9px 24px rgba(15,36,76,.045);overflow:hidden}
.member-fund-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--accent-deep),var(--accent-soft))}
.member-fund-card-head,.member-history-fund-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.member-fund-card-head h3,.member-history-fund-heading h2{margin:3px 0 0;font-size:14px;font-weight:950;color:var(--ink)}
.member-fund-overline{font-size:9px;color:var(--muted);font-weight:850}
.member-fund-card-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border-radius:12px;background:rgba(var(--accent-rgb),.045)}
.member-fund-card-stats>div,.member-loan-history-grid>div{display:grid;gap:4px;min-width:0}
.member-fund-card-stats small,.member-loan-history-grid small{font-size:9px;color:var(--muted);font-weight:750}
.member-fund-card-stats strong,.member-loan-history-grid strong{font-size:10px;color:var(--ink);overflow-wrap:anywhere;line-height:1.8}
.member-fund-card-foot{padding-top:9px;border-top:1px solid var(--line);font-size:9px}
.member-request-list-rich{align-items:stretch}
.member-request-card-rich{gap:12px;padding:17px;background:linear-gradient(150deg,var(--surface),var(--surface-2))}
.member-request-card-title{display:flex;align-items:center;gap:9px;min-width:0}
.member-request-card-rich .member-request-card-top{padding-bottom:12px}
.member-request-card-rich .member-request-card-main{gap:13px;padding:1px 0}
.member-request-card-section{display:grid;gap:8px;padding-top:11px;border-top:1px solid var(--line)}
.member-request-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:900;color:var(--ink)}
.member-request-section-heading small{font-size:9px;color:var(--muted);font-weight:750}
.member-request-card-section p{margin:0;font-size:10px;line-height:2;color:var(--muted);overflow-wrap:anywhere}
.member-guarantor-chips{display:flex;gap:7px;flex-wrap:wrap}
.member-guarantor-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:9px}
.member-guarantor-chip b{font-size:9px;color:var(--ink)}
.member-guarantor-chip small{font-size:8px;color:var(--muted)}
.member-guarantor-chip .is-accepted{color:#09845f}.member-guarantor-chip .is-rejected{color:#c43c52}
.member-request-last-status>strong{font-size:10px;color:var(--accent-deep)}
.member-request-card-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}
.member-request-resubmit-form{display:grid;grid-template-columns:minmax(160px,1fr) auto;align-items:end;gap:8px;flex:1 1 100%}
.member-request-resubmit-form .field{margin:0}
.member-request-resubmit-form .field>span{font-size:9px}
.member-request-resubmit-form .input{min-height:36px}
.retired-bank-account-panel{display:grid;gap:12px;margin:15px 0;padding:16px;border:1px solid rgba(var(--accent-rgb),.18);border-radius:15px;background:linear-gradient(135deg,rgba(var(--accent-rgb),.07),var(--surface) 70%)}
.retired-bank-account-head{display:flex;align-items:center;gap:11px}
.retired-bank-account-head>div{display:grid;gap:3px;flex:1}
.retired-bank-account-head strong{font-size:12px}.retired-bank-account-head small{font-size:9px;color:var(--muted)}
.retired-bank-account-current{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.retired-bank-account-current>span{font-size:9px;color:var(--muted)}
.retired-bank-account-current>strong{font-size:12px;letter-spacing:1px;direction:ltr;margin-inline-end:auto}
.retired-bank-account-input[hidden],.retired-bank-account-current[hidden]{display:none!important}
.member-loan-history-groups{display:grid;gap:16px}
.member-history-fund-panel{display:grid;gap:14px}
.member-history-fund-heading{padding-bottom:11px;border-bottom:1px solid var(--line)}
.member-loan-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.member-loan-history-card{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface),var(--surface-2))}
.member-loan-history-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.member-loan-period-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(var(--accent-rgb),.12);color:var(--accent);font-size:17px}
.member-loan-history-card h3{margin:0;font-size:12px;font-weight:900}
.member-loan-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px;border-radius:12px;background:rgba(var(--accent-rgb),.045)}
.member-loan-history-note{margin:0;padding-top:10px;border-top:1px solid var(--line);font-size:9px;line-height:1.9;color:var(--muted)}
.ltr-text{direction:ltr;text-align:right;font-family:Vazirmatn,sans-serif}
.phone-pending-card{max-width:590px;margin:35px auto;padding:26px}
.phone-pending-summary{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
.phone-pending-summary span{font-size:9px;color:var(--muted)}.phone-pending-summary strong{font-size:10px}
.request-print-body{background:#f5f7fb;color:#1b2a46;padding:25px}
.request-print-sheet{max-width:850px;margin:0 auto;padding:32px;background:#fff;border:1px solid #dfe6f2;border-radius:16px;box-shadow:0 12px 35px rgba(20,40,80,.08)}
.request-print-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:2px solid #244a88}
.request-print-header span:first-child{font-size:10px;color:#526687}.request-print-header h1{margin:5px 0 0;font-size:20px;color:#102447}
.request-print-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:20px 0;border-bottom:1px solid #e3e9f3}
.request-print-grid>div{display:grid;gap:5px}.request-print-grid small{font-size:9px;color:#7887a1}.request-print-grid strong{font-size:11px;color:#1c2f50}
.request-print-sheet section{padding:15px 0;border-bottom:1px solid #e3e9f3}.request-print-sheet h2{margin:0 0 10px;font-size:12px}.request-print-sheet p,.request-print-sheet li{font-size:10px;line-height:2.1;color:#4e607e}
.request-print-sheet footer{display:flex;justify-content:space-between;gap:10px;margin-top:18px;font-size:8px;color:#77869f}
@media(max-width:1150px){.request-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.member-fund-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.request-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.request-employment-filter{align-items:flex-start;flex-direction:column}.member-fund-card-grid,.member-loan-card-grid{grid-template-columns:1fr}.member-request-list-rich{grid-template-columns:1fr}.request-print-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.request-filter-grid{grid-template-columns:1fr}.request-batch-fields{grid-template-columns:1fr}.member-request-resubmit-form{grid-template-columns:1fr}.retired-bank-account-current{align-items:flex-start;flex-direction:column}.phone-pending-summary{grid-template-columns:1fr 1fr}.request-print-body{padding:8px}.request-print-sheet{padding:18px;border-radius:10px}.request-print-header h1{font-size:16px}.request-print-grid{grid-template-columns:1fr 1fr}.request-print-sheet footer{flex-direction:column}}
@media print{body.request-print-body{padding:0;background:#fff}.request-print-sheet{max-width:none;margin:0;padding:15mm;border:0;border-radius:0;box-shadow:none}.request-print-header{border-bottom:2px solid #1d3f75}.request-print-sheet footer{page-break-inside:avoid}}


/* Fund-specific effective debt states in the organization member directory. */
.member-debt-status-list{display:flex;flex-wrap:wrap;gap:6px;min-width:170px;max-width:360px}
.member-debt-status-item{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft,rgba(120,140,170,.06));font-size:10px}
.member-debt-status-item small{color:var(--muted);font-size:9px;max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-debt-status-item .status-pill{font-size:9px;padding:3px 6px;white-space:nowrap}
.member-admin-table{min-width:980px}
@media(max-width:760px){.member-debt-status-list{min-width:150px;max-width:230px}.member-debt-status-item{width:100%;justify-content:space-between}}

/* Phase 7 — compact three-axis member filtering (employment, debt and fund). */
.member-filter-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.member-filter-form>.member-filter-actions{grid-column:1/-1}
.member-filter-form .member-filter-group{min-width:0;align-content:start}
.member-filter-form .segmented-radio-group{min-width:0}
@media(max-width:980px){.member-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.member-filter-form>.member-filter-group:nth-of-type(3){grid-column:1/-1}}
@media(max-width:600px){.member-filter-form{grid-template-columns:1fr}.member-filter-form>.member-filter-group:nth-of-type(3){grid-column:auto}.member-filter-form>.member-filter-actions{grid-column:auto}}

/* Phase 8 — consistent, readable luxury design system across the application. */
:root {
    --type-body: 13.5px;
    --type-caption: 12.5px;
    --type-table-head: 13px;
    --type-table-cell: 13.5px;
    --type-status: 11.5px;
    --luxury-shadow: 0 16px 38px rgba(14, 31, 67, .075), 0 3px 9px rgba(14, 31, 67, .035);
}
body { font-size: var(--type-body); }
.page-heading h1 { font-size: clamp(22px, 2vw, 27px); line-height: 1.55; }
.page-heading p, .section-heading p, .request-toolbar-copy small { font-size: var(--type-caption); line-height: 1.9; }
.section-heading h2, .request-toolbar-copy strong { font-size: 18px; font-weight: 800; line-height: 1.65; }
.member-admin-table thead th, .member-pending-table thead th,
.request-admin-table thead th, .table-wrap thead th, table thead th {
    font-size: var(--type-table-head) !important;
    font-weight: 700 !important;
    text-align: center !important;
    vertical-align: middle;
    padding: 13px 10px;
}
.member-admin-table tbody td, .member-pending-table tbody td,
.request-admin-table tbody td, .table-wrap tbody td, table tbody td {
    font-size: var(--type-table-cell) !important;
    font-weight: 400;
    text-align: center !important;
    vertical-align: middle;
    padding: 14px 10px;
    line-height: 1.85;
}
.table-wrap table { font-size: var(--type-table-cell); }
.table-wrap td strong, .table-wrap td b { font-weight: 700; }
.status-pill, .badge, .tag { font-size: var(--type-status) !important; font-weight: 500 !important; line-height: 1.55; }
.member-admin-table td .member-debt-status-list,
.member-admin-table td .member-debt-status-item { text-align: right; }

/* Buttons: tactile, high-contrast and consistent on every screen. */
.button, .action-button, .table-action,
.table-actions a, .table-actions button, .row-actions a, .row-actions button,
.actions a, .actions button, .form-actions button, .form-actions a {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -.08px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(17, 38, 82, .055);
}
.button-primary, .action-button-primary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 58%, color-mix(in srgb, var(--accent) 70%, #ffffff 30%) 100%) !important;
    box-shadow: 0 9px 22px rgba(var(--accent-rgb), .22), inset 0 1px 0 rgba(255,255,255,.2);
}
.button-primary:hover, .action-button-primary:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 13px 27px rgba(var(--accent-rgb), .28), inset 0 1px 0 rgba(255,255,255,.22);
}
.button-ghost, .button.secondary {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    color: var(--ink);
}
.button-danger, .action-button-danger {
    background: linear-gradient(135deg, #e45c6c, #b52f49) !important;
    color: #fff !important;
}
.button-success, .action-button-success {
    background: linear-gradient(135deg, #19a77d, #087052) !important;
    color: #fff !important;
}
.table-action { border-radius: 10px; font-size: 11.5px; }
button:disabled, .button:disabled, .table-action:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

/* Distinct metric-card accents do not change when the user's brand palette changes. */
.stats .stat, .stats .kpi, .stat, .kpi {
    border: 1px solid var(--line);
    border-top: 4px solid transparent;
    box-shadow: var(--luxury-shadow);
    background: linear-gradient(155deg, var(--surface), var(--surface-2));
}
.stats .stat:nth-child(4n+1), .stats .kpi:nth-child(4n+1), .stats .stat:nth-child(4n+1) { border-top-color: #5276d8; }
.stats .stat:nth-child(4n+2), .stats .kpi:nth-child(4n+2) { border-top-color: #20a47a; }
.stats .stat:nth-child(4n+3), .stats .kpi:nth-child(4n+3) { border-top-color: #c18a38; }
.stats .stat:nth-child(4n), .stats .kpi:nth-child(4n) { border-top-color: #9669c8; }
.stat:before, .kpi:before { display: none; }
.stat span, .kpi small { font-size: 12.5px; }
.stat strong, .kpi h2 { font-size: 25px; }

/* Sidebar identity is unified with the brand; its scrollbar is discreet. */
.sidebar {
    width: 292px;
    padding: 17px 15px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 169, 207, .34) transparent;
    transition: width .22s ease, padding .22s ease, transform .22s ease;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(151,169,207,.3); border-radius: 10px; }
.main-shell { margin-right: 292px; transition: margin-right .22s ease; }
.sidebar-brand-row { display: flex; align-items: center; gap: 8px; padding: 4px 3px 17px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand-sidebar { flex: 1; min-width: 0; padding: 0; border: 0; gap: 11px; }
.brand-sidebar .brand-mark { width: 47px; height: 47px; flex-basis: 47px; border-radius: 15px; background: linear-gradient(145deg,#284fb2,#7697ef 68%,#d7e2ff); color: #fff; box-shadow: 0 9px 23px rgba(45,87,181,.28), inset 0 1px 0 rgba(255,255,255,.32); }
.brand-sidebar .brand-copy b { font-size: 14px; font-weight: 800; color: #f5f7ff; }
.brand-sidebar .brand-copy small { margin-top: 2px; font-size: 11px; color: #aebddd; font-weight: 500; }
.sidebar-collapse-toggle {
    width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
    background: rgba(255,255,255,.065); color: #dce6ff; font-size: 17px;
    transition: background .18s ease, transform .18s ease;
}
.sidebar-collapse-toggle:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.sidebar-label { margin-top: 16px; padding: 6px 12px 10px; font-size: 11px; font-weight: 700; color: #91a1c4; }
.side-nav { gap: 3px; }
.side-nav a {
    position: relative; min-height: 45px; padding: 7px 9px; gap: 10px;
    border-radius: 11px; border-bottom: 1px solid rgba(186,202,235,.095);
    font-size: 13px; font-weight: 600; color: #b2bfd9;
}
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.075); border-bottom-color: rgba(186,202,235,.2); }
.side-nav a.active { color: #fff; background: linear-gradient(100deg, rgba(89,128,224,.23), rgba(255,255,255,.055)); box-shadow: inset -3px 0 #86a9ff; }
.nav-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 17px; background: rgba(255,255,255,.075); }
.sidebar-note { margin-top: 16px; padding: 11px; border-radius: 12px; }
.sidebar-note b { font-size: 11px; }
.sidebar-note small { font-size: 10px; }
.sidebar-version { font-size: 9px; padding-top: 10px; }
body.sidebar-collapsed .sidebar { width: 88px; padding: 15px 10px; }
body.sidebar-collapsed .main-shell { margin-right: 88px; }
body.sidebar-collapsed .sidebar-brand-row { flex-direction: column; gap: 10px; padding-inline: 0; }
body.sidebar-collapsed .brand-sidebar { justify-content: center; }
body.sidebar-collapsed .brand-sidebar .brand-copy,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .sidebar-note,
body.sidebar-collapsed .sidebar-version { display: none; }
body.sidebar-collapsed .sidebar-collapse-toggle { width: 34px; height: 29px; flex-basis: 29px; }
body.sidebar-collapsed .side-nav a { justify-content: center; padding: 6px 4px; }
body.sidebar-collapsed .side-nav a > span:last-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.sidebar-collapsed .side-nav a::after {
    content: attr(data-tooltip); position: absolute; z-index: 400; right: calc(100% + 9px); top: 50%; transform: translate(4px,-50%);
    padding: 7px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px;
    background: #101d3e; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
    box-shadow: 0 9px 24px rgba(0,0,0,.2);
}
body.sidebar-collapsed .side-nav a:hover::after { opacity: 1; transform: translate(0,-50%); }
@media (max-width: 1100px) and (min-width: 781px) { .sidebar { width: 270px; } .main-shell { margin-right: 270px; } body.sidebar-collapsed .sidebar { width: 82px; } body.sidebar-collapsed .main-shell { margin-right: 82px; } }
@media (max-width: 780px) {
    .sidebar { width: min(300px, 86vw); padding: 17px 15px; }
    .main-shell, body.sidebar-collapsed .main-shell { margin-right: 0; }
    body.sidebar-collapsed .sidebar { width: min(300px, 86vw); padding: 17px 15px; }
    body.sidebar-collapsed .brand-sidebar .brand-copy, body.sidebar-collapsed .sidebar-label,
    body.sidebar-collapsed .sidebar-note, body.sidebar-collapsed .sidebar-version { display: initial; }
    body.sidebar-collapsed .sidebar-brand-row { flex-direction: row; }
    body.sidebar-collapsed .sidebar-collapse-toggle { display: none; }
}
@media (max-width: 780px) { .sidebar-collapse-toggle { display: none; } }

/* Cards, forms and captions use a more coherent typographic scale. */
.field > span, .member-filter-label { font-size: 12.5px; font-weight: 700; }
.input, input.input, select.input, textarea.input { font-size: 13px; min-height: 43px; border-radius: 11px; }
.field-hint, .muted, .helper-text { font-size: 12px; line-height: 1.85; }
.card h2, .panel h2, .premium-card h2 { font-size: 18px; font-weight: 800; }
.stats + .panel, .stats + .premium-card { margin-top: 20px; }
.premium-card, .panel, .card { box-shadow: var(--luxury-shadow); }

/* Staff-assisted application screen. */
.staff-request-filter-panel, .staff-request-selected-member, .staff-request-form-panel { overflow: hidden; }
.staff-request-search-form { display: grid; gap: 15px; }
.staff-request-search-top { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.4fr); gap: 16px; align-items: end; }
.staff-request-member-search-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.staff-request-member-search-row .field { margin: 0; }
.staff-member-result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.staff-member-result-card { display: grid; gap: 12px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg,var(--surface),var(--surface-2)); }
.staff-member-result-main, .staff-selected-member-card { display: flex; align-items: center; gap: 11px; min-width: 0; }
.staff-member-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#315fd2,#9eb9fa); color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 7px 17px rgba(49,95,210,.18); }
.staff-member-result-main>div, .staff-selected-member-copy { display: grid; gap: 3px; min-width: 0; }
.staff-member-result-main strong, .staff-selected-member-copy strong { font-size: 14px; font-weight: 800; }
.staff-member-result-main small, .staff-selected-member-copy small { color: var(--muted); font-size: 11px; }
.staff-member-result-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: 11px; color: var(--muted); }
.staff-member-result-meta b { color: var(--ink); font-weight: 700; }
.staff-selected-member-card { padding: 13px; border: 1px solid rgba(var(--accent-rgb),.16); border-radius: 14px; background: linear-gradient(110deg,rgba(var(--accent-rgb),.065),var(--surface)); }
.staff-selected-member-copy { flex: 1; }
.staff-product-summary { min-height: 43px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.staff-guarantor-picker { display: grid; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg,var(--surface-2),var(--surface)); }
.staff-guarantor-picker.is-no-guarantor-required { opacity: .8; }
.staff-guarantor-search-row { display: grid; grid-template-columns: minmax(200px,1fr) auto; gap: 9px; align-items: end; }
.staff-guarantor-search-row .field { margin: 0; }
.staff-guarantor-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-height: 250px; overflow: auto; }
.staff-guarantor-candidate { display: grid; gap: 3px; padding: 9px 11px; text-align: right; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.staff-guarantor-candidate:hover:not(:disabled) { border-color: rgba(var(--accent-rgb),.4); background: rgba(var(--accent-rgb),.055); }
.staff-guarantor-candidate:disabled { opacity: .5; }
.staff-guarantor-candidate span { font-size: 11.5px; font-weight: 700; }
.staff-guarantor-candidate small { color: var(--muted); font-size: 9.5px; }
.staff-guarantor-selected { display: flex; flex-wrap: wrap; gap: 7px; }
.staff-guarantor-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid rgba(22,158,112,.25); border-radius: 10px; background: rgba(22,158,112,.07); font-size: 10.5px; }
.staff-guarantor-chip button { width: 21px; height: 21px; border: 0; border-radius: 7px; background: rgba(198,57,76,.11); color: #bd3b50; font-size: 16px; line-height: 1; }
.staff-request-confirm { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid rgba(var(--accent-rgb),.16); border-radius: 12px; background: rgba(var(--accent-rgb),.045); font-size: 11.5px; line-height: 1.9; }
.staff-request-confirm input { margin-top: 5px; }
@media(max-width:850px) { .staff-request-search-top { grid-template-columns: 1fr; } .staff-member-result-grid { grid-template-columns: 1fr; } }
@media(max-width:600px) { .staff-request-member-search-row, .staff-guarantor-search-row { grid-template-columns: 1fr; } .staff-guarantor-results { grid-template-columns: 1fr; } .staff-selected-member-card { align-items: flex-start; flex-wrap: wrap; } }

/* --------------------------------------------------------------------------
   Global visual standardization — phase 9
   Applied to every authenticated/guest panel, table, form and list.
   -------------------------------------------------------------------------- */
:root {
    --global-subtitle-size: 12.75px;
    --global-table-head-size: 13px;
    --global-table-cell-size: 13.5px;
    --global-control-radius: 12px;
    --luxury-shadow: 0 16px 42px rgba(15, 32, 72, .075);
}

/* Consistent readable descriptions and helper copy across all panels. */
.page-heading p,
.section-heading p,
.section-heading .muted,
.modal-header p,
.auth-lead,
.profile-hero p,
.announcement-card p,
.announcement-empty small,
.request-toolbar-copy small,
.empty-member-requests p,
.page-subtitle,
.section-subtitle,
.panel-subtitle,
.card-subtitle,
.panel-intro,
.helper-text,
.field-hint,
.field-hint-block,
.field small,
.modal-section-title small,
.loan-choice-copy small,
.staff-member-result-main small,
.staff-selected-member-copy small,
.inline-notice,
.inline-notice p,
.muted {
    font-size: var(--global-subtitle-size) !important;
    line-height: 1.9 !important;
    font-weight: 400;
}
.page-heading p,
.section-heading p,
.modal-header p,
.auth-lead,
.profile-hero p,
.announcement-card p,
.announcement-empty small,
.request-toolbar-copy small,
.empty-member-requests p,
.page-subtitle,
.section-subtitle,
.panel-subtitle,
.card-subtitle,
.panel-intro {
    margin-top: 4px;
    color: var(--muted);
}
.field-hint,
.field small,
.modal-section-title small,
.loan-choice-copy small {
    color: var(--muted);
}

/* One table type scale for every table in system, organization and member areas. */
table {
    width: 100%;
    font-size: var(--global-table-cell-size);
}
table th,
table td {
    text-align: center !important;
    vertical-align: middle;
}
table th {
    padding: 14px 10px !important;
    font-size: var(--global-table-head-size) !important;
    line-height: 1.65;
    font-weight: 800 !important;
    color: var(--ink);
    background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
}
table td {
    padding: 14px 10px !important;
    font-size: var(--global-table-cell-size) !important;
    line-height: 1.8;
    font-weight: 400;
}
table td small,
table td .muted {
    display: block;
    margin-top: 3px;
    font-size: 12.5px !important;
    line-height: 1.75 !important;
}
table td strong {
    font-size: 13.5px;
    font-weight: 700;
}
table .code-pill,
table code {
    font-size: 12.5px !important;
    font-weight: 600;
    letter-spacing: .015em;
}
table .status-pill,
table .tag {
    font-size: 11.5px !important;
    font-weight: 600;
}
table .table-actions,
table .row-actions {
    justify-content: center;
}

/* Clear, tactile buttons with subtle tinted backgrounds throughout the UI. */
.button,
a.button,
.action-button,
.table-action,
.table-actions a,
.table-actions button,
.row-actions a,
.row-actions button,
.actions a,
.actions button,
.form-actions a,
.form-actions button,
.modal-footer a,
.modal-footer button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(var(--accent-rgb), .16);
    border-radius: var(--global-control-radius);
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(17, 38, 79, .045), inset 0 1px 0 rgba(255,255,255,.52);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover,
a.button:hover,
.action-button:hover,
.table-action:hover,
.table-actions a:hover,
.table-actions button:hover,
.row-actions a:hover,
.row-actions button:hover,
.actions a:hover,
.actions button:hover,
.form-actions a:hover,
.form-actions button:hover,
.modal-footer a:hover,
.modal-footer button:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb), .38);
    box-shadow: 0 9px 20px rgba(17, 38, 79, .10);
}
.button-primary,
.action-button-primary,
.form-actions .button-primary,
.modal-footer .button-primary {
    border-color: transparent;
    background: linear-gradient(125deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 8px 19px rgba(var(--accent-rgb), .22);
}
.button-primary:hover,
.action-button-primary:hover,
.form-actions .button-primary:hover,
.modal-footer .button-primary:hover {
    background: linear-gradient(125deg, var(--accent-deep), var(--accent));
    color: #fff;
}
.button-danger,
.action-button-danger,
.form-actions .button-danger,
.modal-footer .button-danger {
    border-color: rgba(190, 53, 73, .22);
    background: linear-gradient(125deg, #fff5f6, #ffe9ec);
    color: #a82e44;
}
.button-success,
.action-button-success,
.form-actions .button-success,
.modal-footer .button-success {
    border-color: rgba(8, 130, 88, .18);
    background: linear-gradient(125deg, #effcf6, #ddf7ec);
    color: #08734f;
}
html[data-theme="dark"] .button-danger,
html[data-theme="dark"] .action-button-danger { background: rgba(214,69,69,.14); color: #ffc2ca; }
html[data-theme="dark"] .button-success,
html[data-theme="dark"] .action-button-success { background: rgba(14,186,126,.14); color: #9af0c9; }

/* Global Persian, horizontal, compact pagination for every paginator. */
.pagination-wrap { width: 100%; padding-top: 20px; }
.pagination-wrap > nav.rtl-pagination,
.rtl-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 16px;
    width: 100%;
    direction: rtl;
}
.pagination-wrap nav.rtl-pagination > .rtl-pagination-controls { display: flex !important; }
.pagination-wrap nav.rtl-pagination > .rtl-pagination-summary { display: block !important; }
.rtl-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    direction: rtl;
}
.rtl-pagination .rtl-page-number,
.rtl-pagination .rtl-page-arrow,
.rtl-pagination .rtl-page-ellipsis {
    min-width: 37px;
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15,32,72,.045);
}
.rtl-pagination .rtl-page-arrow { min-width: 61px; }
.rtl-pagination .rtl-page-number:hover,
.rtl-pagination .rtl-page-arrow:not(.is-disabled):hover {
    border-color: rgba(var(--accent-rgb), .4);
    color: var(--accent-deep);
    transform: translateY(-1px);
}
.rtl-pagination .rtl-page-number.is-current {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 7px 17px rgba(var(--accent-rgb), .22);
}
.rtl-pagination .rtl-page-arrow.is-disabled {
    opacity: .42;
    background: var(--surface-2);
    box-shadow: none;
}
.rtl-pagination .rtl-page-ellipsis { min-width: 20px; border: 0; background: transparent; box-shadow: none; }
.rtl-pagination-summary {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

/* More distinct, premium success and validation feedback messages. */
.alert {
    position: relative;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    margin: 0 0 19px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.95;
    box-shadow: 0 9px 24px rgba(15, 32, 72, .065), inset 0 1px 0 rgba(255,255,255,.45);
    overflow: hidden;
}
.alert::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 4px;
    background: currentColor;
    opacity: .65;
}
.alert.success {
    border: 1px solid rgba(8, 151, 101, .20);
    background: linear-gradient(115deg, var(--success-bg), color-mix(in srgb, var(--success-bg) 72%, white));
}
.alert.error {
    border: 1px solid rgba(214, 69, 69, .2);
    background: linear-gradient(115deg, var(--danger-bg), color-mix(in srgb, var(--danger-bg) 72%, white));
}
.alert-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 3px 9px rgba(15,32,72,.06);
}
.alert strong { font-size: 13.5px; font-weight: 800; }
.alert ul { margin: 7px 0 0; padding-right: 20px; }
.alert li { padding: 2px 0; font-size: 12.5px; line-height: 1.9; }
.server-error-summary { border-radius: 17px; }

@media (max-width: 780px) {
    .rtl-pagination { gap: 7px; }
    .rtl-pagination-summary { flex-basis: 100%; }
    .rtl-pagination .rtl-page-number,
    .rtl-pagination .rtl-page-arrow { min-height: 35px; min-width: 35px; padding: 6px 9px; }
    .table-wrap th, .table-card th, main table th { padding: 12px 8px !important; }
    .table-wrap td, .table-card td, main table td { padding: 12px 8px !important; }
    .alert { padding: 13px 14px; font-size: 12.5px; }
}

/* Secondary destructive controls and account actions follow the same button finish. */
.button-danger-soft {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(190, 53, 73, .22);
    border-radius: var(--global-control-radius);
    background: linear-gradient(125deg, #fff5f6, #ffe9ec);
    color: #a82e44;
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(190,53,73,.055);
}
.user-menu-popover form button {
    min-height: 38px;
    border: 1px solid rgba(190,53,73,.12);
    border-radius: 11px;
    background: linear-gradient(145deg, var(--surface), var(--danger-bg));
    font-size: 12px;
    font-weight: 700;
}

/* v1.9.13 hotfix: preserve the established quick-access header and align the
   announcement identity block with the authenticated profile menu. */
.quick-access-panel {
    border: 1px solid rgba(var(--accent-rgb), .24);
    border-radius: 21px;
    background: linear-gradient(150deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: 0 26px 72px rgba(4, 12, 34, .28), 0 0 0 1px rgba(255,255,255,.28) inset;
}
.quick-access-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid var(--line);
}
.quick-access-heading > div { display: grid; gap: 3px; }
.quick-access-heading b { color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.65; }
.quick-access-heading small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.7; }
.quick-access-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    color: var(--muted);
    box-shadow: 0 4px 12px rgba(15,32,72,.045);
}
.quick-access-close:hover { border-color: rgba(var(--accent-rgb), .35); color: var(--accent); }

/* Profile-like announcement heading: role/kicker, title, subtitle and count. */
.notification-popover-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px 13px !important;
    margin: 0 0 9px !important;
    border: 1px solid rgba(var(--accent-rgb), .15) !important;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    box-shadow: 0 7px 18px rgba(15,32,72,.055), inset 0 1px 0 rgba(255,255,255,.55);
}
.notification-heading-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}
.notification-heading-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-soft-rgb), .23));
    color: var(--accent);
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), .09), inset 0 1px 0 rgba(255,255,255,.55);
}
.notification-heading-avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-heading-copy { min-width: 0; display: grid; gap: 2px; }
.notification-heading-copy .notification-heading-kicker {
    color: var(--accent);
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1.55;
}
.notification-heading-copy b { color: var(--ink); font-size: 14px !important; font-weight: 900; line-height: 1.65; }
.notification-heading-copy > small:last-child { color: var(--muted); font-size: 11.5px !important; font-weight: 500; line-height: 1.65; }
.notification-popover-heading .notification-heading-count {
    min-width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid rgba(var(--accent-rgb), .16);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-soft-rgb), .2));
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Keep already-readable sizes; strengthen only secondary/small text in tables. */
table td small,
table td .muted,
table td .text-muted,
.table-wrap td small,
.table-wrap td .muted,
.table-card td small,
.table-card td .muted,
main table td small,
main table td .muted {
    font-weight: 600 !important;
}
table .code-pill,
table code,
table .request-code-pill,
table .member-code,
table .personnel-code,
table .loan-product-name small,
table .request-guarantor-name,
table .request-guarantor-name small {
    font-weight: 700 !important;
}
table td .member-debt-status-item,
table td .request-guarantor-name,
table td .request-guarantor-name small { font-weight: 650 !important; }
/* The identity row is the direct child of the heading; keep it as a horizontal row. */
.notification-popover-heading > .notification-heading-identity { display: flex; }

/* Header notification trigger and profile-like announcement identity panel. */
.notification-trigger {
    border-color: rgba(90,119,178,.23);
    background: linear-gradient(145deg,var(--surface),var(--surface-2));
    box-shadow: 0 5px 15px rgba(14,34,75,.055), inset 0 1px 0 rgba(255,255,255,.65);
}
.notification-trigger svg { stroke: #6f82a8; }
.notification-menu[open] .notification-trigger {
    border-color: rgba(var(--accent-rgb),.42);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.07), 0 10px 22px rgba(var(--accent-rgb),.12);
}
.notification-popover {
    width: 356px;
    padding: 15px;
    border: 1px solid rgba(var(--accent-rgb),.2);
    border-radius: 22px;
    background: linear-gradient(155deg,var(--surface),var(--surface-2));
    box-shadow: 0 26px 72px rgba(4,12,34,.23), 0 5px 18px rgba(var(--accent-rgb),.07);
}
.notification-popover-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px 13px !important;
    margin: 0 0 9px !important;
    border: 1px solid rgba(var(--accent-rgb),.15) !important;
    border-radius: 16px;
    background: linear-gradient(145deg,var(--surface),var(--surface-2));
    box-shadow: 0 7px 18px rgba(15,32,72,.055), inset 0 1px 0 rgba(255,255,255,.55);
}
.notification-popover-heading > .notification-heading-identity { display: flex; }
.notification-heading-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}
.notification-heading-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb),.16);
    border-radius: 14px;
    background: linear-gradient(145deg,rgba(var(--accent-rgb),.16),rgba(var(--accent-soft-rgb),.23));
    color: var(--accent);
    box-shadow: 0 6px 15px rgba(var(--accent-rgb),.09), inset 0 1px 0 rgba(255,255,255,.55);
}
.notification-heading-avatar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notification-heading-copy { min-width: 0; display: grid; gap: 2px; }
.notification-heading-copy .notification-heading-kicker {
    color: var(--accent);
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1.55;
}
.notification-heading-copy b { color: var(--ink); font-size: 14px !important; font-weight: 900; line-height: 1.65; }
.notification-heading-copy > small:last-child { color: var(--muted); font-size: 11.5px !important; font-weight: 500; line-height: 1.65; }
.notification-popover-heading .notification-heading-count {
    min-width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border: 1px solid rgba(var(--accent-rgb),.16);
    border-radius: 11px;
    background: linear-gradient(145deg,rgba(var(--accent-rgb),.14),rgba(var(--accent-soft-rgb),.2));
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.notification-item { gap: 11px; padding: 13px 10px; border-radius: 13px; border-bottom: 1px solid rgba(120,142,180,.12); }
.notification-item:hover { background: rgba(var(--accent-rgb),.055); }
.notification-item-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 11px;
    background: linear-gradient(145deg,rgba(var(--accent-rgb),.14),rgba(var(--accent-soft-rgb),.2));
    font-size: 14px;
}
.notification-item b { font-size: 12.5px !important; line-height: 1.8; font-weight: 700; }
.notification-item small { font-size: 11.5px !important; }
.notification-empty { padding: 22px 12px; font-size: 12.5px; }
.notification-all {
    min-height: 40px;
    margin-top: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(var(--accent-rgb),.11);
    border-radius: 12px;
    background: linear-gradient(120deg,rgba(var(--accent-rgb),.075),rgba(var(--accent-soft-rgb),.11));
    font-size: 12px;
}

/* Keep the previously approved 3×3 quick-access header and premium panel intact. */
.quick-access-panel {
    padding: 17px;
    border: 1px solid rgba(var(--accent-rgb),.24);
    border-radius: 21px;
    background: linear-gradient(150deg,var(--surface) 0%,var(--surface-2) 100%);
    box-shadow: 0 26px 72px rgba(4,12,34,.28), 0 0 0 1px rgba(255,255,255,.28) inset;
}
.quick-access-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid var(--line);
}
.quick-access-heading > div { display: grid; gap: 3px; }
.quick-access-heading b { color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.65; }
.quick-access-heading small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.7; }
.quick-access-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg,var(--surface),var(--surface-2));
    color: var(--muted);
    box-shadow: 0 4px 12px rgba(15,32,72,.045);
}
.quick-access-close:hover { border-color: rgba(var(--accent-rgb),.35); color: var(--accent); }

/* Strengthen the weight of small table copy without increasing its size. */
table td small,
table td .muted,
table td .text-muted,
.table-wrap td small,
.table-wrap td .muted,
.table-card td small,
.table-card td .muted,
main table td small,
main table td .muted { font-weight: 600 !important; }
table .code-pill,
table code,
table .request-code-pill,
table .member-code,
table .personnel-code,
table .loan-product-name small,
table .request-guarantor-name,
table .request-guarantor-name small { font-weight: 700 !important; }
table td .member-debt-status-item,
table td .request-guarantor-name,
table td .request-guarantor-name small { font-weight: 650 !important; }

@media (max-width: 780px) {
    .notification-popover { position: fixed; top: 66px; left: 12px; right: 12px; width: auto; max-width: none; }
    .notification-popover-heading { padding: 10px !important; }
    .notification-heading-avatar { width: 39px; height: 39px; flex-basis: 39px; }
}


/* Phase 10: a single theme-aware profile identity header shared by profile,
   quick-access and announcement popovers. */
.menu-user-heading {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 15px 15px;
    border: 1px solid rgba(var(--accent-rgb), .34);
    border-radius: 16px;
    background: linear-gradient(122deg, var(--accent-deep) 0%, var(--accent) 58%, color-mix(in srgb, var(--accent) 66%, var(--accent-soft) 34%) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(var(--accent-rgb), .18), inset 0 1px 0 rgba(255,255,255,.2);
}
.menu-user-heading::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 145px;
    height: 145px;
    inset: -72px auto auto -28px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 50%;
    box-shadow: 0 0 0 15px rgba(255,255,255,.035), 0 0 0 31px rgba(255,255,255,.025);
    pointer-events: none;
}
.menu-user-heading::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 84px;
    height: 84px;
    inset: auto -32px -49px auto;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
    filter: blur(1px);
    pointer-events: none;
}
.menu-user-role { color: color-mix(in srgb, #fff 76%, var(--accent-soft) 24%); font-size: 10px; font-weight: 800; line-height: 1.6; }
.menu-user-heading b { color: #fff; font-size: 13px; font-weight: 900; line-height: 1.7; overflow-wrap: anywhere; }
.menu-user-heading small { color: rgba(255,255,255,.84); font-size: 10.5px; font-weight: 600; line-height: 1.7; direction: auto; text-align: right; overflow-wrap: anywhere; }
.quick-access-heading, .notification-popover-heading {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    margin: 0 0 12px;
    border: 0;
    background: transparent;
}
.quick-access-heading .menu-user-heading,
.notification-popover-heading .menu-user-heading {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border-radius: 16px;
}
.quick-access-heading .quick-access-close {
    align-self: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(var(--accent-rgb), .22);
    border-radius: 11px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    color: var(--muted);
    box-shadow: 0 4px 13px rgba(15,32,72,.07);
}
.quick-access-heading .quick-access-close:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.42); }
.notification-popover-heading { align-items: center; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.notification-popover-heading .notification-user-heading { min-height: 88px; }
.notification-heading-count {
    min-width: 36px !important;
    height: 36px !important;
    align-self: center;
    border: 1px solid rgba(var(--accent-rgb),.23) !important;
    border-radius: 12px !important;
    background: linear-gradient(145deg, rgba(var(--accent-rgb),.14), rgba(var(--accent-soft-rgb),.2)) !important;
    color: var(--accent-deep) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}
html[data-theme="dark"] .menu-user-heading { box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12); }
@media (max-width: 780px) {
    .quick-access-heading, .notification-popover-heading { gap: 8px; }
    .quick-access-heading .menu-user-heading, .notification-popover-heading .menu-user-heading { padding: 11px 12px; }
    .menu-user-heading b { font-size: 12px; }
    .menu-user-heading small { font-size: 10px; }
}

/* Consistent centered metric cards with a subtle icon medallion. */
.stats > .stat, .stats > .kpi, .compact-stats > .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 122px;
    padding: 16px 14px;
}
.stats > .stat > span, .compact-stats > .stat > span, .stats > .kpi > small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.75;
    text-align: center;
}
.stats > .stat > span::before, .compact-stats > .stat > span::before, .stats > .kpi > small::before {
    content: "✦";
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin: 0 auto 2px;
    border: 1px solid rgba(var(--accent-rgb), .18);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-soft-rgb), .2));
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 4px 11px rgba(var(--accent-rgb), .08);
}
.stats > .stat > strong, .compact-stats > .stat > strong, .stats > .kpi > h2 {
    width: 100%;
    margin: 5px 0 0;
    text-align: center;
    line-height: 1.5;
}

/* Guarantee withdrawal action: visible but restrained. */
.guarantee-withdraw-button { min-height: 31px; padding: 5px 10px; font-size: 10px; white-space: nowrap; }

.status-withdrawn { background: rgba(112,124,148,.13); color: var(--muted); border: 1px solid rgba(112,124,148,.18); }
.member-guarantor-chip small.is-withdrawn { color: var(--muted); font-weight: 700; }


/* Phase 11: theme-aware application action dialogs (no browser alert/confirm UI). */
dialog.app-action-dialog{width:min(500px,calc(100vw - 28px));max-width:none;max-height:min(80dvh,620px);border:1px solid rgba(var(--accent-rgb),.24);border-radius:25px;background:var(--surface);color:var(--ink);box-shadow:0 32px 100px rgba(4,13,37,.34);overflow:hidden}
dialog.app-action-dialog[open]{display:block}
dialog.app-action-dialog::backdrop{background:rgba(5,12,31,.58);backdrop-filter:blur(8px)}
.app-action-dialog .modal-shell{max-height:min(80dvh,620px)}
.app-action-dialog-header{background:radial-gradient(circle at 8% 12%,rgba(var(--accent-rgb),.19),transparent 38%),linear-gradient(125deg,var(--surface),var(--surface-2));color:var(--ink);border-bottom:1px solid var(--line)}
.app-action-dialog-header .eyebrow{color:var(--accent);font-size:10px;font-weight:800}
.app-action-dialog-header h2{color:var(--ink);font-size:17px;font-weight:900}
.app-action-dialog-header p{color:var(--muted);font-size:12px}
.app-action-dialog-header .modal-close{border-color:var(--line);background:var(--surface-2);color:var(--muted)}
.app-action-dialog-emblem{border-color:rgba(var(--accent-rgb),.25);background:linear-gradient(145deg,rgba(var(--accent-rgb),.18),rgba(var(--accent-rgb),.07));color:var(--accent);box-shadow:0 8px 20px rgba(var(--accent-rgb),.11)}
.app-action-dialog[data-variant="danger"] .app-action-dialog-emblem{border-color:rgba(190,57,75,.24);background:rgba(190,57,75,.09);color:#c33e55}
.app-action-dialog[data-variant="warning"] .app-action-dialog-emblem{border-color:rgba(194,139,39,.25);background:rgba(194,139,39,.11);color:#a97518}
.app-action-dialog-message{margin:0;color:var(--ink);font-size:13px;font-weight:600;line-height:2.1;white-space:pre-line}
.app-action-dialog-footer{justify-content:flex-start}
.app-action-dialog-footer [data-app-dialog-cancel]{margin-inline-start:auto}
.app-action-dialog-footer [data-app-dialog-accept]{margin-inline-start:0}
.app-action-dialog-footer [hidden]{display:none!important}
@media(max-width:580px){dialog.app-action-dialog{width:calc(100vw - 20px);border-radius:19px}.app-action-dialog-header{padding:17px 15px}.app-action-dialog-body{padding:19px 16px}.app-action-dialog-footer{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;padding:12px 14px}.app-action-dialog-footer .button{flex:1;min-width:0}}

/* Phase 11: clear indication for requests whose guarantor withdrew. */
.request-selection-blocked{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border:1px solid rgba(183,65,82,.22);border-radius:9px;background:rgba(183,65,82,.08);color:#b13b50;font-size:11px;font-weight:800;white-space:nowrap}
.request-withdrawn-warning{display:block;margin-top:7px;padding:5px 8px;border:1px solid rgba(183,65,82,.18);border-radius:8px;background:rgba(183,65,82,.055);color:#a83b4e;font-size:11px;font-weight:650;line-height:1.8}

/* Header notification actions are forms, but keep the same compact card styling as links. */
.notification-read-form,.notification-mark-all-form{margin:0;width:100%}
.notification-item-button,.notification-all-button{font:inherit;font-family:inherit;text-align:right;cursor:pointer;width:100%;background:transparent;border:0}
.notification-all-button{display:block}

.request-guarantor-resolution-form{display:grid;gap:6px;min-width:190px;max-width:280px}
.request-guarantor-resolution-form .input{min-width:0}
.request-guarantor-resolution-form .table-action{justify-self:start}

/* Server-synchronized expiration countdown for one-time SMS codes. */
.otp-countdown{display:flex;align-items:center;justify-content:space-between;gap:7px 12px;flex-wrap:wrap;margin:0 0 14px;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
.otp-countdown-label{color:var(--muted);font-size:10px;font-weight:800}
.otp-countdown-time{min-width:76px;color:var(--royal);font-size:18px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.04em;text-align:center}
.otp-countdown-expired{flex:0 0 100%;margin:0;color:var(--danger-ink);font-size:10px;font-weight:800;line-height:1.9}
.otp-countdown.is-expired{border-color:rgba(211,76,93,.35);background:var(--danger-bg)}
.otp-countdown.is-expired .otp-countdown-time{color:var(--danger-ink)}
.otp-countdown [hidden]{display:none!important}

/* Readable Persian numerals in login identifiers and phone fields. */
.auth-number-input{direction:ltr;text-align:center!important;letter-spacing:.12em;font-variant-numeric:tabular-nums;padding-inline:16px}.auth-number-input::placeholder{letter-spacing:.035em}.admin-credential-panel{margin-top:20px}

/* Authentication digits: larger, clearer and consistently typeset with Vazirmatn. */
input.auth-number-input{font-family:'Vazirmatn',sans-serif!important;font-size:20px!important;font-weight:800!important;line-height:1.6;min-height:58px!important;letter-spacing:.16em!important;font-variant-numeric:lining-nums tabular-nums;padding-inline:18px!important;text-align:center!important;direction:ltr}
input.auth-number-input::placeholder{font-family:'Vazirmatn',sans-serif;font-size:13px!important;font-weight:500;letter-spacing:.08em!important;opacity:.72}
input.auth-number-input.auth-email-identifier{font-size:15px!important;font-weight:600!important;letter-spacing:normal!important}


/* Organization member phone verification and controlled edit action. */
.member-phone-control{display:flex;align-items:stretch;gap:.55rem;min-width:0}.member-phone-control .input{flex:1;min-width:0}.member-phone-control .input[readonly]{background:var(--surface-soft,#f4f6fa);cursor:default}.member-phone-change-button{flex:0 0 auto;white-space:nowrap;min-height:44px;padding-inline:1rem}.member-phone-status-line{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}.member-phone-status-line small{color:var(--text-muted,#667085);font-size:.82rem;line-height:1.8}.member-phone-field .field-hint{display:block;margin-top:.55rem;line-height:1.9}.member-phone-field [hidden]{display:none!important}@media(max-width:480px){.member-phone-control{flex-wrap:wrap}.member-phone-control .input{flex:1 1 100%}.member-phone-change-button{width:100%}}

/* Phase 26 — luxury public home, unified authentication and compact palette swatches. */
.guest-body{position:relative;padding-top:4px;background:radial-gradient(ellipse at 9% 9%,rgba(var(--accent-rgb),.105),transparent 30%),radial-gradient(ellipse at 94% 84%,rgba(201,168,106,.09),transparent 28%),var(--bg)}
.guest-body:before{content:"";position:fixed;z-index:301;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#08112b 0%,#c9a86a 24%,#fff0c8 50%,#c9a86a 76%,#08112b 100%);pointer-events:none}
.guest-topbar{top:4px;height:80px;padding-inline:clamp(18px,5vw,82px);border-bottom-color:rgba(201,168,106,.22);box-shadow:0 10px 32px rgba(8,17,43,.07)}
.guest-topbar .brand-mark{position:relative;width:49px;height:49px;flex-basis:49px;border:1px solid rgba(201,168,106,.6);border-radius:16px;background:linear-gradient(140deg,#8eb5ff,var(--accent) 54%,#0b1a4a);color:#fff;font-size:27px;box-shadow:0 11px 26px rgba(var(--accent-rgb),.27),inset 0 1px 0 rgba(255,255,255,.55)}
.guest-topbar .brand-copy b{font-size:16px;font-weight:950;letter-spacing:-.35px;color:var(--ink)}
.guest-topbar .brand-copy small{font-size:10px;color:var(--muted)}
.guest-actions{display:flex;align-items:center;gap:10px}
.guest-actions .guest-link,.guest-actions .guest-admin-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 18px;border-radius:13px;font-size:10px;font-weight:900;transition:all .22s ease}
.guest-actions .guest-link{border:1px solid rgba(201,168,106,.65);background:linear-gradient(135deg,#0b1a4a,var(--accent));color:#fff;box-shadow:0 9px 23px rgba(var(--accent-rgb),.22),inset 0 1px 0 rgba(255,255,255,.35)}
.guest-actions .guest-link span{font-size:15px;line-height:1}
.guest-actions .guest-admin-link{border:1px solid var(--line);background:linear-gradient(145deg,var(--surface),var(--surface-2));color:var(--ink)}
.guest-actions .guest-link:hover,.guest-actions .guest-admin-link:hover{transform:translateY(-2px);box-shadow:0 13px 27px rgba(8,17,43,.13)}
.guest-actions .theme-toggle{margin-inline-start:5px;width:40px;height:40px;min-width:40px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);box-shadow:0 5px 15px rgba(8,17,43,.055)}
.guest-actions .theme-toggle .theme-icon{font-size:19px;line-height:1}
.palette-inline{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(145deg,var(--surface),var(--surface-2));box-shadow:0 5px 15px rgba(8,17,43,.045)}
.palette-dot-button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.palette-dot-button:hover{transform:scale(1.13)}
.palette-dot-button[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 2px var(--surface),0 0 0 3px rgba(var(--accent-rgb),.35)}
.palette-dot-fill{display:block;width:13px;height:13px;border-radius:50%;border:1px solid rgba(10,20,45,.14);box-shadow:inset 0 1px 1px rgba(255,255,255,.45),0 1px 3px rgba(0,0,0,.12)}
.palette-dot-royal{background:linear-gradient(135deg,#8fb4ff 0%,#315fd2 55%,#0b1a4a 100%)}
.palette-dot-emerald{background:linear-gradient(135deg,#a7f3d0 0%,#0a9870 55%,#053a2b 100%)}
.palette-dot-gold{background:linear-gradient(135deg,#fff0c8 0%,#c9a86a 58%,#76521a 100%)}
.palette-inline-app{min-height:37px;padding-inline:6px;gap:4px;border-radius:12px}
.palette-inline-app .palette-dot-button{width:20px;height:20px}
.palette-inline-app .palette-dot-fill{width:12px;height:12px}

/* Public landing page — navy, ivory and restrained gold. */
.guest-container:has(.lux-home-page){width:min(1280px,92%);max-width:1280px;padding-top:42px;padding-bottom:72px}
.lux-home-page{display:block}
.home-hero{min-height:500px;position:relative;isolation:isolate;overflow:hidden;padding:clamp(34px,5.2vw,70px);border:1px solid rgba(201,168,106,.4);border-radius:32px;background:radial-gradient(760px 430px at 89% 4%,rgba(var(--accent-rgb),.55),transparent 61%),radial-gradient(580px 420px at 0% 100%,rgba(201,168,106,.18),transparent 65%),linear-gradient(128deg,#060d24 0%,#0b1a43 48%,#193987 112%);color:#fff;box-shadow:0 35px 90px rgba(5,15,43,.26)}
.home-hero:before{content:"";position:absolute;z-index:-1;inset:14px;border:1px solid rgba(201,168,106,.23);border-radius:22px;pointer-events:none}
.home-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.06fr .94fr;align-items:center;gap:35px;min-height:355px}
.home-hero-copy{position:relative;z-index:2;max-width:660px}
.hero-overline{gap:9px;padding:7px 14px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.07);color:#d9e5ff;font-size:11px}
.hero-overline i{background:#35dc9a;box-shadow:0 0 0 4px rgba(53,220,154,.13),0 0 16px rgba(53,220,154,.4)}
.home-hero h1{font-size:clamp(33px,4.1vw,49px);line-height:1.48;margin:22px 0 10px;font-weight:950;letter-spacing:-1.3px;color:#fff}
.home-hero h1 em{background:linear-gradient(90deg,#f5e5bd,#c9a86a,#fff4d8);-webkit-background-clip:text;background-clip:text;color:transparent}
.home-gold-divider{display:flex;align-items:center;gap:10px;width:90px;height:12px;margin:12px 0 17px}
.home-gold-divider span{width:75px;height:3px;border-radius:20px;background:linear-gradient(90deg,#c9a86a,#f3e5c3)}
.home-hero-copy>p{max-width:570px;color:#b9c8e8;font-size:13px;line-height:2.35}
.home-hero-actions{display:flex;align-items:center;gap:21px;margin-top:27px;flex-wrap:wrap}
.home-primary{min-height:48px;padding:12px 23px;border:1px solid rgba(255,255,255,.42);border-radius:14px;background:linear-gradient(135deg,var(--accent-soft),var(--accent) 55%,#0b1a4a);color:#fff;font-size:12px;font-weight:900;box-shadow:0 13px 30px rgba(var(--accent-rgb),.35),inset 0 1px 0 rgba(255,255,255,.45)}
.home-primary span{font-size:17px}
.home-admin-link{display:inline-flex;align-items:center;gap:8px;color:#d9e4fb;font-size:11px;font-weight:850}
.home-admin-link span{color:#e2c78e;font-size:16px}
.home-admin-link:hover{color:#fff}
.home-trust-row{display:flex;gap:20px;flex-wrap:wrap;margin-top:29px;color:#aab9d9;font-size:10px}
.home-trust-row i{color:#7be4b7;font-style:normal;margin-left:5px}
.home-visual{min-height:355px;position:relative;display:grid;place-items:center;isolation:isolate}
.visual-ring{border-color:rgba(230,239,255,.16)}
.ring-a{width:330px;box-shadow:0 0 0 30px rgba(255,255,255,.019),0 0 0 66px rgba(255,255,255,.013)}
.ring-b{width:252px;border-color:rgba(201,168,106,.28)}
.visual-card{width:min(315px,88%);padding:24px 24px 21px;border:1px solid rgba(201,168,106,.4);border-radius:23px;background:linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,.055));box-shadow:0 28px 65px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.28)}
.visual-icon{width:66px;height:66px;margin:24px auto 13px;border:1px solid rgba(201,168,106,.42);border-radius:20px;background:linear-gradient(135deg,#8db4ff,var(--accent),#0b1a4a);color:#fff;box-shadow:0 14px 32px rgba(var(--accent-rgb),.4),inset 0 1px 0 rgba(255,255,255,.45)}
.visual-card strong,.visual-card>small{text-align:center}
.visual-card strong{font-size:16px}
.visual-card>small{font-size:10px}
.visual-lines{margin:19px 8px}
.visual-card-bottom{padding-top:12px}
.floating-chip{border:1px solid rgba(201,168,106,.28);background:rgba(8,19,49,.86);font-size:10px;box-shadow:0 15px 32px rgba(0,0,0,.2)}
.floating-chip span{color:#e7ca91}
.chip-top{top:16px;right:-5px}.chip-bottom{bottom:22px;left:-9px}
.hero-ornament{position:absolute;z-index:0;pointer-events:none;border:1px solid rgba(201,168,106,.12);border-radius:50%}
.hero-ornament-one{width:250px;height:250px;top:-150px;left:20%}
.hero-ornament-two{width:390px;height:390px;bottom:-320px;right:35%;box-shadow:0 0 0 30px rgba(255,255,255,.015)}
.home-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 54px}
.benefit-lux-card{position:relative;display:flex;align-items:flex-start;gap:14px;min-height:142px;overflow:hidden;padding:23px 21px;border:1px solid rgba(201,168,106,.35);border-radius:20px;background:linear-gradient(180deg,var(--surface),var(--surface-2));box-shadow:0 15px 40px rgba(11,26,74,.065),inset 0 1px 0 rgba(255,255,255,.75);transition:transform .25s ease,box-shadow .25s ease}
.benefit-lux-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,transparent,#c9a86a,#f5e8c9,#c9a86a,transparent)}
.benefit-lux-card:hover{transform:translateY(-5px);box-shadow:0 24px 55px rgba(11,26,74,.12)}
.benefit-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border:1px solid rgba(201,168,106,.4);border-radius:15px;background:linear-gradient(145deg,#10234f,var(--accent-deep));color:#f3e5c3;font-size:22px;box-shadow:0 9px 20px rgba(var(--accent-rgb),.2)}
.benefit-lux-card>div{position:relative;z-index:1;min-width:0}
.benefit-lux-card b{display:block;font-size:12px;font-weight:900;color:var(--ink);margin:2px 0 5px}
.benefit-lux-card p{margin:0;color:var(--muted);font-size:10px;line-height:2}
.benefit-lux-card small{display:inline-flex;margin-top:9px;padding:4px 10px;border:1px solid rgba(201,168,106,.3);border-radius:30px;background:rgba(201,168,106,.1);color:#94712f;font-size:8px;font-weight:850}
html[data-theme="dark"] .benefit-lux-card small{color:#e5ca91}
.benefit-number{position:absolute;left:14px;top:7px;color:rgba(201,168,106,.2);font-size:38px;line-height:1;font-weight:950}
.home-announcements{margin:0}
.home-news-heading{max-width:700px;margin:0 auto 23px;text-align:center}
.news-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:6px 17px;border:1px solid #e0c88d;border-radius:99px;background:linear-gradient(180deg,#fff9e8,#f0dcab);color:#7a5c1e;font-size:10px;font-weight:900;box-shadow:0 8px 20px rgba(201,168,106,.19)}
.home-news-heading h2{margin:13px 0 0;color:var(--ink);font-size:27px;font-weight:950}
.home-news-heading h2 em{font-style:normal;background:linear-gradient(90deg,var(--accent),#c9a86a);-webkit-background-clip:text;background-clip:text;color:transparent}
.home-gold-divider-center{justify-content:center;margin:10px auto 8px;width:120px}
.home-gold-divider-center span{width:105px}
.home-news-heading p{margin:0;color:var(--muted);font-size:10px}
.home-news-panel{position:relative;isolation:isolate;overflow:hidden;padding:34px 30px 21px;border:1px solid rgba(201,168,106,.55);border-radius:27px;background:radial-gradient(600px 300px at 50% 0%,rgba(201,168,106,.15),transparent 72%),linear-gradient(135deg,#060d24 0%,#0b1940 58%,#173987 125%);box-shadow:0 27px 70px rgba(8,17,43,.24);color:#fff}
.home-news-panel:before{content:"";position:absolute;z-index:-1;inset:11px;border:1px solid rgba(201,168,106,.2);border-radius:19px;pointer-events:none}
.news-panel-orb{position:absolute;z-index:-1;width:230px;height:230px;border-radius:50%;filter:blur(75px);pointer-events:none;opacity:.38}
.news-panel-orb-one{top:-130px;right:-50px;background:var(--accent)}
.news-panel-orb-two{bottom:-170px;left:-70px;background:#c9a86a;opacity:.22}
.news-panel-emblem{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 8px;border:1px solid rgba(255,255,255,.4);border-radius:19px;background:linear-gradient(135deg,#f7e9c5,#c9a86a 58%,#8a6d2b);color:#0b1a4a;font-size:26px;box-shadow:0 12px 30px rgba(201,168,106,.28),inset 0 1px 0 #fff}
.news-panel-caption{text-align:center;margin:0 0 21px;color:#d9c18f;font-size:10px;font-weight:900;letter-spacing:.04em}
.announcement-grid{position:relative;z-index:1;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:13px}
.announcement-card,.announcement-empty{padding:18px;border:1px solid rgba(255,255,255,.15);border-radius:17px;background:rgba(255,255,255,.07);box-shadow:0 12px 28px rgba(0,0,0,.12);backdrop-filter:blur(12px);color:#fff}
.announcement-card-image{display:block;width:100%;max-height:160px;object-fit:cover;border-radius:11px;margin-bottom:12px;border:1px solid rgba(201,168,106,.28)}
.announcement-date{color:#e7c98d;font-size:9px}
.announcement-card h3{margin:8px 0 7px;color:#fff;font-size:12px}
.announcement-card p{color:#b4c3df;font-size:10px;line-height:2}
.announcement-card>a{color:#f0d7a2;font-size:10px}
.announcement-empty{grid-column:1/-1;justify-items:center;gap:7px;padding:28px 20px;background:rgba(255,255,255,.045);text-align:center}
.announcement-empty>span{font-size:28px;color:#d9bd82}
.announcement-empty b{font-size:12px;color:#fff}
.announcement-empty small{font-size:10px;color:#aebbd8}
.news-panel-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:19px;padding:13px 4px 0;border-top:1px solid rgba(255,255,255,.13);color:#92a6ce;font-size:9px}

/* Authentication screens — one shared premium card system for member and management flows. */
.guest-container:has(.auth-stage){width:min(1240px,94%);max-width:1240px;min-height:calc(100vh - 180px);display:block;padding:38px 0 54px}
.auth-stage{direction:ltr;width:min(1120px,100%);grid-template-columns:.98fr 1.02fr;align-items:stretch;gap:0;overflow:hidden;border:1px solid rgba(201,168,106,.5);border-radius:31px;background:var(--surface);box-shadow:0 35px 95px rgba(8,17,43,.19),0 5px 17px rgba(8,17,43,.055)}
.auth-showcase{direction:rtl;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:590px;padding:53px 43px 31px;border:0;border-radius:0;background:radial-gradient(550px 400px at 85% 4%,rgba(var(--accent-rgb),.56),transparent 65%),radial-gradient(380px 380px at 6% 96%,rgba(201,168,106,.23),transparent 68%),linear-gradient(155deg,#060d24 0%,#0b1a43 50%,#17378c 118%);color:#fff}
.auth-showcase:after{width:310px;height:310px;right:-140px;bottom:-180px;background:rgba(var(--accent-rgb),.22);filter:blur(70px)}
.showcase-frame{position:absolute;z-index:0;inset:14px;border:1px solid rgba(201,168,106,.25);border-radius:20px;pointer-events:none}
.auth-showcase .showcase-orbit{z-index:-1;border-color:rgba(255,255,255,.12)}
.auth-showcase .orbit-one{width:420px;height:420px;left:-220px;top:-190px;box-shadow:0 0 0 35px rgba(255,255,255,.018),0 0 0 75px rgba(255,255,255,.012)}
.auth-showcase .orbit-two{width:300px;height:300px;left:-155px;top:-130px;border-color:rgba(201,168,106,.2)}
.showcase-content{direction:rtl;position:relative;z-index:2;max-width:410px;margin-inline:auto;width:100%}
.showcase-kicker{align-items:center;gap:9px;color:#c9d6f1;font-size:11px;font-weight:800;letter-spacing:0}
.showcase-kicker:before{content:"";width:22px;height:1px;background:#c9a86a}
.showcase-symbol{width:78px;height:78px;margin:26px 0 19px;border:1px solid rgba(201,168,106,.42);border-radius:23px;background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.055));backdrop-filter:blur(14px);color:#f2dfb6;font-size:37px;box-shadow:0 17px 38px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.35)}
.showcase-content h2{color:#fff;font-size:29px;font-weight:950;line-height:1.58;margin:0 0 10px}
.showcase-content h2 em{font-style:normal;background:linear-gradient(90deg,#f4e3ba,#c9a86a,#fff1ce);-webkit-background-clip:text;background-clip:text;color:transparent}
.showcase-gold-line{width:68px;height:3px;border-radius:20px;margin:13px 0 16px;background:linear-gradient(90deg,#c9a86a,#fff0c8)}
.showcase-content p{max-width:360px;margin:0;color:#b7c5e3;font-size:12px;line-height:2.3}
.showcase-points{display:grid;gap:9px;margin-top:25px;color:#e3eaf8;font-size:10px}
.showcase-points span{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid rgba(255,255,255,.11);border-radius:12px;background:rgba(255,255,255,.055);backdrop-filter:blur(8px)}
.showcase-points i{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border:1px solid rgba(201,168,106,.4);border-radius:7px;background:rgba(201,168,106,.13);color:#f1dfb8;font-style:normal;font-size:10px}
.showcase-trust-row{position:relative;z-index:2;display:flex;gap:20px;flex-wrap:wrap;margin-top:auto;padding-top:23px;color:#91a4cd}
.showcase-trust-row>span{display:grid;gap:2px}
.showcase-trust-row b{color:#e7edfb;font-size:10px;font-weight:850}
.showcase-trust-row small{color:#91a4cd;font-size:9px}
.auth-card-lux{direction:rtl;position:relative;width:auto;max-width:none;min-width:0;min-height:590px;justify-content:center;padding:clamp(36px,5vw,62px);background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);border:0;border-radius:0;box-shadow:none}
.auth-card-lux:before{display:block;position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,transparent,#c9a86a 25%,#f6e8c9 50%,#c9a86a 75%,transparent)}
.auth-card-head{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;margin-bottom:16px}
.auth-card-head>div{display:flex;flex-direction:column;align-items:center}
.auth-card-head .auth-mark{width:62px;height:62px;flex:0 0 62px;margin:0 auto 4px;border:1px solid rgba(201,168,106,.48);border-radius:19px;background:linear-gradient(140deg,#8db5ff,var(--accent) 59%,#0b1a4a);color:#fff;font-size:27px;box-shadow:0 13px 28px rgba(var(--accent-rgb),.27),inset 0 1px 0 rgba(255,255,255,.48)}
.auth-card-head .eyebrow{color:var(--accent);font-size:10px;font-weight:900}
.auth-card-head h1{margin:2px 0 0;color:var(--ink);font-size:26px;font-weight:950;letter-spacing:-.55px}
.auth-lead{max-width:470px;margin:0 auto 22px;color:var(--muted);font-size:11px;line-height:2.15;text-align:center}
.auth-form-lux{display:grid;gap:2px;width:100%;max-width:430px;margin:0 auto}
.auth-card-lux .field{display:grid;gap:7px;margin:9px 0}
.auth-card-lux .field>span{color:var(--ink);font-size:11px;font-weight:900}
.auth-card-lux .input,.auth-card-lux input.input{width:100%;min-height:53px;padding:13px 17px;border:1.5px solid var(--input-line);border-radius:14px;background:var(--input);color:var(--ink);font-family:'Vazirmatn',sans-serif;font-size:13px;outline:none;box-shadow:inset 0 1px 2px rgba(7,18,46,.025);transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.auth-card-lux .input:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 4px rgba(var(--accent-rgb),.11)}
.auth-card-lux .input::placeholder{color:#9aa7bf;font-size:11px}
.auth-card-lux .input-with-icon{position:relative}
.auth-card-lux .input-with-icon>span{right:13px;width:27px;height:27px;display:grid;place-items:center;border:1px solid #d6e0f2;border-radius:9px;background:linear-gradient(145deg,#f2f6ff,#e2eaff);color:#3155a8;font-size:14px}
html[data-theme="dark"] .auth-card-lux .input-with-icon>span{border-color:rgba(169,196,255,.18);background:#16264e;color:#b9ccff}
.auth-card-lux .input-with-icon input{padding-right:53px!important}
.auth-card-lux input.auth-number-input{min-height:58px!important;padding-inline:19px!important;font-size:21px!important;font-weight:850!important;letter-spacing:.17em!important}
.auth-card-lux input.auth-number-input::placeholder{font-size:12px!important;font-weight:500;letter-spacing:.08em!important}
.auth-card-lux input.auth-email-identifier{font-size:15px!important;letter-spacing:normal!important}
.auth-card-lux .field-error{min-height:0;font-size:9px}
.auth-card-lux .field-hint{margin-top:0;color:var(--muted);font-size:9px;line-height:1.9}
.auth-submit{position:relative;overflow:hidden;min-height:52px;margin-top:17px;padding:13px 17px;border:1px solid rgba(255,255,255,.32);border-radius:15px;background:linear-gradient(125deg,var(--accent-soft),var(--accent) 52%,#0b1a4a);color:#fff;font-size:12px;font-weight:950;box-shadow:0 13px 29px rgba(var(--accent-rgb),.27),inset 0 1px 0 rgba(255,255,255,.43);transition:transform .2s ease,box-shadow .2s ease}
.auth-submit:after{content:"";position:absolute;top:0;bottom:0;right:-90px;width:70px;transform:skewX(-20deg);background:linear-gradient(105deg,transparent,rgba(255,255,255,.56),transparent);transition:right .65s ease}
.auth-submit:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(var(--accent-rgb),.33)}
.auth-submit:hover:after{right:120%}
.auth-submit span{font-size:17px}
.auth-security-note{display:flex;justify-content:center;align-items:center;gap:7px;max-width:440px;margin:17px auto 0;color:var(--muted);font-size:9px;line-height:1.9;text-align:center}
.auth-security-note span{color:#ba954f;font-size:14px}
.auth-divider{display:flex;align-items:center;gap:12px;max-width:430px;margin:20px auto 0;color:#9aa6bf;font-size:9px}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--line)}
.auth-trust-badges{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:12px}
.auth-trust-badges span{padding:5px 10px;border:1px solid var(--line);border-radius:99px;background:var(--surface);color:var(--muted);font-size:8px}
.auth-back-link{margin-top:17px;color:var(--muted);font-size:9px;text-align:center}
.auth-back-link a{color:var(--accent);font-weight:900}
.auth-switch{margin-top:15px;font-size:9px}
.auth-switch a{color:var(--accent);font-weight:900}
.auth-remember-row{max-width:430px;margin:4px auto 0!important}
.auth-return-button{display:flex;align-items:center;justify-content:center;max-width:430px;min-height:42px;margin:11px auto 0;padding:9px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:850;text-align:center;transition:all .18s ease}
.auth-return-button:hover{border-color:rgba(var(--accent-rgb),.35);background:rgba(var(--accent-rgb),.05);color:var(--accent)}
.otp-field-wrap{position:relative}
.otp-field-icon{position:absolute;right:13px;top:50%;z-index:2;transform:translateY(-50%);display:grid;place-items:center;width:27px;height:27px;border:1px solid #d6e0f2;border-radius:9px;background:linear-gradient(145deg,#f2f6ff,#e2eaff);color:#3155a8;font-size:16px}
.auth-card-lux .otp-input{min-height:65px!important;padding:12px 52px!important;text-align:center!important;direction:ltr!important;letter-spacing:.48em!important;font-size:26px!important;font-weight:950!important;font-variant-numeric:tabular-nums;}
.auth-card-lux .otp-input::placeholder{font-size:18px!important;letter-spacing:.42em!important;color:#9aa7bf}
.auth-card-lux .otp-countdown{max-width:430px;margin:0 auto 9px;padding:11px 14px;border:1px solid rgba(var(--accent-rgb),.18);border-radius:13px;background:linear-gradient(130deg,rgba(var(--accent-rgb),.055),var(--surface-2));}
.auth-card-lux .otp-countdown-label{font-size:9px}
.auth-card-lux .otp-countdown-time{color:var(--accent);font-size:19px}
.auth-card-lux .otp-countdown.is-expired{background:var(--danger-bg)}
.auth-stage-otp .auth-card-lux,.auth-stage-password .auth-card-lux,.auth-stage-activate .auth-card-lux,.auth-stage-pending .auth-card-lux{min-height:540px}
.auth-stage-otp .auth-showcase,.auth-stage-password .auth-showcase,.auth-stage-activate .auth-showcase,.auth-stage-pending .auth-showcase{min-height:540px}
.auth-stage-pending .phone-pending-summary{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px 14px;padding:16px;margin:12px auto 14px;max-width:430px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
.auth-stage-pending .phone-pending-summary span{color:var(--muted);font-size:9px}
.auth-stage-pending .phone-pending-summary strong{color:var(--ink);font-size:10px;overflow-wrap:anywhere}
.auth-stage-pending .form-actions{max-width:430px;margin:0 auto;justify-content:center}
.auth-stage-pending .inline-notice{max-width:430px;margin:0 auto 12px}
.auth-stage-pending .auth-lead{text-align:justify}
.auth-stage-pending .auth-security-note{margin-top:15px}
.guest-container>.alert{width:min(1120px,100%);margin:0 auto 15px;border-radius:14px;box-shadow:0 10px 28px rgba(8,17,43,.07)}
.guest-footer{position:relative;margin-top:auto;padding:21px 20px;background:linear-gradient(110deg,#08132e,#142957);border-top:1px solid rgba(201,168,106,.35);color:#aebbd8}
.guest-footer .brand-mark{border:1px solid rgba(201,168,106,.36);background:linear-gradient(135deg,#8db5ff,var(--accent),#0b1a4a);color:#fff}

@media(max-width:980px){
    .home-hero-grid{grid-template-columns:1fr .8fr;gap:15px}.home-hero{padding:38px}.home-visual{transform:scale(.91)}
    .auth-stage{width:min(930px,100%);grid-template-columns:.88fr 1.12fr}.auth-showcase{padding:44px 31px 27px}.auth-card-lux{padding:42px 32px}
}
@media(max-width:760px){
    .guest-topbar{height:auto;min-height:70px;padding:11px 15px;flex-wrap:wrap;gap:9px}.guest-topbar .brand{flex:1}.guest-topbar .brand-mark{width:42px;height:42px;flex-basis:42px}.guest-topbar .brand-copy b{font-size:14px}
    .guest-nav-toggle{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-size:10px;font-weight:850}
    .guest-actions{display:none;order:3;flex:1 0 100%;width:100%;padding:11px 0 3px;border-top:1px solid var(--line);gap:8px;align-items:center;flex-wrap:wrap}.guest-actions.open{display:flex}.guest-actions .guest-admin-link,.guest-actions .guest-link{flex:1;min-width:110px;min-height:39px;padding:8px 9px;font-size:9px}.guest-actions .theme-toggle{margin-inline-start:auto;width:38px;height:38px;min-width:38px}.palette-inline{min-height:38px}.palette-dot-button{width:20px;height:20px}.palette-dot-fill{width:12px;height:12px}
    .guest-container:has(.lux-home-page){width:calc(100% - 28px);padding:24px 0 45px}.home-hero{min-height:0;padding:29px 23px 25px;border-radius:24px}.home-hero-grid{grid-template-columns:1fr;gap:0}.home-hero h1{font-size:32px}.home-hero-copy>p{font-size:11px}.home-visual{min-height:270px;transform:scale(.88);margin-top:7px}.home-benefits{grid-template-columns:1fr;margin:15px 0 39px;gap:10px}.benefit-lux-card{min-height:120px;padding:18px}.home-news-heading h2{font-size:22px}.home-news-panel{padding:26px 17px 17px;border-radius:22px}.news-panel-foot{flex-direction:column;gap:5px}
    .guest-container:has(.auth-stage){width:calc(100% - 28px);padding:22px 0 40px;min-height:calc(100vh - 165px)}
    .auth-stage{grid-template-columns:1fr;border-radius:24px}.auth-showcase{min-height:0!important;padding:28px 26px 20px}.showcase-content{max-width:none}.showcase-symbol{width:54px;height:54px;margin:13px 0 10px;border-radius:16px;font-size:28px}.showcase-content h2{font-size:21px;line-height:1.5;margin:0 0 4px}.showcase-gold-line{margin:8px 0}.showcase-content p{font-size:10px;line-height:1.9}.showcase-points{display:none}.showcase-trust-row{margin-top:13px;padding-top:11px;border-top:1px solid rgba(255,255,255,.12);gap:20px}.showcase-trust-row b{font-size:9px}.showcase-trust-row small{font-size:8px}.showcase-frame{inset:9px;border-radius:17px}.auth-card-lux{min-height:0!important;padding:30px 23px 28px}.auth-card-head .auth-mark{width:55px;height:55px;flex-basis:55px}.auth-card-head h1{font-size:23px}.auth-lead{font-size:10px;margin-bottom:14px}.auth-card-lux input.auth-number-input{font-size:19px!important}.auth-card-lux .otp-input{font-size:24px!important}.auth-security-note{margin-top:14px}.auth-trust-badges{gap:5px}.auth-trust-badges span{font-size:7px;padding:5px 8px}
}
@media(max-width:420px){
    .guest-topbar .brand-copy small{font-size:8px}.guest-nav-toggle{padding:7px 9px}.guest-actions{gap:6px}.guest-actions .guest-admin-link,.guest-actions .guest-link{min-width:0;padding-inline:7px;font-size:8px}.palette-inline{gap:3px;padding-inline:5px}.palette-dot-button{width:18px;height:18px}.palette-dot-fill{width:11px;height:11px}.home-hero h1{font-size:28px}.home-hero-actions{gap:14px}.home-visual{transform:scale(.79);margin-inline:-25px}.benefit-lux-card{gap:11px}.benefit-icon{width:41px;height:41px;flex-basis:41px}.auth-stage{border-radius:20px}.auth-showcase{padding-inline:20px}.auth-card-lux{padding-inline:19px}.auth-card-head h1{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.guest-body *,.guest-body *:before,.guest-body *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Server-side validation remains visible above public authentication cards. */
.guest-container>.server-error-summary{display:flex;align-items:flex-start;gap:11px;padding:13px 16px;border:1px solid rgba(211,76,93,.2);background:var(--danger-bg);color:var(--danger-ink)}
.guest-container>.server-error-summary ul{margin:5px 0 0;padding-right:18px;font-size:10px;line-height:1.9}
@media(max-width:420px){.palette-inline-app{min-height:31px;gap:2px;padding-inline:3px}.palette-inline-app .palette-dot-button{width:16px;height:16px}.palette-inline-app .palette-dot-fill{width:10px;height:10px}}

/* ─────────────────────────────────────────────────────────────
   Phase 27 — high-contrast luxury public and authentication UI
   ───────────────────────────────────────────────────────────── */
.guest-topbar{
    min-height:82px;height:auto;padding:12px clamp(18px,5vw,82px);
    border-bottom:1px solid rgba(201,168,106,.22);
    box-shadow:0 12px 35px rgba(8,18,44,.055)
}
.guest-topbar .brand-mark{width:49px;height:49px;flex-basis:49px;border:1px solid rgba(201,168,106,.42);background:linear-gradient(145deg,#fff1ce,#c9a86a 62%,#8c672a);color:#15284c;box-shadow:0 10px 24px rgba(151,111,41,.2)}
.guest-topbar .brand-copy b{font-size:17px;font-weight:950;letter-spacing:-.3px}
.guest-topbar .brand-copy small{font-size:11px;color:var(--muted);font-weight:650}
.guest-actions{gap:12px}
.guest-actions>a{font-size:13px;font-weight:850}
.guest-actions .guest-link{min-height:44px;padding:10px 19px;background:linear-gradient(135deg,#f7e9c5,#c9a86a 68%,#a77b32);border:1px solid rgba(128,91,32,.25);color:#17284a;box-shadow:0 10px 24px rgba(151,111,41,.2)}
.guest-actions .guest-admin-link{min-height:44px;padding:10px 17px;border-color:rgba(201,168,106,.35);background:var(--surface);color:var(--ink)}
.guest-actions>a:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(151,111,41,.16)}
.guest-container:has(.lux-home-page){width:min(1360px,94%);max-width:1360px;padding-top:36px;padding-bottom:66px}
.guest-container:has(.auth-stage){width:min(1240px,95%);max-width:1240px;align-items:stretch;padding:35px 0 48px}

/* Landing hero: both columns carry a clear visual purpose. */
.home-hero{
    display:block;min-height:0;padding:clamp(28px,4.2vw,58px);
    border:1px solid rgba(201,168,106,.62);border-radius:34px;
    background:
      radial-gradient(560px 420px at 14% 82%,rgba(201,168,106,.19),transparent 68%),
      radial-gradient(700px 440px at 90% 5%,rgba(var(--accent-rgb),.52),transparent 66%),
      linear-gradient(128deg,#060d24 0%,#0b1940 52%,#152e68 100%);
    box-shadow:0 36px 95px rgba(5,15,43,.27),0 0 0 1px rgba(255,255,255,.025) inset
}
.home-hero:before{inset:12px;border:1px solid rgba(232,207,151,.27);border-radius:24px}
.home-hero-grid{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:clamp(26px,4.2vw,58px);min-height:450px}
.home-hero-copy{max-width:650px;padding-inline:5px}
.hero-overline{font-size:12px;padding:9px 16px;color:#fff0c8;border-color:rgba(232,207,151,.42);background:rgba(255,255,255,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.home-hero h1{max-width:650px;font-size:clamp(38px,4.4vw,58px);line-height:1.55;letter-spacing:-1.6px;margin:21px 0 8px}
.home-hero h1 em{display:inline-block;font-style:normal;font-weight:950;background:linear-gradient(100deg,#fff2cf 0%,#e7c77f 42%,#c9a86a 72%,#fff0c7 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:0 8px 26px rgba(201,168,106,.12)}
.home-gold-divider{width:150px;height:14px;margin:12px 0 18px}
.home-gold-divider span{width:126px;height:4px;background:linear-gradient(90deg,#8c672a,#c9a86a 45%,#fff0c9);box-shadow:0 0 17px rgba(201,168,106,.24)}
.home-hero-copy>p{max-width:600px;color:#e0e8f7;font-size:15px;line-height:2.25;font-weight:500}
.home-hero-actions{gap:25px;margin-top:27px}
.home-primary{min-height:55px;padding:14px 27px;border:1px solid rgba(255,240,201,.72);border-radius:15px;background:linear-gradient(135deg,#fff0c7 0%,#d6b36d 58%,#b0873e 100%);color:#17284a;font-size:14px;font-weight:950;box-shadow:0 15px 32px rgba(201,168,106,.3),inset 0 1px 0 rgba(255,255,255,.86)}
.home-primary:hover{background:linear-gradient(135deg,#fff8e6,#e2c47f 62%,#c79c4f);color:#102044;transform:translateY(-3px);box-shadow:0 19px 36px rgba(201,168,106,.36)}
.home-admin-link{font-size:14px;color:#f5f0e5}
.home-admin-link span{color:#f0d7a2;font-size:19px}
.home-trust-row{gap:24px;margin-top:32px;color:#d4def0;font-size:12px}
.home-trust-row i{color:#f2d89e;font-size:14px}
.home-visual{min-height:445px;width:100%;transform:none;display:grid;place-items:center;padding:18px 5px}
.visual-ring{border-color:rgba(232,207,151,.24)}
.ring-a{width:min(94%,420px);box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 62px rgba(201,168,106,.035)}
.ring-b{width:min(72%,320px);border-color:rgba(232,207,151,.36)}
.hero-console{
    position:relative;z-index:2;width:min(100%,520px);padding:22px 23px 20px;
    overflow:hidden;border:1px solid rgba(232,207,151,.52);border-radius:27px;
    background:linear-gradient(148deg,rgba(255,255,255,.17),rgba(255,255,255,.075) 48%,rgba(9,24,57,.58));
    box-shadow:0 32px 76px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.25);
    backdrop-filter:blur(20px)
}
.hero-console:before{content:"";position:absolute;inset:9px;border:1px solid rgba(232,207,151,.19);border-radius:19px;pointer-events:none}
.hero-console:after{content:"";position:absolute;left:-85px;bottom:-155px;width:230px;height:230px;border:1px solid rgba(232,207,151,.18);border-radius:50%;box-shadow:0 0 0 18px rgba(255,255,255,.025),0 0 0 38px rgba(201,168,106,.025);pointer-events:none}
.hero-console-top,.hero-console-brand,.hero-console-secure{display:flex;align-items:center}
.hero-console-top{position:relative;z-index:1;justify-content:space-between;gap:12px;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.14)}
.hero-console-brand{gap:10px}
.hero-console-brand>span{display:grid;place-items:center;width:39px;height:39px;border:1px solid rgba(232,207,151,.45);border-radius:13px;background:linear-gradient(145deg,#fff0c7,#c9a86a);color:#15284c;font-size:22px;box-shadow:0 8px 20px rgba(201,168,106,.2)}
.hero-console-brand>div{display:grid;gap:1px}
.hero-console-brand b{color:#fff;font-size:13px;font-weight:950}
.hero-console-brand small{color:#d1dcec;font-size:11px}
.hero-console-secure{gap:7px;padding:7px 10px;border:1px solid rgba(232,207,151,.27);border-radius:99px;color:#f4dfae;font-size:11px;font-weight:850}
.hero-console-secure i{width:7px;height:7px;border-radius:50%;background:#79dfb3;box-shadow:0 0 0 4px rgba(121,223,179,.13)}
.hero-console-feature{position:relative;z-index:1;display:flex;align-items:center;gap:14px;margin:20px 0 16px;padding:15px;border:1px solid rgba(232,207,151,.25);border-radius:17px;background:linear-gradient(105deg,rgba(201,168,106,.18),rgba(255,255,255,.075))}
.hero-console-feature-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#fff0c7,#c9a86a);color:#15284c;font-size:24px;box-shadow:0 10px 23px rgba(201,168,106,.22)}
.hero-console-feature>div{display:grid;gap:3px;min-width:0}
.hero-console-feature small{color:#d9e3f3;font-size:11px}
.hero-console-feature strong{color:#fff;font-size:17px;font-weight:950}
.hero-console-arrow{margin-inline-start:auto;color:#f2d89e;font-size:26px}
.hero-console-modules{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.hero-console-module{display:grid;justify-items:start;gap:5px;min-width:0;padding:12px 10px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(6,17,43,.34)}
.hero-console-module .module-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(232,207,151,.26);border-radius:10px;background:rgba(201,168,106,.13);color:#f1d89f;font-size:16px}
.hero-console-module b{color:#fff;font-size:12px;font-weight:900}
.hero-console-module small{color:#cfdaeb;font-size:10px;line-height:1.7}
.hero-console-flow{position:relative;z-index:1;margin-top:17px;padding-top:15px;border-top:1px solid rgba(255,255,255,.14)}
.hero-console-flow-label,.hero-console-flow-captions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hero-console-flow-label span{color:#fff;font-size:12px;font-weight:900}
.hero-console-flow-label small{color:#d9c18f;font-size:10px}
.hero-console-flow-line{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:11px 0 6px;direction:rtl}
.hero-console-flow-line i{height:5px;border-radius:20px;background:linear-gradient(90deg,#c9a86a,#f4e3b8);box-shadow:0 0 12px rgba(201,168,106,.17)}
.hero-console-flow-captions span{color:#d3dff1;font-size:10px}
.floating-chip{padding:11px 15px;border-color:rgba(232,207,151,.44);background:rgba(7,19,47,.94);color:#fff4d8;font-size:11px;box-shadow:0 16px 34px rgba(0,0,0,.28)}
.floating-chip span{color:#f1d28e;font-size:16px}
.chip-top{top:0;right:-5px}.chip-bottom{bottom:0;left:-6px}

/* Benefit cards: visible gold numbering and stronger text hierarchy. */
.home-benefits{gap:18px;margin:25px 0 52px}
.benefit-lux-card{min-height:160px;padding:25px 23px;border-color:rgba(201,168,106,.48);background:linear-gradient(160deg,var(--surface),var(--surface-2));box-shadow:0 18px 42px rgba(11,26,74,.075),inset 0 1px 0 rgba(255,255,255,.85)}
.benefit-lux-card:after{content:"";position:absolute;left:0;bottom:0;width:38%;height:2px;background:linear-gradient(90deg,transparent,#c9a86a,transparent);opacity:.8}
.benefit-icon{width:54px;height:54px;flex-basis:54px;border-radius:17px;font-size:24px}
.benefit-lux-card b{font-size:15px;line-height:1.7}
.benefit-lux-card p{font-size:13px;line-height:2.05;color:var(--ink);opacity:.82}
.benefit-lux-card small{margin-top:11px;padding:5px 11px;font-size:10px;color:#70501d;background:rgba(201,168,106,.15);border-color:rgba(201,168,106,.45)}
html[data-theme="dark"] .benefit-lux-card small{color:#f3dba7}
.benefit-number{top:10px;left:17px;color:rgba(201,168,106,.66);font-size:45px;font-weight:950;text-shadow:0 5px 18px rgba(201,168,106,.13)}

/* Announcements and registration guide: compact empty state, useful next steps. */
.home-news-heading{margin-bottom:21px}
.news-eyebrow{font-size:12px;padding:7px 18px}
.home-news-heading h2{font-size:30px;line-height:1.6}
.home-news-heading p{font-size:13px;color:var(--muted);line-height:1.9}
.home-news-panel{padding:26px 30px 21px;border-radius:29px;border-color:rgba(201,168,106,.68);box-shadow:0 29px 75px rgba(8,17,43,.26),inset 0 1px 0 rgba(255,255,255,.07)}
.home-news-panel:before{inset:9px;border-color:rgba(232,207,151,.25)}
.news-panel-emblem{width:48px;height:48px;margin-bottom:7px;border-color:rgba(255,255,255,.55)}
.news-panel-caption{margin-bottom:15px;font-size:12px;color:#f3dfb2}
.announcement-card,.announcement-empty{padding:21px;border-color:rgba(232,207,151,.3);background:rgba(255,255,255,.095)}
.announcement-card h3{font-size:16px}
.announcement-card p{font-size:13px;line-height:2.1;color:#e2e9f5}
.announcement-card>a{font-size:12px}
.announcement-date{font-size:11px}
.announcement-empty-compact{display:flex;align-items:center;justify-content:flex-start;gap:14px;padding:13px 17px;margin-bottom:14px;border:1px solid rgba(232,207,151,.25);background:rgba(255,255,255,.065);text-align:right}
.announcement-empty-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border:1px solid rgba(232,207,151,.38);border-radius:13px;background:rgba(201,168,106,.15);color:#f2dca9;font-size:19px}
.announcement-empty-compact>div{display:grid;gap:2px}
.announcement-empty-compact b{font-size:13px;color:#fff}
.announcement-empty-compact small{font-size:12px;color:#d4deed;line-height:1.8}
.registration-guide{position:relative;z-index:1;padding:22px;border:1px solid rgba(232,207,151,.52);border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(248,244,234,.98));color:#182747;box-shadow:0 17px 40px rgba(0,0,0,.16)}
.registration-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.registration-guide-heading>div{display:grid;gap:2px}
.registration-guide-kicker{color:#8f6c2d;font-size:10px;font-weight:950}
.registration-guide-heading h3{margin:0;color:#14264a;font-size:19px;font-weight:950}
.registration-guide-heading>a,.registration-guide-foot>a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#74521d;font-size:12px;font-weight:950}
.registration-guide-heading>a:hover,.registration-guide-foot>a:hover{color:#a77b32}
.registration-guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.registration-guide-step{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:15px 13px;border:1px solid rgba(168,132,68,.22);border-radius:15px;background:linear-gradient(160deg,#fff,#faf7ef)}
.registration-guide-number{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border:1px solid rgba(168,132,68,.4);border-radius:12px;background:linear-gradient(145deg,#fff2cd,#d8bb7e);color:#634716;font-size:15px;font-weight:950;box-shadow:0 7px 16px rgba(168,132,68,.13)}
.registration-guide-step h4{margin:1px 0 5px;color:#152747;font-size:14px;font-weight:950}
.registration-guide-step p{margin:0;color:#49566d;font-size:12px;line-height:1.95}
.registration-guide-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(168,132,68,.23);color:#59657a;font-size:12px}
.news-panel-foot{margin-top:15px;padding-top:12px;color:#c0cde2;font-size:11px}

/* Authentication: premium two-column frame with readable form controls. */
.auth-stage{width:min(1160px,100%);grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);border:1px solid rgba(201,168,106,.52);border-radius:31px;background:var(--surface);box-shadow:0 35px 95px rgba(7,19,48,.15),0 0 0 5px rgba(201,168,106,.035);}
.compact-auth-stage{max-width:1060px}
.auth-showcase{display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:620px;padding:clamp(34px,4vw,54px);background:
    radial-gradient(440px 330px at 8% 85%,rgba(201,168,106,.2),transparent 70%),
    radial-gradient(370px 300px at 96% 4%,rgba(72,113,193,.24),transparent 70%),
    linear-gradient(148deg,#060e25 0%,#0c1d43 58%,#172f63 100%);}
.auth-showcase:before{content:"";position:absolute;z-index:-1;inset:12px;border:1px solid rgba(232,207,151,.26);border-radius:21px;pointer-events:none}
.auth-showcase:after{background:rgba(201,168,106,.2);filter:blur(70px)}
.showcase-frame{inset:16px;border-color:rgba(232,207,151,.28);border-radius:21px}
.showcase-kicker{font-size:13px;color:#f3dba7}
.showcase-symbol{width:68px;height:68px;margin:22px 0 17px;border:1px solid rgba(232,207,151,.48);border-radius:21px;background:linear-gradient(145deg,rgba(201,168,106,.28),rgba(255,255,255,.09));color:#f6dfa9;font-size:37px;box-shadow:0 16px 42px rgba(0,0,0,.22),0 0 24px rgba(201,168,106,.11)}
.showcase-content h2{margin-bottom:8px;color:#fff;font-size:clamp(25px,2.4vw,33px);line-height:1.7;font-weight:950}
.showcase-content h2 em{font-style:normal;background:linear-gradient(100deg,#fff0c9,#d4b16a 65%,#f8e6bd);-webkit-background-clip:text;background-clip:text;color:transparent}
.showcase-content p{max-width:430px;color:#e0e8f5;font-size:14px;line-height:2.2;font-weight:500}
.showcase-gold-line{width:90%;height:3px;margin:10px 0 16px;border-radius:99px;background:linear-gradient(90deg,#9b7430,#f4dfaa,#c9a86a);box-shadow:0 0 18px rgba(201,168,106,.25)}
.showcase-trust-row{gap:23px;margin-top:auto;padding-top:20px;border-top:1px solid rgba(232,207,151,.2);color:#d1dced}
.showcase-trust-row b{font-size:12px;color:#fff1cf}
.showcase-trust-row small{font-size:11px;color:#c4d2e8}
.auth-card-lux{min-height:620px;padding:clamp(32px,4.3vw,58px);background:linear-gradient(155deg,var(--surface) 0%,var(--surface) 75%,rgba(var(--accent-rgb),.035) 100%)}
.compact-auth-stage .auth-card-lux,.auth-stage-otp .auth-card-lux,.auth-stage-password .auth-card-lux,.auth-stage-activate .auth-card-lux,.auth-stage-pending .auth-card-lux{min-height:620px;padding:clamp(31px,4vw,50px)}
.compact-auth-stage .auth-showcase,.auth-stage-otp .auth-showcase,.auth-stage-password .auth-showcase,.auth-stage-activate .auth-showcase,.auth-stage-pending .auth-showcase{min-height:620px}
.auth-card-head{gap:17px;margin-bottom:18px}
.auth-card-head .auth-mark{width:58px;height:58px;flex-basis:58px;border:1px solid rgba(201,168,106,.4);border-radius:18px;background:linear-gradient(145deg,#fff0c7,#c9a86a);color:#17284a;font-size:27px;box-shadow:0 11px 25px rgba(201,168,106,.2)}
.auth-card-head h1{font-size:28px;line-height:1.5;font-weight:950;color:var(--ink)}
.auth-card-head .eyebrow{font-size:12px;color:#9a742f}
.auth-lead{margin:0 0 20px;color:var(--ink);opacity:.82;font-size:14px;line-height:2.15;font-weight:500}
.auth-card-lux .stack-form{gap:3px}
.auth-card-lux .field{gap:7px;margin:9px 0 12px;font-size:14px;font-weight:900;color:var(--ink)}
.auth-card-lux .field>span:first-child{font-size:14px}
.auth-card-lux .input-with-icon input,.auth-card-lux input.input,.auth-card-lux .field input:not([type=checkbox]){min-height:54px!important;padding-top:11px!important;padding-bottom:11px!important;border:1px solid var(--input-line)!important;border-radius:13px!important;background:var(--input)!important;color:var(--ink)!important;font-size:16px!important;font-weight:700;box-shadow:0 5px 15px rgba(10,25,55,.035)}
.auth-card-lux .input-with-icon input:focus,.auth-card-lux .field input:focus{border-color:#b99450!important;box-shadow:0 0 0 4px rgba(201,168,106,.15)!important}
.auth-card-lux input::placeholder{color:var(--muted)!important;opacity:.82!important;font-weight:500!important}
.auth-card-lux input.auth-number-input{min-height:55px!important;font-size:21px!important;font-weight:850!important;letter-spacing:.13em!important;color:var(--ink)!important}
.auth-card-lux input.auth-number-input::placeholder{font-size:14px!important;font-weight:600!important;letter-spacing:.055em!important;color:var(--muted)!important;opacity:.95!important}
.auth-card-lux input.auth-number-input.auth-email-identifier{font-size:16px!important;letter-spacing:normal!important}
.auth-card-lux .input-with-icon>span{color:#9a742f;font-size:16px}
.auth-input-helper,.auth-card-lux .field-hint{margin-top:2px;color:var(--muted);font-size:12px;font-weight:550;line-height:1.9}
.auth-card-lux .field-error{font-size:12px!important;font-weight:850!important;line-height:1.8}
.auth-card-lux .field.has-error input{border-color:#d94f5d!important;box-shadow:0 0 0 4px rgba(217,79,93,.10)!important}
.auth-card-lux .field.is-valid input{border-color:rgba(30,147,105,.65)!important}
.auth-submit{min-height:55px;margin-top:14px;padding:13px 20px;border:1px solid rgba(201,168,106,.45);border-radius:14px;background:linear-gradient(135deg,#fff0c7,#d7b571 62%,#b58a43);color:#17284a;font-size:14px;font-weight:950;box-shadow:0 13px 27px rgba(166,127,59,.2),inset 0 1px 0 rgba(255,255,255,.75)}
.auth-submit:hover{transform:translateY(-2px);background:linear-gradient(135deg,#fff7df,#e4c985 62%,#c49b52);box-shadow:0 17px 33px rgba(166,127,59,.25)}
.auth-security-note{justify-content:flex-start;align-items:flex-start;margin-top:18px;color:var(--muted);font-size:12px;line-height:1.9}
.auth-security-note span{color:#a77b32;font-size:16px}
.auth-switch,.auth-back-link,.auth-return-button{font-size:12px}
.auth-trust-badges{gap:8px;margin-top:14px}
.auth-trust-badges span{font-size:10px;padding:7px 10px;border-color:rgba(201,168,106,.26);background:rgba(201,168,106,.08);color:var(--ink)}
.auth-return-button{min-height:45px;border-color:rgba(201,168,106,.35);color:var(--ink)}
.auth-card-lux .otp-input{min-height:62px!important;border:1px solid rgba(201,168,106,.5)!important;border-radius:15px!important;background:linear-gradient(145deg,var(--surface-2),var(--surface))!important;color:var(--ink)!important;font-family:'Vazirmatn',sans-serif!important;font-size:29px!important;font-weight:950!important;letter-spacing:.42em!important}
.auth-card-lux .otp-field-icon{color:#a77b32}
.auth-card-lux .otp-countdown{padding:13px 15px;border-color:rgba(201,168,106,.38);background:linear-gradient(135deg,rgba(201,168,106,.10),var(--surface-2))}
.auth-card-lux .otp-countdown-label{font-size:12px;color:var(--ink)}
.auth-card-lux .otp-countdown-time{font-size:22px;color:#9a742f}
.auth-stage-pending .phone-pending-summary{padding:18px;border-color:rgba(201,168,106,.33);background:var(--surface-2)}
.auth-stage-pending .phone-pending-summary span{font-size:12px}
.auth-stage-pending .phone-pending-summary strong{font-size:13px}

/* Expanding, keyboard-friendly three-step authentication guide. */
.auth-journey{position:relative;z-index:2;margin:13px 0 18px}
.auth-journey-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.auth-journey-heading strong{color:#fff0cc;font-size:13px;font-weight:950}
.auth-journey-heading small{color:#c4d2e8;font-size:10px}
.auth-journey-list{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.auth-journey-item{min-width:0;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.055);transition:border-color .2s ease,background .2s ease,transform .2s ease}
.auth-journey-item.is-current{border-color:rgba(232,207,151,.58);background:linear-gradient(105deg,rgba(201,168,106,.19),rgba(255,255,255,.07));box-shadow:0 8px 24px rgba(0,0,0,.13)}
.auth-journey-item.is-complete{border-color:rgba(116,213,173,.28)}
.auth-journey-detail>summary{display:flex;align-items:center;gap:10px;padding:10px 11px;cursor:pointer;list-style:none}
.auth-journey-detail>summary::-webkit-details-marker{display:none}
.auth-journey-number{display:grid;place-items:center;flex:0 0 37px;width:37px;height:37px;border:1px solid rgba(232,207,151,.42);border-radius:12px;background:rgba(201,168,106,.16);color:#f4dfad;font-size:13px;font-weight:950}
.auth-journey-item.is-complete .auth-journey-number{border-color:rgba(116,213,173,.4);background:rgba(36,168,118,.14);color:#9ce7c4}
.auth-journey-copy{display:grid;gap:1px;flex:1;min-width:0}
.auth-journey-copy strong{color:#fff;font-size:12px;font-weight:900}
.auth-journey-copy small{color:#d1dced;font-size:10px;line-height:1.6}
.auth-journey-state{padding:4px 7px;border-radius:99px;background:rgba(255,255,255,.08);color:#cad6e9;font-size:9px;white-space:nowrap}
.auth-journey-item.is-current .auth-journey-state{background:rgba(201,168,106,.2);color:#ffe8b5}
.auth-journey-item.is-complete .auth-journey-state{background:rgba(36,168,118,.15);color:#a5ebcd}
.auth-journey-chevron{color:#e4c783;font-size:17px;transition:transform .2s ease}
.auth-journey-detail[open] .auth-journey-chevron{transform:rotate(180deg)}
.auth-journey-detail>p{margin:0;padding:0 13px 12px 53px;color:#e1e9f5;font-size:12px;line-height:1.95}
.auth-journey-detail>summary:focus-visible{outline:2px solid #f1d89f;outline-offset:-3px;border-radius:12px}

/* Visible server and client feedback, clearer theme tooltip. */
.guest-container>.server-error-summary{display:flex;align-items:flex-start;gap:12px;padding:13px 16px;border:1px solid rgba(197,57,72,.25);background:var(--danger-bg);color:var(--danger-ink);font-size:13px;line-height:1.9}
.guest-container>.server-error-summary ul{margin:5px 0 0;padding-right:19px}
.theme-toggle{position:relative;isolation:isolate;min-width:40px;min-height:40px;justify-content:center}
.theme-toggle:after{
    content:attr(data-tooltip);position:absolute;z-index:500;top:calc(100% + 10px);right:50%;transform:translate(50%,-4px);
    width:max-content;max-width:190px;padding:7px 11px;border:1px solid rgba(201,168,106,.45);border-radius:9px;
    background:#101f40;color:#fff3d4;font-family:'Vazirmatn',sans-serif;font-size:11px;font-weight:800;line-height:1.5;
    box-shadow:0 9px 23px rgba(5,15,43,.22);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility .16s ease
}
.theme-toggle:hover:after,.theme-toggle:focus-visible:after{opacity:1;visibility:visible;transform:translate(50%,0)}
.theme-toggle:focus-visible{outline:3px solid rgba(201,168,106,.32);outline-offset:3px}

@media(max-width:1050px){
    .home-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:22px}
    .home-hero h1{font-size:clamp(34px,4vw,48px)}
    .hero-console{padding:18px}
    .auth-stage{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}
    .auth-showcase{padding:32px}
    .auth-card-lux{padding:34px}
}
@media(max-width:780px){
    .guest-topbar{min-height:72px;padding:10px 17px}
    .guest-topbar .brand-mark{width:43px;height:43px;flex-basis:43px}
    .guest-topbar .brand-copy b{font-size:15px}
    .home-hero{padding:30px 25px;border-radius:26px}
    .home-hero-grid{grid-template-columns:1fr;gap:10px;min-height:0}
    .home-hero-copy{max-width:none}
    .home-hero h1{font-size:clamp(32px,7vw,43px)}
    .home-hero-copy>p{font-size:14px;line-height:2.1}
    .home-visual{min-height:0;padding:36px 10px 34px}
    .hero-console{width:min(100%,560px)}
    .home-benefits{grid-template-columns:1fr;gap:11px;margin:18px 0 38px}
    .benefit-lux-card{min-height:0;padding:20px}
    .home-news-heading h2{font-size:25px}
    .registration-guide-steps{grid-template-columns:1fr}
    .registration-guide-step{padding:13px}
    .auth-stage{grid-template-columns:1fr;border-radius:25px}
    .auth-showcase,.compact-auth-stage .auth-showcase,.auth-stage-otp .auth-showcase,.auth-stage-password .auth-showcase,.auth-stage-activate .auth-showcase,.auth-stage-pending .auth-showcase{min-height:0;padding:27px 25px 21px}
    .auth-card-lux,.compact-auth-stage .auth-card-lux,.auth-stage-otp .auth-card-lux,.auth-stage-password .auth-card-lux,.auth-stage-activate .auth-card-lux,.auth-stage-pending .auth-card-lux{min-height:0;padding:29px 25px}
    .showcase-symbol{width:52px;height:52px;margin:13px 0 10px;font-size:28px}
    .showcase-content h2{font-size:23px;line-height:1.55;margin-bottom:5px}
    .showcase-content p{font-size:13px;line-height:2}
    .auth-journey{margin:12px 0 13px}
    .auth-journey-heading{align-items:flex-start;flex-direction:column;gap:2px}
    .auth-journey-detail>p{font-size:11px}
    .showcase-trust-row{margin-top:13px;padding-top:12px;gap:15px}
    .showcase-trust-row b{font-size:10px}
    .showcase-trust-row small{font-size:9px}
}
@media(max-width:520px){
    .guest-container:has(.lux-home-page){width:calc(100% - 24px);padding:20px 0 38px}
    .guest-container:has(.auth-stage){width:calc(100% - 20px);padding:18px 0 32px}
    .home-hero{padding:25px 19px;border-radius:22px}
    .home-hero:before{inset:8px;border-radius:15px}
    .home-hero h1{font-size:31px;line-height:1.55}
    .home-hero-copy>p{font-size:13px}
    .home-hero-actions{gap:15px;margin-top:20px}
    .home-primary{min-height:49px;padding:11px 18px;font-size:13px}
    .home-admin-link{font-size:12px}
    .home-trust-row{gap:9px 14px;margin-top:20px;font-size:11px}
    .home-visual{padding:34px 0 32px}
    .hero-console{padding:15px;border-radius:20px}
    .hero-console-top{padding-bottom:12px}
    .hero-console-brand b{font-size:11px}
    .hero-console-brand small{font-size:9px}
    .hero-console-secure{font-size:9px;padding:6px 8px}
    .hero-console-feature{margin:13px 0 11px;padding:11px;gap:10px}
    .hero-console-feature-icon{width:40px;height:40px;flex-basis:40px;font-size:20px}
    .hero-console-feature strong{font-size:14px}
    .hero-console-feature small{font-size:9px}
    .hero-console-modules{grid-template-columns:1fr;gap:7px}
    .hero-console-module{grid-template-columns:30px 1fr;align-items:center;gap:2px 9px;padding:8px 10px}
    .hero-console-module .module-icon{grid-row:span 2}
    .hero-console-module b{font-size:11px}
    .hero-console-module small{font-size:9px}
    .hero-console-flow{margin-top:12px;padding-top:11px}
    .floating-chip{font-size:9px;padding:8px 10px}
    .chip-top{right:-2px;top:2px}.chip-bottom{left:-2px;bottom:0}
    .benefit-lux-card{gap:11px;padding:17px}
    .benefit-icon{width:45px;height:45px;flex-basis:45px}
    .benefit-lux-card b{font-size:14px}
    .benefit-lux-card p{font-size:12px}
    .benefit-number{font-size:37px;left:9px}
    .home-news-heading h2{font-size:22px}
    .home-news-heading p{font-size:12px}
    .home-news-panel{padding:21px 14px 15px;border-radius:21px}
    .registration-guide{padding:15px;border-radius:16px}
    .registration-guide-heading{align-items:flex-start;flex-direction:column;gap:8px}
    .registration-guide-heading h3{font-size:16px}
    .registration-guide-step h4{font-size:13px}
    .registration-guide-step p{font-size:11px}
    .registration-guide-foot{align-items:flex-start;flex-direction:column;font-size:11px}
    .announcement-empty-compact{align-items:flex-start;padding:11px}
    .announcement-empty-compact b{font-size:12px}
    .announcement-empty-compact small{font-size:11px}
    .auth-showcase,.compact-auth-stage .auth-showcase,.auth-stage-otp .auth-showcase,.auth-stage-password .auth-showcase,.auth-stage-activate .auth-showcase,.auth-stage-pending .auth-showcase{padding:22px 19px 17px}
    .auth-card-lux,.compact-auth-stage .auth-card-lux,.auth-stage-otp .auth-card-lux,.auth-stage-password .auth-card-lux,.auth-stage-activate .auth-card-lux,.auth-stage-pending .auth-card-lux{padding:24px 19px}
    .auth-card-head h1{font-size:23px}
    .auth-lead{font-size:13px;line-height:2}
    .auth-card-lux .field>span:first-child{font-size:13px}
    .auth-card-lux input.auth-number-input{font-size:19px!important;letter-spacing:.1em!important}
    .auth-card-lux .otp-input{font-size:25px!important;letter-spacing:.32em!important}
    .auth-journey-detail>summary{gap:8px;padding:8px}
    .auth-journey-number{width:33px;height:33px;flex-basis:33px;font-size:11px}
    .auth-journey-copy strong{font-size:11px}
    .auth-journey-copy small{font-size:9px}
    .auth-journey-state{font-size:8px;padding:3px 6px}
    .auth-journey-detail>p{padding:0 10px 10px 44px;font-size:10px}
    .theme-toggle:after{right:auto;left:0;transform:translate(0,-4px)}
    .theme-toggle:hover:after,.theme-toggle:focus-visible:after{transform:translate(0,0)}
}
@media(prefers-reduced-motion:reduce){.hero-console,.benefit-lux-card,.auth-journey-item,.theme-toggle:after{transition:none!important}}

/* Final visual checks: full-width registration guide and explicit gold CTAs. */
.announcement-empty-compact,.registration-guide{grid-column:1/-1}
.home-hero .button.button-primary.home-primary{background:linear-gradient(135deg,#fff0c7 0%,#d7b571 62%,#b58a43 100%)!important;color:#17284a!important;border-color:rgba(201,168,106,.55)!important}
.home-hero .button.button-primary.home-primary:hover{background:linear-gradient(135deg,#fff8e6,#e4c985 62%,#c49b52)!important;color:#102044!important}
.auth-stage .button.button-primary.auth-submit{background:linear-gradient(135deg,#fff0c7 0%,#d7b571 62%,#b58a43 100%)!important;color:#17284a!important;border-color:rgba(201,168,106,.55)!important}
.auth-stage .button.button-primary.auth-submit:hover{background:linear-gradient(135deg,#fff8e6,#e4c985 62%,#c49b52)!important;color:#102044!important}
.theme-icon{display:inline-grid;place-items:center;width:19px;height:19px;line-height:1}
.theme-glyph{display:block;width:17px;height:17px}
.theme-glyph-sun{display:none}
.theme-toggle.is-dark .theme-glyph-moon{display:none}
.theme-toggle.is-dark .theme-glyph-sun{display:block}

/* Phase 27.1 — final legibility pass for compact supporting copy. */
.guest-topbar .brand-copy small{font-size:12px}
.hero-console-brand small,.hero-console-secure,.hero-console-feature small,.hero-console-module small,
.hero-console-flow-label small,.hero-console-flow-captions span,.floating-chip{font-size:12px}
.hero-console-module b{font-size:13px}
.benefit-lux-card small{font-size:11px}
.registration-guide-step p{font-size:13px}
.auth-journey-heading small{font-size:12px}
.auth-journey-copy strong{font-size:13px}
.auth-journey-copy small{font-size:12px}
.auth-journey-state{font-size:10px}
.auth-journey-detail>p{font-size:13px}
.auth-input-helper,.auth-card-lux .field-hint{font-size:13px}
.auth-security-note{font-size:13px}
.auth-trust-badges span{font-size:11px}
@media(max-width:780px){
    .hero-console-brand small,.hero-console-secure,.hero-console-feature small,.hero-console-module small,
    .hero-console-flow-label small,.hero-console-flow-captions span,.floating-chip{font-size:11px}
    .registration-guide-step p{font-size:12px}
    .auth-journey-copy strong{font-size:12px}
    .auth-journey-copy small{font-size:11px}
    .auth-journey-state{font-size:10px}
    .auth-journey-detail>p{font-size:12px}
}
@media(max-width:520px){
    .auth-journey-heading small{font-size:11px}
    .auth-input-helper,.auth-card-lux .field-hint{font-size:12px}
}


/* ─────────────────────────────────────────────────────────────
   Phase 28 — functional brand palettes and private management entry
   ───────────────────────────────────────────────────────────── */
html[data-palette="royal"]{
    --accent:#2858c7;--accent-soft:#91b3ff;--accent-deep:#173b91;
    --accent-contrast:#0a1c4a;--accent-rgb:40,88,199;--accent-soft-rgb:145,179,255;
    --accent-light:#dbe6ff;--accent-button-text:#fff;--accent-on-soft:#173b91;
    --palette-wash:rgba(40,88,199,.12);--palette-border:rgba(40,88,199,.36)
}
html[data-palette="emerald"]{
    --accent:#078566;--accent-soft:#8ce0c4;--accent-deep:#075a48;
    --accent-contrast:#03291f;--accent-rgb:7,133,102;--accent-soft-rgb:140,224,196;
    --accent-light:#d9f7ed;--accent-button-text:#fff;--accent-on-soft:#075a48;
    --palette-wash:rgba(7,133,102,.13);--palette-border:rgba(7,133,102,.38)
}
html[data-palette="gold"]{
    --accent:#b17a24;--accent-soft:#f0d18a;--accent-deep:#76501a;
    --accent-contrast:#2b1d05;--accent-rgb:177,122,36;--accent-soft-rgb:240,209,138;
    --accent-light:#fbefd2;--accent-button-text:#241805;--accent-on-soft:#76501a;
    --palette-wash:rgba(177,122,36,.14);--palette-border:rgba(177,122,36,.42)
}

/* The selected brand color is deliberately visible outside the three small swatches. */
:root{--accent-button-text:#fff;--accent-on-soft:var(--accent-deep);--palette-wash:rgba(var(--accent-rgb),.12);--palette-border:rgba(var(--accent-rgb),.34)}
.brand-mark,.guest-topbar .brand-mark,.guest-footer .brand-mark{
    border-color:var(--palette-border)!important;
    background:linear-gradient(145deg,var(--accent-soft),var(--accent) 58%,var(--accent-deep))!important;
    color:var(--accent-button-text)!important;
    box-shadow:0 10px 26px rgba(var(--accent-rgb),.25)!important
}
.eyebrow,.page-heading .eyebrow,.section-heading .eyebrow{color:var(--accent)!important}
.button-primary,.action-button-primary,.form-actions .button-primary,.modal-footer .button-primary{
    background:linear-gradient(125deg,var(--accent-soft),var(--accent) 56%,var(--accent-deep))!important;
    border-color:var(--palette-border)!important;color:var(--accent-button-text)!important;
    box-shadow:0 9px 22px rgba(var(--accent-rgb),.25),inset 0 1px 0 rgba(255,255,255,.25)!important
}
.button-primary:hover,.action-button-primary:hover,.form-actions .button-primary:hover,.modal-footer .button-primary:hover{
    background:linear-gradient(125deg,var(--accent),var(--accent-deep))!important
}
input:focus,select:focus,textarea:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px rgba(var(--accent-rgb),.13)!important}
::selection{background:rgba(var(--accent-rgb),.22);color:var(--ink)}

/* Public header and member CTA follow the selected palette. */
.guest-topbar{border-bottom-color:rgba(var(--accent-rgb),.24)!important}
.guest-actions .guest-link{
    background:linear-gradient(135deg,var(--accent-soft),var(--accent) 62%,var(--accent-deep))!important;
    border-color:var(--palette-border)!important;color:var(--accent-button-text)!important;
    box-shadow:0 10px 24px rgba(var(--accent-rgb),.22)!important
}
.guest-actions .guest-link:hover{box-shadow:0 14px 30px rgba(var(--accent-rgb),.3)!important}

/* Homepage surfaces, decorative metal, and headings all react to palette changes. */
.home-hero{border-color:rgba(var(--accent-rgb),.58)!important;background:
    radial-gradient(560px 420px at 14% 82%,rgba(var(--accent-rgb),.2),transparent 68%),
    radial-gradient(700px 440px at 90% 5%,rgba(var(--accent-rgb),.52),transparent 66%),
    linear-gradient(128deg,#060d24 0%,#0b1940 52%,#152e68 100%)!important}
.home-hero:before{border-color:rgba(var(--accent-rgb),.34)!important}
.home-hero h1 em,.home-news-heading h2 em,.showcase-content h2 em{
    background:linear-gradient(100deg,#fff 0%,var(--accent-soft) 42%,var(--accent) 74%,#fff 100%)!important;
    -webkit-background-clip:text!important;background-clip:text!important;color:transparent!important
}
.home-gold-divider span,.showcase-gold-line{background:linear-gradient(90deg,var(--accent-deep),var(--accent),var(--accent-soft))!important;box-shadow:0 0 17px rgba(var(--accent-rgb),.22)!important}
.home-primary,.home-hero .button.button-primary.home-primary{
    background:linear-gradient(135deg,var(--accent-soft),var(--accent) 58%,var(--accent-deep))!important;
    color:var(--accent-button-text)!important;border-color:var(--palette-border)!important;
    box-shadow:0 15px 32px rgba(var(--accent-rgb),.32),inset 0 1px 0 rgba(255,255,255,.35)!important
}
.home-primary:hover,.home-hero .button.button-primary.home-primary:hover{background:linear-gradient(135deg,var(--accent),var(--accent-deep))!important;color:var(--accent-button-text)!important}
.ring-b,.visual-card,.floating-chip,.hero-console,.hero-console:before,.hero-console-brand>span,.hero-console-feature,.hero-console-feature-icon,.hero-console-module .module-icon{
    border-color:rgba(var(--accent-rgb),.36)!important
}
.hero-console-brand>span,.hero-console-feature-icon{background:linear-gradient(135deg,var(--accent-soft),var(--accent) 65%,var(--accent-deep))!important;color:var(--accent-button-text)!important}
.hero-console-feature{background:linear-gradient(105deg,rgba(var(--accent-rgb),.22),rgba(255,255,255,.075))!important}
.hero-console-module .module-icon,.hero-console-arrow,.hero-console-flow-label small{color:var(--accent-soft)!important}
.floating-chip span{color:var(--accent-soft)!important}
.benefit-lux-card,.home-news-panel{border-color:rgba(var(--accent-rgb),.42)!important}
.benefit-lux-card:before,.benefit-lux-card:after{background:linear-gradient(90deg,transparent,var(--accent-soft),var(--accent),transparent)!important}
.benefit-icon{border-color:rgba(var(--accent-rgb),.42)!important;color:var(--accent-soft)!important}
.benefit-lux-card small{color:var(--accent-deep)!important;background:var(--palette-wash)!important;border-color:var(--palette-border)!important}
html[data-theme="dark"] .benefit-lux-card small{color:var(--accent-soft)!important}
.benefit-number{color:rgba(var(--accent-rgb),.54)!important;text-shadow:0 5px 18px rgba(var(--accent-rgb),.18)!important}
.news-eyebrow{border-color:var(--palette-border)!important;background:linear-gradient(180deg,var(--surface),var(--surface-2))!important;color:var(--accent-deep)!important;box-shadow:0 8px 20px rgba(var(--accent-rgb),.13)!important}
html[data-theme="dark"] .news-eyebrow{color:var(--accent-soft)!important}
.home-news-panel{background:radial-gradient(600px 300px at 50% 0%,rgba(var(--accent-rgb),.24),transparent 72%),linear-gradient(135deg,#060d24 0%,#0b1940 58%,#173987 125%)!important}
.home-news-panel:before{border-color:rgba(var(--accent-rgb),.3)!important}
.news-panel-orb-two{background:var(--accent)!important;opacity:.2!important}
.news-panel-emblem{border-color:rgba(var(--accent-soft-rgb),.58)!important;background:linear-gradient(135deg,var(--accent-soft),var(--accent) 62%,var(--accent-deep))!important;color:var(--accent-button-text)!important;box-shadow:0 12px 30px rgba(var(--accent-rgb),.28),inset 0 1px 0 #fff!important}
.news-panel-caption,.announcement-date,.announcement-card>a,.announcement-empty>span{color:var(--accent-soft)!important}
.announcement-card,.announcement-empty{border-color:rgba(var(--accent-rgb),.31)!important}
.announcement-card-image{border-color:rgba(var(--accent-rgb),.42)!important}
.registration-guide{border-color:var(--palette-border)!important}
.registration-guide-kicker,.registration-guide-heading>a,.registration-guide-foot>a{color:var(--accent-deep)!important}
.registration-guide-number{border-color:var(--palette-border)!important;background:linear-gradient(145deg,var(--accent-light),var(--accent-soft))!important;color:var(--accent-deep)!important;box-shadow:0 7px 16px rgba(var(--accent-rgb),.13)!important}
.registration-guide-step{border-color:rgba(var(--accent-rgb),.2)!important}
.registration-guide-foot{border-top-color:rgba(var(--accent-rgb),.22)!important}

/* Authentication cards: remove fixed gold-only treatments and use active brand palette. */
.auth-stage{border-color:rgba(var(--accent-rgb),.45)!important;box-shadow:0 35px 95px rgba(7,19,48,.15),0 0 0 5px rgba(var(--accent-rgb),.045)!important}
.auth-showcase{background:
    radial-gradient(550px 400px at 85% 4%,rgba(var(--accent-rgb),.58),transparent 65%),
    radial-gradient(380px 380px at 6% 96%,rgba(var(--accent-rgb),.23),transparent 68%),
    linear-gradient(155deg,#060d24 0%,#0b1a43 50%,#17378c 118%)!important}
.auth-showcase:before,.showcase-frame{border-color:rgba(var(--accent-rgb),.34)!important}
.auth-showcase:after{background:rgba(var(--accent-rgb),.22)!important}
.showcase-kicker{color:var(--accent-soft)!important}
.showcase-kicker:before{background:var(--accent)!important}
.showcase-symbol{border-color:rgba(var(--accent-rgb),.5)!important;color:var(--accent-soft)!important;box-shadow:0 16px 42px rgba(0,0,0,.22),0 0 24px rgba(var(--accent-rgb),.16)!important}
.showcase-trust-row{border-top-color:rgba(var(--accent-rgb),.28)!important}
.showcase-trust-row b{color:var(--accent-soft)!important}
.auth-card-lux:before{background:linear-gradient(90deg,transparent,var(--accent-deep) 25%,var(--accent-soft) 50%,var(--accent) 75%,transparent)!important}
.auth-card-head .auth-mark{border-color:var(--palette-border)!important;background:linear-gradient(145deg,var(--accent-soft),var(--accent) 65%,var(--accent-deep))!important;color:var(--accent-button-text)!important;box-shadow:0 11px 25px rgba(var(--accent-rgb),.24)!important}
.auth-card-head .eyebrow{color:var(--accent)!important}
.auth-card-lux .input-with-icon input:focus,.auth-card-lux .field input:focus{border-color:var(--accent)!important;box-shadow:0 0 0 4px rgba(var(--accent-rgb),.15)!important}
.auth-card-lux .input-with-icon>span,.auth-card-lux .otp-field-icon{border-color:rgba(var(--accent-rgb),.22)!important;background:linear-gradient(145deg,var(--accent-light),var(--surface-2))!important;color:var(--accent-deep)!important}
.auth-submit,.auth-stage .button.button-primary.auth-submit{
    background:linear-gradient(135deg,var(--accent-soft),var(--accent) 60%,var(--accent-deep))!important;
    border-color:var(--palette-border)!important;color:var(--accent-button-text)!important;
    box-shadow:0 13px 27px rgba(var(--accent-rgb),.24),inset 0 1px 0 rgba(255,255,255,.34)!important
}
.auth-submit:hover,.auth-stage .button.button-primary.auth-submit:hover{background:linear-gradient(135deg,var(--accent),var(--accent-deep))!important;color:var(--accent-button-text)!important;box-shadow:0 17px 33px rgba(var(--accent-rgb),.3)!important}
.auth-security-note span,.auth-card-lux .input-with-icon>span{color:var(--accent)!important}
.auth-trust-badges span{border-color:var(--palette-border)!important;background:var(--palette-wash)!important}
.auth-return-button{border-color:var(--palette-border)!important}
.auth-card-lux .otp-input{border-color:var(--palette-border)!important}
.auth-card-lux .otp-countdown{border-color:var(--palette-border)!important;background:linear-gradient(135deg,var(--palette-wash),var(--surface-2))!important}
.auth-card-lux .otp-countdown-time{color:var(--accent)!important}
.auth-stage-pending .phone-pending-summary{border-color:var(--palette-border)!important}
.auth-journey-heading strong{color:var(--accent-soft)!important}
.auth-journey-item.is-current{border-color:rgba(var(--accent-rgb),.58)!important;background:linear-gradient(105deg,rgba(var(--accent-rgb),.25),rgba(255,255,255,.07))!important}
.auth-journey-number{border-color:rgba(var(--accent-rgb),.48)!important;background:rgba(var(--accent-rgb),.2)!important;color:var(--accent-soft)!important}
.auth-journey-item.is-current .auth-journey-state{background:rgba(var(--accent-rgb),.24)!important;color:var(--accent-soft)!important}
.auth-journey-chevron{color:var(--accent-soft)!important}
.auth-journey-detail>summary:focus-visible{outline-color:var(--accent-soft)!important}
.theme-toggle:after{border-color:var(--palette-border)!important}
.theme-toggle:focus-visible{outline-color:rgba(var(--accent-rgb),.35)!important}

/* Public management entry points are intentionally omitted; direct login remains available to staff. */
.guest-actions .guest-admin-link,.home-admin-link{display:none!important}

/* The announcements title and its accent rule remain optically centered in every palette. */
.home-news-heading{text-align:center!important}
.home-news-heading h2{text-align:center!important}
.home-news-heading .home-gold-divider-center{margin-inline:auto!important;justify-content:center!important}
