/*
 * DhakaWala Premium Light Theme — additive, opt-in only.
 *
 * SAFETY CONTRACT:
 * - Never change the existing .dark tokens or styles.
 * - Every rule in this file MUST be explicitly scoped to html.light.
 * - Existing default remains dark unless someone elects Light Mode.
 * - Keep Light Mode visual updates isolated from billing / WHM behaviour.
 */

html.light {
    color-scheme: light;
    --dw-light-text: #11283b;
    --dw-light-muted: #536b79;
    --dw-light-border: rgba(28, 76, 93, 0.13);
    --dw-light-elevated: rgba(255, 255, 255, 0.94);
    --dw-light-surface: #f5fafb;
    --dw-light-shadow: 0 24px 64px -32px rgba(15, 65, 80, 0.28);
}

html.light body {
    background: #f6faf9;
    color: var(--dw-light-text);
}

/* The public header and footer intentionally RETAIN the current Dark identity
   even when the rest of the page is in Light Mode. Set their original dark
   tokens locally. No changes to the actual Dark Mode, logos, markup or geometry. */
html.light header,
html.light footer {
    --c-abyss-950: 8 13 33;
    --c-abyss-900: 14 22 51;
    --c-abyss-850: 21 34 74;
    --c-abyss-800: 30 46 99;
    --c-abyss-700: 45 67 133;
    --c-abyss-600: 64 92 173;
    --c-mist-100: 240 244 255;
    --c-mist-200: 220 230 255;
    --c-mist-300: 180 200 245;
    --c-mist-400: 140 170 230;
    --c-mist-500: 100 135 200;
    --c-mist-600: 70 100 160;
    --c-white: 255 255 255;
    --c-glass-bg: 14 25 55 / 0.5;
    --c-glass-bg-strong: 10 18 42 / 0.85;
    color: rgb(var(--c-mist-100));
}

/* The original footer is 60% navy over a navy BODY. Over a white body,
   that same translucent fill looks grey. Match the actual composited Dark
   appearance instead of merely matching an rgba() CSS property. */
html.light footer {
    background-color: #0b122c;
}

/* On a pale hero, transparent white menu lettering becomes unreadable.
   Use the existing navy navbar surface without changing its pill geometry.
   The original dark-mode scrolled navbar rules continue to govern scrolling. */
html.light header #main-nav-pill:not(.navbar-pill-scrolled) {
    background-color: rgba(8, 13, 33, .96);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 12px 36px -20px rgba(8, 13, 33, .45);
}
html.light header .glass-strong {
    background: rgba(8, 13, 33, .94);
    color: rgb(var(--c-mist-100));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
html.light header .text-ink {
    color: #080d21;
}

/* Aurora glow remains dimensional, but the light page has airy, distinct lighting. */
html.light .aurora-bg::before {
    background: radial-gradient(ellipse at center, rgba(20, 184, 145, 0.12), rgba(20, 184, 145, 0.035) 42%, transparent 72%);
}
html.light .aurora-bg::after {
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.10), rgba(99, 102, 241, 0.025) 40%, transparent 70%);
}
html.light .aurora-mid {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.06), transparent 70%);
}

/* Background gradients in the marketing sections are currently dark hardcodes. */
html.light main section.bg-gradient-to-b {
    background-image: linear-gradient(180deg, #f9fcfc 0%, #edf6f7 52%, #f8fbfd 100%);
}
html.light main > section:not([class*="bg-"]) {
    background-color: transparent;
}

/* The retained 3D illustrations can remain dark against a luminous light surface. */
html.light main .glass,
html.light [role="dialog"][aria-label="Shopping cart"] .glass {
    background: linear-gradient(132deg, rgba(255,255,255,.96), rgba(240,250,249,.84));
    border: 1px solid rgba(30, 102, 111, .13);
    box-shadow: inset 0 1px rgba(255,255,255,.96), 0 16px 45px -26px rgba(31, 95, 110, .30);
    backdrop-filter: blur(24px);
}
html.light main .glass-strong,
html.light [role="dialog"][aria-label="Shopping cart"] .glass-strong {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(35, 95, 107, .16);
    box-shadow: 0 24px 60px -30px rgba(14, 64, 88, .32), inset 0 1px rgba(255,255,255,.94);
    backdrop-filter: blur(20px) saturate(1.15);
}
html.light .card-lift:hover {
    box-shadow: 0 28px 60px -24px rgba(13,148,120,.23), 0 16px 36px -20px rgba(8,52,65,.22);
}
html.light .hover-glow:hover {
    box-shadow: 0 0 0 1px rgba(13,148,120,.30), 0 12px 36px rgba(13,148,120,.11);
}
html.light .grid-floor {
    background-image: linear-gradient(rgba(13,148,120,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(6,130,152,.13) 1px, transparent 1px);
}
html.light .bg-grid {
    background-image: linear-gradient(rgba(9,110,110,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(9,110,110,.055) 1px, transparent 1px);
}

/* Readable accents on white — no changes to the existing dark text gradients. */
html.light .text-gradient {
    background-image: linear-gradient(92deg, #056d68, #0b977a 53%, #077db1);
}
html.light .text-gradient-anim {
    background-image: linear-gradient(95deg, #087d82, #078f73, #096d9b, #087d82);
}
html.light main .text-sea-400 { color: #087f69; }
html.light main .text-sea-300 { color: #087b65; }
html.light main .text-cyan-400 { color: #087b9d; }
html.light main .text-cyan-300 { color: #087b9d; }
html.light main .text-mist-500 { color: #586e7a; }
html.light main .text-mist-600 { color: #506873; }
/* Tailwind white rings and borders were authored for the dark theme. */
html.light main [class*="ring-white/"] { --tw-ring-color: rgba(30,80,93,.16); }
html.light main [class*="border-white/"] { border-color: rgba(30,80,93,.15); }

/* Forms: readable labels, clear focused inputs and visible autofill. */
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light textarea,
html.light select {
    color: var(--dw-light-text);
    border-color: rgba(35,96,107,.20);
    background-color: rgba(255,255,255,.95);
}
html.light input::placeholder,
html.light textarea::placeholder { color: #708690; }
html.light :is(input,textarea,select):-webkit-autofill,
html.light :is(input,textarea,select):-webkit-autofill:hover,
html.light :is(input,textarea,select):-webkit-autofill:focus {
    -webkit-text-fill-color: #11283b !important;
    -webkit-box-shadow: 0 0 0 1000px #f3fffb inset !important;
    box-shadow: 0 0 0 1000px #f3fffb inset !important;
    caret-color: #11283b;
}
html.light input:autofill,
html.light textarea:autofill,
html.light select:autofill {
    background-color: #f3fffb !important;
    color: #11283b !important;
}

/* Marketing and dashboard surfaces with a dark translucent fill. */
html.light main [class~="bg-white/5"] { background-color: rgba(255,255,255,.78); }
html.light main [class~="bg-white/10"] { background-color: rgba(255,255,255,.89); }
html.light main [class~="hover:bg-white/10"]:hover { background-color: rgba(224,246,242,.88); }
html.light main [class~="hover:bg-white/20"]:hover { background-color: rgba(208,239,234,.90); }
html.light main [class~="ring-white/20"] { --tw-ring-color: rgba(30,80,93,.20); }
html.light main [class~="border-white/20"] { border-color: rgba(30,80,93,.18); }

/* Legal pages, whose present custom stylesheet uses literal dark-only colors. */
html.light .legal-body,
html.light .legal-list li { color: #364e60; }
html.light .legal-section { border-bottom-color: rgba(30,80,93,.12); }
html.light .legal-h2 { color: #123448; }
html.light .legal-h3 { color: #087b6b; }
html.light .legal-h2::after,
html.light .legal-h3::before {
    box-shadow: none;
}
html.light .legal-notice {
    background: #eaf8f3;
    color: #245646 !important;
    box-shadow: 0 10px 32px -24px rgba(30,80,93,.23);
}
html.light .legal-notice strong,
html.light .legal-link { color: #087b69; }
html.light .legal-link:hover { color: #095c53; }
html.light .legal-contact-card {
    background: #ffffff;
    border-color: rgba(15,133,116,.23);
    box-shadow: var(--dw-light-shadow);
}
html.light .legal-toc-link { color: #526b7d; }
html.light .legal-toc-link:hover,
html.light .legal-toc-link.active { color: #087b69; }

/* Keep native dark-theme colors unmodified; apply only to the selected light theme. */


/* ================================================================
   PHASE 2 — Marketing surface art direction.
   Individual sections intentionally use different light tones rather
   than a global inverted color filter.
   ================================================================ */
html.light #domains {
    background: linear-gradient(137deg, #f7fcfd 0%, #e6f5f3 51%, #f6faff 100%);
}
html.light #features {
    background: linear-gradient(162deg, #f3faf9 0%, #edf7f9 52%, #f6fbfd 100%);
}
html.light #hosting {
    background: linear-gradient(156deg, #f7fcfd 0%, #eaf7f4 52%, #f4f9fe 100%);
}
html.light #why-price {
    background: radial-gradient(ellipse at top right, rgba(20,184,145,.09), transparent 64%), #f8fcfb;
}
html.light #infrastructure {
    background: radial-gradient(ellipse at 54% 34%, rgba(6,182,212,.075), transparent 67%), #eef7fa;
}
html.light #stats {
    background: linear-gradient(130deg, #ecfaf5 0%, #edf7fc 53%, #ecf7fa 100%);
    border-block-color: rgba(17, 101, 115, .13);
}
html.light #promise {
    background: linear-gradient(132deg, #f9fcfd 0%, #eaf8f3 100%);
}
html.light #support {
    background: linear-gradient(155deg, #edf8fa 0%, #f6fcfc 100%);
}
html.light #faq {
    background: linear-gradient(144deg, #e9f7f3 0%, #f5fafa 54%, #eaf5fb 100%);
}
html.light section[aria-label="Trusted by"] {
    background: #f5fbfb;
    border-block-color: rgba(25, 103, 116, .12);
}
html.light section[aria-label="Domain Search"] > div > div[class*="bg-white/"] {
    background: linear-gradient(127deg, #ffffff, #f0f9f7 73%, #f8fbff);
    border-color: rgba(16, 113, 117, .18);
    box-shadow: 0 30px 75px -35px rgba(15, 96, 111, .26);
}
html.light section[aria-label="Domain Search"] [class~="bg-white/[0.05]"],
html.light #why-price [class~="bg-white/[0.05]"] {
    background-color: rgba(226, 244, 244, .78);
}
html.light section[aria-label="Domain Search"] [class~="bg-slate-900/50"] {
    background-color: #f9fdfd;
}
html.light #features article {
    background-image: linear-gradient(152deg, rgba(255,255,255,.97), rgba(236,248,247,.89));
    box-shadow: 0 20px 50px -35px rgba(10, 79, 94, .28);
    border-color: rgba(36, 116, 126, .11);
}
html.light #features article:hover {
    box-shadow: 0 26px 57px -30px rgba(8, 128, 116, .19);
}
html.light #hosting article[class*="from-teal-500"] {
    background-image: linear-gradient(132deg, #effef8, #dff5fa 68%, #edf3ff);
    box-shadow: 0 24px 62px -31px rgba(13, 111, 140, .25);
}
html.light #hosting [class~="bg-white/10"] {
    background-color: #e2f2ef;
}
html.light #hosting [class~="hover:text-white"]:hover {
    color: #087b69;
}
html.light #why-price [class~="bg-gradient-to-b"] {
    background-image: linear-gradient(148deg, #ffffff, #edf9f7);
}
html.light #infrastructure [class~="bg-abyss-900"] {
    background-color: #eaf2f7;
}
html.light #infrastructure [class~="bg-white/[0.04]"],
html.light #support [class~="bg-white/[0.06]"] {
    background-color: rgba(255, 255, 255, .8);
}
html.light #infrastructure [class~="bg-white/[0.06]"] {
    background-color: rgba(210, 232, 234, .7);
}
html.light #support [class~="border-white/10"] {
    border-color: rgba(25, 102, 116, .14);
}
html.light #faq [class~="bg-sea-500/[0.07]"] {
    background-color: #e4f8f1;
}
/* ================================================================
   PHASE 3 — Customer-facing navigation and public components.
   ================================================================ */
html.light section[aria-label="Domain Search"] input,
html.light section[aria-label="Domain Search"] input:focus {
    background: #ffffff;
    color: #19374a;
    border: 1px solid rgba(17, 107, 118, .22);
    box-shadow: 0 10px 34px -26px rgba(13, 111, 122, .34);
}
html.light #domains :is(h1,h2,h3) {
    color: #11364b;
}
html.light :is(main,footer) a:focus-visible,
html.light :is(main,footer,header) button:focus-visible {
    outline-color: #0b806d;
}
html.light [class~="bg-white/[0.015]"] { background-color: #f4fbfb; }

/* Accessible selection without sacrificing the separate darker 3D art. */
html.light ::selection {
    background: rgba(20,184,145,.23);
    color: #0e3443;
}
@media (prefers-reduced-motion: reduce) {
    html.light .aurora-bg::before,
    html.light .aurora-bg::after,
    html.light .aurora-mid {
        animation: none;
    }
}


/* ================================================================
   PHASE 4 + 5 — Authentication, portal, commerce and billing.
   Component templates and their business logic are not modified.
   ================================================================ */
html.light main [class~="bg-white"] {
    background-color: #ffffff;
}
html.light main [class~="bg-gray-50"] {
    background-color: #f4faf9;
}
html.light main [class~="bg-gray-100"] {
    background-color: #e7f1f2;
}
html.light main [class~="border-gray-100"],
html.light main [class~="border-gray-200/80"] {
    border-color: rgba(26, 103, 117, .17);
}

/* Explicitly themed live checkout wizard. */
html.light main [class~="bg-slate-950"] {
    background-color: #f5fafd;
}
html.light main [class~="bg-slate-900"],
html.light main [class~="bg-slate-900/60"],
html.light main [class~="bg-slate-900/50"] {
    background-color: rgba(255,255,255,.96);
    box-shadow: 0 12px 40px -29px rgba(18,74,89,.28);
}
html.light main [class~="bg-slate-800"] {
    background-color: #e6f1f2;
}
html.light main [class~="bg-slate-700"] {
    background-color: #ccdee0;
}
html.light main [class~="border-slate-800"],
html.light main [class~="border-slate-700"] {
    border-color: rgba(34, 108, 125, .19);
}
html.light main [class~="border-slate-600"] {
    border-color: rgba(35, 105, 116, .3);
}
html.light main [class~="text-slate-300"] { color: #334d5a; }
html.light main [class~="text-slate-400"] { color: #526d7b; }
html.light main [class~="text-slate-500"] { color: #526c78; }
html.light main [class~="text-slate-600"] { color: #506873; }
html.light main [class~="placeholder-slate-500"]::placeholder { color: #879ba3; }
html.light main [class~="bg-cyan-500/10"] { background-color: #e7f7fa; }
html.light main [class~="bg-cyan-500/5"] { background-color: #effafd; }
html.light main [class~="text-cyan-400"] { color: #087a9b; }
html.light main [class~="text-cyan-300"] { color: #0a7692; }
html.light main [class~="bg-green-500/10"] { background-color: #e3f9ed; }
html.light main [class~="bg-red-500/10"] { background-color: #ffefef; }
html.light main [class~="bg-yellow-500/10"] { background-color: #fff8e7; }
html.light main [class~="text-green-400"] { color: #15754a; }
html.light main [class~="text-red-400"] { color: #bb343e; }
html.light main [class~="text-yellow-400"] { color: #946200; }
html.light main [class~="text-emerald-400"] { color: #087f61; }

/* Preserve bright CTA contrast on strong gradients and filled controls. */
html.light main :is(a,button)[class~="text-white"][class~="bg-gradient-to-r"],
html.light main :is(a,button)[class~="text-white"][class~="bg-blue-600"],
html.light main :is(a,button)[class~="text-white"][class~="bg-red-600"],
html.light main :is(a,button)[class~="text-white"][class~="bg-gray-900"],
html.light main :is(a,button)[class~="text-white"][class~="bg-gray-800"] {
    color: #ffffff;
}

/* Customer billing tables, account/profile cards, and invoice rows. */
html.light main table {
    border-color: rgba(28,91,106,.15);
}
html.light main thead [class~="bg-white/[0.03]"] {
    background-color: #e8f4f4;
}
html.light main tbody [class~="hover:bg-white/[0.03]"]:hover,
html.light main tbody [class~="hover:bg-white/5"]:hover {
    background-color: #eaf8f6;
}
html.light main [class~="divide-white/5"] > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(23, 108, 123, .12);
}
html.light main [class~="bg-abyss-950"] {
    background-color: #f6fafc;
}
html.light main [class~="bg-abyss-900"] {
    background-color: #e9f2f6;
}
html.light main [class~="bg-abyss-800"] {
    background-color: #d6e8f0;
}
html.light main [class~="bg-abyss-950/50"] {
    background-color: rgba(255,255,255,.86);
}

/* Full-height cart drawer is outside <main>, so it has its own scope. */
html.light [role="dialog"][aria-label="Shopping cart"] aside {
    background: #ffffff;
    box-shadow: -20px 0 65px -22px rgba(12,70,88,.24);
}
html.light [role="dialog"][aria-label="Shopping cart"] [class~="bg-white/[0.04]"] {
    background: #eef7f7;
}
html.light [role="dialog"][aria-label="Shopping cart"] [class~="bg-abyss-950/70"] {
    background: rgba(10,27,46,.47);
}
html.light [role="dialog"][aria-label="Shopping cart"] [class~="border-white/10"] {
    border-color: rgba(30, 95, 106, .14);
}

/* The logo/image accent and existing menu geometry remain unchanged in Dark. */
html.light :is(input,button,select,textarea):disabled {
    cursor: not-allowed;
}


/* Livewire hosting domain modal (including validation and option states). */
html.light main .fixed.inset-0 [class~="bg-slate-950"] {
    background: #ffffff;
    border-color: rgba(25,103,116,.18);
    box-shadow: 0 22px 80px -22px rgba(10,51,69,.29);
}
html.light main .fixed.inset-0 [class~="bg-slate-800/50"],
html.light main .fixed.inset-0 [class~="bg-slate-800/30"] {
    background: #eff8f6;
}
html.light main .fixed.inset-0 [class~="bg-slate-700"] {
    background: #d7e8e9;
}
html.light main .fixed.inset-0 [class~="border-slate-500"] {
    border-color: rgba(17, 111, 107, .45);
}
html.light main .fixed.inset-0 [class~="text-slate-200"] {
    color: #2e4d5d;
}
html.light main .fixed.inset-0 [class~="text-white"] {
    color: #143547;
}
html.light main .fixed.inset-0 :is(button,span)[class~="bg-cyan-500"][class~="text-white"],
html.light main .fixed.inset-0 :is(button,span)[class~="bg-emerald-500"][class~="text-white"] {
    color: #ffffff;
}
html.light main [class~="bg-gray-50"] option,
html.light main select option {
    background: #ffffff;
    color: #19374a;
}
html.light main [class~="hover:bg-gray-50"]:hover {
    background: #eef7f7;
}
html.light main [class~="bg-indigo-50/30"] {
    background: #edf7fa;
}


/* Logo artwork has white DhakaWala lettering. It needs a navy contrast
   surface in Light Mode; keep original assets and Dark Mode untouched. */
html.light main img[src*="menu-logo-v2.png"],
html.light main img[src*="footer-logo-v2.png"] {
    background: linear-gradient(135deg, #082638, #113a57);
    border-radius: 0.9rem;
    padding: 0.25rem 0.45rem;
    box-shadow: 0 12px 28px -16px rgba(6, 41, 58, .42);
}


/* ================================================================
   PHASE 3 — Public pages (Domains, Hosting, VPS, Migration).
   Only the public content sections opt in. Header and footer stay dark.
   ================================================================ */
html.light main .dw-public-page {
    background:
        radial-gradient(ellipse 720px 300px at 50% 2%, rgba(18, 184, 157, .13), transparent 75%),
        linear-gradient(180deg, #f8fcfc 0%, #eff8f7 52%, #f8fbff 100%);
    border-bottom: 1px solid rgba(30, 99, 111, .10);
}
html.light main .dw-public-page > div:first-child {
    opacity: .45;
}
html.light main .dw-public-page h1 {
    color: #112e42;
    text-wrap: balance;
}
html.light main .dw-public-page h1 + p {
    color: #435e6d;
}
html.light main .dw-public-page [class~="text-mist-300"] {
    color: #425c6b;
}
html.light main .dw-public-page .glass {
    background: linear-gradient(140deg, rgba(255,255,255,.98), rgba(238,249,246,.92));
    box-shadow: 0 18px 52px -31px rgba(13, 94, 109, .23);
}
html.light main .dw-domain-pricing {
    background-color: rgba(255,255,255,.94);
    border: 1px solid rgba(28, 111, 124, .13);
    box-shadow: 0 24px 60px -37px rgba(10, 91, 103, .23);
    scrollbar-color: #82bfb7 #e8f5f3;
}
html.light main .dw-domain-pricing thead {
    background-color: #eaf6f5;
    border-color: rgba(30, 107, 117, .15);
}
html.light main .dw-domain-pricing th {
    color: #315466;
}
html.light main .dw-domain-pricing td {
    border-color: rgba(29, 112, 119, .11);
}
html.light main .dw-domain-pricing tbody tr:nth-child(even) {
    background-color: rgba(241, 249, 249, .75);
}
html.light main .dw-domain-pricing tbody tr:hover {
    background-color: #e8f7f4;
}
html.light main .dw-domain-price-empty {
    display: table-row;
}
html.light main .dw-domain-price-empty td {
    color: #415d6a;
}
html.light main .dw-domain-pricing:focus-visible {
    outline: 3px solid rgba(15, 148, 126, .62);
    outline-offset: 2px;
}
@media (max-width: 639px) {
    html.light main .dw-public-page {
        padding-top: 6.5rem;
    }
    html.light main .dw-public-page h1 {
        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.11;
    }
}


/* ================================================================
   PHASE 4 — Auth, login and private customer portal (Light only).
   Dark Mode continues to use its untouched styles.
   ================================================================ */
html.light {
    /* Registration inputs originally use inline !important dark colors.
       Their inline CSS now refers to these custom properties, preserving the
       exact old value in Dark Mode through the inline fallback. */
    --dw-register-input-bg: #ffffff;
    --dw-register-input-ink: #162f3f;
}
html.light main .dw-auth-page {
    background:
        radial-gradient(ellipse 640px 450px at 50% 15%, rgba(6, 177, 153, .13), transparent 72%),
        linear-gradient(180deg, #f5fbfb, #edf6f7 57%, #f8fbff);
}
html.light main .dw-auth-page .glass-strong {
    background: linear-gradient(155deg, #ffffff, #f7fcfb);
    border: 1px solid rgba(19, 117, 118, .13);
    box-shadow: 0 28px 70px -30px rgba(21, 91, 110, .27);
}
html.light main .dw-auth-page label {
    color: #2c4e5e;
}
html.light main .dw-auth-page .dw-input {
    color: #162f3f !important;
    background-color: #ffffff !important;
    border-color: rgba(26, 111, 120, .24);
}
html.light main .dw-auth-page .dw-input::placeholder {
    color: #697f8a !important;
}
html.light main .dw-auth-page .dw-input:focus,
html.light main .dw-auth-page input:focus-visible {
    outline: 2px solid rgba(17, 153, 125, .4);
    outline-offset: 1px;
}
html.light main .dw-auth-page [class~="bg-abyss-900/90"] {
    background: #f2f8f7;
}
html.light main .dw-auth-page :is(a,button)[class~="bg-white/5"] {
    background: #f6fafb;
    border-color: rgba(34, 102, 112, .22);
}
html.light main .dw-auth-page :is(a,button)[class~="bg-white/5"]:hover {
    background: #e8f7f3;
    color: #176b69;
}
html.light main .dw-auth-page input[type="checkbox"] {
    accent-color: #09977c;
    border-color: #89b4b7;
}
html.light main .dw-client-page {
    min-height: 64vh;
    background:
        radial-gradient(ellipse 750px 280px at 55% 0, rgba(14, 184, 163, .12), transparent 74%),
        linear-gradient(180deg, #f4fafb, #edf6f7 45%, #f8fafc);
}
html.light main .dw-client-page .glass,
html.light main .dw-client-page .glass-strong {
    border: 1px solid rgba(39, 111, 121, .14);
    box-shadow: 0 18px 55px -36px rgba(19, 91, 115, .25);
}
html.light main .dw-client-page a[class~="bg-white/10"][class~="text-white"] {
    color: #19465a;
    background-color: #ffffff;
    border: 1px solid rgba(24, 110, 122, .20);
}
html.light main .dw-client-page a[class~="bg-white/10"][class~="text-white"]:hover {
    color: #0c695c;
    background-color: #e6f8f2;
}
html.light main .dw-client-page [class~="text-emerald-400"] {
    color: #097553;
}
html.light main .dw-client-page [class~="text-amber-400"] {
    color: #936300;
}
html.light main .dw-client-page [class~="text-blue-400"] {
    color: #226ba6;
}
html.light main .dw-client-page [class~="text-orange-400"] {
    color: #a15a0c;
}
html.light main .dw-client-page [class~="text-red-400"] {
    color: #b73c45;
}
html.light main .dw-client-page [class~="text-yellow-400"] {
    color: #956500;
}
html.light main .dw-client-page :is(th,td) {
    border-color: rgba(24, 94, 116, .10);
}
html.light main .dw-client-page :is(a,button,input):focus-visible,
html.light main .dw-client-profile :is(a,button,input):focus-visible {
    outline: 2px solid #078c76;
    outline-offset: 2px;
}
html.light main .dw-client-profile {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
    color: #1f3e4d;
}
html.light main .dw-client-profile > h1 {
    color: #173749;
}
html.light main .dw-client-profile .bg-white {
    border-color: rgba(35, 113, 123, .13);
    box-shadow: 0 14px 50px -38px rgba(20, 98, 113, .3);
}
@media (max-width: 639px) {
    html.light main .dw-auth-page .glass-strong {
        padding-inline: 1.25rem;
    }
    html.light main .dw-client-page {
        padding-top: 6.8rem;
    }
}


/* PHASE 4: Real customers have multi-column service, domain and invoice lists.
   Keep the tables fully usable by touch / keyboard, rather than clipping
   their Manage actions on narrow screens. Scope only to selected Light Mode. */
html.light main .dw-client-page .glass:has(> table) {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #83b8b9 #eef6f6;
}
html.light main .dw-client-page .glass > table {
    min-width: 530px;
}
html.light main .dw-client-page .glass:has(> table):focus-visible {
    outline: 2px solid #078c76;
    outline-offset: 2px;
}
html.light main .dw-client-page .glass tbody tr:hover {
    background-color: #e9f7f4;
}
html.light main .dw-client-page [class~="text-green-400"],
html.light main .dw-client-page [class~="text-emerald-400"] {
    color: #087750;
}
html.light main .dw-client-page [class~="text-yellow-400"] {
    color: #8d6200;
}
html.light main .dw-client-page [class~="text-red-400"] {
    color: #b33141;
}
/* Detailed domain cards and hosting quick access items must remain legible. */
html.light main .dw-client-page [class~="bg-white/5"],
html.light main .dw-client-page [class~="bg-white/10"] {
    background-color: rgba(255, 255, 255, .82);
}
html.light main .dw-client-page [class~="bg-white/5"]:hover,
html.light main .dw-client-page [class~="hover:bg-white/10"]:hover {
    background-color: #e8f7f4;
}
@media (max-width: 639px) {
    html.light main .dw-client-page :is(h1, h2) {
        overflow-wrap: anywhere;
    }
    html.light main .dw-client-page .grid > * {
        min-width: 0;
    }
}


/* Light-only responsive cards keep Status/Renewal/Manage immediately visible,
   with no hidden scroll-only columns. Dark table layout stays unchanged. */
@media (max-width: 639px) {
    html.light main .dw-client-page .glass:has(> table.dw-mobile-cards) {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    html.light main .dw-client-page table.dw-mobile-cards,
    html.light main .dw-client-page table.dw-mobile-cards tbody {
        display: block;
        min-width: 0;
        width: 100%;
        border: 0;
        background: transparent;
    }
    html.light main .dw-client-page table.dw-mobile-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        white-space: nowrap;
        clip-path: inset(50%);
    }
    html.light main .dw-client-page table.dw-mobile-cards tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.8rem 1rem;
        background-color: rgba(255,255,255,.96);
        border: 1px solid rgba(24,110,123,.14);
        border-radius: 1rem;
        box-shadow: 0 12px 33px -24px rgba(12,82,102,.32);
    }
    html.light main .dw-client-page table.dw-mobile-cards tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.4rem 0.75rem;
        width: 100%;
        padding: 0.65rem 0 !important;
        border: 0;
        border-bottom: 1px solid rgba(24,110,123,.09);
        font-size: 0.8rem;
        white-space: normal !important;
        overflow-wrap: anywhere;
        text-align: right;
    }
    html.light main .dw-client-page table.dw-mobile-cards tbody td:last-child {
        border-bottom: 0;
    }
    html.light main .dw-client-page table.dw-mobile-cards tbody td[data-label]::before {
        content: attr(data-label);
        flex: 0 0 auto;
        margin-right: auto;
        color: #526e7b;
        font-size: 0.75rem;
        font-weight: 600;
        text-align: left;
    }
    html.light main .dw-client-page table.dw-mobile-cards tbody td[colspan] {
        display: block;
        padding: 1.25rem 0 !important;
        text-align: center;
    }
}


/* Phase 4: remaining account recovery and verification surfaces.
   The old Dark Mode screens, including Google password setup, are unchanged. */
html.light main .dw-verify-page {
    padding: 5.25rem 1rem 1.5rem;
    color: #193a4c;
}
html.light main .dw-verify-page > div {
    border-color: rgba(31,112,127,.15);
    border-radius: 1.25rem;
    box-shadow: 0 19px 52px -33px rgba(18,88,111,.3);
}
html.light main .dw-verify-page :is(a,button):focus-visible {
    outline: 2px solid #078c76;
    outline-offset: 3px;
}
html.light main .dw-auth-page [class~="bg-white/[0.02]"] {
    background-color: rgba(234, 248, 245, .85);
    border-color: rgba(30,116,118,.15);
}


/* ================================================================
   PHASE 5 — Checkout, manual payment and billing histories.
   Strictly html.light; preserve untouched Dark Mode and all workflows.
   ================================================================ */
html.light {
    --dw-commerce-input-bg: #ffffff;
    --dw-commerce-input-ink: #1a3c4e;
}
html.light main .dw-commerce-page {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background:
        radial-gradient(ellipse 740px 400px at 50% 0%, rgba(29, 179, 153, .12), transparent 72%),
        linear-gradient(180deg, #f7fbfc, #edf7f7 55%, #f9fcff);
    min-height: 75vh;
}
html.light main .dw-commerce-page h1,
html.light main .dw-commerce-page h2,
html.light main .dw-commerce-page h3 {
    color: #18384a;
}
html.light main .dw-commerce-page [class~="bg-slate-900"] {
    border-color: rgba(35, 113, 126, .14);
    box-shadow: 0 24px 55px -35px rgba(17, 92, 104, .32);
}
html.light main .dw-commerce-page .dw-input {
    color: var(--dw-commerce-input-ink) !important;
    background: var(--dw-commerce-input-bg) !important;
    border-color: #8cb2bc;
    caret-color: #1a3c4e;
}
html.light main .dw-commerce-page .dw-input::placeholder {
    color: #6a7e88 !important;
}
html.light main .dw-commerce-page .dw-input:focus-visible {
    outline: 2px solid #087e72;
    outline-offset: 2px;
}
html.light main .dw-commerce-page label {
    color: #2d5061;
}
html.light main .dw-commerce-page [class~="bg-slate-800/50"] {
    background: #ecf6f6;
}
html.light main .dw-commerce-page :is(a,button)[class~="bg-cyan-600"],
html.light main .dw-commerce-page :is(a,button)[class~="bg-emerald-600"] {
    color: #ffffff;
}
html.light main .dw-commerce-page [class~="text-red-300"] {
    color: #a82738;
}
html.light main .dw-commerce-page [class~="border-slate-800"] {
    border-color: rgba(32, 103, 122, .14);
}
html.light main .dw-commerce-page [class~="border-slate-700"] {
    border-color: rgba(32, 103, 122, .24);
}
html.light main .dw-client-page input:not([type="hidden"]),
html.light main .dw-client-page select,
html.light main .dw-client-page textarea {
    background: #ffffff;
    color: #163448;
    border-color: rgba(25, 105, 120, .28);
}
html.light main .dw-client-page input:focus-visible,
html.light main .dw-client-page select:focus-visible,
html.light main .dw-client-page textarea:focus-visible {
    outline: 2px solid #068c74;
    outline-offset: 2px;
}
html.light main .dw-client-page [class~="text-orange-400"] {
    color: #995a14;
}
html.light main .dw-client-page [class~="bg-white/10"][class~="text-white"] {
    background: #ffffff;
    color: #154359;
}
@media (max-width: 639px) {
    html.light main .dw-commerce-page {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
    html.light main .dw-client-page > div > .mb-10.flex {
        flex-wrap: wrap;
        gap: .75rem;
    }
    html.light main .dw-client-page .glass:has(> table) {
        overflow-x: auto;
    }
}


/* CURRENT /checkout route is Livewire checkout.wizard (not legacy index). */
html.light main .dw-live-checkout {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background:
        radial-gradient(ellipse 740px 460px at 52% 0, rgba(20, 182, 158, .13), transparent 70%),
        linear-gradient(180deg, #f6fbfc 0%, #eef7f8 50%, #f9fcfd 100%);
    min-height: 100vh;
}
html.light main .dw-live-checkout [class~="bg-slate-900/60"],
html.light main .dw-live-checkout [class~="bg-slate-900"] {
    background: #ffffff;
    border-color: rgba(37,110,124,.17);
    box-shadow: 0 16px 49px -37px rgba(20,86,104,.3);
}
html.light main .dw-live-checkout :is(h1,h2,h3,p,div,span)[class~="text-white"] {
    color: #153c50;
}
html.light main .dw-live-checkout [class~="bg-cyan-500"][class~="text-white"],
html.light main .dw-live-checkout [class~="bg-pink-500"] [class~="bg-white"],
html.light main .dw-live-checkout [class~="bg-emerald-500"][class~="text-white"],
html.light main .dw-live-checkout button[class~="text-white"][class~="bg-gradient-to-r"] {
    color: #ffffff;
}
html.light main .dw-live-checkout input:not([type="checkbox"]):not([type="radio"]),
html.light main .dw-live-checkout select,
html.light main .dw-live-checkout textarea {
    background: #ffffff;
    color: #183e51;
    border-color: #91b3bf;
    caret-color: #183e51;
}
html.light main .dw-live-checkout input::placeholder,
html.light main .dw-live-checkout textarea::placeholder {
    color: #667f88;
}
html.light main .dw-live-checkout :is(input,select,textarea,button):focus-visible {
    outline: 2px solid #0b8f82;
    outline-offset: 2px;
}
html.light main .dw-live-checkout [class~="bg-slate-800/50"] {
    background: #e9f5f6;
}
html.light main .dw-live-checkout [class~="bg-slate-900"][class~="text-slate-500"] {
    color: #586e7e;
}
html.light main .dw-live-checkout button[wire\:click="removeCartItem"] {
    opacity: 1;
    color: #a13d49;
}
@media (max-width: 639px) {
    html.light main .dw-live-checkout {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
    html.light main .dw-live-checkout :is(h1,h2,h3,p) {
        overflow-wrap: anywhere;
    }
}

/* Accessible Light Mode payment-unavailable warning (the legacy amber-100
   text was nearly white on a pale amber alert). Dark Mode stays untouched. */
html.light main .dw-client-page [role="alert"][class~="text-amber-100"] {
    color: #75460a;
    background-color: #fff5dc;
    border-color: #ddad4a;
}
