﻿:root {
    color-scheme: dark;
    --page-bg: #05070b;
    --text: #f8fafc;
    --mx: 50vw;
    --my: 24vh;
}

:root[data-theme="light"] {
    color-scheme: light;
    --page-bg: #f6f7fb;
    --text: #0f172a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-width: 320px;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% -18%, rgba(56, 189, 248, 0.18), transparent 35rem),
        radial-gradient(circle at 82% 6%, rgba(99, 102, 241, 0.14), transparent 34rem),
        linear-gradient(180deg, #05070b 0%, #070b12 48%, #05070b 100%),
        var(--page-bg);
}

:root[data-theme="light"] body {
    background:
        radial-gradient(circle at 50% -18%, rgba(14, 165, 233, 0.12), transparent 34rem),
        radial-gradient(circle at 82% 6%, rgba(99, 102, 241, 0.08), transparent 32rem),
        linear-gradient(180deg, #f9fbff 0%, #f3f6fb 56%, #ffffff 100%),
        var(--page-bg);
}

button,
input,
select,
textarea {
    font: inherit;
}

select option {
    color: #0f172a;
}

#root {
    --ui-weight-strong: 680;
}

.fallback-site {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
    color: #f8fafc;
}

.fallback-site a {
    color: inherit;
}

.fallback-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
}

.fallback-brand,
.fallback-links,
.fallback-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fallback-brand {
    min-width: 0;
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
}

.fallback-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
}

.fallback-logo img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.fallback-links {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fallback-links a,
.fallback-button,
.fallback-card a {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.fallback-hero {
    display: grid;
    align-content: center;
    min-height: 66vh;
    padding: 86px 0 58px;
}

.fallback-kicker {
    margin: 0 0 16px;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.fallback-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 8vw, 92px);
    font-weight: 760;
    line-height: 0.98;
}

.fallback-hero p,
.fallback-contact p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 18px;
    line-height: 1.7;
}

.fallback-actions {
    flex-wrap: wrap;
    margin-top: 30px;
}

.fallback-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.fallback-button-primary {
    border-color: transparent;
    background: #ffffff;
    color: #020617;
}

.fallback-section,
.fallback-contact {
    padding: 56px 0;
}

.fallback-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fallback-card,
.fallback-contact {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

.fallback-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.fallback-card h2,
.fallback-contact h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.12;
}

.fallback-card p {
    margin: 14px 0 24px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
}

.fallback-card a {
    margin-top: auto;
    color: #ffffff;
}

.fallback-contact {
    padding: 30px;
}

.fallback-contact a {
    color: #7dd3fc;
    font-weight: 750;
}

#root .font-black {
    font-weight: var(--ui-weight-strong) !important;
}

#root .font-bold {
    font-weight: 620 !important;
}

#root h1,
#root h2,
#root h3,
#root p,
#root span,
#root strong,
#root a,
#root button {
    letter-spacing: 0 !important;
}

#root p {
    max-width: 68ch;
}

.logo-frame {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.logo-frame img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.brand-name-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

:root[data-theme="light"] .brand-name-text {
    color: #020617;
}

:root[data-theme="light"] .logo-frame {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.hero-arc {
    position: absolute;
    z-index: 1;
    top: clamp(390px, 52vh, 560px);
    left: 50%;
    width: min(1500px, 142vw);
    height: clamp(210px, 28vw, 360px);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-arc svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-arc-line,
.hero-arc-shadow {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.hero-arc-line {
    stroke: url("#nxoArcGradient");
    stroke-width: 10;
    filter: url("#nxoArcGlow");
    animation: heroArcPulse 5.6s ease-in-out infinite;
}

.hero-arc-shadow {
    stroke: rgba(58, 121, 255, 0.42);
    stroke-width: 22;
    filter: blur(18px);
    opacity: 0.88;
    animation: heroArcShadow 5.6s ease-in-out infinite;
}

:root[data-theme="light"] .hero-arc-line {
    stroke-width: 8;
    opacity: 0.42;
}

:root[data-theme="light"] .hero-arc-shadow {
    opacity: 0.18;
}

.studio-device {
    animation: floatStudio 8s ease-in-out infinite;
}

.ambient-system {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
}

.ambient-glow,
.ambient-vignette {
    position: absolute;
    pointer-events: none;
}

.ambient-glow {
    width: 52vw;
    height: 52vw;
    min-width: 520px;
    min-height: 520px;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.32;
    mix-blend-mode: screen;
}

.ambient-glow-primary {
    top: -22vw;
    left: 7vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.42), rgba(79, 70, 229, 0.18) 38%, transparent 68%);
    animation: glowTravelOne 22s ease-in-out infinite;
}

.ambient-glow-secondary {
    right: -18vw;
    top: 22vh;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.28), rgba(45, 212, 191, 0.12) 38%, transparent 68%);
    animation: glowTravelTwo 26s ease-in-out infinite;
}

.ambient-vignette {
    inset: 0;
    background:
        radial-gradient(circle at 50% 10%, transparent 0 34%, rgba(5, 7, 11, 0.34) 72%, rgba(5, 7, 11, 0.75) 100%),
        linear-gradient(180deg, transparent, rgba(5, 7, 11, 0.64));
}

:root[data-theme="light"] .ambient-glow {
    opacity: 0.34;
    mix-blend-mode: multiply;
}

:root[data-theme="light"] .ambient-vignette {
    background:
        radial-gradient(circle at 50% 8%, transparent 0 40%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0.66) 100%),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.72));
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #bef264);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
    transition: width 0.12s linear;
}

.nav-shell {
    min-height: 64px;
}

.theme-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.36);
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .theme-icon-sun {
    display: none;
}

:root[data-theme="light"] .theme-toggle .theme-icon-sun {
    display: block;
}

:root[data-theme="light"] .theme-toggle .theme-icon-moon {
    display: none;
}

.theme-toggle svg path:only-child {
    fill: currentColor;
    stroke: none;
}

:root[data-theme="light"] .theme-toggle {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

:root[data-theme="light"] .theme-toggle:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: #ffffff;
    color: #0369a1;
}

.mode-switch {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 154px;
    min-height: 44px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

:root[data-theme="light"] .mode-switch {
    border-color: rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82)),
        rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 30px rgba(15, 23, 42, 0.09);
}

.mode-switch-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.mode-switch-indicator.is-light {
    transform: translateX(100%);
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.mode-option {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    transition: color 0.18s ease, transform 0.18s ease;
}

.mode-option:hover {
    transform: translateY(-1px);
}

.mode-option.is-active {
    color: #ffffff;
}

:root[data-theme="light"] .mode-option {
    color: rgba(15, 23, 42, 0.55);
}

:root[data-theme="light"] .mode-option.is-active {
    color: #0f172a;
}

.mode-option svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mode-option:first-of-type svg path {
    fill: currentColor;
    stroke: none;
}

.auto-progress {
    animation: buildProgress 3.2s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.marquee {
    animation: marqueeMove 34s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card > * {
    position: relative;
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(125, 211, 252, 0.46);
}

.service-card:hover::before,
.service-card:focus-visible::before {
    opacity: 1;
}

.service-hero + section,
.service-hero + section + section,
.service-hero + section + section + section,
.service-hero + section + section + section + section {
    animation: sectionLift 0.72s ease both;
}

@keyframes marqueeMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes sectionLift {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatStudio {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@keyframes buildProgress {
    0% {
        width: 18%;
    }
    55% {
        width: 82%;
    }
    100% {
        width: 18%;
    }
}

@keyframes heroArcPulse {
    0%,
    100% {
        opacity: 0.78;
        stroke-width: 9;
    }
    50% {
        opacity: 1;
        stroke-width: 12;
    }
}

@keyframes heroArcShadow {
    0%,
    100% {
        opacity: 0.58;
        stroke-width: 18;
    }
    50% {
        opacity: 0.96;
        stroke-width: 28;
    }
}

@keyframes glowTravelOne {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18vw, 9vh, 0) scale(1.12);
    }
}

@keyframes glowTravelTwo {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1.05);
    }
    50% {
        transform: translate3d(-16vw, -8vh, 0) scale(0.92);
    }
}

@media (hover: hover) {
    a,
    button,
    article {
        will-change: transform;
    }
}

@media (max-width: 640px) {
    .fallback-site {
        width: min(100% - 24px, 1180px);
        padding-top: 14px;
    }

    .fallback-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .fallback-links {
        justify-content: flex-start;
    }

    .fallback-hero {
        min-height: auto;
        padding: 58px 0 42px;
    }

    .fallback-hero h1 {
        font-size: 2.75rem;
        line-height: 1.04;
    }

    .fallback-hero p,
    .fallback-contact p {
        font-size: 1rem;
    }

    .fallback-grid {
        grid-template-columns: 1fr;
    }

    #root .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    #root .text-4xl {
        font-size: 2rem !important;
        line-height: 1.08 !important;
    }

    #root .text-5xl,
    #root .text-6xl,
    #root .text-7xl,
    #root .text-8xl {
        font-size: 2.55rem !important;
        line-height: 1.04 !important;
    }

    #root .rounded-\[42px\],
    #root .rounded-\[38px\],
    #root .rounded-\[36px\],
    #root .rounded-\[34px\],
    #root .rounded-\[32px\] {
        border-radius: 24px !important;
    }

    #root .p-7,
    #root .p-6,
    #root .p-5 {
        padding: 1rem !important;
    }

    .hero-arc {
        top: 430px;
        width: 190vw;
        height: 180px;
    }

    .ambient-glow {
        min-width: 360px;
        min-height: 360px;
    }

    .mode-switch {
        width: 94px;
        min-height: 42px;
    }

    .mode-option {
        gap: 0;
    }

    .mode-option span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* CDN Tailwind compatibility: emulate the custom light: variant used by the React app. */
:root[data-theme="light"] .light\:text-sky-900 { color: #0c4a6e; }
:root[data-theme="light"] .light\:text-sky-700 { color: #0369a1; }
:root[data-theme="light"] .light\:text-lime-900 { color: #365314; }
:root[data-theme="light"] .light\:text-lime-800 { color: #3f6212; }
:root[data-theme="light"] .light\:text-amber-800 { color: #92400e; }
:root[data-theme="light"] .light\:text-slate-950 { color: #020617; }
:root[data-theme="light"] .light\:text-slate-900 { color: #0f172a; }
:root[data-theme="light"] .light\:text-slate-700 { color: #334155; }
:root[data-theme="light"] .light\:text-slate-600 { color: #475569; }
:root[data-theme="light"] .light\:text-slate-500 { color: #64748b; }
:root[data-theme="light"] .light\:text-white { color: #ffffff; }
:root[data-theme="light"] .light\:border-slate-950 { border-color: #020617; }
:root[data-theme="light"] .light\:border-slate-200 { border-color: #e2e8f0; }
:root[data-theme="light"] .light\:bg-white { background-color: #ffffff; }
:root[data-theme="light"] .light\:bg-white\/70 { background-color: rgba(255, 255, 255, 0.7); }
:root[data-theme="light"] .light\:bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"] .light\:bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
:root[data-theme="light"] .light\:bg-slate-50 { background-color: #f8fafc; }
:root[data-theme="light"] .light\:bg-slate-100\/80 { background-color: rgba(241, 245, 249, 0.8); }
:root[data-theme="light"] .light\:bg-slate-950 { background-color: #020617; }
:root[data-theme="light"] .light\:hover\:bg-white:hover { background-color: #ffffff; }
:root[data-theme="light"] .light\:hover\:bg-slate-50:hover { background-color: #f8fafc; }
:root[data-theme="light"] .light\:hover\:bg-slate-100:hover { background-color: #f1f5f9; }
:root[data-theme="light"] .light\:hover\:text-slate-950:hover { color: #020617; }

/* Theme contrast safety layer for CDN-rendered Tailwind utilities. */
:root[data-theme="light"] #root .text-white,
:root[data-theme="light"] #root .text-white\/80 {
    color: #0f172a !important;
}

:root[data-theme="light"] #root .text-white\/70,
:root[data-theme="light"] #root .text-white\/65,
:root[data-theme="light"] #root .text-white\/64,
:root[data-theme="light"] #root .text-white\/62,
:root[data-theme="light"] #root .text-white\/60,
:root[data-theme="light"] #root .text-white\/58,
:root[data-theme="light"] #root .text-white\/55,
:root[data-theme="light"] #root .text-white\/54,
:root[data-theme="light"] #root .text-white\/50,
:root[data-theme="light"] #root .text-white\/45 {
    color: #475569 !important;
}

:root[data-theme="light"] #root .bg-slate-950,
:root[data-theme="light"] #root .bg-\[\#080b12\],
:root[data-theme="light"] #root .studio-device {
    color: #ffffff;
}

:root[data-theme="light"] #root .bg-slate-950.text-white,
:root[data-theme="light"] #root .bg-\[\#080b12\].text-white,
:root[data-theme="light"] #root .studio-device .text-white,
:root[data-theme="light"] #root .bg-slate-950 .text-white,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white {
    color: #ffffff !important;
}

:root[data-theme="light"] #root .bg-slate-950 .text-white\/80,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/80,
:root[data-theme="light"] #root .studio-device .text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

:root[data-theme="light"] #root .bg-slate-950 .text-white\/70,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/65,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/64,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/62,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/60,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/58,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/55,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/54,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/50,
:root[data-theme="light"] #root .bg-slate-950 .text-white\/45,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/70,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/65,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/64,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/62,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/60,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/58,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/55,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/54,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/50,
:root[data-theme="light"] #root .bg-\[\#080b12\] .text-white\/45,
:root[data-theme="light"] #root .studio-device .text-white\/70,
:root[data-theme="light"] #root .studio-device .text-white\/65,
:root[data-theme="light"] #root .studio-device .text-white\/64,
:root[data-theme="light"] #root .studio-device .text-white\/62,
:root[data-theme="light"] #root .studio-device .text-white\/60,
:root[data-theme="light"] #root .studio-device .text-white\/58,
:root[data-theme="light"] #root .studio-device .text-white\/55,
:root[data-theme="light"] #root .studio-device .text-white\/54,
:root[data-theme="light"] #root .studio-device .text-white\/50,
:root[data-theme="light"] #root .studio-device .text-white\/45 {
    color: rgba(255, 255, 255, 0.68) !important;
}

:root[data-theme="light"] #root input,
:root[data-theme="light"] #root select,
:root[data-theme="light"] #root textarea {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #020617 !important;
}

:root[data-theme="light"] #root input::placeholder,
:root[data-theme="light"] #root textarea::placeholder {
    color: #64748b;
}

:root[data-theme="dark"] #root input,
:root[data-theme="dark"] #root select,
:root[data-theme="dark"] #root textarea {
    color: #ffffff !important;
}

:root[data-theme="dark"] #root .bg-white.text-white {
    color: #020617 !important;
}

/* Admin panel styles stay PHP-native and do not depend on Tailwind. */
.admin-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 28rem),
        radial-gradient(circle at 94% 8%, rgba(129, 140, 248, 0.14), transparent 30rem),
        linear-gradient(180deg, #070b12, #05070b);
    color: #f7fbff;
}

.admin-body::before,
.admin-body::after {
    display: none;
}

.login-panel,
.admin-card,
.admin-form {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: rgba(11, 16, 24, 0.78);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.login-panel {
    display: grid;
    gap: 16px;
    width: min(420px, calc(100% - 32px));
    margin: 8vh auto;
    padding: 32px;
}

.login-panel img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
}

.login-brand-name {
    margin: -4px 0 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
}

.login-panel h1,
.admin-header h1,
.admin-card h2 {
    margin: 0;
}

.admin-hint,
.admin-stats span,
.lead-row span,
.admin-list-item span,
.message-card span {
    color: #a8b4c5;
}

.admin-alert {
    padding: 12px 14px;
    border: 1px solid rgba(185, 255, 102, 0.32);
    border-radius: 8px;
    background: rgba(185, 255, 102, 0.1);
    color: #b9ff66;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 286px;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 7, 11, 0.82);
    backdrop-filter: blur(20px);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: 56px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.admin-brand span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    white-space: nowrap;
}

.admin-brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    background: #ffffff;
    padding: 5px;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.admin-sidebar nav a,
.admin-logout {
    padding: 13px 14px;
    border-radius: 16px;
    color: #a8b4c5;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-logout {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
}

.admin-main {
    width: min(1160px, calc(100% - 326px));
    margin-left: 286px;
    padding: 34px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin-top: 4px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 0.98;
}

.admin-header p {
    max-width: 700px;
    margin: 12px 0 0;
    color: #a8b4c5;
    font-size: 16px;
    line-height: 1.65;
}

.admin-kicker {
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.admin-stats article,
.admin-card {
    padding: 22px;
}

.admin-stats article {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.admin-stats article::after {
    content: "";
    position: absolute;
    inset: auto 18px 14px 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #bef264);
    opacity: 0.55;
}

.admin-stats small {
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-stats strong {
    display: block;
    margin-top: 8px;
    font-size: 42px;
    line-height: 1;
}

.admin-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    margin-bottom: 18px;
}

.admin-form label,
.login-panel label {
    display: grid;
    gap: 8px;
    color: #a8b4c5;
    font-size: 14px;
    font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.login-panel input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
    color: #f7fbff;
    padding: 13px 14px;
    outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.login-panel input:focus {
    border-color: rgba(125, 211, 252, 0.68);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-quick-grid a {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, background 0.18s ease;
}

.admin-quick-grid a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.09);
}

.admin-quick-grid span {
    color: #a8b4c5;
    font-size: 13px;
    line-height: 1.55;
}

.admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.85);
    animation: livePulse 1.5s ease-in-out infinite;
}

.live-panel {
    min-height: 260px;
}

.admin-pipeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-pipeline article {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.admin-pipeline span {
    color: #a8b4c5;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-pipeline strong {
    font-size: 34px;
    line-height: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    border-color: transparent;
    color: #001116;
    background: linear-gradient(135deg, #2ee9ff, #b9ff66);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.lead-row,
.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lead-row:first-of-type,
.admin-list-item:first-child {
    border-top: 0;
}

.admin-list-item span {
    display: block;
}

.row-actions,
.status-form,
.message-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.row-actions button,
.status-form button {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    padding: 8px 12px;
    cursor: pointer;
}

.row-actions a {
    color: #2ee9ff;
    text-decoration: none;
}

.check-line {
    display: flex !important;
    align-items: center;
}

.check-line input {
    width: auto;
}

.message-list {
    display: grid;
    gap: 14px;
}

.message-card {
    display: grid;
    gap: 16px;
}

.message-card h2 {
    margin-bottom: 4px;
    font-size: 24px;
}

.message-card p {
    margin: 0;
    color: #d8e0ec;
    line-height: 1.7;
}

@keyframes livePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

@media (max-width: 920px) {
    .admin-sidebar {
        position: static;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .admin-sidebar nav,
    .admin-stats,
    .admin-pipeline,
    .admin-form-grid,
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }

    .admin-logout {
        position: static;
        display: block;
        margin-top: 20px;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
        padding: 20px;
    }

    .lead-row,
    .admin-list-item,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Admin UX upgrade layer. */
.admin-body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-sidebar {
    z-index: 20;
}

.admin-sidebar nav a,
.admin-logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar nav a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.admin-sidebar nav a.active::after,
.admin-sidebar nav a:hover::after {
    opacity: 0.72;
}

.admin-main {
    width: min(1240px, calc(100% - 326px));
}

.admin-stats-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-quick-grid a strong {
    font-size: 18px;
    line-height: 1.12;
}

.admin-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 18px;
    align-items: start;
}

.admin-editor-grid .admin-form {
    margin-bottom: 0;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form input[type="color"] {
    min-height: 52px;
    padding: 6px;
}

.admin-preview-panel {
    position: sticky;
    top: 30px;
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.13), transparent 28rem),
        rgba(255, 255, 255, 0.055);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
}

.admin-preview-panel h2 {
    margin: 0;
    font-size: 26px;
}

.admin-preview-empty,
.admin-preview-service,
.admin-preview-work,
.admin-preview-review,
.admin-preview-price,
.admin-preview-stat,
.admin-preview-faq {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-preview-empty {
    padding: 22px;
    color: #a8b4c5;
}

.admin-preview-service,
.admin-preview-price,
.admin-preview-faq,
.admin-preview-review {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.admin-preview-service span,
.admin-preview-price span,
.admin-preview-faq span,
.admin-preview-work span {
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-preview-service h3,
.admin-preview-work h3,
.admin-preview-price h3,
.admin-preview-faq h3,
.admin-preview-review h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.12;
}

.admin-preview-service p,
.admin-preview-work p,
.admin-preview-price p,
.admin-preview-faq p,
.admin-preview-review p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
}

.admin-preview-service small,
.admin-preview-work small,
.admin-preview-review small {
    color: #94a3b8;
    line-height: 1.5;
}

.admin-preview-work {
    display: grid;
    gap: 13px;
    min-height: 300px;
    padding: 22px;
    background:
        radial-gradient(circle at 35% 20%, var(--preview-color, #38bdf8), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
        #080b12;
}

.admin-preview-work div,
.admin-preview-review div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-preview-work b {
    border-radius: 999px;
    background: #bef264;
    color: #0f172a;
    padding: 5px 9px;
    font-size: 11px;
    text-transform: uppercase;
}

.admin-preview-work strong,
.admin-preview-price strong,
.admin-preview-stat strong,
.admin-preview-review strong {
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
}

.admin-preview-review span {
    color: #bef264;
    letter-spacing: 1px;
}

.admin-preview-stat {
    display: grid;
    gap: 8px;
    padding: 26px;
}

.admin-preview-stat span {
    color: #a8b4c5;
    font-weight: 800;
}

.list-card {
    margin-top: 18px;
}

@media (max-width: 1180px) {
    .admin-stats-wide,
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-editor-grid {
        grid-template-columns: 1fr;
    }

    .admin-preview-panel {
        position: static;
    }
}

@media (max-width: 920px) {
    .admin-main {
        width: 100%;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .admin-stats-wide,
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-sidebar,
    .admin-main {
        padding: 14px;
    }

    .admin-sidebar nav {
        grid-template-columns: 1fr;
    }

    .admin-header h1 {
        font-size: 34px;
    }

    .admin-form,
    .admin-preview-panel,
    .admin-card,
    .admin-stats article {
        padding: 16px;
        border-radius: 20px;
    }

    .admin-header-actions,
    .message-actions,
    .status-form {
        width: 100%;
    }

    .btn,
    .status-form select,
    .status-form button {
        width: 100%;
    }
}




