/* Authenticated dealer dashboard. Login and other partner portals keep their own styles. */
.dealer-page:has([data-portal]:not([hidden])){background:#f7faff;color:#071641;background-image:radial-gradient(ellipse at -20% 60%,#dcecff 0,transparent 45%),radial-gradient(ellipse at 110% 25%,#e8f2ff 0,transparent 45%);background-attachment:fixed}
.dealer-page .portal:has([data-portal]:not([hidden])){max-width:none;padding:0 0 40px}
.dealer-page .portal-dashboard{--ink:#071641;--muted:#587096;--line:#dbe6f5;--green:#005cf4;--green-deep:#004bcb;max-width:1480px;width:calc(100% - 11.5%);margin:auto;padding:136px 0 0;gap:20px;font-family:Arial,Helvetica,sans-serif}
.dealer-page .portal-top{position:absolute;top:0;left:0;width:100%;height:103px;padding:14px max(5.75%,calc((100% - 1370px)/2));background:#fff;box-shadow:0 7px 24px #173a6a09;flex-wrap:nowrap}
.dealer-page .portal-top .admin-brand{gap:28px;color:#071641}
.dealer-page .portal-top .brand-mark{width:92px;height:76px;border:0;border-radius:0;background:transparent url('../images/logo/monagadu-501-logo.png') center/contain no-repeat;flex-shrink:0}
.dealer-page .portal-top .admin-brand>span:last-child{border-left:1px solid #c3d1e5;padding-left:27px}
.dealer-page .portal-top .admin-brand strong{font-size:28px!important;line-height:1.3}
.dealer-page .portal-top .admin-brand small{font-size:16px!important;margin-top:4px;color:#647b9e}
.dealer-page .portal-top-actions{align-items:center;gap:23px}
.dealer-page .portal-top button{display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:14px;font-weight:600;height:52px;padding:0 22px;border-radius:11px;background:#f8faff;border:1px solid #dbe6f5;color:#071641}
.dealer-page .portal-top .signout-button{color:#ed0017;background:transparent;border:0;border-left:1px solid #ccd8e9;border-radius:0;height:36px}
.dealer-page .signout-button:before{content:'⇥';font-size:28px;line-height:1}
.dealer-page .portal-dashboard .panel{border:1px solid #dce6f4;border-radius:16px;padding:25px!important;background:#ffffffed;box-shadow:0 10px 28px #193c6b07;min-width:0}
.dealer-page .panel-heading{margin-bottom:20px;gap:16px}
.dealer-page .panel-heading h2{font-size:25px;line-height:1.25;color:#061440;margin:0 0 5px;letter-spacing:-.5px}
.dealer-page .panel-heading p{font-size:16px;line-height:1.5;color:#60769b;margin:0}
.dealer-page .dealer-profile-panel{min-height:244px;position:relative;overflow:hidden;background:linear-gradient(110deg,#fff 68%,#fff8ec)!important}
.dealer-page .dealer-profile-panel .panel-heading{min-height:68px;padding-left:93px;position:relative;margin-bottom:30px}
.dealer-page .dealer-profile-panel .panel-heading h2{font-size:29px}
.dealer-page .dealer-profile-panel .panel-heading p{font-size:18px}
.dealer-page .dealer-profile-grid{position:relative;z-index:1;grid-template-columns:1.1fr 1.25fr .82fr 1.65fr;gap:0}
.dealer-page .dealer-profile-grid p{position:relative;display:block;min-height:82px;padding:4px 24px 0 62px;border-right:1px solid #e2ebf8}
.dealer-page .dealer-profile-grid p:last-child{border:0}
.dealer-page .dealer-profile-grid strong{display:block;font-size:16px;font-weight:400;color:#486086;margin-bottom:10px}
.dealer-page .dealer-profile-grid span{display:block;color:#071641;font-size:21px;line-height:1.35;font-weight:700}
.dealer-page [data-dealer-password-section]{padding:16px 25px!important;background:#f8fbffed!important}
.dealer-page [data-dealer-password-section] summary{display:flex;align-items:center;gap:14px;min-height:40px;cursor:pointer;list-style:none;font-size:20px;font-weight:600;color:#071641}
.dealer-page [data-dealer-password-section] summary::-webkit-details-marker{display:none}
.dealer-page [data-dealer-password-section] summary:after{content:'';width:10px;height:10px;border-right:3px solid;border-bottom:3px solid;transform:rotate(45deg);margin-left:auto;margin-right:10px}
.dealer-page [data-dealer-password-section] details[open] summary:after{transform:rotate(225deg)}
.dealer-page .portal-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.dealer-page .portal-metrics .metric-card{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:127px!important;padding:20px 20px 20px 117px!important;border:1px solid #cfe3ff;border-radius:15px;background:linear-gradient(120deg,#fff,#f5faff);box-shadow:0 8px 20px #233c6508;overflow:hidden}
.dealer-page .portal-metrics .metric-card span{font-size:16px!important;color:#354e7b;z-index:1}
.dealer-page .portal-metrics .metric-card strong{font-size:38px!important;color:#061344;line-height:1.2;z-index:1}
.dealer-page .metric-card:nth-child(2){--accent:#cb8500;--tint:#fff0d5;border-color:#ffe4bb;background:linear-gradient(120deg,#fff,#fffcf7)}
.dealer-page .metric-card:nth-child(3){--accent:#00b744;--tint:#d9f8ea;border-color:#c7f0e4;background:linear-gradient(120deg,#fff,#f5fffc)}
.dealer-page .metric-card:nth-child(4){--accent:#7036e9;--tint:#eae0ff;border-color:#e0d5ff;background:linear-gradient(120deg,#fff,#f9f6ff)}
.dealer-page .dealer-request-panel .panel-heading{position:relative;padding-left:67px}
.dealer-page [data-dealer-stock-order-form]{padding:16px 20px;background:#f7f9fd;border:1px solid #e1e9f6;border-radius:12px}
.dealer-page .dealer-stock-request-line{grid-template-columns:minmax(0,1.85fr) minmax(0,1fr) auto;gap:18px;margin:0 0 20px}
.dealer-page .dealer-stock-request-line label{font-size:17px;font-weight:500;color:#071641;gap:7px;min-width:0}
.dealer-page .dealer-stock-request-line select,.dealer-page .dealer-stock-request-line input{width:100%;height:48px;border:1px solid #ccd9ed;border-radius:9px;padding:0 16px;color:#354f7d;background:#fff;font-size:18px}
.dealer-page .portal-dashboard button{transition:background .15s,box-shadow .15s}
.dealer-page .portal-dashboard button:focus-visible,.dealer-page .portal-dashboard summary:focus-visible,.dealer-page .portal-dashboard input:focus-visible,.dealer-page .portal-dashboard select:focus-visible{outline:3px solid #8ebaff;outline-offset:3px}
.dealer-page .form-actions{display:flex;gap:17px;flex-wrap:wrap;margin:0}
.dealer-page .dealer-request-panel button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;border-radius:10px;font-size:15px;padding:0 18px}
.dealer-page [data-add-stock-line]{border:1px solid #8ab3ff;background:#fff;color:#0059f5}
.dealer-page [data-remove-stock-line]{border:1px solid #f3d9df;background:#fffafa;color:#ec0018}
.dealer-page .dealer-request-panel .admin-button{background:#005cf4;border:1px solid #005cf4;color:white;font-size:17px;padding:0 25px;box-shadow:0 4px 10px #005cf410}
.dealer-page .portal-dashboard button:hover{filter:brightness(.97)}
.dealer-page .table-scroll{border-radius:10px}.dealer-page th{background:#f5f8fe;color:#526a8e}.dealer-page td{border-color:#e6edf7}
@media(max-width:1200px){.dealer-page .portal-dashboard{width:92%}.dealer-page .portal-metrics .metric-card{padding-left:86px!important}.dealer-page .dealer-profile-grid{grid-template-columns:1fr 1.3fr 1fr 1fr}.dealer-page .dealer-profile-grid p{padding-left:45px;padding-right:12px}.dealer-page .dealer-profile-grid span{font-size:18px}}
@media(max-width:900px){.dealer-page .portal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dealer-page .dealer-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dealer-page .dealer-profile-grid p:nth-child(2){border:0}.dealer-page .portal-top{padding:12px 4%}.dealer-page .portal-top .admin-brand{gap:12px}.dealer-page .portal-top .admin-brand>span:last-child{padding-left:15px}.dealer-page .portal-top-actions{gap:8px}.dealer-page .portal-top button{padding:0 12px}}
@media(max-width:600px){.dealer-page .portal-dashboard{padding-top:148px;width:calc(100% - 28px);gap:15px}.dealer-page .portal-top{height:128px;align-items:center;flex-direction:row;flex-wrap:wrap;gap:4px}.dealer-page .portal-top .brand-mark{width:57px;height:53px}.dealer-page .portal-top .admin-brand strong{font-size:22px!important}.dealer-page .portal-top .admin-brand small{font-size:12px!important}.dealer-page .portal-top-actions{margin-left:auto}.dealer-page .portal-top button{height:34px;font-size:12px}.dealer-page .portal-dashboard .panel{padding:18px!important}.dealer-page .dealer-profile-panel .panel-heading{padding-left:58px;margin-bottom:24px;min-height:50px}.dealer-page .dealer-profile-panel .panel-heading h2{font-size:23px}.dealer-page .dealer-profile-panel .panel-heading p{font-size:14px}.dealer-page .dealer-profile-grid p{padding:0 8px 0 0;min-height:70px}.dealer-page .dealer-profile-grid strong{font-size:13px}.dealer-page .dealer-profile-grid span{font-size:16px}.dealer-page [data-dealer-password-section] summary{font-size:15px}.dealer-page .portal-metrics{gap:10px}.dealer-page .portal-metrics .metric-card{padding:76px 14px 16px!important;min-height:155px!important}.dealer-page .portal-metrics .metric-card span{font-size:13px!important}.dealer-page .portal-metrics .metric-card strong{font-size:29px!important}.dealer-page .panel-heading h2{font-size:21px}.dealer-page .panel-heading p{font-size:14px}.dealer-page .dealer-request-panel .panel-heading{padding-left:0;padding-top:59px}.dealer-page [data-dealer-stock-order-form]{padding:14px}.dealer-page .dealer-stock-request-line{grid-template-columns:minmax(0,1fr) auto;gap:12px}.dealer-page .dealer-stock-request-line label:first-child{grid-column:1/-1}.dealer-page .dealer-stock-request-line [data-remove-stock-line]{grid-column:auto}.dealer-page .form-actions{gap:10px}.dealer-page .form-actions button{width:100%}}

/* Small decorative icons are local SVG masks, with no external font dependency. */
.dealer-page{--icon-store:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010%205%203h14l2%207M4%2010v11h16V10M9%2021v-7h6v7M3%2010a3%203%200%200%200%206%200%203%203%200%200%200%206%200%203%203%200%200%200%206%200M9%203v7m6-7v7%22/%3E%3C/svg%3E")}
.dealer-page{--icon-user:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021v-2a8%208%200%200%201%2016%200v2Z%22/%3E%3C/svg%3E")}
.dealer-page{--icon-id:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%222%22%20width%3D%2214%22%20height%3D%2220%22%20rx%3D%222%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222%22/%3E%3Cpath%20d%3D%22M9%2015h6M9%2018h6%22/%3E%3C/svg%3E")}
.dealer-page{--icon-phone:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%203%204%205-3%203a16%2016%200%200%200%206%206l3-3%205%204c-1%207-8%203-12-1S1%204%206%203Z%22/%3E%3C/svg%3E")}
.dealer-page{--icon-pin:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%209c0%205-7%2012-7%2012S5%2014%205%209a7%207%200%200%201%2014%200Z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222.5%22/%3E%3C/svg%3E")}
.dealer-page{--icon-lock:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2214%22%20height%3D%2212%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M8%2010V6a4%204%200%200%201%208%200v4m-4%204v4m-2-2h4%22/%3E%3C/svg%3E")}
.dealer-page{--icon-cart:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h3l4%2014h10l3-10H6M10%2021h.01M18%2021h.01%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2221%22%20r%3D%221%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2221%22%20r%3D%221%22/%3E%3C/svg%3E")}
.dealer-page{--icon-clock:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22/%3E%3Cpath%20d%3D%22M12%205v7l5%203%22/%3E%3C/svg%3E")}
.dealer-page{--icon-truck:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%204h13v14H2Zm13%205h4l4%205v4h-8%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2219%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2219%22%20cy%3D%2219%22%20r%3D%223%22/%3E%3C/svg%3E")}
.dealer-page{--icon-coins:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cellipse%20cx%3D%2212%22%20cy%3D%225%22%20rx%3D%229%22%20ry%3D%224%22/%3E%3Cpath%20d%3D%22M3%205v6c0%205%2018%205%2018%200V5M3%2011v6c0%206%2018%206%2018%200v-6%22/%3E%3C/svg%3E")}
.dealer-page{--icon-box:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202%2010%205v11l-10%205-10-5V7Zm0%2010L2%207m10%205L22%207m-10%205v11M7%204l10%205v6%22/%3E%3C/svg%3E")}
.dealer-page{--icon-plus:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v16M4%2012h16%22/%3E%3C/svg%3E")}
.dealer-page{--icon-send:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m22%202-7%2020-4-9-9-4Zm0%200L11%2013%22/%3E%3C/svg%3E")}
.dealer-page{--icon-trash:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h18M9%206V3h6v3M5%206l1%2016h12l1-16M10%2010v8m4-8v8%22/%3E%3C/svg%3E")}

.dealer-page .dealer-profile-panel .panel-heading:before,.dealer-page .dealer-request-panel .panel-heading:before{content:'';position:absolute;left:0;top:0;width:68px;height:66px;border-radius:15px;background:#e5f1ff}
.dealer-page .dealer-profile-panel .panel-heading:after,.dealer-page .dealer-request-panel .panel-heading:after{content:'';position:absolute;left:19px;top:17px;width:32px;height:32px;background:#0060ff;mask:var(--icon-store) center/contain no-repeat}
.dealer-page .dealer-request-panel .panel-heading:before{width:48px;height:50px;border-radius:12px}
.dealer-page .dealer-request-panel .panel-heading:after{left:10px;top:11px;width:28px;height:28px;mask-image:var(--icon-box)}
.dealer-page .dealer-profile-grid p:before{content:'';position:absolute;left:6px;top:4px;width:24px;height:24px;background:#0061ff;mask:var(--icon-user) center/contain no-repeat}
.dealer-page .dealer-profile-grid p:nth-child(2):before{mask-image:var(--icon-id)}
.dealer-page .dealer-profile-grid p:nth-child(3):before{mask-image:var(--icon-phone)}
.dealer-page .dealer-profile-grid p:nth-child(4):before{mask-image:var(--icon-pin)}
.dealer-page [data-dealer-password-section] summary:before{content:'';width:30px;height:30px;flex-shrink:0;background:#005cf4;mask:var(--icon-lock) center/contain no-repeat}
.dealer-page .metric-card{--accent:#0060ff;--tint:#e0eeff;--metric-icon:var(--icon-cart)}
.dealer-page .metric-card:nth-child(2){--metric-icon:var(--icon-clock)}
.dealer-page .metric-card:nth-child(3){--metric-icon:var(--icon-truck)}
.dealer-page .metric-card:nth-child(4){--metric-icon:var(--icon-coins)}
.dealer-page .metric-card:before{content:'';position:absolute;left:25px;top:25px;width:71px;height:73px;background:var(--tint);border-radius:50%}
.dealer-page .metric-card:after{content:'';position:absolute;left:43px;top:44px;width:36px;height:36px;background:var(--accent);mask:var(--metric-icon) center/contain no-repeat}
.dealer-page [data-add-stock-line]:before,.dealer-page [data-remove-stock-line]:before,.dealer-page .dealer-request-panel button[type=submit]:before{content:'';width:22px;height:22px;background:currentColor;mask:var(--icon-plus) center/contain no-repeat}
.dealer-page [data-remove-stock-line]:before{mask-image:var(--icon-trash);width:19px}
.dealer-page .dealer-request-panel button[type=submit]:before{mask-image:var(--icon-send)}
.dealer-page .dealer-profile-panel:after{content:'';position:absolute;right:0;bottom:0;width:300px;height:230px;background:url('../images/banners/dealer-dashboard-truck.svg') right bottom/contain no-repeat;pointer-events:none;opacity:.65}
@media(max-width:1200px){.dealer-page .metric-card:before{left:14px;width:58px;height:60px;top:33px}.dealer-page .metric-card:after{left:27px;top:47px;width:31px;height:31px}.dealer-page .dealer-profile-panel:after{opacity:.16}}
@media(max-width:600px){.dealer-page .dealer-profile-panel .panel-heading:before{width:44px;height:46px}.dealer-page .dealer-profile-panel .panel-heading:after{left:10px;top:11px;width:25px;height:25px}.dealer-page .dealer-profile-grid p:before{display:none}.dealer-page .metric-card:before{left:14px;top:14px;width:49px;height:49px}.dealer-page .metric-card:after{left:25px;top:25px;width:27px;height:27px}.dealer-page .dealer-profile-panel:after{display:none}}

.dealer-page .portal-dashboard>.panel,.dealer-page .portal-dashboard>.metric-grid{margin:0}
.dealer-page .portal-dashboard>[data-dealer-password-section]{padding:16px 25px!important}
.dealer-page .portal-dashboard .metric-card>span{font-weight:400}
.dealer-page .portal-dashboard button{font-family:Arial,Helvetica,sans-serif!important}

/* Slowly drifting blue and champagne light behind the authenticated portal. */
.dealer-page:has([data-portal]:not([hidden])) {
  isolation: isolate;
  background: #f4f8ff;
}
.dealer-page:has([data-portal]:not([hidden]))::before,
.dealer-page:has([data-portal]:not([hidden]))::after {
  content: '';
  position: fixed;
  inset: -8%;
  z-index: -1;
  pointer-events: none;
}
.dealer-page:has([data-portal]:not([hidden]))::before {
  background:
    radial-gradient(ellipse at 5% 25%, #a7ceff80 0%, transparent 42%),
    radial-gradient(ellipse at 92% 68%, #ffe0a77a 0%, transparent 40%),
    radial-gradient(ellipse at 48% 95%, #c2baff55 0%, transparent 42%),
    linear-gradient(125deg, #f5f9ff, #edf5ff 45%, #fffaf2);
  animation: dealer-wallpaper-drift 24s ease-in-out infinite alternate;
}
.dealer-page:has([data-portal]:not([hidden]))::after {
  background:
    repeating-radial-gradient(ellipse at 105% -20%, transparent 0 105px, #ffffff70 107px 109px, transparent 111px 165px),
    radial-gradient(circle at 9% 72%, #ffffffd9 0 2px, transparent 4px),
    radial-gradient(circle at 91% 34%, #e4be7270 0 3px, transparent 5px),
    radial-gradient(circle at 65% 13%, #ffffffcc 0 2px, transparent 4px);
  animation: dealer-wallpaper-shimmer 18s ease-in-out infinite alternate;
}
@keyframes dealer-wallpaper-drift {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}
@keyframes dealer-wallpaper-shimmer {
  from { transform: translate3d(0, 1%, 0); opacity: .45; }
  to { transform: translate3d(-2%, -1%, 0); opacity: .9; }
}
@media (max-width: 600px) {
  .dealer-page:has([data-portal]:not([hidden]))::after { animation: none; opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .dealer-page:has([data-portal]:not([hidden]))::before,
  .dealer-page:has([data-portal]:not([hidden]))::after { animation: none; }
}
@media print {
  .dealer-page:has([data-portal]:not([hidden]))::before,
  .dealer-page:has([data-portal]:not([hidden]))::after { display: none; }
}
