/* LazySMS Neon Purple theme (v2) — forced dark, matches 2026 dashboard mockup.
   Loaded AFTER the app stylesheet. Vars use !important so they win over every
   built-in .theme-* palette. Sidebar is injected by theme-force.js. */

/* ============ 1. Forced palette (wins over all themes) ============ */
html {
  --background: #0a0612 !important;
  --foreground: #f5f2fc !important;
  --card: #130b24 !important;
  --card-foreground: #f5f2fc !important;
  --popover: #171030 !important;
  --popover-foreground: #f5f2fc !important;
  --primary: #8b5cf6 !important;
  --primary-foreground: #ffffff !important;
  --secondary: #241742 !important;
  --secondary-foreground: #e9e2f9 !important;
  --muted: #1c1233 !important;
  --muted-foreground: #a49bc4 !important;
  --accent: #2b1b52 !important;
  --accent-foreground: #e9e2f9 !important;
  --destructive: #f43f5e !important;
  --destructive-foreground: #ffffff !important;
  --border: #2a1f47 !important;
  --input: #251b40 !important;
  --ring: #8b5cf6 !important;
  --chart-1: #8b5cf6 !important;
  --chart-2: #d946ef !important;
  --chart-3: #22c55e !important;
  --chart-4: #38bdf8 !important;
  --chart-5: #f59e0b !important;
  --sidebar: #0b0617 !important;
  --sidebar-foreground: #cfc7e8 !important;
  --sidebar-primary: #8b5cf6 !important;
  --sidebar-primary-foreground: #ffffff !important;
  --sidebar-accent: #241742 !important;
  --sidebar-accent-foreground: #e9e2f9 !important;
  --sidebar-border: #2a1f47 !important;
  --sidebar-ring: #8b5cf6 !important;
  color-scheme: dark;
}

/* ambient purple glow backdrop, like the mockup */
html body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 15%, rgba(217, 70, 239, 0.10), transparent 55%),
    radial-gradient(900px 600px at 50% 115%, rgba(99, 62, 214, 0.12), transparent 60%),
    #0a0612 !important;
  color: #f5f2fc;
}

/* ============ 2. Component polish ============ */

/* cards */
html .bg-card, html [class*="bg-card"] {
  background-color: #130b24 !important;
  border-color: rgba(139, 92, 246, 0.22) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.06), 0 12px 34px -18px rgba(139, 92, 246, 0.35) !important;
}

/* primary buttons & active pills -> purple->magenta gradient */
html .bg-primary {
  background-image: linear-gradient(135deg, #8b5cf6 0%, #a855f7 55%, #c026d3 100%) !important;
  background-color: #8b5cf6 !important;
  border: none !important;
  box-shadow: 0 6px 18px -6px rgba(168, 85, 247, 0.55) !important;
}
html .bg-primary:hover { filter: brightness(1.08); }
html .text-primary { color: #a78bfa !important; }
html .border-primary { border-color: #8b5cf6 !important; }

/* focus rings */
html *:focus-visible { outline: 2px solid rgba(139, 92, 246, 0.65) !important; outline-offset: 2px; }

/* inputs */
html input, html select, html textarea {
  background-color: #171029 !important;
  border-color: #2c2149 !important;
  color: #f5f2fc !important;
}
html input::placeholder, html textarea::placeholder { color: #7d7399 !important; }

/* header bar — dark translucent */
html header {
  background-color: rgba(12, 7, 24, 0.82) !important;
  backdrop-filter: blur(14px);
  border-color: rgba(139, 92, 246, 0.18) !important;
}

/* top-bar nav pills */
html header a[class*="rounded-full"], html header a[class*="rounded-lg"] {
  border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Buy buttons (tagged by theme-force.js) -> green like the mockup */
html .lz-buy, html .lz-buy.bg-primary {
  background-image: none !important;
  background-color: #22c55e !important;
  color: #06290f !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px -6px rgba(34, 197, 94, 0.55) !important;
}
html .lz-buy:hover { filter: brightness(1.07); }

/* prices (tagged by theme-force.js) -> green */
html .lz-price { color: #4ade80 !important; }

/* service tiles in Select Service grid */
html [class*="grid"] > [class*="rounded-xl"] {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
html [class*="rounded-xl"]:hover { transform: translateY(-1px); }

/* scrollbar */
html ::-webkit-scrollbar { width: 10px; height: 10px; }
html ::-webkit-scrollbar-track { background: #0a0612; }
html ::-webkit-scrollbar-thumb { background: #33255c; border-radius: 8px; border: 2px solid #0a0612; }
html ::-webkit-scrollbar-thumb:hover { background: #4c3a85; }

/* selection */
html ::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

/* ============ 3. Injected sidebar (desktop only) ============ */
#lz-sidebar { display: none; }
@media (min-width: 1024px) {
  #lz-sidebar {
    display: flex;
    position: fixed; z-index: 40;
    top: 0; left: 0; bottom: 0; width: 258px;
    flex-direction: column; gap: 4px;
    padding: 18px 14px 14px;
    background: linear-gradient(180deg, #0c0718 0%, #0a0612 100%);
    border-right: 1px solid rgba(139, 92, 246, 0.20);
    overflow-y: auto;
  }
  html body, html #app, html #root { } /* layout hook */
  html body { padding-left: 258px !important; }

  .lz-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
  .lz-brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 22px rgba(139,92,246,.45); }
  .lz-brand-title { font-size: 17px; font-weight: 800; color: #f5f2fc; letter-spacing: -0.2px; line-height: 1.1; }
  .lz-brand-sub { font-size: 11px; font-weight: 600; color: #8f84b8; letter-spacing: 0.4px; }

  .lz-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(139,92,246,.35), transparent); margin: 8px 4px; }

  #lz-sidebar .lz-nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; margin: 1px 0;
    border-radius: 11px;
    font-size: 13.5px; font-weight: 600;
    color: #b6abd6 !important; text-decoration: none !important;
    border: 1px solid transparent !important; background: none !important; box-shadow: none !important;
    transition: background 0.16s ease, color 0.16s ease;
  }
  #lz-sidebar .lz-nav a svg { width: 17px; height: 17px; flex: none; }
  #lz-sidebar .lz-nav a:hover { background: rgba(139, 92, 246, 0.13); color: #efeafc !important; }
  #lz-sidebar .lz-nav a.lz-active {
    background-image: linear-gradient(135deg, #8b5cf6 0%, #a855f7 55%, #c026d3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px -8px rgba(168, 85, 247, 0.65) !important;
  }

  .lz-promo {
    margin: 14px 4px 6px; padding: 18px 14px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(139,92,246,.22), rgba(217,70,239,.10) 60%, rgba(10,6,18,.2));
    border: 1px solid rgba(139, 92, 246, 0.35);
    text-align: center;
    box-shadow: 0 14px 34px -18px rgba(139,92,246,.5);
  }
  .lz-promo-gift {
    width: 54px; height: 54px; margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; border-radius: 14px;
    background: linear-gradient(135deg, #8b5cf6, #c026d3);
    box-shadow: 0 10px 24px -8px rgba(168,85,247,.7);
  }
  .lz-promo-title { font-size: 14.5px; font-weight: 800; color: #f5f2fc; margin-bottom: 2px; }
  .lz-promo-sub { font-size: 12px; color: #b6abd6; line-height: 1.45; margin-bottom: 12px; }
  .lz-promo-sub b { color: #4ade80; font-weight: 800; }
  .lz-promo a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 10px; border-radius: 10px;
    background-image: linear-gradient(135deg, #8b5cf6, #c026d3);
    color: #fff !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important;
    box-shadow: 0 8px 20px -8px rgba(168,85,247,.65);
  }

  .lz-copy { margin-top: auto; padding: 12px 8px 2px; font-size: 11px; color: #6d6390; text-align: center; line-height: 1.5; }
  .lz-logout {
    display: flex; align-items: center; gap: 11px;
    margin: 2px 0 4px; padding: 10px 12px;
    border-radius: 11px; border: 1px solid transparent !important; background: none !important; box-shadow: none !important;
    font-size: 13.5px; font-weight: 600; color: #e389b6 !important; cursor: pointer; width: 100%; text-align: left;
  }
  .lz-logout:hover { background: rgba(244, 63, 94, 0.10) !important; }
  .lz-logout svg { width: 17px; height: 17px; }
}

/* ============ 4. Mockup stats row (injected on dashboard by theme-force.js) ============ */
#lz-stats { display: none; }
#lz-stats.lz-show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1280px;
  margin: 18px auto 30px;
  padding: 0 16px;
}
@media (max-width: 1023px) { #lz-stats.lz-show { grid-template-columns: repeat(2, 1fr); } }
#lz-stats .lz-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 15px;
  border-radius: 15px;
  background: #130b24;
  border: 1px solid rgba(139, 92, 246, 0.24);
  box-shadow: 0 12px 30px -18px rgba(139, 92, 246, 0.4);
}
#lz-stats .lz-ico {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 12px;
}
#lz-stats .lz-ico.p { background: linear-gradient(135deg, #8b5cf6, #c026d3); }
#lz-stats .lz-ico.g { background: linear-gradient(135deg, #16a34a, #4ade80); }
#lz-stats .lz-ico.b { background: linear-gradient(135deg, #0284c7, #38bdf8); }
#lz-stats .lz-ico.o { background: linear-gradient(135deg, #ea580c, #fb923c); }
#lz-stats .lz-num { font-size: 17px; font-weight: 800; color: #f5f2fc; line-height: 1.15; }
#lz-stats .lz-lab { font-size: 11.5px; color: #a49bc4; font-weight: 600; }
#lz-stats .lz-up { color: #4ade80; font-size: 11.5px; font-weight: 700; margin-left: 5px; }

/* ============ 5. Legacy app (/admin etc.) compatibility ============ */
/* legacy bundle uses the same shadcn var names; the !important vars above
   already retarget it when this sheet is injected into legacy HTML. */
