/* Yasin 4.9.54 — unified multi-role identity and context switcher */
.yr-context-switch{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:6px 11px;border:1px solid rgba(148,163,184,.28);border-radius:13px;text-decoration:none!important;white-space:nowrap;transition:.18s ease;box-sizing:border-box}
.yr-context-switch:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(15,23,42,.08)}
.yr-context-switch svg{flex:0 0 auto}.yr-context-switch span{display:grid;line-height:1.3}.yr-context-switch b{font-size:12px;font-weight:900}.yr-context-switch small{font-size:9px;max-width:116px;overflow:hidden;text-overflow:ellipsis;color:inherit;opacity:.68}
.yr-context-switch-company{color:#dbeafe;background:rgba(59,130,246,.13);border-color:rgba(96,165,250,.26)}
.yr-context-switch-customer,.yr-context-switch-merchant{color:#0f172a;background:#fff;border-color:#e2e8f0}
.yr-context-switch-investor{color:#e0f2fe;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16)}
.yr-context-menu-item svg{width:18px;height:18px;flex:none}
.ip-header-actions{display:flex;align-items:center;gap:10px}

.yr-auth-body{margin:0;background:#f4f7fb!important;color:#0f172a}
.yr-page{width:min(1120px,calc(100% - 30px));margin:0 auto;padding:22px 0 42px;font-family:IRANSans,Tahoma,Arial,sans-serif}
.yr-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.yr-brand{display:flex;align-items:center;gap:11px;color:#0f172a;text-decoration:none}.yr-brand>span{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;color:#fff;background:linear-gradient(145deg,#2563eb,#4f46e5);box-shadow:0 10px 25px rgba(37,99,235,.25)}
.yr-brand div{display:grid}.yr-brand b{font-size:15px;font-weight:950}.yr-brand small{font-size:11px;color:#64748b;font-weight:700;margin-top:2px}
.yr-logout{color:#475569;text-decoration:none;border:1px solid #dbe3ee;background:#fff;padding:10px 14px;border-radius:12px;font-size:12px;font-weight:850}
.yr-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 30px;margin-bottom:20px;border-radius:25px;color:#fff;background:radial-gradient(circle at 9% 15%,rgba(96,165,250,.4),transparent 31%),linear-gradient(132deg,#0f172a,#172554 58%,#312e81);box-shadow:0 18px 46px rgba(15,23,42,.16)}
.yr-hero span{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.11);font-size:10px;font-weight:900}.yr-hero h1{font-size:26px;line-height:1.5;margin:7px 0 5px;font-weight:950}.yr-hero p{margin:0;color:#cbd5e1;font-size:12px;line-height:1.9;font-weight:650}
.yr-count{flex:0 0 auto;display:grid;place-items:center;width:96px;height:96px;border-radius:24px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px)}.yr-count b{font-size:30px;line-height:1;font-weight:950}.yr-count small{font-size:10px;color:#bfdbfe;font-weight:850}
.yr-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.yr-role-card{position:relative;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;padding:18px;border:1px solid #e3e9f1;border-radius:22px;background:#fff;box-shadow:0 9px 28px rgba(15,23,42,.045);overflow:hidden}
.yr-role-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#cbd5e1}.yr-role-card.is-active{border-color:#93c5fd;box-shadow:0 11px 30px rgba(37,99,235,.1)}.yr-role-card.is-active:before{background:#2563eb}
.yr-role-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe}
.yr-role-copy{min-width:0}.yr-role-copy h2{font-size:15px;font-weight:950;margin:3px 0 4px}.yr-role-copy>b{display:block;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-role-copy p{margin:4px 0 0;color:#64748b;font-size:11px;line-height:1.7;font-weight:650}
.yr-role-badges{min-height:21px;display:flex;align-items:center;gap:5px}.yr-role-badges span{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900}.yr-role-badges .active{color:#1d4ed8;background:#dbeafe}.yr-role-badges .default{color:#047857;background:#d1fae5}
.yr-role-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:8px;padding-top:4px}.yr-role-actions button{min-height:42px;border-radius:13px;border:0;cursor:pointer;font-family:inherit;font-weight:900;font-size:11px;transition:.16s ease}.yr-role-actions button:hover{transform:translateY(-1px)}
.yr-enter{color:#fff;background:linear-gradient(135deg,#2563eb,#4f46e5);box-shadow:0 8px 20px rgba(37,99,235,.18)}.yr-default{display:flex;align-items:center;justify-content:center;gap:6px;color:#334155;background:#f1f5f9;padding:0 13px}.yr-default svg{width:16px}
.yr-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;padding:14px 17px;border:1px dashed #cbd5e1;border-radius:17px;background:#fff}.yr-foot p{margin:0;color:#64748b;font-size:11px;line-height:1.8;font-weight:650}.yr-foot form{margin:0}.yr-clear-default{white-space:nowrap;border:0;background:#fff1f2;color:#be123c;border-radius:11px;padding:9px 12px;font-family:inherit;font-size:10px;font-weight:900;cursor:pointer}
.yr-flash{margin:0 0 14px;padding:12px 15px;border-radius:14px;background:#fff;border:1px solid #dbe3ee;font-size:12px;font-weight:800}.yr-flash .ok{color:#047857}.yr-flash .err{color:#b91c1c}

@media(max-width:980px){.yr-context-switch span{display:none}.yr-context-switch{width:40px;padding:0;justify-content:center;border-radius:12px}.cc-topbar-actions .yr-context-switch{display:inline-flex}.yr-role-grid{grid-template-columns:1fr}}
@media(max-width:700px){.yr-page{width:min(100% - 20px,1120px);padding-top:12px}.yr-top{margin-bottom:13px}.yr-brand>span{width:40px;height:40px;border-radius:13px}.yr-brand b{font-size:13px}.yr-brand small{font-size:9px}.yr-logout{padding:9px 11px;font-size:10px}.yr-hero{padding:20px;border-radius:21px;align-items:flex-start}.yr-hero h1{font-size:20px}.yr-hero p{font-size:10px}.yr-count{width:70px;height:70px;border-radius:19px}.yr-count b{font-size:23px}.yr-role-card{padding:14px;border-radius:19px;gap:11px}.yr-role-icon{width:44px;height:44px;border-radius:14px}.yr-role-actions{grid-template-columns:1fr}.yr-default{min-height:38px!important}.yr-foot{display:grid}.yr-clear-default{width:100%}.cp-nav-left .yr-context-switch{display:inline-flex}.mcp-top-actions .yr-context-switch{display:inline-flex}.ip-header-actions .yr-context-switch{display:inline-flex}}
@media(max-width:470px){.yr-hero{display:grid}.yr-count{position:absolute;opacity:0;pointer-events:none}.yr-role-card{grid-template-columns:auto minmax(0,1fr)}.yr-role-copy h2{font-size:14px}.yr-role-actions button{font-size:10px}.cp-nav-left .yr-context-switch{width:38px;height:38px}.cc-topbar-actions .yr-context-switch{width:38px;height:38px}.mcp-top-actions .yr-context-switch{width:38px;height:38px}.ip-header-actions .yr-context-switch{width:38px;height:38px}.ip-header-actions{gap:6px}}


/* 4.9.55 — stronger header icon contrast for role switch button */
.yr-context-switch{box-shadow:0 8px 18px rgba(15,23,42,.07)}
.yr-context-switch svg{width:18px;height:18px;color:currentColor;opacity:1}
.yr-context-switch-company{color:#1d4ed8;background:linear-gradient(135deg,#edf4ff,#ffffff);border-color:#bfd4ff}
.yr-context-switch-customer,.yr-context-switch-merchant{color:#0f172a;background:linear-gradient(135deg,#ffffff,#f8fbff);border-color:#dbe5f1}
.yr-context-switch-investor{color:#1e3a8a;background:linear-gradient(135deg,#eef4ff,#ffffff);border-color:#c7d2fe}
.yr-context-switch:hover{border-color:#93c5fd;background:#fff;box-shadow:0 10px 24px rgba(37,99,235,.12)}
@media(max-width:980px){.cc-topbar-actions .yr-context-switch,.ip-header-actions .yr-context-switch,.mcp-top-actions .yr-context-switch,.cp-nav-left .yr-context-switch{width:40px;height:40px;padding:0;justify-content:center;box-shadow:0 8px 18px rgba(15,23,42,.08)}}
@media(max-width:470px){.cc-topbar-actions .yr-context-switch,.ip-header-actions .yr-context-switch,.mcp-top-actions .yr-context-switch,.cp-nav-left .yr-context-switch{width:38px;height:38px}}
