:root{--ink:#20364b;--muted:#526477;--primary:#244b68;--accent:#236859;--line:#d9e2e9}
body.theme-public{background:#f3f5f7!important;background-image:none!important;color:var(--ink);font-family:'Tajawal',Tahoma,Arial,sans-serif!important;font-size:17px;line-height:1.75}
.theme-public :is(a,button,input,select,textarea):focus-visible{outline:3px solid #236859!important;outline-offset:3px}
.theme-auth{padding-bottom:100px!important}.theme-auth>div{border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:0 8px 28px #20364b0c!important;padding:28px!important}.theme-auth>div>.absolute{height:4px!important;background:var(--accent)!important}.theme-auth h1{color:var(--ink)!important;font-size:28px!important;line-height:1.5}.theme-auth p{color:var(--muted)}.theme-auth .text-xs,.theme-auth .text-sm{font-size:15px!important}.theme-auth input:not([type=radio]):not([type=hidden]),.theme-auth select{font-size:17px!important;color:var(--ink)!important;border:1px solid #aabac8!important;border-radius:12px!important;min-height:48px}.theme-auth input::placeholder{color:#596b7c!important}.theme-auth form button{background:var(--primary)!important;color:white!important;border:0!important;border-radius:12px!important;min-height:48px;box-shadow:none!important;transform:none!important}.theme-auth form button:hover{background:#193c56!important}.theme-auth a{color:var(--primary)!important}.theme-auth .animate-bounce{animation:none!important;font-size:32px!important}.theme-auth .mobile-bottom-nav{border-radius:0;border-top:1px solid var(--line);height:76px;padding-bottom:env(safe-area-inset-bottom,0px)}.theme-auth .mobile-bottom-nav .nav-label{font-size:13px}
.theme-dashboard{margin:0}.dashboard-shell{max-width:760px;margin:auto;padding:28px 18px 40px}.dashboard-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.dashboard-brand{font-size:24px;color:var(--primary);font-weight:700}.dashboard-logout{font:inherit;color:var(--muted);background:white;border:1px solid var(--line);padding:10px 16px;border-radius:12px;cursor:pointer}.dashboard-welcome h1{font-size:28px;margin:0 0 6px;overflow-wrap:anywhere}.dashboard-welcome p{color:var(--muted);margin:0 0 22px}.dashboard-balance{padding:24px;background:var(--primary);color:white;border-radius:18px;margin-bottom:24px}.dashboard-balance strong{display:block;font-size:34px}.dashboard-balance a{color:white;text-underline-offset:5px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dashboard-card{display:block;background:white;border:1px solid var(--line);border-radius:16px;padding:22px;color:var(--ink);text-decoration:none;transition:border-color .15s}.dashboard-card:hover{border-color:var(--accent)}.dashboard-card strong{display:block;font-size:19px;margin-bottom:7px}.dashboard-card span{display:block;color:var(--muted);font-size:16px}.dashboard-notice{padding:16px;border-radius:12px;margin-bottom:20px;background:#e5f2ed;color:#1b5b49}.dashboard-notice.error{background:#fceae8;color:#963d34}
@media(max-width:480px){.dashboard-grid{grid-template-columns:1fr}.dashboard-shell{padding:20px 16px}.theme-auth>div{padding:24px 18px!important}}
@media(prefers-reduced-motion:reduce){.theme-public *{animation:none!important;transition:none!important}}

/* A shared, colourful identity for all school ages. */
:root{--ink:#29364f;--muted:#627089;--primary:#5156bb;--accent:#19877e;--line:#e2e5f2}
body.theme-public{background:radial-gradient(ellipse at 95% 0%,#e7eaff 0,transparent 45%),radial-gradient(ellipse at 0% 70%,#e5f4ef 0,transparent 42%),#f7f8fc!important;color:var(--ink)}
.theme-auth>div{border-radius:26px!important;box-shadow:0 16px 50px #40478312!important;background:#ffffff!important}.theme-auth>div>.absolute{height:6px!important;background:linear-gradient(90deg,#73c5b5,#6964cd,#f2bc79)!important}.theme-auth form button{background:linear-gradient(115deg,#5156bb,#7163ce)!important;box-shadow:0 6px 14px #5156bb20!important}.theme-auth input:focus,.theme-auth select:focus{border-color:#7374ce!important;background:#fafaff!important}.theme-auth .mobile-bottom-nav{background:#ffffffed;box-shadow:0 -4px 25px #40478308}
.dashboard-shell{max-width:960px;padding:30px 24px 48px}.dashboard-header{margin-bottom:32px}.dashboard-brand{display:flex;align-items:center;gap:10px;font-size:26px}.dashboard-brand:before{content:'✦';display:grid;place-items:center;width:43px;height:43px;background:linear-gradient(140deg,#6263c7,#448f9d);color:white;border-radius:14px;font-size:25px;box-shadow:0 5px 14px #5156bb22}.dashboard-logout{font-size:14px;border-radius:14px;background:#ffffffb8}.dashboard-welcome h1{font-size:30px}.dashboard-welcome p{font-size:17px}.dashboard-balance{position:relative;overflow:hidden;padding:28px 32px;border-radius:25px;background:linear-gradient(115deg,#4b51ac,#6860c5 65%,#7b76ce);box-shadow:0 12px 28px #5156bb24}.dashboard-balance:after{content:'';position:absolute;left:-35px;top:-45px;width:200px;height:200px;border:35px solid #ffffff0c;border-radius:50%;pointer-events:none}.dashboard-balance strong{font-size:40px;margin:2px 0 8px}.dashboard-balance>span{color:#eeeeff}.dashboard-balance a{font-size:14px}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dashboard-card{--card-accent:#5865b9;--card-soft:#eff0ff;position:relative;min-height:205px;padding:23px;border-radius:23px;border-color:#e6e8f1;background:linear-gradient(145deg,#fff 65%,var(--card-soft));box-shadow:0 5px 20px #34385e06;transition:transform .18s,box-shadow .18s,border-color .18s}.dashboard-card:nth-child(2){--card-accent:#b2733a;--card-soft:#fff3e3}.dashboard-card:nth-child(3){--card-accent:#19877e;--card-soft:#e6f5ef}.dashboard-card:nth-child(4){--card-accent:#98619b;--card-soft:#f6edf9}.dashboard-card:nth-child(5){--card-accent:#407dab;--card-soft:#eaf3ff}.dashboard-card:nth-child(6){--card-accent:#ab6375;--card-soft:#fff0f2}.dashboard-card:hover{transform:translateY(-3px);border-color:var(--card-accent);box-shadow:0 10px 25px #34385e10}.dashboard-icon{width:49px;height:49px;border-radius:15px;display:grid;place-items:center;background:var(--card-soft);color:var(--card-accent);margin-bottom:16px}.dashboard-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dashboard-card strong{font-size:19px;margin-bottom:6px}.dashboard-card>span:not(.dashboard-icon){font-size:14px;line-height:1.8}.dashboard-footer{text-align:center;color:var(--muted);font-size:14px;margin:32px 0 0}.dashboard-section-title{font-size:20px;margin:30px 0 18px}.dashboard-notice{border:1px solid #c7e5da}
.theme-records .nav{background:#ffffffd9;border:1px solid var(--line);border-radius:20px;padding:18px 22px;box-shadow:0 5px 18px #5156bb08}.theme-records .brand{color:var(--primary)}.theme-records .panel,.theme-records .stat{border-radius:23px;border-color:var(--line);box-shadow:0 5px 20px #34385e06}.theme-records .btn,.theme-records button{background:var(--primary);border-radius:13px}.theme-records .secondary{background:#eeeffb;color:#5056a5}.theme-records .product-icon{display:inline-block;background:#f0effb;border-radius:16px;padding:8px 14px}.theme-records .stat:nth-child(2){background:#eff9f5}.theme-records .stat:nth-child(3){background:#fff7eb}.theme-records .stat strong{color:var(--primary)}.theme-records .badge{background:#eeeffb}.theme-records .nav a{color:#4f557b}
@media(max-width:760px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-shell{padding:24px 18px 38px}.dashboard-card{padding:20px;min-height:205px}}
@media(max-width:480px){.dashboard-shell{padding:20px 14px 32px}.dashboard-grid{gap:12px}.dashboard-card{padding:17px 14px;min-height:210px;border-radius:20px}.dashboard-card strong{font-size:17px}.dashboard-card>span:not(.dashboard-icon){font-size:13px}.dashboard-welcome h1{font-size:25px}.dashboard-balance{padding:24px}.dashboard-balance strong{font-size:36px}.dashboard-brand{font-size:23px}.dashboard-logout{font-size:12px;padding:9px 11px}}
@media(max-width:340px){.dashboard-grid{grid-template-columns:1fr}.dashboard-card{min-height:0}}
@media print{body.theme-records{background:white!important}.theme-records .panel,.theme-records .stat{box-shadow:none;border-radius:0}}
.dashboard-card .dashboard-icon{display:grid;color:var(--card-accent)}
.theme-history .balance{background:linear-gradient(115deg,#4b51ac,#7369cc);box-shadow:0 10px 26px #5156bb22}.theme-history .list{border:1px solid #e2e5f2;box-shadow:0 5px 20px #34385e06}.theme-history .icon{background:#eeeffb}.theme-history .back{color:#5156bb}
