/* نظام بصري موحّد لمنصة تمكين */
:root{
 --ui-border:#d7dee8;
 --ui-muted:#f1f4f8;
 --ui-text-muted:#43536a;
 --ui-radius:1rem;
 --ui-radius-small:.7rem;
 --ui-shadow:0 8px 24px rgb(16 33 61 / 8%);
 --ui-shadow-raised:0 16px 34px rgb(16 33 61 / 14%);
 --ui-focus-halo:rgb(255 191 0 / 35%);
 --font-arabic:'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* الوضع الداكن - Dark Theme Overrides */
[data-theme="dark"], body.dark-mode {
 --page-bg: #0b1320;
 --surface-bg: #111c2e;
 --ink: #f1f5f9;
 --ui-border: #1e2d42;
 --ui-muted: #172438;
 --ui-text-muted: #94a3b8;
 --ui-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
 --ui-shadow-raised: 0 16px 34px rgba(0, 0, 0, 0.6);
 --navy: #152847;
 --gold: #ffd447;
 --link-color: #60a5fa;
}

/* نمط التباين الفائق لمستخدمي ضعاف البصر (WCAG AAA High Contrast) */
html[data-contrast="high"] {
 --page-bg: #000000 !important;
 --surface-bg: #000000 !important;
 --ink: #ffffff !important;
 --navy: #000000 !important;
 --gold: #ffdf00 !important;
 --ui-border: #ffdf00 !important;
 --ui-muted: #111111 !important;
 --ui-text-muted: #ffffff !important;
 --ui-shadow: none !important;
 --ui-shadow-raised: none !important;
 --link-color: #ffdf00 !important;
 --focus: #00ff66 !important;
}

html[data-contrast="high"] :is(body, .site-header, footer, .card, .form-card, .table-wrap, .admin-nav, .stat-card, .quick-action, .chart-card, .dashboard-section, .section, .section-soft) {
 background-color: #000000 !important;
 color: #ffffff !important;
 border-color: #ffdf00 !important;
}

html[data-contrast="high"] :is(h1, h2, h3, h4, strong, b, dt, legend) {
 color: #ffdf00 !important;
}

html[data-contrast="high"] a {
 color: #ffdf00 !important;
 text-decoration: underline !important;
}

html[data-contrast="high"] :is(button, .button) {
 background-color: #000000 !important;
 color: #ffdf00 !important;
 border: 2px solid #ffdf00 !important;
 font-weight: 800 !important;
}

html[data-contrast="high"] :is(button, .button):hover {
 background-color: #ffdf00 !important;
 color: #000000 !important;
}

html[data-contrast="high"] :is(input, select, textarea) {
 background-color: #000000 !important;
 color: #ffffff !important;
 border: 2px solid #ffdf00 !important;
}

html[data-contrast="high"] :is(th, td) {
 background-color: #000000 !important;
 color: #ffffff !important;
 border: 2px solid #ffdf00 !important;
}

html[data-contrast="high"] :focus-visible {
 outline: 4px solid #00ff66 !important;
 outline-offset: 4px !important;
 box-shadow: 0 0 0 8px #000000 !important;
}

/* مقياس حجم الخط (Accessible Font Scaling) */
html[data-font-scale="medium"] {
 font-size: 115% !important;
}

html[data-font-scale="large"] {
 font-size: 130% !important;
}

[data-theme="dark"] .site-header {
 background: rgba(15, 23, 42, 0.85) !important;
 backdrop-filter: blur(14px);
 -webkit-backdrop-filter: blur(14px);
 border-bottom-color: var(--gold);
}

[data-theme="dark"] .card, [data-theme="dark"] .form-card, [data-theme="dark"] .table-wrap, [data-theme="dark"] .admin-nav, [data-theme="dark"] .stat-card, [data-theme="dark"] .quick-action {
 background: #111c2e !important;
 border-color: #1e2d42 !important;
 color: #f1f5f9 !important;
}

[data-theme="dark"] .field label, [data-theme="dark"] legend, [data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] th {
 color: #f8fafc !important;
}

[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select {
 background: #0f172a !important;
 border-color: #64748b !important;
 color: #f8fafc !important;
}

[data-theme="dark"] tbody tr:nth-child(even) {
 background: #172438 !important;
}
[data-theme="dark"] tbody tr:hover {
 background: #1e2d42 !important;
}

html{scroll-padding-top:1.25rem;text-rendering:optimizeLegibility}
body{min-width:320px;background:var(--page-bg,#fffdf7);color:var(--ink,#101827);font-family:var(--font-arabic);font-size:1rem;line-height:1.75;-webkit-font-smoothing:antialiased;transition:background-color .25s ease, color .25s ease}
::selection{background:var(--gold,#ffd447);color:#101827}
h1,h2,h3,h4{color:inherit;text-wrap:pretty;font-family:var(--font-arabic)}
p{max-width:75ch}
a{transition:color .15s ease,text-decoration-color .15s ease}
a:not(.button):hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--navy,#10213d)!important;outline-offset:3px!important;box-shadow:0 0 0 6px var(--focus,#ffbf00)!important}
.skip-link{border:2px solid var(--navy,#10213d);border-radius:.5rem;box-shadow:var(--ui-shadow)}

/* رأس الموقع */
.site-header{background:var(--navy,#10213d)!important;border-bottom:3px solid var(--gold,#ffd447);box-shadow:0 5px 20px rgb(9 24 44 / 16%);position:sticky;top:0;z-index:100;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.header-inner{min-height:5.5rem;gap:1.15rem;padding-block:.85rem}
.brand{gap:.8rem;color:#fff!important;font-size:.98rem;line-height:1.45}
.brand-logo,.brand-mark{flex:none;width:3.25rem;height:3.25rem;border:1px solid #ffffff80;border-radius:.8rem;box-shadow:0 4px 12px #08152830;transition:transform .2s ease}
.brand:hover .brand-logo, .brand:hover .brand-mark{transform:scale(1.05) rotate(-3deg)}
.brand-mark{background:var(--gold,#ffd447);color:#10213d}
.brand small{color:#e1eaf4;font-size:.8rem}
.site-nav{min-width:0;max-width:100%}
.site-nav ul{width:100%;min-width:0;max-width:100%;margin:0;padding:0;list-style:none;align-items:center}
.site-nav a{min-height:2.7rem;padding-inline:.65rem;border:1px solid transparent;border-radius:.55rem;font-size:.91rem;transition:all .18s ease}
.site-nav a:hover,.site-nav a[aria-current="page"]{border-color:#ffffff35;background:#ffffff13;text-decoration:none}
.header-actions{gap:.5rem;display:flex;align-items:center}

/* زر التبديل والمنسدلة للهواتف */
.theme-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;padding:0;border:1px solid rgba(255,255,255,0.55);border-radius:50%;background:rgba(255,255,255,0.14);color:#fff;cursor:pointer;transition:all .2s ease}
.theme-toggle-btn:hover{background:rgba(255,255,255,0.2);transform:rotate(15deg)}
.mobile-menu-toggle{display:none;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;padding:0;border:1px solid rgba(255,255,255,0.55);border-radius:.5rem;background:rgba(255,255,255,0.14);color:#fff;cursor:pointer}

/* أزرار وعناصر الإدخال */
.button{min-height:2.9rem;padding:.62rem 1.05rem;border-radius:.65rem;font-size:.96rem;font-weight:750;line-height:1.4;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease}
.button:hover:not(:disabled){transform:translateY(-2px);filter:none;box-shadow:0 7px 16px rgb(16 33 61 / 20%);text-decoration:none}
.button:active:not(:disabled){transform:translateY(0)}
.button-primary{background:var(--navy,#10213d);color:#fff}
.button-gold{background:linear-gradient(135deg,#ffdf65,#ffd447);color:#171717}
.button-danger{background:#8e1c24;color:#fff}
.button-outline-dark{border-color:#52647d;background:#fff;color:#10213d}
.field{gap:.48rem;margin-block-end:1.1rem}
.field label{color:var(--ink,#17263b);font-weight:750;line-height:1.55}
.field label span,.field small,.field>small{color:var(--ui-text-muted,#43536a)}
.field input,.field textarea,.field select{min-height:3.1rem;padding:.68rem .85rem;border:1.5px solid #76849a;border-radius:.6rem;background:var(--surface-bg,#fff);color:var(--ink,#101827);transition:border-color .15s ease,box-shadow .15s ease}
.field textarea{min-height:8rem;resize:vertical}
.field input:hover,.field textarea:hover,.field select:hover{border-color:#314c70}
[data-theme="dark"] .field input:hover,[data-theme="dark"] .field textarea:hover,[data-theme="dark"] .field select:hover{border-color:#94a3b8!important}
.field input:focus-visible,.field textarea:focus-visible,.field select:focus-visible{border-color:var(--navy,#10213d)!important;outline:3px solid var(--navy,#10213d)!important;outline-offset:2px!important;box-shadow:0 0 0 6px var(--focus,#ffbf00)!important}
input[type=checkbox],input[type=radio]{accent-color:#10213d}
fieldset{min-inline-size:0;max-inline-size:100%;border:1px solid var(--ui-border);border-radius:.75rem;background:var(--surface-bg,#fff)}
legend{padding-inline:.55rem;color:var(--ink,#17263b);font-weight:800}

/* شارات ومكونات تفاعلية */
.badge-status {
 display: inline-flex;
 align-items: center;
 gap: 0.35rem;
 padding: 0.25rem 0.65rem;
 border-radius: 999px;
 font-size: 0.82rem;
 font-weight: 700;
 text-transform: uppercase;
}
.badge-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.badge-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-info    { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* بطاقات الرسومات البيانية - Chart Cards */
.charts-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
 gap: 1.25rem;
 margin-block: 1.5rem;
}
.chart-card {
 border: 1px solid var(--ui-border);
 border-radius: var(--ui-radius);
 background: var(--surface-bg,#fff);
 padding: 1.25rem;
 box-shadow: var(--ui-shadow);
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chart-card:hover {
 transform: translateY(-3px);
 box-shadow: var(--ui-shadow-raised);
}
.chart-card h3 {
 margin-top: 0;
 margin-bottom: 1rem;
 font-size: 1.15rem;
 font-weight: 800;
 display: flex;
 align-items: center;
 gap: 0.5rem;
}
.chart-wrapper {
 position: relative;
 width: 100%;
 min-height: 220px;
 max-height: 280px;
 display: flex;
 justify-content: center;
 align-items: center;
}

/* المساحات والبطاقات */
.section{padding-block:clamp(3rem,6vw,5rem)}
.section h2,.page-title{margin-block:0 .75rem;font-size:clamp(1.8rem,3.5vw,2.65rem);font-weight:850;line-height:1.35;letter-spacing:-.02em}
.eyebrow{margin-block-end:.5rem;font-size:.88rem;font-weight:800;letter-spacing:.015em}
.lead{max-width:68ch;margin-block:.65rem 1.2rem;color:var(--ui-text-muted);font-size:1.08rem;line-height:1.85}
.card,.form-card{border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--surface-bg,#fff);box-shadow:var(--ui-shadow)}
.card{padding:clamp(1.1rem,2.3vw,1.6rem);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.card h2,.card h3{font-weight:800;line-height:1.45}
.form-card{padding:clamp(1.2rem,3vw,2rem)}
.notice{border:1px solid #b6dbc8;border-inline-start:5px solid #167044;border-radius:.7rem;box-shadow:var(--ui-shadow);animation:fadeIn .3s ease}
.notice-error{border-color:#efc0c3;border-inline-start-color:#a61e2b}

@keyframes fadeIn {
 from { opacity: 0; transform: translateY(-5px); }
 to { opacity: 1; transform: translateY(0); }
}

/* الجداول والقوائم */
.table-wrap{border:1px solid var(--ui-border);border-radius:.75rem;background:var(--surface-bg,#fff);box-shadow:0 4px 14px rgb(16 33 61 / 5%);overscroll-behavior-inline:contain}
table{border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:.7rem;width:100%}
caption{padding:.85rem 1rem;color:var(--ui-text-muted,#34465b);font-size:.94rem}
th,td{padding:.78rem .85rem;border-color:var(--ui-border,#d7dee8);vertical-align:middle;line-height:1.6}
th{background:linear-gradient(110deg,#10213d,#1b3c60);color:#fff;font-weight:750}
tbody tr:nth-child(even){background:color-mix(in srgb, var(--surface-bg,#fff), var(--ui-muted,#f7f9fc) 50%)}
tbody tr:hover{background:color-mix(in srgb, var(--gold,#ffd447), var(--surface-bg,#fff) 88%)}

/* أشرطة التنقل الإدارية ومساحات الحساب */
.admin-nav{gap:.45rem;padding:.55rem;border:1px solid var(--ui-border);border-radius:.8rem;background:var(--surface-bg,#fff);box-shadow:0 4px 14px rgb(16 33 61 / 5%)}
.admin-nav a{min-height:2.65rem;padding:.45rem .75rem;border:1px solid transparent;border-radius:.55rem;color:var(--ink,#17385e);text-decoration:none}
.admin-nav a:hover{border-color:#d4dce6;background:var(--ui-muted,#f3f6fa);text-decoration:none}
.admin-nav a[aria-current="page"]{border-color:#10213d;background:#10213d;color:#fff}
.profile-status{gap:.55rem 1rem;padding:1rem;border:1px solid var(--ui-border);border-radius:.7rem;background:var(--ui-muted,#f8fafc)}
.profile-status dt{color:var(--ui-text-muted,#43536a);font-weight:700}
.profile-status dd{color:var(--ink,#17263b);font-weight:750;overflow-wrap:anywhere}
.table-wrap a,.profile-status a{font-weight:700}

/* التذييل */
footer{background:linear-gradient(115deg,#0b1930,#142f50)!important;border-top:4px solid var(--gold,#ffd447)}
footer h2{font-size:1.12rem;line-height:1.5}
footer p,footer a{color:#edf2f7}

@media(max-width:1080px){
 .header-inner{gap:.8rem}
 .site-nav{order:3;width:100%;margin:0}
 .site-nav ul{justify-content:center}
 .mobile-menu-toggle{display:inline-flex}
}
@media(max-width:680px){
 .header-inner{width:100%;min-width:0;gap:.7rem}
 .brand{align-items:center;max-width:100%;font-size:.9rem}
 .brand>span:last-child{min-width:0;overflow-wrap:anywhere}
 .brand small{font-size:.76rem}
 .site-nav{width:100%;min-width:0;max-width:100%;overflow:hidden}
 .site-nav ul{width:100%;min-width:0;max-width:100%;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:.15rem .1rem .55rem;scroll-snap-type:x proximity;scrollbar-width:thin}
 .site-nav li{flex:0 0 auto;scroll-snap-align:start}
 .site-nav a{font-size:.88rem}
 .header-actions{width:100%;justify-content:stretch}
 .header-actions>.button,.header-actions>form{flex:1}
 .header-actions form .button{width:100%}
 .section{padding-block:2.75rem}
 .section h2,.page-title{font-size:clamp(1.65rem,7vw,2.1rem)}
 .lead{font-size:1rem}
 .card,.form-card{border-radius:.8rem}
 .table-wrap{max-width:100%}
 .table-wrap table{min-width:38rem}
 .charts-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.site-header,.admin-nav,.header-actions,footer,.skip-link{display:none!important}.card,.form-card{box-shadow:none}}

/* تحسينات تجربة الاستخدام المشتركة للموقع والبوابات */
.js-enabled .site-nav{transition:opacity .18s ease,transform .18s ease}
@media(max-width:1080px){
 .js-enabled .site-nav:not(.is-open){display:none}
 .js-enabled .site-nav.is-open{display:block;animation:navReveal .18s ease both}
 .site-nav ul{justify-content:flex-start;gap:.35rem;}
 .site-nav a{display:flex;align-items:center;min-height:2.9rem;padding-inline:.8rem}
 .mobile-menu-toggle{order:1}
 .brand{order:0;flex:1}
 .header-actions{order:2}
 .site-nav{order:3;width:100%;padding-block:.45rem}
}
@keyframes navReveal{from{opacity:0;transform:translateY(-.35rem)}to{opacity:1;transform:translateY(0)}}
.dashboard-section{scroll-margin-block-start:6rem}
.admin-section>.mx-auto,.portal-section>.mx-auto{max-width:82rem}
.admin-nav{display:flex;align-items:center;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.admin-nav a{flex:0 0 auto;white-space:nowrap}
.admin-welcome{background:linear-gradient(115deg,#eef3f9,#fff8dc);border:1px solid #d9e0e9}
.stat-card{min-width:0;min-height:8.5rem;justify-content:space-between;box-shadow:var(--ui-shadow);transition:transform .18s ease,box-shadow .18s ease}
.stat-card:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow-raised)}
.stat-card strong{font-variant-numeric:tabular-nums}
.quick-action{min-height:3.5rem;gap:1rem}
.upcoming-list li{line-height:1.65}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap:focus-within{outline:3px solid var(--navy,#10213d);outline-offset:3px;box-shadow:0 0 0 6px var(--focus,#ffbf00)}
input,select,textarea,button{font:inherit}
button:disabled,.button:disabled{cursor:not-allowed;opacity:.7}
img{max-width:100%;height:auto}
[dir="ltr"]{unicode-bidi:isolate}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:680px){
 .header-inner{display:flex;align-items:center}
 .brand{flex:1;min-width:0}
 .mobile-menu-toggle{flex:0 0 auto}
 .header-actions{width:auto;flex:0 1 auto;justify-content:flex-end}
 .header-actions>.button,.header-actions>form{flex:0 1 auto}
 .header-actions .button{min-height:2.7rem;padding-inline:.7rem;font-size:.88rem}
 .js-enabled .site-nav ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 .js-enabled .site-nav li,.js-enabled .site-nav a{min-width:0;width:100%}
 .js-enabled .site-nav a{justify-content:flex-start}
 .dashboard-columns{grid-template-columns:minmax(0,1fr)}
 .admin-welcome{align-items:flex-start;flex-direction:column}
 .admin-date{text-align:right}
 .maintenance-form{grid-template-columns:minmax(0,1fr)}
 .profile-grid,.permissions-grid{grid-template-columns:minmax(0,1fr)}
 .profile-status{grid-template-columns:minmax(6rem,.8fr) minmax(0,1.2fr)}
}
@media(forced-colors:active){
 :focus-visible{outline:3px solid Highlight!important;box-shadow:none!important}
 .button,.badge-status,.admin-nav a[aria-current="page"]{border:1px solid ButtonText}
}

/* مؤشرات التركيز في الوضع الداكن تحتاج لوناً فاتحاً واضحاً فوق الأسطح الداكنة. */
@media(forced-colors:none){
 :is([data-theme="dark"],body.dark-mode) :focus-visible{
  outline-color:#ffd447!important;
 }
 :is([data-theme="dark"],body.dark-mode) .field :is(input,textarea,select):focus-visible{
  border-color:#ffd447!important;
  outline-color:#ffd447!important;
 }
}

/* Modern, compact navigation and collapsible page modules */
.admin-section .admin-nav-group.admin-nav-disclosure{display:block;min-width:10rem;padding:0;border:1px solid var(--ui-border,#d7dee8);border-radius:.75rem;background:var(--surface-bg,#fff)}
.admin-nav-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:.7rem;min-height:2.75rem;padding:.5rem .8rem;color:var(--ink,#10213d);font-size:.9rem;font-weight:800;cursor:pointer;list-style:none}
.admin-nav-disclosure>summary::-webkit-details-marker,.progressive-disclosure>summary::-webkit-details-marker{display:none}
.admin-nav-disclosure>summary::after,.progressive-disclosure>summary::after{content:"⌄";flex:none;color:#735600;font-size:1.15rem;transition:transform .16s ease}
.admin-nav-disclosure[open]>summary::after,.progressive-disclosure[open]>summary::after{transform:rotate(180deg)}
.admin-nav-disclosure[open]>summary{border-bottom:1px solid var(--ui-border,#d7dee8)}
.admin-nav-group-links{display:grid;gap:.25rem;padding:.45rem}
.admin-nav-group-links a{justify-content:flex-start;width:100%;min-height:2.45rem}
.admin-nav-group-links a[aria-current="page"]{background:var(--navy,#10213d);color:#fff}
.admin-nav [hidden]{display:none!important}
.admin-nav-search{display:grid;gap:.25rem;flex:1 1 15rem;min-width:min(100%,15rem);max-width:24rem;padding:.3rem .55rem;border:1px solid var(--ui-border,#d7dee8);border-radius:.7rem;background:var(--surface-bg,#fff)}
.admin-nav-search>label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:var(--ink,#10213d);font-size:.78rem;font-weight:750}
.admin-nav-search kbd{padding:.05rem .35rem;border:1px solid var(--ui-border,#d7dee8);border-radius:.3rem;background:var(--ui-muted,#f3f6fa);font:inherit;font-size:.72rem}
.admin-nav-search input{width:100%;min-height:2.1rem;padding:.25rem .4rem;border:0;border-radius:.35rem;background:transparent;color:var(--ink,#10213d);font:inherit}
.admin-nav-search input:focus{outline:2px solid var(--focus,#ffbf00);outline-offset:1px}
.admin-nav-search-results{align-self:center;color:var(--muted,#56677e);font-size:.82rem}
.progressive-disclosure{min-width:0;overflow:clip}
.progressive-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3.3rem;padding:.15rem .1rem;color:var(--ink,#10213d);font-size:1.15rem;font-weight:850;line-height:1.45;cursor:pointer;list-style:none}
.progressive-disclosure>summary:focus-visible,.admin-nav-disclosure>summary:focus-visible{outline:3px solid var(--focus,#ffbf00);outline-offset:3px;border-radius:.35rem}
.progressive-disclosure-body{min-width:0;margin-block-start:.8rem}
.progressive-disclosure:not([open]){padding-block:.35rem}
.member-dashboard-grid>.progressive-disclosure{align-self:start}
.community-shell>.progressive-disclosure{align-self:start}
.admin-disclosure{margin-block:1rem;padding:0;border:1px solid var(--ui-border,#d7dee8);border-radius:.9rem;background:var(--surface-bg,#fff);box-shadow:var(--ui-shadow,0 8px 24px #10213d12)}
.admin-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3.2rem;padding:.7rem 1rem;color:var(--ink,#10213d);font-weight:850;cursor:pointer;list-style:none}
.admin-disclosure>summary::-webkit-details-marker{display:none}
.admin-disclosure>summary::after{content:"⌄";color:#735600;font-size:1.15rem;transition:transform .16s ease}
.admin-disclosure[open]>summary::after{transform:rotate(180deg)}
.admin-disclosure[open]>summary{border-bottom:1px solid var(--ui-border,#d7dee8)}
.admin-disclosure>form.form-card{margin:0;border:0;box-shadow:none}
.admin-disclosure>.table-wrap{margin:0;border:0;border-radius:0;box-shadow:none}
.admin-disclosure .table-wrap table{border-radius:0}
.admin-disclosure>form.form-card,.admin-disclosure>.table-wrap{padding:1rem}
.form-disclosure{margin-block:1rem;padding:0;border:1px solid var(--ui-border,#d7dee8);border-radius:.85rem;background:var(--surface-bg,#fff)}
.form-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3.3rem;padding:.75rem 1rem;color:var(--ink,#10213d);font-weight:850;cursor:pointer;list-style:none}
.form-disclosure>summary::-webkit-details-marker{display:none}
.form-disclosure>summary::after{content:"⌄";flex:none;color:#735600;font-size:1.15rem;transition:transform .16s ease}
.form-disclosure[open]>summary::after{transform:rotate(180deg)}
.form-disclosure[open]>summary{border-bottom:1px solid var(--ui-border,#d7dee8)}
.form-disclosure-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;padding:1rem}
.form-disclosure-body>.field{min-width:0;margin:0}
.form-disclosure-body>.field:has(textarea),.form-disclosure-body>.field:has(small){grid-column:1/-1}
.form-disclosure:has(> .form-disclosure-body > fieldset){grid-column:1/-1}
.form-disclosure-body>fieldset{grid-column:1/-1;min-width:0}
.form-disclosure>summary:focus-visible{outline:3px solid var(--focus,#ffbf00);outline-offset:3px}
@media(max-width:640px){.form-disclosure-body{grid-template-columns:1fr;padding:.8rem}.form-disclosure-body>.field:has(textarea),.form-disclosure-body>.field:has(small){grid-column:auto}}
@media(prefers-reduced-motion:reduce){.form-disclosure>summary::after{transition:none}}
@media(prefers-reduced-motion:reduce){.admin-disclosure>summary::after{transition:none}}
@media(max-width:760px){.progressive-disclosure>summary{font-size:1.04rem}}
@media(prefers-reduced-motion:reduce){.admin-nav-disclosure>summary::after,.progressive-disclosure>summary::after{transition:none}}

/* طبقة تحسين عامة: تسلسل أوضح، مساحات أكثر اتساقاً، وتحكم أفضل بالواجهات الضيقة. */
:root{
 --ui-border:#d5deea;
 --ui-muted:#f3f6fa;
 --ui-text-muted:#526176;
 --ui-radius:1.05rem;
 --ui-shadow:0 7px 22px rgb(16 33 61 / 7%);
 --ui-shadow-raised:0 14px 30px rgb(16 33 61 / 12%);
}
body{background-image:linear-gradient(180deg,rgb(242 246 251 / 72%),transparent 28rem)}
main{min-height:55vh}
.section{scroll-margin-block-start:6.5rem}
.section>.mx-auto,.admin-section>.mx-auto,.portal-section>.mx-auto{width:min(100% - 2rem,82rem);padding-inline:0}
.page-title{max-width:24ch}
.eyebrow{color:#735600}
.lead{max-width:66ch;color:var(--ui-text-muted);line-height:1.9}
.admin-section>.mx-auto>.page-title{margin-block-end:1.2rem}
.card,.form-card,.admin-disclosure,.form-disclosure,.chart-card{border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
.card h2,.card h3,.form-card h2,.form-card h3{letter-spacing:-.01em}
.card :is(p,li),.form-card :is(p,small){line-height:1.8}
.button{min-height:2.75rem;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}
.button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 5px 14px rgb(16 33 61 / 12%)}
.button:active{transform:translateY(0)}
.field{min-width:0}
.field :is(input,select,textarea){min-height:2.85rem;border-radius:.65rem}
.field textarea{min-height:7rem}
.field :is(input,select,textarea)::placeholder{color:#7b8797;opacity:1}
.field :is(input,select,textarea):focus-visible{border-color:#987500;box-shadow:0 0 0 4px var(--ui-focus-halo)!important}
.table-wrap{border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
.table-wrap table{min-width:40rem}
.table-wrap th{position:sticky;top:0;z-index:1;white-space:nowrap}
.table-wrap td{overflow-wrap:anywhere}
.table-wrap td :is(.button,button){min-height:2.45rem}
.admin-nav{gap:.5rem;padding:.65rem}
.admin-nav-disclosure,.admin-nav>a{box-shadow:0 2px 8px rgb(16 33 61 / 4%)}
.admin-nav-disclosure[open]{box-shadow:0 8px 22px rgb(16 33 61 / 10%)}
.admin-welcome{border-radius:1rem;box-shadow:var(--ui-shadow)}
.dashboard-section{padding:1.15rem;border:1px solid var(--ui-border);border-radius:1rem;background:color-mix(in srgb,var(--surface-bg,#fff),transparent 5%)}
.dashboard-section>h2{margin-block-end:1rem}
.stat-card{border:1px solid var(--ui-border);border-radius:.9rem;background:var(--surface-bg,#fff)}
.progressive-disclosure>summary{padding:.35rem .2rem}
.admin-disclosure>summary,.form-disclosure>summary{min-height:3.6rem}
:is([data-theme="dark"] body,body.dark-mode){background-image:none}
:is([data-theme="dark"],body.dark-mode) .eyebrow{color:#ffe27d}
:is([data-theme="dark"],body.dark-mode) :is(.admin-disclosure,.form-disclosure,.admin-nav-disclosure){background:var(--surface-bg,#111c2e);border-color:var(--ui-border)}
:is([data-theme="dark"],body.dark-mode) :is(.admin-disclosure>summary,.form-disclosure>summary,.progressive-disclosure>summary,.admin-nav-disclosure>summary){color:var(--ink,#f1f5f9)}
:is([data-theme="dark"],body.dark-mode) .dashboard-section{background:color-mix(in srgb,var(--surface-bg,#111c2e),transparent 3%)}
:is([data-theme="dark"],body.dark-mode) .table-wrap th{background:#1b3557}
:is([data-theme="dark"],body.dark-mode) .field :is(input,select,textarea)::placeholder{color:#a6b3c5}
@media(max-width:680px){
 .section>.mx-auto,.admin-section>.mx-auto,.portal-section>.mx-auto{width:min(100% - 1.25rem,82rem)}
 .section{padding-block:2.25rem}
 .card,.form-card{padding:1rem}
 .dashboard-section{padding:.85rem}
 .table-wrap table{min-width:36rem}
 .admin-nav{align-items:stretch}
 .admin-nav-disclosure{max-width:calc(100vw - 2rem)}
 .button:not(.icon-button){white-space:normal}
}
@media(prefers-reduced-motion:reduce){.button{transition:none!important}.button:not(:disabled):hover{transform:none}}

/* استمارة الانخراط: مجموعات ظاهرة دائماً وتخطيط واضح دون فتح وطي. */
.membership-request-form{display:grid;gap:1.15rem;counter-reset:membership-section}
.membership-form-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem;margin:0;padding:1.15rem;border:1px solid var(--ui-border);border-radius:.95rem;background:var(--surface-bg,#fff)}
.membership-form-group>legend{grid-column:1/-1;float:none;width:100%;margin:0;padding:0;color:var(--ink,#10213d);font-size:1.08rem;font-weight:850;line-height:1.5}
.membership-form-group>legend::before{counter-increment:membership-section;content:counter(membership-section);display:inline-grid;width:1.8rem;height:1.8rem;margin-inline-end:.55rem;place-items:center;border-radius:50%;background:#10213d;color:#fff;font-size:.88rem;vertical-align:middle}
.membership-form-group>.field{grid-column:span 1;margin:0}
.membership-form-group>.field:has(small),.membership-form-group>.field:has(textarea),.membership-form-group>p{grid-column:1/-1}
.sport-choice-group{min-width:0;padding:1rem}.sport-choice-group>legend{float:none;width:auto;padding-inline:.4rem;font-weight:800}.sport-choice-group>.field-help{margin:.1rem 0 .6rem;color:var(--ink,#17263b);line-height:1.6}.sport-choice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.55rem}.sport-choice-list .check-row{display:flex;min-width:0;min-height:3.25rem;align-items:center;gap:.7rem;margin:0;padding:.65rem .8rem;border:2px solid var(--ui-border,#d7dee8);border-radius:.55rem;background:var(--ui-muted,#f5f7fa);color:var(--ink,#17263b);cursor:pointer;line-height:1.5}.sport-choice-list .check-row:focus-within{outline:3px solid var(--focus,#ffbf00);outline-offset:2px}.sport-choice-list input[type="checkbox"]{width:1.5rem;height:1.5rem;flex:0 0 auto;margin:0;accent-color:#145c48;cursor:pointer}.sport-choice-list input[type="checkbox"]:focus-visible{outline:3px solid var(--focus,#ffbf00);outline-offset:3px}.date-input-field input[type="date"]{min-height:3.5rem;max-width:100%;font-size:1rem;touch-action:manipulation;cursor:pointer}.date-input-field input[type="date"]::-webkit-calendar-picker-indicator{display:block;min-width:2.5rem;min-height:2.5rem;padding:.55rem;opacity:1;cursor:pointer}.date-input-field input[type="date"]:read-only{cursor:default}
.identity-document-waiver{display:grid;gap:.75rem;margin-block:1rem;padding:1rem;border:2px solid #8b7432;border-radius:.85rem;background:#fff9e6;color:#30270d}.identity-document-waiver h3,.identity-document-waiver p{margin:0}.identity-document-waiver-form{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem}.identity-document-waiver-form .check-row{display:flex;align-items:center;gap:.6rem;min-height:3rem;margin:0;font-weight:800}.identity-document-waiver-form input[type="checkbox"]{width:1.4rem;height:1.4rem;accent-color:#145c48}.identity-document-waiver-confirmation{padding:.7rem;border-inline-start:4px solid #286447;background:#eaf6ed;color:#173b2a;font-weight:750}
:root[data-theme="dark"] .identity-document-waiver{border-color:#e0c770;background:#2a2619;color:#f5f0dc}:root[data-theme="dark"] .identity-document-waiver-confirmation{border-color:#83c69f;background:#162d23;color:#e2f5e9}
.rich-editor{gap:.55rem}.rich-editor-toolbar{display:flex;flex-wrap:wrap;gap:.35rem;padding:.55rem;border:1px solid var(--ui-border,#d7dee8);border-radius:.45rem;background:var(--ui-muted,#f5f7fa)}.rich-editor-toolbar .button{min-height:2.35rem;padding:.35rem .6rem;font-size:.88rem}.rich-editor-canvas{min-height:16rem;max-height:48rem;overflow:auto;padding:1rem;border:1px solid #657184;border-radius:.4rem;background:var(--surface-bg,#fff);color:var(--ink,#101827);line-height:1.85}.rich-editor-canvas:focus-visible{outline:3px solid var(--focus,#ffbf00);outline-offset:2px}.rich-editor-canvas:empty::before{content:"اكتب المحتوى هنا…";color:#667085;pointer-events:none}.rich-editor-canvas h2,.rich-content-display h2{font-size:1.45rem;font-weight:850}.rich-editor-canvas h3,.rich-content-display h3{font-size:1.2rem;font-weight:800}.rich-editor-canvas ul,.rich-editor-canvas ol,.rich-content-display ul,.rich-content-display ol{padding-inline-start:1.75rem}.rich-editor-canvas blockquote,.rich-content-display blockquote{margin:1rem 0;padding:.65rem 1rem;border-inline-start:4px solid #16835d;background:var(--ui-muted,#f3f6fa)}.rich-editor-canvas img,.rich-content-display img{display:block;max-width:100%;height:auto;margin:1rem auto;border-radius:.3rem}.rich-editor-canvas iframe,.rich-content-display iframe{width:100%;aspect-ratio:16/9;border:0}.rich-video{width:min(100%,48rem);margin:1rem auto;aspect-ratio:16/9}.rich-video iframe{display:block;width:100%;height:100%;border:0}.rich-editor-source,.rich-editor-file{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.rich-editor-status{min-height:1.5em;margin:0;color:#7a2631;font-size:.9rem}.rich-editor-privacy-note{margin:-.5rem 0 0;color:var(--ui-text-muted,#526176);font-size:.9rem}.rich-content-display{line-height:1.9;overflow-wrap:anywhere}.rich-content-display p{margin-block:.65rem}.rich-content-display a{color:#155a79;text-decoration:underline}
.rich-editor-toolbar{align-items:center;gap:.45rem;padding:.75rem;border-radius:.75rem;background:linear-gradient(145deg,#f8fafc,#eef2f7)}
.rich-editor-toolbar .button{min-height:2.7rem;padding:.45rem .7rem;border-color:#cbd5e1;background:#fff;color:#172b46;font-weight:750}
.rich-editor-toolbar .button:hover{border-color:#17385e;background:#edf4fb}
.rich-editor-toolbar .button[aria-pressed="true"]{border-color:#17385e;background:#17385e;color:#fff}
.rich-editor-toolbar :is(button,select,input):focus-visible{z-index:1;outline:3px solid #b78100;outline-offset:2px}
.rich-editor-control{display:inline-flex;align-items:center;gap:.4rem;min-height:2.7rem;padding:.3rem .55rem;border:1px solid #cbd5e1;border-radius:.55rem;background:#fff;color:#27384e;font-size:.86rem;font-weight:750}
.rich-editor-control select{max-width:10rem;min-height:2rem;border:1px solid #cbd5e1;border-radius:.35rem;background:#fff;color:inherit;font:inherit;font-weight:600}
.rich-editor-control input[type=color]{width:2.5rem;height:2rem;padding:.12rem;border:1px solid #aeb9c8;border-radius:.35rem;background:#fff;cursor:pointer}
.rich-editor-canvas{min-height:18rem;border:1px solid #98a5b6;border-radius:.65rem;box-shadow:inset 0 1px 2px #10213d0a}
.rich-editor-canvas:empty::before{content:attr(data-placeholder)}
.rich-editor-canvas :is(h2,h3,h4){margin-block:.8em .4em;line-height:1.45}
.rich-editor-counter{margin:0;color:var(--ui-text-muted,#526176);font-size:.84rem;text-align:end}
.rich-editor-status{color:#7a2631;font-weight:700}
@media(max-width:640px){.rich-editor-toolbar{gap:.4rem;padding:.6rem}.rich-editor-control{flex:1 1 9rem;justify-content:space-between}.rich-editor-control select{max-width:7.5rem}.rich-editor-canvas{min-height:14rem;padding:.8rem}}
.membership-form-group>p{margin:0;color:var(--ui-text-muted);font-size:.92rem}
.membership-form-group .field label{display:block;margin-block-end:.4rem;font-weight:750}
.membership-form-group .field label span{color:#9a6a00;font-size:.86em}
.membership-form-group input[type="file"]{min-height:3.2rem;padding:.55rem;background:var(--ui-muted,#f3f6fa)}
.application-answer-list{display:grid;gap:.45rem;min-width:13rem;margin:0 0 .65rem}
.application-answer-list>div{display:grid;grid-template-columns:minmax(7rem,.8fr) minmax(0,1.2fr);gap:.45rem;padding:.5rem .6rem;border:1px solid var(--ui-border,#dbe3ec);border-radius:.5rem;background:var(--ui-muted,#f6f8fb)}
.application-answer-list dt{font-weight:800;color:var(--ink,#24364b)}
.application-answer-list dd{min-width:0;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.application-answer-list+small{display:inline-block;margin-block-start:.35rem;color:var(--ui-text-muted,#58687b)}
.membership-form-group .check-row{grid-column:1/-1;align-items:flex-start;margin:0;padding:.9rem;border:1px solid var(--ui-border);border-radius:.75rem;background:var(--ui-muted,#f3f6fa);line-height:1.8}
.membership-request-form>button[type="submit"]{justify-self:start;min-width:min(100%,15rem);min-height:3.2rem;padding-inline:1.5rem;font-weight:850}
:is([data-theme="dark"],body.dark-mode) .membership-form-group{background:var(--surface-bg,#111c2e);border-color:var(--ui-border)}
:is([data-theme="dark"],body.dark-mode) .membership-form-group>legend{color:var(--ink,#f1f5f9)}
:is([data-theme="dark"],body.dark-mode) .membership-form-group>legend::before{background:#ffd447;color:#10213d}
:is([data-theme="dark"],body.dark-mode) .membership-form-group .check-row{background:var(--ui-muted,#172438);border-color:var(--ui-border)}
:is([data-theme="dark"],body.dark-mode) .sport-choice-list .check-row{background:var(--ui-muted,#172438);border-color:var(--ui-border)}
@media(max-width:640px){
 .membership-request-form{gap:.8rem}
 .membership-form-group{grid-template-columns:1fr;gap:.85rem;padding:.9rem}
 .membership-form-group>.field,.membership-form-group>.field:has(small),.membership-form-group>.field:has(textarea),.membership-form-group>p{grid-column:1}
 .membership-request-form>button[type="submit"]{width:100%;justify-self:stretch}
 .application-answer-list>div{grid-template-columns:1fr;gap:.1rem}
}

.news-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;margin-block-start:1rem;border:1px solid #d9e2ed;border-radius:.85rem;background:#101827;box-shadow:0 8px 22px #10213d18}
.news-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.news-video-preview{max-width:42rem;margin-block:1rem;padding:1rem;border:1px solid #dbe3ec;border-radius:.85rem;background:#f7f9fc}
.news-video-preview>p{margin:0;color:#53647a}
.home-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem;margin-block-start:2rem}
.home-news-card{display:flex;flex-direction:column;align-items:flex-start;gap:.65rem;min-width:0;padding:1.25rem;border:1px solid #dce4ee;border-radius:1rem;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 8px 24px #10213d0b}
.home-news-card h3,.home-news-card p{margin:0}
.home-news-card .eyebrow{color:#62728a;font-size:.88rem}
.home-news-card h3{color:#132b47;font-size:1.25rem;line-height:1.5}
.home-news-card>p:not(.eyebrow){color:#4e5d70;line-height:1.8}
.home-news-read-more,.news-back-link{display:inline-flex;align-items:center;gap:.5rem;margin-block-start:auto;color:#164c79;font-weight:800;text-decoration:underline;text-underline-offset:.2em}
.home-news-read-more:focus-visible,.news-back-link:focus-visible{outline:3px solid #b68b13;outline-offset:3px;border-radius:.2rem}
.public-news-article{padding:clamp(1.1rem,4vw,2.25rem);border:1px solid #dce4ee;border-radius:1.1rem;background:#fff;box-shadow:0 14px 40px #10213d12}
.public-news-article>.eyebrow{margin-block:1.25rem .4rem;color:#66758a}
.public-news-article>.page-title{margin-block:.4rem 1.3rem;line-height:1.4}
.public-news-body{color:#28384d;font-size:1.08rem;line-height:2;overflow-wrap:anywhere}
.public-news-meta{display:grid;grid-template-columns:max-content 1fr;gap:.45rem 1rem;margin-block:1rem;padding:1rem;border-radius:.75rem;background:#f4f7fa}
.public-news-meta dt{font-weight:800;color:#29445f}.public-news-meta dd{margin:0;color:#45566b}
.news-comments{margin-block-start:2rem;padding:clamp(1rem,3vw,1.5rem);border:1px solid #dce4ee;border-radius:1rem;background:#f8fafc}
.news-comments h2{margin:0 0 1rem;color:#17334f}.news-comments h2 span{color:#62728a;font-size:.85em}
.news-comment-list,.news-comment-admin-list{display:grid;gap:.8rem;margin:0;padding:0;list-style:none}
.news-comment-list li,.news-comment-admin-item{padding:1rem;border:1px solid #dce4ee;border-radius:.75rem;background:#fff}
.news-comment-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.news-comment-heading strong{color:#17334f}.news-comment-heading time{color:#69788a;font-size:.85rem}
.news-comment-list li>p,.news-comment-admin-item>p{margin:.65rem 0 0;color:#35465a;line-height:1.75;overflow-wrap:anywhere}
.news-comments-empty{padding:1rem;border:1px dashed #cbd5e1;border-radius:.65rem;background:#fff;color:#5b6c80}
.news-comment-form{display:grid;gap:.8rem;margin-block-start:1.25rem;padding:1rem;border:1px solid #d9e2ec;border-radius:.8rem;background:#fff}
.news-comment-form h3,.news-comment-form p{margin:0}.news-comment-form p{color:#5c6c80;line-height:1.6}.news-comment-form .field{margin:0}.news-comment-form textarea{min-height:8rem}
.comment-honeypot{position:absolute!important;inset-inline-start:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.news-comment-admin{margin-block-start:2rem;padding:clamp(1rem,3vw,1.5rem);border:1px solid #dce4ee;border-radius:1rem;background:#f7f9fc}
.news-comment-admin-shortcut{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin-block:1rem;padding:.75rem 1rem;border:1px solid #dce4ee;border-radius:.7rem;background:#f7f9fc}.news-comment-admin-shortcut a{color:#164c79;font-weight:800}.news-comment-admin-shortcut span{color:#5b6c80;font-size:.9rem}
.news-comment-admin-heading{display:grid;gap:1rem;margin-block-end:1rem}.news-comment-admin-heading h3,.news-comment-admin-heading p{margin:0}.news-comment-admin-heading p{margin-block-start:.35rem;color:#5a6b80;line-height:1.6}
.news-comment-filters{display:flex;flex-wrap:wrap;gap:.5rem}.news-comment-filters a{padding:.45rem .7rem;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#33465c;font-size:.9rem;font-weight:750;text-decoration:none}.news-comment-filters a[aria-current="page"]{border-color:#173b5b;background:#173b5b;color:#fff}
.news-comment-admin-item h4{margin:.6rem 0 0}.news-comment-admin-item h4 a{color:#164c79}.news-comment-admin-meta{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}.news-comment-admin-meta>a{color:#45617e}.news-comment-admin-meta time{color:#68788b;font-size:.85rem}
.news-comment-status{padding:.2rem .55rem;border-radius:999px;background:#e9eef5;color:#3e5065;font-size:.8rem;font-weight:800}.news-comment-status.status-pending{background:#fff2c7;color:#725400}.news-comment-status.status-approved{background:#dcf5e7;color:#17623c}.news-comment-status.status-rejected{background:#fee5e5;color:#8b2424}
.news-comment-admin-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-block-start:.9rem}.news-comment-admin-actions form{margin:0}.news-comment-admin-actions .button{min-height:2.4rem;padding:.35rem .7rem;font-size:.9rem}
@media(max-width:680px){.home-news-grid{grid-template-columns:1fr}.news-comment-admin-meta{align-items:flex-start;flex-direction:column;gap:.25rem}.public-news-meta{grid-template-columns:1fr;gap:.2rem}.public-news-meta dd{margin-block-end:.6rem}}
/* Admin-managed ordering for the public landing page and member dashboard cards. */
.home-sections-layout{display:flex;flex-direction:column}
.member-portal-order{min-width:0}.member-dashboard-grid>.member-portal-order>.card{height:100%}
.layout-order-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.layout-order-columns fieldset{min-width:0;padding:1rem;border:1px solid #cbd5e1;border-radius:.75rem}
.layout-order-columns legend{padding-inline:.4rem;font-weight:800;color:#173b5b}
.layout-order-list{display:grid;gap:.5rem;list-style:none;margin:0;padding:0}
.layout-order-list li{display:grid;grid-template-columns:minmax(0,1fr) 5rem;align-items:center;gap:.75rem;padding:.55rem .7rem;background:#f5f7fa;border:1px solid #dbe2ea;border-radius:.55rem}
.layout-order-list label{font-weight:700}
.layout-order-list select{min-height:2.4rem}
.layout-order-form>button{margin-top:.25rem}
.homepage-visibility-manager{margin:1rem 0;padding:1rem;border:1px solid #d9e2ec;border-radius:.8rem;background:#f7f9fc}
.homepage-visibility-manager h3{margin:0 0 .35rem;color:#173b5b}
.homepage-visibility-manager>p{margin:.2rem 0 .85rem;color:#596b80}
.homepage-visibility-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:.45rem .8rem}
[hidden]{display:none!important}
@media(max-width:720px){.layout-order-columns{grid-template-columns:1fr}}

/* Polished public landing page: consistent rhythm, responsive bounds, and clearer calls to action. */
.home-sections-layout{min-width:0;overflow-x:clip}
.home-sections-layout>.section>.mx-auto,.home-steps>.mx-auto{width:100%;min-width:0;box-sizing:border-box}
.home-hero>.mx-auto.home-hero-no-visual{grid-template-columns:minmax(0,1fr)}
.home-hero-no-visual .home-hero-copy{max-width:58rem}
.home-section-nav{border-color:#e5eaf0;box-shadow:0 5px 18px rgb(16 33 61 / 5%)}
.home-section-nav>div{max-width:80rem;gap:.55rem;padding-block:.75rem}
.home-section-nav a{border:1px solid transparent;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.home-section-nav a:hover{border-color:#dce4ed;background:#f4f7fa;color:#10213d!important}
.home-section-nav a:focus-visible{outline:3px solid #b68b13;outline-offset:2px}
#about.section,#events.section{background:#fff}
#sports.section-soft,#schedule.section-soft{background:linear-gradient(180deg,#f3f6f9 0%,#f8fafc 100%)}
#about,#sports,#events,#schedule,#support,#membership-steps{scroll-margin-top:1.25rem}
#schedule .max-w-7xl>h2{max-width:24ch;margin-block:.45rem 0;color:#142944;font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.35;text-wrap:balance}
#schedule .max-w-7xl>.eyebrow{margin:0;color:#315b83;font-size:.92rem}
#schedule .max-w-7xl>h2::after{content:"";display:block;width:4.2rem;height:.28rem;margin-block-start:.8rem;border-radius:99px;background:#d7a900}
.home-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
.home-news-card{position:relative;min-height:16rem;padding:clamp(1.15rem,2.5vw,1.6rem);border-color:#dce4ed;border-inline-start:4px solid #315b83;border-radius:1.05rem;background:#fff;box-shadow:0 9px 25px rgb(16 33 61 / 6%);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.home-news-card:hover{transform:translateY(-3px);border-color:#b8c7d8;box-shadow:0 16px 34px rgb(16 33 61 / 11%)}
.home-news-card .eyebrow{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .6rem;border-radius:999px;background:#f0f4f8;color:#455970;font-size:.82rem}
.home-news-card h3{font-size:clamp(1.08rem,1.7vw,1.25rem);text-wrap:balance}
.home-news-card>p:not(.eyebrow){display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4}
.home-news-read-more{min-height:2.5rem;margin-block-start:auto;text-decoration:none}
.home-news-read-more:hover{text-decoration:underline;text-underline-offset:.22em}
.home-event-grid{gap:1.15rem}
.home-event-card{height:100%;border-color:#dbe3ec;box-shadow:0 8px 23px rgb(16 33 61 / 6%);transition:transform .18s ease,box-shadow .18s ease}
.home-event-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgb(16 33 61 / 10%)}
.home-event-content{min-width:0}
.home-event-content p{overflow-wrap:anywhere}
.home-empty-state{max-width:54rem;border-color:#cbd5e1;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 8px 22px rgb(16 33 61 / 4%)}
.home-steps-grid li{min-height:12rem;box-shadow:0 8px 22px rgb(16 33 61 / 5%);transition:transform .18s ease,box-shadow .18s ease}
.home-steps-grid li:hover{transform:translateY(-3px);box-shadow:0 15px 30px rgb(16 33 61 / 9%)}
.home-honorary-panel{box-shadow:0 14px 32px rgb(16 33 61 / 12%)}
.asset-card .asset-preview:not(.asset-icon-preview){display:block;width:100%;max-height:22rem;aspect-ratio:3/2;object-fit:cover;border:1px solid #dce4ed;border-radius:.85rem;background:#f4f7fa}
.asset-card-home-image .asset-preview{object-position:center}
.home-hero-values li{display:block;min-width:0;padding-inline-start:.75rem}
.home-hero-values li::before{inset-inline-start:0}
.home-hero-values b{margin-block-end:.3rem}
.home-value-icon{display:none}
.home-hero-values li{display:grid;grid-template-columns:2.5rem minmax(0,1fr);align-items:start;column-gap:.7rem}
.home-hero-values li::before{display:none}
.home-hero-values .home-value-image{grid-row:span 2;display:block;width:2.5rem;height:2.5rem;object-fit:contain;border:0;border-radius:0;background:transparent;box-shadow:none}
.home-hero-values li b{align-self:end}
.home-hero-values li>span:last-child{align-self:start}
@media(max-width:680px){.home-hero-values li{grid-template-columns:2.25rem minmax(0,1fr);gap:.2rem .55rem}.home-hero-values .home-value-image{width:2.25rem;height:2.25rem}}
footer#contact{position:relative;isolation:isolate;overflow:hidden}
footer#contact::before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 100% 0%,rgb(255 212 71 / 9%),transparent 38%)}
footer#contact h2{margin-block-end:.75rem;color:#fff;font-size:1.15rem}
footer#contact p{color:#e3eaf2;line-height:1.8}
@media(max-width:680px){
 .home-section-nav>div{gap:.35rem}
 .home-section-nav a{padding:.48rem .68rem}
 .home-news-grid{grid-template-columns:1fr;gap:.85rem;margin-block-start:1.35rem}
 .home-news-card{min-height:0;padding:1.1rem}
 .home-event-grid{gap:.8rem}
 .home-event-card:hover,.home-news-card:hover,.home-steps-grid li:hover{transform:none}
 .home-steps-grid li{min-height:0}
}
@media(prefers-reduced-motion:reduce){.home-section-nav a,.home-news-card,.home-event-card,.home-steps-grid li{transition:none!important}.home-news-card:hover,.home-event-card:hover,.home-steps-grid li:hover{transform:none}}
.installer-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0 2rem;padding:0;list-style:none}.installer-stepper span{display:block;padding:.8rem 1rem;border:1px solid #ccd3dd;border-radius:.75rem;color:#354255;background:#f5f7fa;font-weight:700;text-align:center}.installer-stepper span[aria-current=step]{border-color:#0a192f;background:#0a192f;color:#fff}.installer-stepper span.is-complete{border-color:#28734a;background:#edf8f1;color:#205d3c}.installer-wizard fieldset{margin-block:1rem;padding:1.25rem;border:1px solid #d8dee8;border-radius:1rem}.installer-wizard fieldset[hidden],.installer-wizard-actions [hidden]{display:none}.installer-wizard legend{padding:0 .5rem;font-size:1.15rem;font-weight:800}.installer-wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1.25rem}.installer-wizard [data-install-step]{scroll-margin-top:1.5rem}@media(max-width:640px){.installer-stepper{grid-template-columns:1fr;gap:.4rem}.installer-stepper span{text-align:right}.installer-wizard-actions{flex-wrap:wrap}.installer-wizard-actions>*{flex:1 1 auto}}
/* Public club documents */
.club-public-documents{background:linear-gradient(180deg,#f5f8fb 0%,#fff 100%)}
.club-document-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:1rem;margin-block-start:1.75rem}
.club-document-card{display:grid;grid-template-columns:3.6rem minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1.2rem;border:1px solid #e0e7ef;border-radius:1.1rem;background:#fff;box-shadow:0 10px 26px rgb(16 33 61 / 6%)}
.club-document-type{display:grid;place-items:center;width:3.6rem;height:3.6rem;border-radius:1rem;background:#eaf0f7;color:#10213d;font-size:.8rem;font-weight:850}
.club-document-copy h3{margin:0;color:#10213d;font-size:1.05rem}.club-document-copy p{margin:.35rem 0;color:#52647b;line-height:1.6}.club-document-copy small{color:#758296}.club-document-card .button{white-space:nowrap}
.public-document-admin{display:grid;gap:1rem;margin-block-start:2rem;padding-block-start:1.5rem;border-top:1px solid #dce3ec}.public-document-upload{max-width:58rem}
@media(max-width:700px){.club-document-card{grid-template-columns:3rem minmax(0,1fr);gap:.8rem}.club-document-type{width:3rem;height:3rem}.club-document-card .button{grid-column:1/-1;width:100%}}
/* Seasonal athlete rewards */
.rewards-admin,.rewards-admin>section{display:grid;gap:1rem}.rewards-season-filter{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;padding:1rem;border:1px solid #e1e7ef;border-radius:1rem;background:#f7f9fc}.rewards-season-filter label{font-weight:750}.rewards-season-filter input{max-width:12rem}.rewards-season-filter small{flex-basis:100%;color:#64748b}.rewards-admin-tabs{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0 .7rem;border-bottom:1px solid #dfe5ec}.rewards-admin-tabs a{flex:none;padding:.65rem .9rem;border-radius:999px;background:#f1f4f8;color:#203651;text-decoration:none;font-weight:750}.rewards-admin-tabs a[aria-current="page"]{background:#0a192f;color:#fff}.rewards-admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:end;gap:1rem;margin-block-start:1rem}.rewards-admin-form>.button{min-height:2.8rem}.rewards-catalog-grid{display:grid;gap:.8rem}.reward-catalog-item{display:flex;align-items:center;gap:1rem}.reward-catalog-item>div{flex:1}.reward-catalog-item h4,.reward-catalog-item p{margin:.2rem 0}.reward-badge-icon{display:grid;place-items:center;flex:none;width:3.4rem;height:3.4rem;border:2px solid var(--badge-color,#d4af37);border-radius:50%;background:color-mix(in srgb,var(--badge-color,#d4af37) 13%,white);font-size:1.5rem}.reward-request-actions{display:grid;gap:.45rem;min-width:12rem}.points-positive{color:#147348;font-weight:800}.points-negative{color:#aa2737;font-weight:800}.member-rewards-panel{grid-column:1/-1}.member-rewards-panel>p{max-width:70rem;color:#5c6c80}.member-rewards-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-block:1.2rem}.member-rewards-summary article{display:grid;gap:.3rem;padding:1rem;border:1px solid #e2e8f0;border-radius:1rem;background:linear-gradient(145deg,#fff,#f4f7fa)}.member-rewards-summary article span{color:#65758a;font-size:.9rem}.member-rewards-summary article strong{color:#10213d;font-size:1.25rem}.member-rewards-subsection{margin-block-start:1.5rem;padding-block-start:1rem;border-top:1px solid #e4e9ef}.member-badge-list,.member-reward-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.8rem}.member-earned-badge,.member-reward-card{display:flex;align-items:center;gap:.8rem;padding:1rem;border:1px solid #e2e8f0;border-radius:1rem;background:#fff}.member-earned-badge>span,.member-reward-card>span{font-size:1.6rem}.member-earned-badge div{display:grid;gap:.2rem}.member-earned-badge small,.reward-points-hint{color:#68788c}.member-reward-card{display:grid;align-content:start;gap:.55rem}.member-reward-card h4,.member-reward-card p{margin:0}.member-reward-card form{display:grid;gap:.5rem;margin-block-start:.3rem}.season-leader-preview{display:grid;gap:.5rem;padding:0;list-style:none}.season-leader-preview li{display:grid;grid-template-columns:2rem 1fr auto;align-items:center;gap:.7rem;padding:.7rem;border-radius:.8rem;background:#f6f8fb}.season-leader-preview li>span{display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;background:#e7edf4;font-weight:800}.season-leader-preview small{color:#65758a}.season-awards{background:linear-gradient(180deg,#101e34,#172c46);color:#fff}.season-awards .eyebrow,.season-awards .home-section-lead{color:#d1dbea}.season-awards h2{color:#fff}.season-winner-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;margin-block-start:1.7rem}.season-winner-card{position:relative;display:grid;align-content:start;gap:.45rem;min-height:13rem;padding:1.4rem;border:1px solid #d4af3766;border-radius:1.2rem;background:linear-gradient(145deg,#fff,#f4f6f8);color:#10213d;box-shadow:0 16px 38px #0002}.season-winner-card h3,.season-winner-card p{margin:0}.season-winner-card .eyebrow{color:#806313}.season-winner-card>strong{margin-block-start:.35rem;color:#806313}.season-winner-medal{position:absolute;inset-block-start:1rem;inset-inline-end:1rem;font-size:1.8rem}.season-winner-rank-1{border-color:#d4af37;box-shadow:0 18px 44px #d4af3730}.public-document-admin{margin-block-start:2rem}
@media(max-width:650px){.member-rewards-summary{grid-template-columns:1fr}.season-leader-preview li{grid-template-columns:2rem 1fr}.season-leader-preview small{grid-column:2}.reward-catalog-item{align-items:flex-start;flex-wrap:wrap}.reward-catalog-item form{margin-inline-start:auto}.rewards-season-filter{align-items:stretch}.rewards-season-filter input{max-width:none}.season-winner-card{min-height:11rem}}
.behavior-rules-form{display:grid;gap:1rem}.behavior-rules-form table td:first-child{min-width:13rem}.behavior-rules-form input[type=text],.behavior-rules-form input[type=number]{max-width:100%;min-width:8rem}.behavior-rules-form input[type=number]{width:8rem}.behavior-review-actions{display:grid;gap:.4rem;margin-block:.5rem}.member-behavior-history{display:grid;gap:.65rem;padding:0;list-style:none}.member-behavior-history li{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.85rem 1rem;border:1px solid #e2e8f0;border-radius:.85rem;background:#f8fafc}.member-behavior-history li>div{display:grid;gap:.25rem}.member-behavior-history small{color:#64748b}.member-behavior-history .behavior-pending{color:#9a6700;font-weight:700}@media(max-width:640px){.member-behavior-history li{display:grid}.behavior-review-actions .button{width:100%}}

/* مسار التصفح (Breadcrumbs Navigation) */
.site-breadcrumbs {
  background: var(--ui-muted, #f1f4f8);
  border-bottom: 1px solid var(--ui-border, #d7dee8);
  padding: .65rem 0;
  font-size: .88rem;
}
.site-breadcrumbs .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.site-breadcrumbs a {
  color: var(--navy, #10213d);
  font-weight: 700;
  text-decoration: none;
}
.site-breadcrumbs a:hover {
  text-decoration: underline;
}
.site-breadcrumbs .breadcrumb-separator {
  color: var(--ui-text-muted, #718096);
  user-select: none;
}
.site-breadcrumbs span[aria-current="page"] {
  color: var(--ui-text-muted, #4a5568);
  font-weight: 600;
}

/* زر العودة لأعلى الصفحة (Back to Top Button) */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  width: 3.1rem;
  height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy, #10213d);
  color: #ffffff;
  border: 2px solid var(--gold, #ffd447);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .2s ease;
}
.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  transform: translateY(-3px);
  background: #193863;
}
.back-to-top-btn:focus-visible {
  outline: 3px solid var(--focus, #ffbf00) !important;
  outline-offset: 3px !important;
}

/* رسائل التنبيه التفاعلية القابلة للإغلاق (Dismissible Flash Notices) */
.notice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.notice .notice-content {
  flex: 1;
}
.notice .notice-dismiss {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  opacity: .75;
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: .35rem;
}
.notice .notice-dismiss:hover {
  opacity: 1;
  background: rgba(0,0,0,0.06);
}

/* شريط أدوات الجداول: البحث السريع وتصدير إكسل (Table Actions Bar) */
.table-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.table-action-bar .table-quick-search {
  max-width: 22rem;
  min-height: 2.6rem;
  font-size: .92rem;
}
.table-action-bar .export-csv-btn {
  font-size: .88rem;
  min-height: 2.6rem;
  padding: .4rem .9rem;
}

/* نافذة اختصارات لوحة المفاتيح المنبثقة (A11y Shortcuts Modal Dialog) */
.a11y-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.a11y-dialog[hidden] {
  display: none !important;
}
.a11y-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.75);
  backdrop-filter: blur(4px);
}
.a11y-dialog-card {
  position: relative;
  z-index: 1001;
  max-width: 38rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-bg, #ffffff);
  border: 2px solid var(--gold, #ffd447);
  border-radius: 1.1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
.a11y-dialog-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ui-border, #d7dee8);
  padding-bottom: .75rem;
  margin-bottom: 1.25rem;
}
.a11y-dialog-card header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy, #10213d);
}
.a11y-dialog-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink, #101827);
  line-height: 1;
  border-radius: .4rem;
  padding: .2rem .5rem;
}
.a11y-dialog-close:hover {
  background: var(--ui-muted, #f1f4f8);
}
.a11y-shortcuts-grid {
  display: grid;
  gap: .75rem;
}
.a11y-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem .85rem;
  border-radius: .6rem;
  background: var(--ui-muted, #f8fafc);
  border: 1px solid var(--ui-border, #e2e8f0);
}
.a11y-shortcut-row kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 0 #94a3b8;
  padding: .2rem .55rem;
  border-radius: .35rem;
  font-family: monospace;
  font-size: .88rem;
  font-weight: 700;
  color: #0f172a;
}

/* الرسوم البيانية المتجهة المدمجة (Tamkin Native SVG Charts) */
.tamkin-svg-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: .5rem 0;
  width: 100%;
}
.tamkin-svg-chart .svg-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.tamkin-svg-chart svg.chart-svg {
  max-width: 220px;
  height: auto;
  overflow: visible;
}
.tamkin-svg-chart .chart-segment {
  transition: transform .2s ease, opacity .2s ease;
  cursor: pointer;
}
.tamkin-svg-chart .chart-segment:hover,
.tamkin-svg-chart .chart-segment:focus {
  transform: scale(1.05);
  transform-origin: center;
  opacity: .9;
  outline: none;
}
.tamkin-svg-chart .chart-center-total {
  font-size: 26px;
  font-weight: 900;
  fill: var(--ink, #101827);
  font-family: inherit;
}
.tamkin-svg-chart .chart-center-label {
  font-size: 13px;
  font-weight: 700;
  fill: var(--ui-text-muted, #64748b);
  font-family: inherit;
}
.tamkin-svg-chart .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  justify-content: center;
  width: 100%;
  font-size: .88rem;
}
.tamkin-svg-chart .legend-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.tamkin-svg-chart .legend-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.tamkin-svg-chart .chart-tooltip {
  position: absolute;
  top: -1.75rem;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: .35rem .75rem;
  border-radius: .4rem;
  font-size: .82rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10;
}
.tamkin-svg-chart.bar-chart-container svg.bar-chart-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}
.tamkin-svg-chart .chart-bar {
  transition: opacity .18s ease;
  cursor: pointer;
}
.tamkin-svg-chart .chart-bar:hover,
.tamkin-svg-chart .chart-bar:focus {
  opacity: .85;
  outline: none;
}
.tamkin-svg-chart .chart-axis {
  stroke: var(--ui-border, #cbd5e1);
  stroke-width: 1.5;
}
.tamkin-svg-chart .bar-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink, #1e293b);
  font-family: inherit;
}
.tamkin-svg-chart .bar-val-text {
  font-size: 13px;
  font-weight: 800;
  fill: var(--ink, #0f172a);
  font-family: inherit;
}

.loyalty-intro-field,.loyalty-admin-preview{grid-column:1/-1}
.loyalty-admin-preview{display:grid;gap:.35rem;padding:1.1rem;border:1px solid #d8e2ed;border-radius:1rem;background:linear-gradient(135deg,#f7faff,#fff8dc);color:#10213d}
.loyalty-admin-preview>span,.loyalty-admin-preview>small{color:#5f6f83;font-size:.88rem}
.loyalty-admin-preview>strong{font-size:1.2rem}
.loyalty-admin-preview>p{margin:0;max-width:70ch}
.member-loyalty-progress{display:grid;gap:.55rem;margin-block:1rem 1.25rem;padding:1rem 1.1rem;border:1px solid #d8e2ed;border-radius:1rem;background:linear-gradient(130deg,#f6f9ff,#fff9e4)}
.member-loyalty-progress-heading{display:flex;align-items:center;gap:.75rem}
.member-loyalty-progress-heading>div{display:grid;flex:1;gap:.1rem}
.member-loyalty-progress-heading>div>small,.member-loyalty-progress>small{color:#63738a}
.member-loyalty-progress-heading>div>strong{font-size:1.08rem;color:#10213d}
.member-loyalty-progress-heading>div>span{font-size:.9rem;color:#495b72}
.member-loyalty-progress-heading>b{font-size:1.05rem;color:#775b00}
.member-loyalty-progress progress{display:block;width:100%;height:.8rem;overflow:hidden;border:0;border-radius:999px;background:#e3e9f0;accent-color:#c39a22}
.member-loyalty-progress progress::-webkit-progress-bar{border-radius:999px;background:#e3e9f0}
.member-loyalty-progress progress::-webkit-progress-value{border-radius:999px;background:linear-gradient(90deg,#b78b13,#f0cf5d)}
.member-loyalty-progress progress::-moz-progress-bar{border-radius:999px;background:linear-gradient(90deg,#b78b13,#f0cf5d)}
@media(max-width:650px){.member-loyalty-progress{padding:.85rem}.member-loyalty-progress-heading{align-items:flex-start;flex-wrap:wrap}.member-loyalty-progress-heading>b{margin-inline-start:auto}}


/* Membership conditions: native disclosure with a clear, keyboard-visible trigger. */
.membership-conditions-disclosure{padding:0;overflow:hidden}
.membership-conditions-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:3.5rem;padding:.85rem 1.1rem;color:var(--ink,#10213d);font-weight:800;cursor:pointer;list-style:none}
.membership-conditions-summary::-webkit-details-marker{display:none}
.membership-conditions-summary::after{content:"＋";display:grid;place-items:center;flex:none;width:2rem;height:2rem;border:1px solid var(--ui-border,#d7dee8);border-radius:.55rem;color:var(--club-primary,#173b5b);font-size:1.15rem}
.membership-conditions-disclosure[open]>.membership-conditions-summary::after{content:"−"}
.membership-conditions-summary h2{margin:0;color:inherit;font-size:1.15rem;line-height:1.5}
.membership-conditions-summary:hover{background:var(--dashboard-muted,#f4f7fa)}
.membership-conditions-summary:focus-visible{position:relative;z-index:1;outline:3px solid var(--focus,#055fcc);outline-offset:-3px}
.membership-conditions-disclosure>ul{margin:0;padding:.25rem 2.5rem 1.15rem 1.25rem;border-block-start:1px solid var(--ui-border,#d7dee8);line-height:1.9}
[dir="rtl"] .membership-conditions-disclosure>ul{padding-inline:2.5rem 1.25rem}
[data-theme="dark"] .membership-conditions-summary{color:var(--ink,#f3f6fa)}
[data-theme="dark"] .membership-conditions-summary:hover{background:var(--surface-muted,#26364a)}
@media(forced-colors:active){.membership-conditions-summary::after{border-color:ButtonText;color:ButtonText}.membership-conditions-summary:focus-visible{outline-color:Highlight}}
