@font-face{font-family:'IBM Plex Sans Arabic';src:url('/assets/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('/assets/fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('/assets/fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('/assets/fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');font-style:normal;font-weight:700 900;font-display:swap}
:root{--blue:#114a91;--blue-dark:#0d3b74;--yellow:#fcd726;--cream:#fff9e8;--ink:#172036;--muted:#748099;--line:#e8ebf1;--white:#fff;--danger:#d53030;--shadow:0 18px 50px rgba(25,43,87,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'IBM Plex Sans Arabic',Arial,sans-serif;color:var(--ink);background:#f6f7fb}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}.eyebrow{display:block;color:#d99d00;font-size:.78rem;font-weight:800;letter-spacing:.08em;margin-bottom:.4rem}.button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:0;border-radius:12px;padding:.78rem 1.15rem;font-weight:800;transition:.2s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--yellow);color:var(--blue-dark);box-shadow:0 8px 20px rgba(252,215,38,.22)}.button.dark{background:var(--blue);color:#fff}.button.ghost{background:#fff;border:1px solid var(--line);color:var(--blue)}.button.wide{width:100%}.alert{padding:.85rem 1rem;border-radius:12px;margin-bottom:1rem;font-weight:600;background:#e7f8ee;color:#16733d}.alert.error{background:#ffeded;color:#a82020}.store-alert{max-width:1240px;margin:1rem auto}.empty-state{text-align:center;padding:4rem 1rem;grid-column:1/-1}.empty-state h1{font-size:4rem;margin:0;color:var(--blue)}.empty-state h2{margin:.5rem}.empty-state p{color:var(--muted)}.empty-inline{text-align:center!important;padding:2rem!important;color:var(--muted)}
/* Store */
.store-body{background:#fff}.store-header{height:86px;padding:0 max(4vw,24px);display:flex;align-items:center;justify-content:space-between;background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(26,50,116,.08)}.store-brand{display:flex;align-items:center;gap:.7rem}.store-brand img{width:58px;height:58px;object-fit:cover;border-radius:16px}.store-brand span{display:grid}.store-brand strong{color:var(--blue);font-size:1.15rem}.store-brand small{color:var(--muted)}.store-header nav{display:flex;gap:1.7rem;align-items:center;font-weight:700}.store-header nav a:hover{color:var(--blue)}.cart-link{background:var(--blue);color:#fff!important;padding:.68rem 1rem;border-radius:12px}.cart-link span{display:inline-grid;place-items:center;background:var(--yellow);color:var(--blue-dark);width:23px;height:23px;border-radius:50%;margin-right:.35rem}.hero{max-width:1320px;margin:0 auto;min-height:580px;padding:6rem 4rem;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;position:relative;overflow:hidden;background:linear-gradient(125deg,#fff9e5,#fff 55%,#f0f4ff);border-radius:0 0 42px 42px}.hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:var(--yellow);filter:blur(2px);opacity:.16;top:-190px;right:-120px}.hero h1{font-size:clamp(3rem,6vw,5.5rem);line-height:.97;margin:.6rem 0 1.4rem;color:var(--blue-dark);letter-spacing:-.04em}.hero h1 em{font-style:normal;color:var(--blue)}.hero-copy>p{max-width:600px;color:#5e6980;font-size:1.1rem;line-height:1.9}.hero-search{display:flex;max-width:570px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:.35rem;box-shadow:var(--shadow);margin-top:1.8rem}.hero-search input{flex:1;border:0;outline:0;padding:.8rem 1rem;background:transparent}.hero-search button{border:0;background:var(--yellow);color:var(--blue-dark);font-weight:800;border-radius:12px;padding:.7rem 1.5rem}.hero-points{display:flex;gap:1.4rem;margin-top:1.3rem;color:#536078;font-size:.9rem}.hero-visual{position:relative;display:grid;place-items:center;height:430px}.logo-orbit{width:340px;height:340px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);box-shadow:0 25px 80px rgba(34,59,139,.18);position:relative}.logo-orbit:before,.logo-orbit:after{content:"";position:absolute;border:1px dashed rgba(32,60,141,.25);border-radius:50%;inset:-32px}.logo-orbit:after{inset:-68px}.logo-orbit img{width:235px;height:235px;border-radius:34px;object-fit:cover;box-shadow:0 20px 50px rgba(19,38,94,.2)}.float-card{position:absolute;background:#fff;padding:1rem 1.25rem;border-radius:15px;box-shadow:var(--shadow);display:grid;min-width:145px}.float-card strong{font-size:1.6rem;color:var(--blue)}.float-card span{color:var(--muted);font-size:.85rem}.float-card.one{top:42px;right:5px}.float-card.two{bottom:28px;left:5px}.store-section{max-width:1240px;margin:0 auto;padding:5rem 24px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:2rem}.section-heading h2{font-size:2.25rem;margin:0;color:var(--blue-dark)}.section-heading>a{color:var(--blue);font-weight:800}.category-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:1rem;overflow-x:auto;padding:4px 3px 18px}.category-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1rem;text-align:center;display:grid;justify-items:center;transition:.2s;min-height:180px}.category-card:hover,.category-card.selected{border-color:var(--yellow);transform:translateY(-4px);box-shadow:var(--shadow)}.category-card img,.category-letter{width:86px;height:86px;border-radius:50%;object-fit:cover;background:var(--cream);display:grid;place-items:center;color:var(--blue);font-size:2rem;font-weight:900}.category-card strong{margin-top:.7rem}.category-card small{color:var(--muted)}.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem}.product-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;transition:.2s}.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.product-image{height:235px;background:#f7f8fb;display:grid;place-items:center;position:relative;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover;transition:.3s}.product-card:hover .product-image img{transform:scale(1.035)}.product-image>span{font-size:5rem;color:var(--blue);font-weight:900}.product-image b{position:absolute;top:12px;right:12px;background:var(--yellow);color:var(--blue-dark);border-radius:10px;padding:.35rem .6rem;font-size:.78rem}.product-info{padding:1.1rem}.product-info>small{color:#d69a00;font-weight:700}.product-info h3{margin:.45rem 0 1.1rem;font-size:1.05rem;min-height:48px}.product-bottom{display:flex;align-items:center;justify-content:space-between}.product-bottom>strong{font-size:1.1rem;color:var(--blue)}.product-bottom button{width:38px;height:38px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-size:1.5rem;line-height:1}.sold-out{color:var(--danger);font-weight:700;font-size:.82rem}.product-detail{max-width:1160px;margin:3rem auto 7rem;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}.detail-image{height:560px;border-radius:28px;background:#f4f6fa;display:grid;place-items:center;overflow:hidden}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-image>span{font-size:9rem;color:var(--blue);font-weight:900}.detail-copy h1{font-size:3rem;margin:.5rem 0;color:var(--blue-dark)}.detail-copy h2{font-size:1.1rem;color:var(--muted);font-weight:500}.detail-copy>p{color:#657087;line-height:2;min-height:80px}.detail-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:1.6rem 0}.detail-meta span{background:#f7f8fb;border-radius:12px;padding:.8rem;display:grid;color:var(--muted);font-size:.8rem}.detail-meta strong{color:var(--ink);margin-top:.2rem}.detail-buy{border-top:1px solid var(--line);padding-top:1.4rem;display:flex;align-items:end;justify-content:space-between}.detail-buy>strong{font-size:1.8rem;color:var(--blue)}.detail-buy form{display:flex;align-items:end;gap:.7rem}.detail-buy label{display:grid;color:var(--muted);font-size:.8rem}.detail-buy input{width:75px;padding:.7rem;border:1px solid var(--line);border-radius:10px}.cart-layout,.checkout-layout{display:grid;grid-template-columns:1.5fr .7fr;gap:1.5rem}.cart-items{display:grid;gap:1rem}.cart-item{display:grid;grid-template-columns:70px 1fr 80px 115px;gap:1rem;align-items:center;border-bottom:1px solid var(--line);padding-bottom:1rem}.cart-item img,.cart-item .no-image{width:70px;height:70px;border-radius:12px;object-fit:cover}.cart-item div{display:grid}.cart-item small{color:var(--muted)}.cart-item input{padding:.6rem;border:1px solid var(--line);border-radius:10px;width:75px}.cart-summary,.checkout-summary{align-self:start;position:sticky;top:110px}.cart-summary h2,.checkout-summary h2{margin-top:0}.cart-summary>div,.checkout-summary>div{display:flex;justify-content:space-between;padding:.65rem 0}.cart-summary hr,.checkout-summary hr{border:0;border-top:1px solid var(--line)}.checkout-summary{display:grid;gap:.3rem}.success-page{max-width:700px;margin:6rem auto;text-align:center;padding:5rem 2rem;background:var(--cream);border-radius:30px}.success-page>span{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:var(--yellow);color:var(--blue);font-size:2.5rem;margin:auto}.success-page h1{font-size:2.6rem;color:var(--blue-dark)}footer{background:var(--blue-dark);color:#fff;padding:3rem max(4vw,24px);display:flex;align-items:center;gap:1rem}footer img{width:48px;height:48px;border-radius:12px}footer p{flex:1}footer a{color:var(--yellow)}
/* Admin */
.admin-body{background:#f5f6fa}.sidebar{position:fixed;right:0;top:0;width:250px;height:100vh;background:var(--blue-dark);color:#fff;padding:1.2rem;display:flex;flex-direction:column;z-index:80}.admin-brand{display:flex;align-items:center;gap:.7rem;padding:.2rem .3rem 1.5rem;font-weight:800;font-size:1.1rem}.admin-brand img{width:54px;height:54px;border-radius:14px}.sidebar nav{display:grid;gap:.35rem}.nav-item{padding:.8rem .9rem;border-radius:11px;color:#cbd4ef;font-weight:600}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.1);color:#fff}.nav-item.active{box-shadow:inset -3px 0 var(--yellow)}.store-link{margin-top:auto;border:1px solid rgba(255,255,255,.18);padding:.75rem;text-align:center;border-radius:11px;color:var(--yellow);font-weight:700}.admin-shell{margin-right:250px;min-height:100vh}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 2rem;gap:.8rem;position:sticky;top:0;z-index:40}.topbar>div{display:grid}.topbar small{color:var(--muted)}.topbar form{margin-right:auto}.link-button{border:0;background:transparent;color:var(--danger);font-weight:700}.menu-button{display:none;border:0;background:#f1f3f8;width:40px;height:40px;border-radius:10px}.admin-main{padding:2rem;max-width:1500px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.page-heading h1{font-size:2rem;margin:.1rem 0;color:var(--blue-dark)}.page-heading p{margin:.2rem 0;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1.5rem}.stats-grid article{background:#fff;padding:1.25rem;border:1px solid var(--line);border-radius:17px;display:grid;position:relative;overflow:hidden}.stats-grid article:after{content:"";position:absolute;left:-18px;bottom:-24px;width:90px;height:90px;border-radius:50%;background:#eef2ff}.stats-grid article.accent:after{background:#fff1b7}.stats-grid article.danger:after{background:#ffe5e5}.stats-grid span{color:var(--muted);font-weight:600}.stats-grid strong{font-size:2.3rem;color:var(--blue-dark);margin:.4rem 0}.stats-grid small{color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.25rem;box-shadow:0 5px 20px rgba(23,32,54,.025)}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.panel-head h2{margin:0;font-size:1.2rem}.panel-head p{margin:.2rem 0;color:var(--muted)}.panel-head>a{color:var(--blue);font-weight:700}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{text-align:right;padding:.9rem .8rem;border-bottom:1px solid var(--line)}th{font-size:.78rem;color:var(--muted);font-weight:700;background:#fafbfc}td{font-size:.91rem}td>a{color:var(--blue);font-weight:800}td small{display:block;color:var(--muted);margin-top:.2rem}code{direction:ltr;display:inline-block;background:#f0f2f7;padding:.2rem .4rem;border-radius:6px;color:#536078}.status{display:inline-flex;align-items:center;gap:.45rem;padding:.42rem .65rem;border-radius:999px;background:color-mix(in srgb,var(--status) 12%,white);color:var(--status);font-size:.78rem;font-weight:800}.status:before{content:"";width:8px;height:8px;background:var(--status);border-radius:50%}.pill{padding:.35rem .6rem;border-radius:99px;font-size:.78rem;font-weight:700}.pill.on{background:#e5f8ec;color:#168142}.pill.off{background:#f1f1f3;color:#737887}.product-cell{display:flex;align-items:center;gap:.7rem}.product-cell img,.no-image{width:45px;height:45px;border-radius:10px;object-fit:cover}.no-image{display:grid;place-items:center;background:var(--yellow);color:var(--blue);font-weight:900}.text-danger{color:var(--danger)}.filters{display:flex;gap:.7rem;margin-bottom:1rem}.filters input{flex:1}.filters input,.filters select{border:1px solid var(--line);border-radius:11px;padding:.7rem .9rem;background:#fff}.form-panel{max-width:1100px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.form-grid label,.form-stack label{display:grid;gap:.4rem;color:#556078;font-size:.88rem;font-weight:600}.form-grid input,.form-grid select,.form-grid textarea,.form-stack input,.form-stack select{width:100%;border:1px solid #dfe3eb;border-radius:11px;padding:.75rem .85rem;background:#fff;color:var(--ink);outline:none}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.form-stack input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(32,60,141,.08)}.wide-field{grid-column:1/-1}.switch{display:flex!important;align-items:center;grid-auto-flow:column;justify-content:start;align-self:end;padding:.6rem 0}.switch input{display:none}.switch span{width:44px;height:25px;background:#ccd1db;border-radius:99px;position:relative}.switch span:after{content:"";position:absolute;width:19px;height:19px;top:3px;right:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:var(--blue)}.switch input:checked+span:after{right:22px}.form-actions{border-top:1px solid var(--line);margin-top:1.3rem;padding-top:1.2rem}.form-stack{display:grid;gap:1rem}.status-filters{display:flex;gap:.5rem;overflow:auto;padding-bottom:1rem}.status-filters a{white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:99px;padding:.5rem .7rem;font-size:.78rem;display:flex;align-items:center;gap:.35rem}.status-filters a.selected{border-color:var(--blue);color:var(--blue);font-weight:700}.status-filters i{width:7px;height:7px;background:var(--dot);border-radius:50%}.order-layout{display:grid;grid-template-columns:1.5fr .65fr;gap:1.2rem}.order-total{display:flex;justify-content:flex-end;gap:2rem;padding:1.2rem}.order-total strong{font-size:1.3rem;color:var(--blue)}.order-side{align-self:start}.order-side h2{margin-top:0}.order-side dl{display:grid;grid-template-columns:90px 1fr;gap:.8rem;margin-bottom:1.5rem}.order-side dt{color:var(--muted)}.order-side dd{margin:0}.roles-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.permissions-list{display:grid;gap:.45rem;margin-bottom:1rem}.permissions-list label{display:flex;align-items:center;gap:.7rem;padding:.65rem;background:#f8f9fb;border-radius:10px}.permissions-list label>span{display:grid}.permissions-list small{color:var(--muted)}.login-page{min-height:100vh;display:grid;place-items:center;padding:2rem;background:radial-gradient(circle at 15% 15%,#fff1a8 0,transparent 24%),linear-gradient(135deg,#f6f8ff,#fff)}.login-card{width:min(460px,100%);background:#fff;padding:2.3rem;border-radius:25px;box-shadow:0 30px 90px rgba(21,38,91,.14);border:1px solid var(--line)}.login-card>img{width:95px;height:95px;border-radius:23px;object-fit:cover;margin-bottom:1.4rem}.login-card h1{margin:.3rem 0;color:var(--blue-dark);font-size:2rem}.login-card p{color:var(--muted);margin-bottom:1.5rem}
@media(max-width:1000px){.hero{grid-template-columns:1fr;padding:4rem 2rem}.hero-visual{display:none}.products-grid{grid-template-columns:repeat(3,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.sidebar{transform:translateX(100%);transition:.25s}.sidebar.open{transform:none}.admin-shell{margin-right:0}.menu-button{display:block}.cart-layout,.checkout-layout,.order-layout{grid-template-columns:1fr}.cart-summary{position:static}.product-detail{gap:2rem}.roles-grid{grid-template-columns:1fr}}
@media(max-width:700px){.store-header{height:72px}.store-brand img{width:46px;height:46px}.store-brand small,.store-header nav>a:not(.cart-link){display:none}.store-header nav{gap:.5rem}.hero{padding:3.5rem 1.3rem;min-height:510px}.hero h1{font-size:3.2rem}.hero-points{display:grid;gap:.4rem}.store-section{padding:3rem 16px}.section-heading h2{font-size:1.65rem}.products-grid{grid-template-columns:repeat(2,1fr);gap:.7rem}.product-image{height:170px}.product-info{padding:.8rem}.product-detail{grid-template-columns:1fr;margin-top:1.5rem}.detail-image{height:370px}.detail-copy h1{font-size:2.1rem}.detail-meta{grid-template-columns:1fr}.detail-buy{display:grid;gap:1rem}.form-grid{grid-template-columns:1fr}.wide-field{grid-column:auto}.stats-grid{grid-template-columns:1fr 1fr}.admin-main{padding:1rem}.page-heading{align-items:flex-start;gap:1rem}.page-heading .button{white-space:nowrap}.filters{display:grid}.cart-item{grid-template-columns:55px 1fr 65px}.cart-item>b{grid-column:2/-1}.cart-item img,.cart-item .no-image{width:55px;height:55px}.topbar{padding:0 1rem}.roles-grid{grid-template-columns:1fr}}
@media(max-width:420px){.products-grid{grid-template-columns:1fr 1fr}.product-image{height:145px}.product-info h3{font-size:.92rem}.stats-grid{grid-template-columns:1fr}.hero h1{font-size:2.7rem}}
.procurement-gap{margin-top:1.25rem}.heading-actions{display:flex;gap:.6rem}.inline-action{display:grid;gap:.5rem;margin-top:.6rem}.inline-action input,.table-wrap input,.table-wrap select{border:1px solid #dfe3eb;border-radius:9px;padding:.55rem;min-width:90px}.timeline{display:grid;gap:.8rem}.timeline article{display:grid;grid-template-columns:1fr auto;gap:.25rem;padding:.8rem 1rem;border-right:3px solid var(--yellow);background:#fafbfc;border-radius:10px}.timeline article small{grid-column:1/-1;color:var(--muted)}.table-actions{display:flex;gap:.35rem}.table-actions button{border:0;border-radius:8px;padding:.35rem .55rem;background:#eef2ff;color:var(--blue);font-weight:700}.procurement-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.procurement-kpis>div{background:#f8fafc;border-radius:12px;padding:.8rem;display:grid}.procurement-kpis small{color:var(--muted)}
.detail-image{position:relative}.detail-image>img{width:100%;height:100%;object-fit:cover}.detail-thumbs{position:absolute;right:14px;left:14px;bottom:14px;display:flex;gap:8px;overflow:auto;padding:8px;background:rgba(255,255,255,.9);border-radius:14px}.detail-image .detail-thumbs img{width:58px;height:58px;object-fit:cover;border-radius:9px;border:2px solid #fff;flex:0 0 auto}.roles-grid{margin-top:1rem}.image-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}.image-gallery figure{margin:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}.image-gallery img{width:100%;height:150px;object-fit:cover}.image-gallery figcaption{display:flex;align-items:center;justify-content:space-between;padding:.65rem;font-weight:700}.image-gallery form{display:inline}.link-danger{border:0;background:transparent;color:var(--danger);font-weight:800}
.admin-brand img{width:60px;height:60px}.login-card>img{width:120px;height:120px}footer img{width:40px;height:40px}@media(max-width:700px){.store-brand img{width:40px;height:40px}}
.language-switch{display:inline-flex;flex-direction:row;align-items:center;gap:3px;width:max-content;padding:3px;background:#eef1f7;border-radius:10px;direction:ltr}.language-switch a{min-width:34px;padding:.35rem .5rem;border-radius:8px;text-align:center;font-size:.75rem;font-weight:800;color:var(--muted)}.language-switch a.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(20,38,90,.1)}.topbar>.language-switch{display:inline-flex;grid-auto-flow:column;flex-direction:row;width:max-content;margin-inline-start:auto}.topbar form{margin-right:0}.management-actions{display:flex;gap:.7rem;margin-top:1.8rem}.management-hero .hero-points{flex-wrap:wrap}.management-hero .hero-copy>p{max-width:650px}
html[dir=ltr] .sidebar{right:auto;left:0}html[dir=ltr] .admin-shell{margin-right:0;margin-left:250px}html[dir=ltr] .nav-item.active{box-shadow:inset 3px 0 var(--yellow)}html[dir=ltr] th,html[dir=ltr] td{text-align:left}html[dir=ltr] .timeline article{border-right:0;border-left:3px solid var(--yellow)}html[dir=ltr] .switch span:after{right:auto;left:3px}html[dir=ltr] .switch input:checked+span:after{right:auto;left:22px}
@media(max-width:1000px){html[dir=ltr] .sidebar{transform:translateX(-100%)}html[dir=ltr] .sidebar.open{transform:none}html[dir=ltr] .admin-shell{margin-left:0}}
.stats-grid article:after{display:none}
.stats-grid article:nth-child(1){border-color:rgba(32,60,141,.22)}.stats-grid article:nth-child(2){border-color:rgba(126,87,194,.20)}.stats-grid article:nth-child(3){border-color:rgba(255,171,0,.28)}.stats-grid article:nth-child(4){border-color:rgba(213,48,48,.20)}
.permissions-accordion{display:grid;gap:.7rem}.permission-group{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.permission-group-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.45rem .55rem;background:#f8f9fc}.permission-group-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:.6rem;width:100%;padding:.45rem;border:0;background:transparent;color:var(--ink);text-align:start;font-weight:800}.permission-group-toggle small{color:var(--muted);font-weight:600;white-space:nowrap}.permission-group-toggle i{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#fff;color:var(--blue);font-style:normal;font-size:1rem;transition:transform .2s}.permission-group.open .permission-group-toggle i{transform:rotate(180deg)}.permission-group-actions{display:flex;gap:.35rem}.permission-group-actions button{border:1px solid #dfe4ef;background:#fff;color:var(--blue);border-radius:8px;padding:.4rem .55rem;font-size:.72rem;font-weight:700;white-space:nowrap}.permission-group-actions button:hover{border-color:var(--blue);background:#f4f6ff}.permission-group-body{padding:.75rem;border-top:1px solid var(--line)}.permission-group-body[hidden]{display:none}.permission-group-body .permissions-list{margin:0}.role-permissions-save{margin-top:1rem}@media(max-width:700px){.permission-group-head{grid-template-columns:1fr}.permission-group-actions{padding:0 .45rem .4rem}.permission-group-actions button{flex:1}.permission-group-toggle{grid-template-columns:minmax(0,1fr) auto 24px}}

/* Administration navigation groups. Logical alignment follows the page language. */
.sidebar{overflow-y:auto;overscroll-behavior:contain;height:100dvh}
.sidebar .admin-brand,.sidebar .store-link{flex-shrink:0}
.sidebar nav{gap:1rem;padding-bottom:1rem}
.sidebar-group{min-width:0}
.sidebar-group-title{font-size:.72rem;font-weight:600;line-height:1.5;color:#abbadd;margin:0 0 .4rem;padding-inline:.45rem;text-align:start}
.sidebar-group-links{display:grid;gap:.15rem;padding:.3rem;border:1px solid rgba(203,212,239,.22);border-radius:12px;background:rgba(255,255,255,.025)}
.sidebar-group-links .nav-item{display:block;min-width:0;padding:.65rem .7rem;font-size:.88rem;line-height:1.6;text-align:start;overflow-wrap:anywhere}
.sidebar nav>.nav-item{display:block;padding:.7rem .9rem}
.sidebar .nav-item:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}

/* Native disclosure keeps navigation usable by touch and keyboard without scripting. */
.sidebar-group-toggle{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:44px;padding:.3rem .45rem;cursor:pointer;list-style:none;border-radius:8px;color:#abbadd}
.sidebar-group-toggle::-webkit-details-marker{display:none}
.sidebar-group-toggle .sidebar-group-title{margin:0;padding:0;color:inherit}
.sidebar-group-toggle::after{content:"";width:7px;height:7px;flex-shrink:0;border-inline-end:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-inline-end:.2rem;margin-block-end:4px}
.sidebar-group[open]>.sidebar-group-toggle::after{transform:rotate(225deg);margin-block-end:0}
.sidebar-group[open]>.sidebar-group-toggle{margin-bottom:.25rem}
.sidebar-group-toggle:hover{background:rgba(255,255,255,.06);color:#fff}
.sidebar-group-toggle:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.sidebar-group:not([open])>.sidebar-group-links{display:none}

/* Keep authentication cards centered within the available page space. */
.store-body:has(.login-page){min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
.store-body:has(.login-page)>.store-header,.store-body:has(.login-page)>footer{flex-shrink:0}
.store-body:has(.login-page)>main{flex:1;display:flex;flex-direction:column;min-width:0}
.store-body:has(.login-page)>main>.store-alert{width:calc(100% - 2rem);flex-shrink:0}
.store-body:has(.login-page) .login-page{flex:1;min-height:0;width:100%;padding:2rem}
@media(max-width:700px){.store-body:has(.login-page) .login-page{padding:1.5rem 1rem}.store-body:has(.login-page) .login-card{padding:1.5rem;width:min(460px,100%)}}
