html{scrollbar-color:#343049 #0b0e16;scrollbar-width:thin}::selection{background:#8b5cf65c;color:#fff}.button:focus-visible,.nav-item:focus-visible,.icon-button:focus-visible,.text-button:focus-visible{outline:2px solid var(--purple-2);outline-offset:3px}.sidebar-open::before{content:"";position:fixed;z-index:25;inset:0;background:#03050ab8;backdrop-filter:blur(3px)}.sidebar-open{overflow:hidden}.sidebar-open .sidebar{transform:translateX(0)}.is-loading span{animation:spin .7s linear infinite}.feature-card,.module-card,.stat-card,.guild-card,.panel{transition:border-color .18s ease,background .18s ease}.module-card:hover,.guild-card:hover,.stat-card:hover{border-color:#8b5cf638}.page-heading .button{flex-shrink:0}.nav-item[aria-current="page"]{box-shadow:inset -2px 0 0 #a78bfa}.field input:focus,.field select:focus,.search-box:focus-within{border-color:#9b83f9;box-shadow:0 0 0 3px #8b5cf616;outline:0}.toast{direction:rtl}.module-card .button{flex-shrink:0}@media(max-width:1100px){.sidebar{width:230px}.main-column{margin-right:230px}.main-content{padding:24px 22px 35px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-columns{grid-template-columns:1fr}.hero{gap:30px}.hero-copy h1{font-size:47px}.guild-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.container{width:min(100% - 34px,680px)}.site-header{height:72px}.public-nav{display:none}.hero{grid-template-columns:1fr;padding-block:65px 75px}.hero-copy{max-width:640px}.hero-visual{width:min(100%,540px);margin:0 auto}.feature-grid{grid-template-columns:repeat(2,1fr)}.steps-grid{gap:12px}.steps-grid article{padding:19px}.main-column{margin-right:0}.sidebar{transform:translateX(105%);width:270px;box-shadow:-25px 0 70px #0005}.sidebar-toggle{display:grid;order:0}.topbar{padding:0 18px}.breadcrumb{margin-inline-end:auto}.main-content{padding:22px 18px 35px}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .main-column{filter:blur(1px)}.page-heading h1{font-size:22px}.module-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.category-stat{grid-template-columns:115px 1fr 20px}}@media (max-width: 620px){.container{width:calc(100% - 28px)}.site-header{gap:10px}.brand b{font-size:10px}.brand small{font-size:7px}.brand-mark{width:34px;height:34px}.header-actions{gap:6px}.header-actions .button{min-height:34px;padding:0 10px;font-size:10px}.hero{padding-block:49px 60px;gap:43px}.hero-copy h1{font-size:39px}.hero-description{font-size:13px}.hero-actions{display:grid}.hero-actions .button{width:100%}.hero-trust{gap:9px 13px;font-size:9px}.preview-body{grid-template-columns:36px 1fr;min-height:0}.preview-main{padding:13px 10px}.preview-stats{gap:5px}.preview-stats>div{padding:7px}.preview-stats b{font-size:11px}.preview-title h3{font-size:12px}.floating-note{left:-4px;bottom:-28px;padding:10px}.feature-section,.faq-section{padding-block:62px}.section-heading{margin-bottom:27px}.feature-grid{grid-template-columns:1fr;gap:10px}.feature-card{padding:20px}.feature-card p{min-height:0}.steps-section{padding:60px 0}.steps-grid{grid-template-columns:1fr}.steps-grid article{padding:22px}.faq-grid{grid-template-columns:1fr}.final-cta{display:grid;margin-block:15px 55px;padding:23px}.final-cta h2{font-size:23px}.final-cta .button{width:100%}.site-footer{padding-block:20px;align-items:flex-start;flex-direction:column;gap:13px}.servers-page{padding-block:37px 60px}.servers-heading{align-items:flex-start;flex-direction:column}.servers-heading h1{font-size:29px}.servers-heading>.button{width:100%}.server-toolbar{align-items:flex-start;flex-direction:column}.search-box{width:100%}.guild-grid{grid-template-columns:1fr}.invite-banner{align-items:flex-start;flex-wrap:wrap}.invite-banner>div:nth-child(2){min-width:calc(100% - 70px)}.invite-banner .button{width:100%}.topbar{height:58px;padding:0 12px}.breadcrumb{font-size:9px;gap:6px}.topbar-actions .live-indicator{display:none}.main-content{padding:19px 12px 30px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px}.page-heading .button{width:100%}.page-heading h1{font-size:21px}.stats-grid{gap:8px}.stat-card{padding:12px}.stat-card>b{font-size:20px}.stat-top{font-size:9px}.stat-icon{width:26px;height:26px}.panel{padding:14px}.section-intro{align-items:flex-start;flex-direction:column}.section-intro .search-box{width:100%}.module-controls{grid-template-columns:1fr 1fr}.module-card{padding:12px}.module-card-foot{align-items:flex-start}.module-state{padding-top:8px}.category-stat{grid-template-columns:100px 1fr 18px;gap:7px;font-size:9px}.data-table{min-width:520px}.overview-columns{gap:10px}.stats-grid .stat-card>small{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.brand-image{display:inline-grid;place-items:center;overflow:hidden;background:transparent!important;border:0!important;box-shadow:none!important}.brand-image img{display:block;width:100%;height:100%;object-fit:contain}.mini-logo img{width:100%;height:100%;object-fit:contain}.preference-toggle{white-space:nowrap;min-width:42px}.page-mode-dashboard .topbar-actions{gap:8px}html[data-theme="light"] body:before{opacity:.22}html[data-theme="light"] .empty-state{background:rgba(255,255,255,.75)}html[data-theme="light"] .site-header,html[data-theme="light"] .topbar,html[data-theme="light"] .sidebar{box-shadow:0 8px 28px rgba(20,32,60,.05)}html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{background:#fff;color:var(--text);border-color:var(--line-strong)}html[data-theme="light"] .module-card,html[data-theme="light"] .guild-card,html[data-theme="light"] .feature-card{background:var(--surface);border-color:var(--line)}html[dir="ltr"] .breadcrumb{direction:ltr}html[dir="ltr"] .nav-item{text-align:left}html[dir="ltr"] .sidebar{direction:ltr}html[dir="ltr"] .topbar{direction:ltr}html[dir="ltr"] .guild-card-bottom,html[dir="ltr"] .header-actions{direction:ltr}

/* Light mode contrast repair: override dark hard-coded surfaces and foregrounds. */
:root[data-theme="light"] body,
:root[data-theme="light"] .main-column,
:root[data-theme="light"] .main-content { background-color:var(--bg); color:var(--text); }
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .loading-card,
:root[data-theme="light"] .toast,
:root[data-theme="light"] .module-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .guild-card,
:root[data-theme="light"] .feature-card,
:root[data-theme="light"] .settings-panel,
:root[data-theme="light"] .details-modal { background:var(--surface); color:var(--text); border-color:var(--line); }
:root[data-theme="light"] .button.outline,
:root[data-theme="light"] .icon-button { background:var(--surface); color:var(--text); border-color:var(--line-strong); }
:root[data-theme="light"] .button.ghost { background:color-mix(in srgb,var(--purple) 10%,var(--surface)); color:var(--purple); }
:root[data-theme="light"] .nav-item,
:root[data-theme="light"] .nav-label,
:root[data-theme="light"] .breadcrumb,
:root[data-theme="light"] .server-current-copy,
:root[data-theme="light"] .user-copy,
:root[data-theme="light"] .module-title h3,
:root[data-theme="light"] .bucket-heading h3,
:root[data-theme="light"] .page-heading h1,
:root[data-theme="light"] .section-intro h2,
:root[data-theme="light"] .panel-header h2,
:root[data-theme="light"] .stat-card b,
:root[data-theme="light"] .data-table td { color:var(--text); }
:root[data-theme="light"] .module-title p,
:root[data-theme="light"] .guild-id,
:root[data-theme="light"] .page-heading p,
:root[data-theme="light"] .panel-header p,
:root[data-theme="light"] .setting-row small,
:root[data-theme="light"] .muted-text,
:root[data-theme="light"] .empty-state p { color:var(--muted); }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .search-box input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="light"] select { background:var(--surface-2); color:var(--text); border-color:var(--line-strong); }
:root[data-theme="light"] .data-table th { background:var(--surface-2); color:var(--muted); }
:root[data-theme="light"] .data-table td,
:root[data-theme="light"] .module-controls,
:root[data-theme="light"] .setting-row { border-color:var(--line); }
:root[data-theme="light"] .bar-track { background:var(--surface-3); }
:root[data-theme="light"] .empty-inline { color:var(--muted); }
:root[data-theme="light"] .toast { box-shadow:var(--shadow); }
:root[data-theme="light"] .sidebar-open::before { background:rgba(20,28,45,.28); }

/* Direction-aware dashboard shell: Arabic sidebar on the right, English sidebar on the left. */
html[dir="ltr"] .sidebar{right:auto;left:0;border-left:0;border-right:1px solid var(--line);direction:ltr}
html[dir="ltr"] .main-column{margin-right:0;margin-left:254px}
html[dir="ltr"] .nav-item{text-align:left}
html[dir="ltr"] .nav-label{text-align:left}
html[dir="ltr"] .sidebar-brand,html[dir="ltr"] .current-server,html[dir="ltr"] .user-row{direction:ltr}
@media(max-width:820px){html[dir="ltr"] .sidebar{left:0;right:auto;transform:translateX(-105%)}html[dir="ltr"] .sidebar-open .sidebar{transform:translateX(0)}html[dir="ltr"] .main-column{margin-left:0;margin-right:0}}

/* v2.3.24: compact horizontal protection rows */
.module-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.module-card{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(260px,1.7fr) auto;align-items:center;gap:18px;padding:20px 22px;border-radius:14px;background:#11172a}
.module-card-head{align-items:center;min-width:0;gap:14px}
.module-symbol{display:none}
.module-title h3{font-size:15px;text-transform:uppercase;line-height:1.45;margin:0 0 3px}
.module-title p{font-size:10px;line-height:1.55}
.module-card-head>.switch{grid-column:3;grid-row:1}
.module-controls{display:flex;align-items:flex-start;justify-content:flex-start;gap:clamp(16px,3vw,48px);margin:0;padding:0;border:0;min-width:0;flex-wrap:wrap}
.module-controls .field{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:125px;max-width:190px;flex:1}
.module-controls .field>span{font-size:12px;font-weight:700;color:#e7eaf4;text-transform:uppercase;line-height:1.25}
.module-controls .field input,.module-controls .field select{height:40px;border:0;border-radius:12px;background:#1a2034;text-align:center;font-size:13px;padding:0 12px}
.module-controls .inline-check{font-size:11px;align-self:center;grid-column:auto}
.module-card-foot{margin:0;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.module-card-foot>.module-state{display:none}
.module-actions{display:flex;align-items:center;gap:8px}
.module-actions .button{min-height:40px}
@media(max-width:900px){.module-card{grid-template-columns:minmax(0,1fr) auto;gap:15px}.module-card-head{grid-column:1;grid-row:1}.module-card-head>.switch{grid-column:2;grid-row:1}.module-controls{grid-column:1/-1;grid-row:2;padding-top:14px;border-top:1px solid var(--line)}.module-card-foot{grid-column:1/-1;grid-row:3;justify-content:flex-end}}
@media(max-width:560px){.module-card{padding:15px;gap:13px}.module-title h3{font-size:13px}.module-controls{gap:12px}.module-controls .field{min-width:calc(50% - 8px);max-width:none}.module-controls .field>span{font-size:10px}.module-controls .field input,.module-controls .field select{height:38px}.module-card-foot{justify-content:stretch}.module-actions{width:100%}.module-actions .button{flex:1}.module-card-head>.switch{margin-inline-start:4px}}
html[dir="ltr"] .module-card{direction:ltr}
html[dir="ltr"] .module-controls .field>span{text-align:left}
html[dir="rtl"] .module-card{direction:rtl}

/* v2.3.27: toggle lives in the former Details slot; no redundant status label */
.module-card{grid-template-columns:minmax(150px,1.05fr) minmax(260px,1.7fr) 76px}
.module-card-head{grid-column:1;grid-row:1}
.module-controls{grid-column:2;grid-row:1}
.module-toggle-slot{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:76px}
.module-toggle-slot .switch{width:58px;height:31px;display:block;position:relative;cursor:pointer}
.module-toggle-slot .switch span{position:absolute;inset:0;border-radius:999px;background:#3c455c;transition:background .18s}
.module-toggle-slot .switch span:before{width:23px;height:23px;top:4px;right:4px;transform:none;transition:transform .18s}
.module-toggle-slot .switch input:checked+span{background:#8b5cf6}
.module-toggle-slot .switch input:checked+span:before{transform:translateX(-27px)}
.module-enable .module-state{display:none!important}
.module-enable.module-toggle-slot{display:flex!important;flex-direction:row;align-items:center;justify-content:center;gap:0}
@media(max-width:900px){.module-card{grid-template-columns:minmax(0,1fr) 76px}.module-card-head{grid-column:1;grid-row:1}.module-toggle-slot{grid-column:2;grid-row:1}.module-controls{grid-column:1/-1;grid-row:2}}
@media(max-width:560px){.module-toggle-slot{min-width:58px}.module-toggle-slot .switch{width:52px;height:28px}.module-toggle-slot .switch span:before{width:20px;height:20px;top:4px;right:4px}.module-toggle-slot .switch input:checked+span:before{transform:translateX(-24px)}}
