:root {
  --background: 248 48% 97%;
  --foreground: 246 45% 12%;
  --primary: 270 92% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 194 96% 42%;
  --secondary-foreground: 240 55% 8%;
  --muted: 248 32% 90%;
  --muted-foreground: 246 15% 40%;
  --destructive: 350 92% 52%;
  --destructive-foreground: 0 0% 100%;
  --border: 250 22% 82%;
  --card: 0 0% 100%;
  --shadow-sm: 0 6px 18px rgba(70, 46, 120, .12);
  --shadow-md: 0 18px 45px rgba(76, 53, 135, .16);
  --shadow-lg: 0 30px 90px rgba(104, 70, 190, .24);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(.2, .8, .2, 1);
  --radius-sm: .75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}
.dark {
  --background: 250 42% 7%;
  --foreground: 220 35% 96%;
  --primary: 270 100% 68%;
  --primary-foreground: 0 0% 100%;
  --secondary: 194 100% 58%;
  --secondary-foreground: 240 55% 8%;
  --muted: 247 22% 22%;
  --muted-foreground: 228 22% 76%;
  --destructive: 350 92% 62%;
  --destructive-foreground: 0 0% 100%;
  --border: 250 24% 28%;
  --card: 249 35% 12%;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .22);
  --shadow-md: 0 18px 45px rgba(35, 12, 88, .32);
  --shadow-lg: 0 30px 90px rgba(70, 24, 160, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at 10% 5%, hsla(270, 100%, 68%, .18), transparent 32rem),
    radial-gradient(circle at 92% 10%, hsla(194, 100%, 58%, .16), transparent 28rem),
    linear-gradient(135deg, hsl(var(--background)), hsl(var(--background)));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
input, textarea, select { font-size: max(16px, 1rem); }
button, a { -webkit-tap-highlight-color: transparent; }
.glass {
  background: linear-gradient(145deg, hsla(var(--card), .86), hsla(var(--card), .66));
  border: 1px solid hsla(var(--border), .86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}
.dark .glass { background: linear-gradient(145deg, hsla(var(--card), .82), hsla(248, 40%, 16%, .58)); }
.neon-text {
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--primary)), hsl(310 100% 72%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.neon-border { box-shadow: 0 0 0 1px hsla(var(--primary), .38), 0 0 36px hsla(var(--primary), .20); }
.grid-bg {
  background-image: linear-gradient(hsla(var(--foreground), .07) 1px, transparent 1px), linear-gradient(90deg, hsla(var(--foreground), .07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.luxedo-loader, .luxedo-app-icon {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 1.75rem;
  color: white;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.55), transparent 1.05rem),
    linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)) 58%, hsl(310 100% 64%));
  box-shadow: 0 0 0 1rem hsla(var(--primary), .12), 0 0 70px hsla(var(--primary), .55), inset 0 1px 0 rgba(255,255,255,.35);
  position: relative;
  overflow: hidden;
}
.luxedo-app-icon::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 1.25rem;
  transform: rotate(10deg);
}
.luxedo-loader { animation: luxedoPulse 1.15s ease-in-out infinite alternate; }
.luxedo-app-icon { animation: luxedoFloat 2.6s ease-in-out infinite; }
.splash-orb {
  position: absolute;
  width: min(72vw, 34rem);
  height: min(72vw, 34rem);
  border-radius: 999px;
  background: radial-gradient(circle, hsla(var(--primary), .32), hsla(var(--secondary), .18), transparent 68%);
  filter: blur(8px);
  animation: luxedoSpin 7s linear infinite;
}
.splash-progress { width: 45%; animation: luxedoLoad 1.15s ease-in-out infinite alternate; }
@keyframes luxedoPulse {
  from { transform: scale(.94) rotate(-4deg); filter: saturate(1); }
  to { transform: scale(1.06) rotate(4deg); filter: saturate(1.4); }
}
@keyframes luxedoFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}
@keyframes luxedoSpin {
  from { transform: rotate(0deg) scale(.92); }
  to { transform: rotate(360deg) scale(1.05); }
}
@keyframes luxedoLoad {
  from { transform: translateX(-75%); width: 45%; }
  to { transform: translateX(170%); width: 62%; }
}
.safe-bottom { padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: env(safe-area-inset-top); }
@media (max-width: 420px) {
  :root { --radius-md: .95rem; --radius-lg: 1.25rem; }
  .glass { box-shadow: var(--shadow-sm); }
  .luxedo-app-icon, .luxedo-loader { width: 5rem; height: 5rem; border-radius: 1.45rem; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: hsla(var(--primary), .45); border-radius: 999px; }
