*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Tajawal,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.z-40{z-index:40}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-full{height:100%}.max-h-\[70vh\]{max-height:70vh}.max-h-full{max-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-24{width:6rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-2xl{max-width:42rem}.max-w-5xl{max-width:64rem}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(3rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(3rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-white\/30{border-color:hsla(0,0%,100%,.3)}.bg-black\/30{background-color:rgba(0,0,0,.3)}.bg-brand-card{background-color:var(--card)}.bg-brand-dark{background-color:var(--bg)}.bg-brand-primary{--tw-bg-opacity:1;background-color:rgb(192 38 211/var(--tw-bg-opacity,1))}.bg-brand-primary\/10{background-color:rgba(192,38,211,.1)}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/20{background-color:hsla(0,0%,100%,.2)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-1{padding-left:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:Tajawal,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.text-brand-primary{--tw-text-opacity:1;color:rgb(192 38 211/var(--tw-text-opacity,1))}.text-brand-secondary{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-white\/90{color:hsla(0,0%,100%,.9)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-60{opacity:.6}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:border-brand-primary:hover{--tw-border-opacity:1;border-color:rgb(192 38 211/var(--tw-border-opacity,1))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-800:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.hover\:text-brand-primary:hover{--tw-text-opacity:1;color:rgb(192 38 211/var(--tw-text-opacity,1))}.group:hover .group-hover\:opacity-100{opacity:1}@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:hidden{display:none}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:p-8{padding:2rem}}@media (min-width:1024px){.lg\:col-span-2{grid-column:span 2/span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* ============================================================
   Zad Alhorof — shared stylesheet (extracted from index.html)
   Serves both public pages + admin dashboard
   ============================================================ */

/* ===== Theme variables ===== */
:root {
  --bg: #f5f5fb; --bg-overlay: rgba(245, 245, 251, 0.92);
  --card: #ffffff; --card-2: #eef0f7;
  --text: #1a1a2e; --muted: #5b5b75;
  --border: #e2e2ec; --btn-fg: #ffffff;
  --bg-pattern-opacity: 1;
  --footer-bg: #ececf7;   /* light mode: soft light-grey/lavender */
  --footer-text: #1a1a2e; /* footer body text — dark on light */
  --footer-muted: #6b6b85;/* footer copyright/secondary */
}
[data-theme="dark"] {
  --bg: #0a0a1a; --bg-overlay: rgba(10, 10, 26, 0.90);
  --card: #16162d; --card-2: #1c1c38;
  --text: #ffffff; --muted: #9ca3af;
  --border: #374151; --btn-fg: #ffffff;
  --bg-pattern-opacity: 0.12;
  --footer-bg: #05050f;    /* dark mode: keep original near-black */
  --footer-text: #b0b0c8;
  --footer-muted: #6b6b80;
}
body { color: var(--text); background-color: var(--bg); }

/* Seamless vertical-scroll educational pattern (inline SVG) */
@keyframes bg-scroll {
  from { background-position-y: 0; }
  to   { background-position-y: -450px; }
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cstyle%3E .stroke-item %7B fill: none; stroke: %23d8d8e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; %7D .text-item %7B fill: %23d8d8e8; font-family: system-ui, -apple-system, sans-serif; font-size: 28px; font-weight: bold; text-anchor: middle; dominant-baseline: middle; %7D .fill-item %7B fill: %23d8d8e8; %7D%3C/style%3E%3Cdefs%3E%3Cg id='p'%3E%3Cpath class='stroke-item' d='M -18,-5 L 10,-5 L 18,0 L 10,5 L -18,5 Z' /%3E%3Cpath class='stroke-item' d='M 10,-5 L 10,5 M 13,-3 L 13,3' /%3E%3Cpath class='stroke-item' d='M -14,-5 L -14,5' /%3E%3Cline class='stroke-item' x1='-14' y1='-2' x2='10' y2='-2' /%3E%3Cline class='stroke-item' x1='-14' y1='2' x2='10' y2='2' /%3E%3C/g%3E%3Cg id='s'%3E%3Ccircle class='stroke-item' cx='0' cy='0' r='7' /%3E%3Cpath class='stroke-item' d='M 0,-11 L 0,-15 M 0,11 L 0,15 M -11,0 L -15,0 M 11,0 L 15,0 M -8,-8 L -11,-11 M 8,8 L 11,11 M -8,8 L -11,11 M 8,-8 L 11,-11' /%3E%3C/g%3E%3Cg id='t'%3E%3Cpolygon class='stroke-item' points='0,-11 -10,7 10,7' /%3E%3Cpolygon class='stroke-item' points='0,-4 -4,3 4,3' /%3E%3C/g%3E%3Cg id='w'%3E%3Cpath class='stroke-item' d='M -15,0 C -10,-6 -5,-6 0,0 C 5,6 10,6 15,0 C 20,-6 25,-6 30,0' /%3E%3C/g%3E%3Cg id='x'%3E%3Cpath class='stroke-item' stroke-width='1.5' d='M -3,-3 L 3,3 M 3,-3 L -3,3' /%3E%3C/g%3E%3Cg id='pl'%3E%3Cpath class='stroke-item' stroke-width='1.5' d='M -3,0 L 3,0 M 0,-3 L 0,3' /%3E%3C/g%3E%3C/defs%3E%3Cg%3E%3Ctext x='40' y='60' class='text-item'%3E%D8%AB%3C/text%3E%3Cuse href='%23s' x='110' y='70' /%3E%3Cuse href='%23w' x='170' y='100' transform='rotate(-10 170 100)' /%3E%3Cuse href='%23p' x='240' y='60' transform='rotate(-30 240 60)' /%3E%3Ctext x='310' y='120' class='text-item'%3E%D8%B4%3C/text%3E%3Cuse href='%23t' x='390' y='70' transform='rotate(15 390 70)' /%3E%3Ctext x='470' y='100' class='text-item'%3E%D8%B1%3C/text%3E%3Cuse href='%23s' x='550' y='60' /%3E%3Cuse href='%23w' x='620' y='110' transform='rotate(5 620 110)' /%3E%3Cuse href='%23p' x='700' y='70' transform='rotate(45 700 70)' /%3E%3Ctext x='770' y='120' class='text-item'%3E%D8%B6%3C/text%3E%3Ctext x='50' y='210' class='text-item'%3E%D9%84%D8%A7%3C/text%3E%3Cuse href='%23p' x='120' y='250' transform='rotate(115 120 250)' /%3E%3Ctext x='190' y='170' class='text-item'%3E%D8%B9%3C/text%3E%3Cuse href='%23s' x='260' y='230' /%3E%3Cuse href='%23t' x='330' y='180' transform='rotate(-20 330 180)' /%3E%3Ctext x='410' y='250' class='text-item'%3E%D9%85%3C/text%3E%3Cuse href='%23w' x='480' y='190' transform='rotate(-15 480 190)' /%3E%3Ctext x='560' y='230' class='text-item'%3E%D9%8A%3C/text%3E%3Cuse href='%23p' x='640' y='170' transform='rotate(-65 640 170)' /%3E%3Ctext x='720' y='240' class='text-item'%3E%D9%81%3C/text%3E%3Cuse href='%23s' x='780' y='180' /%3E%3Cuse href='%23t' x='40' y='350' transform='rotate(35 40 350)' /%3E%3Ctext x='120' y='310' class='text-item'%3E%D9%82%3C/text%3E%3Cuse href='%23w' x='180' y='370' transform='rotate(25 180 370)' /%3E%3Ctext x='260' y='320' class='text-item'%3E%D9%88%3C/text%3E%3Cuse href='%23p' x='340' y='380' transform='rotate(10 340 380)' /%3E%3Ctext x='420' y='310' class='text-item'%3E%D9%83%3C/text%3E%3Cuse href='%23s' x='500' y='360' /%3E%3Cuse href='%23t' x='580' y='300' transform='rotate(-45 580 300)' /%3E%3Ctext x='660' y='370' class='text-item'%3E%D8%AA%3C/text%3E%3Cuse href='%23w' x='740' y='320' transform='rotate(-5 740 320)' /%3E%3Ctext x='50' y='490' class='text-item'%3E%D8%B3%3C/text%3E%3Cuse href='%23s' x='110' y='530' /%3E%3Cuse href='%23p' x='190' y='470' transform='rotate(-125 190 470)' /%3E%3Ctext x='270' y='520' class='text-item'%3E%D9%86%3C/text%3E%3Cuse href='%23t' x='350' y='460' transform='rotate(12 350 460)' /%3E%3Ctext x='430' y='520' class='text-item'%3E%D8%BA%3C/text%3E%3Cuse href='%23w' x='510' y='460' transform='rotate(18 510 460)' /%3E%3Ctext x='590' y='530' class='text-item'%3E%D8%A3%3C/text%3E%3Cuse href='%23p' x='670' y='480' transform='rotate(80 670 480)' /%3E%3Ctext x='750' y='540' class='text-item'%3E%D8%AE%3C/text%3E%3Ccircle cx='80' cy='110' r='2' class='fill-item' /%3E%3Ccircle cx='280' cy='80' r='2' class='fill-item' /%3E%3Ccircle cx='420' cy='130' r='2' class='fill-item' /%3E%3Ccircle cx='590' cy='90' r='2' class='fill-item' /%3E%3Ccircle cx='150' cy='210' r='2' class='fill-item' /%3E%3Ccircle cx='360' cy='220' r='2' class='fill-item' /%3E%3Ccircle cx='510' cy='140' r='2' class='fill-item' /%3E%3Ccircle cx='680' cy='220' r='2' class='fill-item' /%3E%3Ccircle cx='90' cy='410' r='2' class='fill-item' /%3E%3Ccircle cx='310' cy='440' r='2' class='fill-item' /%3E%3Ccircle cx='480' cy='400' r='2' class='fill-item' /%3E%3Ccircle cx='710' cy='430' r='2' class='fill-item' /%3E%3Cuse href='%23x' x='140' y='45' /%3E%3Cuse href='%23pl' x='330' y='85' /%3E%3Cuse href='%23x' x='500' y='65' /%3E%3Cuse href='%23pl' x='720' y='95' /%3E%3Cuse href='%23x' x='85' y='155' /%3E%3Cuse href='%23pl' x='220' y='275' /%3E%3Cuse href='%23x' x='440' y='165' /%3E%3Cuse href='%23pl' x='610' y='265' /%3E%3Cuse href='%23x' x='240' y='345' /%3E%3Cuse href='%23pl' x='390' y='315' /%3E%3Cuse href='%23x' x='560' y='355' /%3E%3Cuse href='%23pl' x='700' y='305' /%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 600px 450px;
  background-position: 0 0;
  animation: bg-scroll 30s linear infinite;
  opacity: var(--bg-pattern-opacity);
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* Theme-aware utility overrides */
[data-theme="dark"] .text-white { color: var(--text); }
[data-theme="light"] .text-white:not(.admin-btn):not(.prod-badge):not(.carousel-cta):not(.prod-cta):not(.hero-badge):not(.hero-btn):not([class*="bg-brand"]):not([class*="bg-purple"]):not([class*="bg-blue"]):not([class*="bg-red"]):not([class*="bg-green"]):not([class*="bg-emerald"]),
[data-theme="light"] .text-gray-200,
[data-theme="light"] .text-gray-300 { color: var(--text); }
[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-500 { color: var(--muted); }
[data-theme="light"] .bg-white:not([class*="text-"]):not([class*="shadow-"]):not(.hero-cloud) { background-color: var(--card) !important; }
[data-theme="light"] .bg-gray-800 { background-color: var(--card-2) !important; }
[data-theme="light"] .bg-gray-100 { background-color: var(--card-2) !important; }
[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-800 { border-color: var(--border) !important; }
[data-theme="light"] .from-gray-900 { --tw-gradient-from: var(--card-2) var(--tw-gradient-from-position); }

/* Ensure colored buttons and badges always keep white text */
.admin-btn,
.admin-btn-danger,
.prod-badge,
.carousel-cta,
.prod-cta,
.hero-badge,
.hero-btn,
[class*="bg-brand-primary"],
[class*="bg-brand-secondary"] {
  color: #ffffff !important;
}
.admin-btn-secondary {
  color: var(--text) !important;
}

/* Hero Transparent Cloud Container & Animation */
@keyframes cloud-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.hero-cloud-float {
  animation: cloud-float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-cloud-float {
    animation: none;
  }
}

/* Dark Mode Cloud adaptation */
[data-theme="dark"] .hero-cloud-svg path {
  fill: rgba(22, 16, 48, 0.65) !important;
  stroke: rgba(168, 85, 247, 0.45) !important;
}
[data-theme="dark"] .hero-cloud-wrap h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .hero-cloud-wrap p {
  color: #e2e8f0 !important;
}

/* Dynamic channel card styling */
.channel-card:hover { border-color: var(--accent) !important; }
.channel-card:hover .channel-title { color: var(--accent) !important; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c026d3; border-radius: 4px; }

/* ===== Category Icons ===== */
.cat-icon {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  background: linear-gradient(145deg, var(--card-2), var(--card));
}
.cat-link:hover .cat-icon {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 12px 24px -8px rgba(192, 38, 211, 0.5);
  border-color: rgba(192, 38, 211, 0.6);
}
.cat-link:hover .cat-label { color: #f0abfc; }
.cat-label { transition: color .25s ease; }

/* ===== Lucky Wheel ===== */
.wheel-container { position: relative; width: 300px; height: 300px; margin: 0 auto; }
@media (min-width: 768px) { .wheel-container { width: 340px; height: 340px; } }
.wheel {
  width: 100%; height: 100%; border-radius: 50%; position: relative; z-index: 5;
  filter: drop-shadow(0 10px 30px rgba(192, 38, 211, 0.35));
  transition: transform 4s cubic-bezier(0.18, 0.9, 0.25, 1);
}
.wheel-outer {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, #c026d3, #3b82f6, #8b5cf6, #ec4899, #10b981, #f59e0b, #c026d3);
  padding: 8px; opacity: .9; filter: blur(1px);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  animation: spin-glow 8s linear infinite;
}
@keyframes spin-glow { to { transform: rotate(360deg); } }
.wheel-svg { width: 100%; height: 100%; border-radius: 50%; }
.wheel-svg text {
  font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 15px;
  fill: #fff; text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px;
}
.wheel-pointer {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 28px solid #fbbf24; z-index: 20;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
}
.wheel-pointer::after {
  content: ''; position: absolute; top: -30px; left: -8px;
  width: 16px; height: 16px; background: #fbbf24; border-radius: 50%;
  box-shadow: 0 0 12px #fbbf24;
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; z-index: 15;
  background: radial-gradient(circle at 35% 35%, #fff, #c026d3 70%);
  box-shadow: 0 0 0 5px var(--card), 0 0 18px rgba(192,38,211,.7);
}
#spin-btn { transition: transform .2s ease, box-shadow .2s ease; }
#spin-btn:hover:not(:disabled) { transform: translateY(-2px); }
#spin-btn:active:not(:disabled) { transform: translateY(0); }

/* ===== Confetti ===== */
.confetti { position: fixed; width: 10px; height: 10px; top: -10px; z-index: 9999; pointer-events: none; border-radius: 2px; }

/* ===== Theme toggle ===== */
#theme-toggle {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--card-2); border: 1px solid var(--border);
  cursor: pointer; transition: transform .2s ease, background .2s ease; font-size: 18px;
}
#theme-toggle:hover { transform: rotate(20deg) scale(1.08); }

/* ===== Carousel ===== */
.carousel-viewport { overflow: hidden; padding: 30px 0; }
.carousel-track { display: flex; gap: 16px; transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.carousel-card {
  flex: 0 0 280px; width: 280px; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 16px;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .4s ease, border-color .4s ease, opacity .4s ease;
  opacity: 0.55; transform: scale(0.9);
}
.carousel-card.is-active {
  opacity: 1; transform: scale(1); border-color: #3b82f6;
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.45);
}
.carousel-thumb { width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: var(--card-2); position: relative; }
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel-play-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(220, 38, 38, 0.95); color: #fff;
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.carousel-title { font-weight: 800; font-size: 17px; margin: 12px 0 8px; color: var(--text); }
.carousel-desc { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 14px; min-height: 66px; }
.carousel-cta {
  display: inline-block; width: 100%; text-align: center; background: #3b82f6; color: #fff;
  padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: background .2s ease;
}
.carousel-cta:hover { background: #2563eb; }
.carousel-dropdown {
  margin: 12px auto 0; width: 32px; height: 32px; border-radius: 50%; background: #f59e0b; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; border: none;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: background .2s ease, transform .2s ease;
}
.carousel-arrow:hover { background: var(--card-2); }
.carousel-arrow.prev { right: -8px; }
.carousel-arrow.next { left: -8px; }
@media (max-width: 640px) { .carousel-card { flex: 0 0 78%; width: 78%; } }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: background .2s ease, width .2s ease; }
.carousel-dot.is-active { background: #1a1a2e; width: 22px; }
[data-theme="dark"] .carousel-dot.is-active { background: #fff; }
.carousel-wrap { position: relative; }

/* ===== Products page ===== */
.prod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); border-color: #3b82f6; box-shadow: 0 16px 32px -12px rgba(59, 130, 246, 0.35); }
.prod-thumb { width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--card-2); position: relative; margin-bottom: 12px; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .prod-thumb img { transform: scale(1.08); }
.prod-badge { position: absolute; top: 10px; right: 10px; background: rgba(192, 38, 211, 0.95); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 9999px; }
.prod-title { font-weight: 800; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.prod-desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; flex: 1; }
.prod-cta { display: inline-block; width: 100%; text-align: center; background: #3b82f6; color: #fff; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: background .2s ease; }
.prod-cta:hover { background: #2563eb; }
.ph-hero { border-radius: 24px; overflow: hidden; position: relative; min-height: 320px; display: flex; align-items: center; padding: 40px; }
.ph-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, #c026d3 0%, #3b82f6 100%); }
.ph-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.ph-hero .inner { position: relative; z-index: 2; max-width: 600px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sec-title { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ''; width: 6px; height: 26px; border-radius: 3px; background: #c026d3; display: inline-block; }
.view-all { font-size: 14px; font-weight: 700; color: #3b82f6; display: inline-flex; align-items: center; gap: 6px; }
.view-all:hover { color: #2563eb; }
.tab { background: var(--card-2); border: 1px solid var(--border); color: var(--muted); padding: 8px 18px; border-radius: 9999px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s ease; }
.tab:hover { color: var(--text); }
.tab.is-active { background: #c026d3; color: #fff; border-color: #c026d3; }

/* ===== Admin dashboard ===== */
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.admin-input {
  width: 100%; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; color: var(--text); font-family: inherit; font-size: 14px; transition: border-color .2s ease;
}
.admin-input:focus { outline: none; border-color: #c026d3; }
.admin-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.admin-btn { background: #c026d3; color: #fff; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; transition: background .2s ease; }
.admin-btn:hover { background: #a022b3; }
.admin-btn-secondary { background: var(--card-2); color: var(--text); border: 1px solid var(--border); }
.admin-btn-danger { background: #dc2626; }
.admin-btn-danger:hover { background: #b91c1c; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: right; padding: 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 700; }
.admin-table td { padding: 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.admin-badge { display: inline-block; background: var(--card-2); color: var(--muted); padding: 2px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.flash-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.flash-error { background: rgba(220, 38, 38, 0.15); color: #ef4444; border: 1px solid rgba(220, 38, 38, 0.3); }

/* ===== Footer (theme-aware) ===== */
.site-footer { background: var(--footer-bg); }
.site-footer, .site-footer h3, .site-footer h4 { color: var(--footer-text); }
.site-footer p { color: var(--footer-muted); }
.site-footer ul li a { color: var(--footer-muted); transition: color .2s ease; }
.site-footer ul li a:hover { color: #f0abfc; }
.site-footer .footer-border { border-color: rgba(255,255,255,0.12); }

/* ============================================================
   Mockup Design System Additions (Matching User Mockup)
   ============================================================ */

/* Hero Container */
.mockup-hero {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.7) 0%, rgba(243, 232, 255, 0.55) 45%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 12px 36px -12px rgba(124, 58, 237, 0.12);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .mockup-hero {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.75) 0%, rgba(46, 16, 101, 0.55) 50%, rgba(19, 18, 43, 0.95) 100%);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

/* Quick Explore Individual Cards */
.quick-explore-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid rgba(233, 213, 255, 0.7);
  box-shadow: 0 4px 16px -2px rgba(76, 29, 149, 0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quick-explore-card:hover {
  transform: translateY(-6px);
  border-color: #c084fc;
  box-shadow: 0 14px 28px -6px rgba(147, 51, 234, 0.16);
}
[data-theme="dark"] .quick-explore-card {
  background: var(--card);
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .quick-explore-card:hover {
  border-color: #a855f7;
  box-shadow: 0 14px 28px -6px rgba(168, 85, 247, 0.3);
}
[data-theme="dark"] .quick-explore-card span {
  color: #ffffff !important;
}

/* Quick Action Buttons Row */
.quick-circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.quick-circle-btn:hover {
  transform: translateY(-5px) scale(1.05);
}
.quick-circle-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
}
.quick-circle-btn:hover .quick-circle-icon {
  box-shadow: 0 12px 24px -6px rgba(124, 58, 237, 0.25);
}

/* Category Cards (6-grid) */
.cat-explore-card {
  border-radius: 22px;
  padding: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.08);
}
.cat-explore-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.16);
}

/* Series Cards */
.mockup-series-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.06);
}
.mockup-series-card:hover {
  transform: translateY(-5px);
  border-color: #8b5cf6;
  box-shadow: 0 16px 32px -8px rgba(139, 92, 246, 0.25);
}

/* Coloring Workshop Dual Cards */
.coloring-mockup-card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 14px;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.coloring-mockup-card:hover {
  transform: translateY(-4px);
  border-color: #c084fc;
  box-shadow: 0 14px 28px -8px rgba(192, 132, 252, 0.25);
}

/* Daily Quest Banner */
.daily-quest-box {
  border-radius: 26px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf4ff 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 12px 28px -10px rgba(168, 85, 247, 0.15);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .daily-quest-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #3b0764 100%);
  border-color: rgba(168, 85, 247, 0.3);
}

/* Section floating badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 8px -2px rgba(0,0,0,0.08);
}

/* Play button pulse */
.play-btn-pulse {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.mockup-series-card:hover .play-btn-pulse {
  transform: scale(1.15);
  background: #dc2626;
}

