:root{--ink:#27184f;--purple:#6c4ee5;--pink:#ed6ca2;--line:#eae6fa}
*{box-sizing:border-box}
body{direction:rtl;color:var(--ink);background:linear-gradient(145deg,#faf8ff,#fff 55%,#fff1f7);font-family:Tahoma,"Segoe UI",Arial,sans-serif;min-height:100vh}
.site-header{background:#fffdfdcc;border-bottom:1px solid var(--line)}
.brand{font-size:1.5rem;font-weight:900;text-decoration:none;color:var(--purple)}.brand span{color:var(--pink)}
.header-note{font-size:.82rem;color:#776a91}.eyebrow{display:inline-block;color:#8762e9;font-weight:800;letter-spacing:.04em;margin-bottom:.7rem}
.home-welcome{max-width:650px;padding:clamp(4rem,10vw,8rem) 0}.home-welcome h1{font-size:clamp(3rem,8vw,5rem);font-weight:900}.home-welcome p{font-size:1.15rem;color:#6b607f}
.btn-brand{background:var(--purple);color:white;border:none;border-radius:16px;padding:.8rem 1.5rem}.btn-brand:hover{background:#573acc;color:white}
.check-hero{padding:2rem;border-radius:24px;background:linear-gradient(110deg,#efeafd,#ffeaf3);margin-bottom:1.5rem}
.check-hero h1{font-size:clamp(1.5rem,4vw,2.2rem);font-weight:900}.check-hero p{margin-bottom:0;color:#695e80}
.stat-card,.category-card{background:white;border:1px solid var(--line);border-radius:20px;padding:1.2rem;box-shadow:0 8px 24px #6c4ee50c}
.stat-card{display:flex;justify-content:space-between;align-items:center}.stat-card strong{font-size:2rem;color:var(--purple)}
.category-card{display:flex;justify-content:space-between;gap:1rem;align-items:center}.category-card span{color:#796e8c}
h2{font-size:1.2rem;font-weight:850;margin:1.5rem 0 1rem}
.table th{white-space:nowrap}.table td{min-width:70px}
@media(max-width:575px){.header-note{display:none}.category-card{padding:1rem}.check-hero{padding:1.3rem}}
/* Phase 2: responsive category administration */
.management-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}
.management-heading h1{font-weight:900;font-size:clamp(1.65rem,4vw,2.5rem);margin:0 0 .5rem}
.management-heading p{color:#6b607f;margin:0}
.stat-tile,.admin-category,.edit-panel,.play-category{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 24px #6c4ee50c}
.stat-tile{padding:1rem;display:flex;justify-content:space-between;align-items:center;gap:.4rem}
.stat-tile span{color:#776a91}.stat-tile strong{color:var(--purple);font-size:1.75rem}
.admin-category{padding:1.25rem;min-height:160px;display:flex;flex-direction:column;justify-content:space-between;gap:1.25rem}
.admin-category h3{font-size:1.1rem;font-weight:850;margin:0 0 .4rem}
.admin-category-inactive{background:#f7f6fa;opacity:.85}
.status-chip{white-space:nowrap;font-size:.8rem;font-weight:750;padding:.3rem .7rem;border-radius:99px}
.status-on{background:#e2f7ea;color:#197542}.status-off{background:#f1eaf0;color:#71556e}
.admin-actions{display:flex;gap:.5rem;flex-wrap:wrap}.admin-actions form{margin:0}
.edit-panel{padding:clamp(1.2rem,4vw,2rem);max-width:750px}
.form-control:focus,.form-check-input:focus{border-color:var(--purple);box-shadow:0 0 0 .18rem #6c4ee533}
.form-check-input:checked{background-color:var(--purple);border-color:var(--purple)}
.play-category{padding:1.3rem;text-align:center;height:100%;min-height:170px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.65rem;background:linear-gradient(155deg,#fff,#f5efff)}
.play-category h3{font-weight:850;font-size:1.1rem;margin:0}.play-category>span:last-child{color:#786b91;font-size:.9rem}
.category-glyph{color:#7654eb;font-size:2rem}
@media(max-width:575px){.management-heading>.btn{width:100%}.stat-tile{flex-direction:column;align-items:start}.stat-tile strong{font-size:1.5rem}.admin-category{padding:1rem}.play-category{padding:.8rem;min-height:145px}}
