/* Night look for the template pages (Amer, 2026-12-02): when the homepage is on the moon look (localStorage dmLook = "dark"),
   the template pages stay dark in the same colours as the night homepage (deep navy-violet, violet buttons, pink, a touch of gold).
   The inline script in each page's head turns this file on and orange-pages.css off. The invite/reel designs themselves are not touched. */
:root {
  --green: #8b5cf6; --green-d: #6d28d9; --lime: #f0abfc; --brown: #e9c66a;
  --ink: #f4f1ff; --muted: #a79fc4;
  color-scheme: dark;
}
body { color: var(--ink); }
/* background: the night page's deep violet with two soft glows, no sky video, no floating stars */
.bg { background: #07040f; }
.bg-video, .floaters { display: none !important; }
.bg::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 12% 0%, rgba(124, 58, 237, .30), transparent 70%), radial-gradient(55% 40% at 100% 100%, rgba(240, 171, 252, .14), transparent 70%); }
.loading { color: var(--ink); }

/* the page card */
.ed { background: rgba(255, 255, 255, .035); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid rgba(196, 181, 253, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.back { background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(196, 181, 253, .28); color: var(--ink); }
.logo, .logo span { color: var(--ink); }
.logo-mark { border-radius: 50%; background: var(--green); box-shadow: 0 6px 16px rgba(139, 92, 246, .45); }
.kicker, .reels .kicker { background: rgba(139, 92, 246, .18); color: #e9d5ff; }
.ed-head h1 { color: var(--ink); }
.ed-head p { color: var(--muted); }
/* sections and fields: dark glass with a thin violet stroke */
.group { background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(196, 181, 253, .18); color: var(--ink); }
.group h3, .group h2, .group label, .field span { color: var(--ink); }
.field input, .field textarea, .field select { background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(196, 181, 253, .24); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 241, 255, .4); }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(139, 92, 246, .24); }
.replay, .quality button, .sw, .ds, .cos { background: rgba(255, 255, 255, .05); color: var(--ink); }
.ds.on, .cos.on { box-shadow: 0 0 0 4px rgba(139, 92, 246, .32); }
.designs > .glider, .kd-costumes > .glider { box-shadow: 0 0 0 4px rgba(139, 92, 246, .38), 0 10px 24px rgba(0, 0, 0, .4); }
.swatches, .seg, .voices { background: rgba(255, 255, 255, .05); border-color: rgba(196, 181, 253, .14); box-shadow: none; }
.swatches > .glider, .seg > .glider { box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 0 0 2px var(--green); }
.toggle input:checked + .knob { background: var(--green); }

/* voices: the same cards as the orange look, in violet */
.voices > .glider, .vc.on { background: linear-gradient(135deg, #a855f7, #7c3aed 55%, #6d28d9); box-shadow: 0 10px 24px rgba(124, 58, 237, .45); }
.vlk svg { stroke: #c4b5fd; }
.voices { background: transparent; border: 0; padding: 0; gap: 10px; }
.voices .vc:not(.on) { background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(196, 181, 253, .24); box-shadow: 0 10px 22px rgba(0, 0, 0, .3); color: var(--ink); }
.voices .vc:not(.on):hover { border-color: var(--green); box-shadow: 0 14px 28px rgba(139, 92, 246, .25); transform: translateY(-3px); }
.vc { padding: 16px 6px 12px; gap: 5px; }
.vc .wave { display: flex; align-items: center; justify-content: center; gap: 3px; width: 42px; height: 42px; margin: 0 auto 4px; border-radius: 50%;
  color: #fff; background: radial-gradient(circle at 35% 30%, #c084fc, #8b5cf6 60%, #6d28d9); box-shadow: 0 8px 16px rgba(139, 92, 246, .4); }
.vc .wave i { opacity: 1; animation: wvIdle 1.8s ease-in-out infinite; }
.vc .wave i:nth-child(2) { animation-delay: .2s; } .vc .wave i:nth-child(3) { animation-delay: .4s; } .vc .wave i:nth-child(4) { animation-delay: .6s; } .vc .wave i:nth-child(5) { animation-delay: .8s; }
@keyframes wvIdle { 50% { transform: scaleY(1.35); } }
.vc.on .wave { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.vc.on .wave i { animation: wv .9s ease-in-out infinite; }
.vc b { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .vc .wave i { animation: none; } }

/* upload drop zones */
.drop, .drop.mini { border-color: rgba(196, 181, 253, .45); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(139, 92, 246, .1)); color: var(--ink); }
.drop:hover, .drop.over, .drop.mini:hover, .drop.mini.over { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(139, 92, 246, .2)); }
.ffront { background: linear-gradient(180deg, #a855f7, #7c3aed); box-shadow: 0 10px 22px rgba(124, 58, 237, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fcard svg { stroke: var(--green); }
.pick { background: var(--green); box-shadow: 0 8px 20px rgba(139, 92, 246, .45); }
.bar, .drop.mini .bar { background: rgba(139, 92, 246, .2); }
.bar i, .drop.mini .bar i { background: linear-gradient(90deg, #c084fc, #8b5cf6); }
.sl input { accent-color: var(--green); }
.kd-tools button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--green) inset; }
.ds.lock > span:last-child { color: #e9c66a; }
/* the costume ring on the kids page */
.kr .ph { background: #1a1030; box-shadow: 0 16px 32px rgba(0, 0, 0, .45); }
.kr.on:not(.lock) .ph { border-color: #c4b5fd; box-shadow: 0 0 0 4px rgba(139, 92, 246, .5), 0 16px 32px rgba(0, 0, 0, .45); }
.kr b { background: rgba(24, 14, 44, .92); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.dl[disabled] { filter: none; opacity: .55; }

/* the download bar */
.dl-bar { background: rgba(14, 8, 28, .94); border-color: rgba(196, 181, 253, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); color: var(--ink); }
.dl { background: var(--green); box-shadow: 0 6px 0 var(--green-d); color: #fff; }
.dl:active { box-shadow: 0 3px 0 var(--green-d); }

/* the premium window: violet and pink light */
.plan-glow { background: radial-gradient(circle at 35% 35%, #c084fc 0%, rgba(192, 132, 252, 0) 55%), radial-gradient(circle at 70% 65%, #f0abfc 0%, rgba(240, 171, 252, 0) 55%); }
.plan ul li i, .plan li i { background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 8px 20px rgba(124, 58, 237, .45); }

/* the account chip and the sign-in / download / top-up windows (auth.js) in violet; html.night wins over auth.js's own styles */
html.night .au-chip { background: rgba(255, 255, 255, .06); border-color: rgba(196, 181, 253, .35); color: var(--ink); }
html.night .au-chip:hover { border-color: var(--green); }
html.night .au-chip.out { background: linear-gradient(135deg, #a855f7, #7c3aed 55%, #6d28d9); color: #fff; border: 0; box-shadow: 0 8px 18px rgba(124, 58, 237, .45); }
html.night .au-chip .au-ini, html.night .au-ini, html.night .au-logo, html.night .au-buy, html.night .au-go { background: var(--green); }
html.night .au-logo { box-shadow: 0 10px 24px rgba(139, 92, 246, .45); }
html.night .au-go { box-shadow: 0 6px 0 var(--green-d); }
html.night .au-cr, html.night .au-out { background: rgba(139, 92, 246, .16); color: #e9d5ff; }
/* the account menu: dark at night so the violet balance pill and «تسجيل الخروج» read; the orange free-actions box stays orange (Amer) */
html.night .au-menu { background: #140c26; border-color: rgba(196, 181, 253, .25); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
html.night .au-menu .au-bal { color: var(--ink); }
html.night .au-menu > small { color: var(--muted); }

/* wedding «صفحة الدعوة» links (2026-12-03) */
.inv-links a, .inv-links button { background: rgba(255, 255, 255, .06); border-color: rgba(196, 181, 253, .24); color: var(--ink); }
.inv-links .inv-new { background: transparent; }
.inv-g .premium-note { color: #86efac; }
input[type="datetime-local"], input[type="date"] { color-scheme: dark; }
