/* BizAuto · Liquid Glass theme (loaded after app.css) */
:root {
  --ink: #0d2238;
  --ink-2: #33475e;
  --muted: #5c7089;
  --brand: #0b5bff;
  --brand-ink: #fff;
  --brand-soft: rgba(11, 91, 255, .12);
  --aqua: #38c8ff;
  --mint: #2bd99a;
  --sun: #ffc53d;
  --accent: #ffc53d;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-edge: rgba(255, 255, 255, .85);
  --line: rgba(13, 34, 56, .09);
  --surface: var(--glass);
  --surface-2: rgba(255, 255, 255, .45);
  --bg: #dff1ff;
  --radius: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 -1px 0 rgba(13, 34, 56, .04) inset, 0 10px 30px -12px rgba(11, 60, 160, .28), 0 2px 6px rgba(11, 60, 160, .06);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- background (static, no animation) ---------- */
html { background: #cfe9ff; }
body {
  background:
    radial-gradient(1200px 700px at 8% -10%, #bfe6ff 0%, transparent 60%),
    radial-gradient(900px 600px at 105% 15%, #c9d8ff 0%, transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, #b6f0e0 0%, transparent 60%),
    linear-gradient(180deg, #e8f5ff 0%, #d6ecff 55%, #e4fbf4 100%);
  color: var(--ink);
}
/* (no stacking context on .shell: keeps the mobile menu above its overlay) */

/* ---------- glass surfaces ---------- */
.card, .stat, .post-card, .preview, .poster, .plan-item, .gallery figure, .search-results, .auth-card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
.card { border-radius: 26px; padding: 22px; }
.stat { border-radius: 22px; position: relative; overflow: hidden; }
.post-card { border-radius: 20px; background: rgba(255, 255, 255, .72); }
.gallery figure { border-radius: 18px; }
.card::before, .stat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 38%);
  opacity: .55;
}
.card { position: relative; }
.card > *, .stat > * { position: relative; }

.stat .label { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; color: var(--muted); }
.stat .value { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 2rem; color: var(--ink); }
h1, h2, h3, h4, .brand, .brand-lg, .price-big { font-family: var(--display); letter-spacing: -.01em; }
h3 { font-weight: 700; }

/* ---------- sidebar & topbar ---------- */
.sidebar {
  background: linear-gradient(180deg, #0c2a5c, #081d44);
  border-right: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 8px 0 40px -20px rgba(11, 40, 120, .5);
}
.brand { font-size: 1.2rem; }
.brand .lq-mark { width: 36px; height: 36px; filter: drop-shadow(0 4px 10px rgba(56, 160, 255, .45)); transition: transform .5s var(--spring); }
.brand:hover .lq-mark { transform: rotate(-8deg) scale(1.08); }
.nav-group { color: #8fb3e6; letter-spacing: .02em; text-transform: none; font-size: .74rem; }
.sidebar nav a { border-radius: 14px; position: relative; transition: background .25s var(--ease), color .2s, transform .35s var(--spring); }
.sidebar nav a:hover { background: rgba(255, 255, 255, .08); transform: translateX(3px); }
.sidebar nav a.active {
  background: linear-gradient(135deg, rgba(56, 200, 255, .28), rgba(11, 91, 255, .32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px -8px rgba(56, 200, 255, .6);
}
.sidebar nav a.active svg { color: #9fe4ff; }
.sidebar-foot { border-top-color: rgba(255, 255, 255, .1); }

.topbar {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 24px -18px rgba(11, 60, 160, .35);
}
.topbar h1 { font-weight: 700; }
.banner { background: rgba(255, 197, 61, .22); border-bottom: 1px solid rgba(255, 197, 61, .35); }
.banner.bad { background: rgba(255, 90, 90, .16); }
.banner.admin { background: rgba(56, 200, 255, .2); }

/* ---------- controls ---------- */
input, select, textarea {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(13, 34, 56, .12);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(13, 34, 56, .06);
  transition: border-color .2s, box-shadow .3s var(--ease), background .2s;
}
input:focus, select:focus, textarea:focus {
  background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 91, 255, .16), 0 6px 16px -10px rgba(11, 91, 255, .6);
}
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

.btn {
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .62));
  box-shadow: 0 1px 0 #fff inset, 0 4px 14px -8px rgba(11, 60, 160, .45);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), background .2s, filter .2s;
}
.btn:hover { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .75)); transform: translateY(-1px); box-shadow: 0 1px 0 #fff inset, 0 8px 20px -10px rgba(11, 60, 160, .5); }
.btn:active { transform: scale(.94); transition-duration: .12s; }
.btn.primary {
  color: #fff; border-color: rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, #4c95ff 0%, var(--brand) 55%, #0846c9 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -2px 6px rgba(0, 0, 0, .12) inset, 0 10px 22px -10px rgba(11, 91, 255, .8);
}
.btn.primary:hover { filter: brightness(1.06) saturate(1.1); }
.btn.primary::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 50%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn.primary:hover::after { left: 120%; }
.btn.ai { background: linear-gradient(180deg, rgba(255, 236, 180, .95), rgba(255, 214, 120, .75)); color: #6b4300; border-color: rgba(255, 255, 255, .8); }
.btn.danger { color: #d0342c; }
.btn.danger:hover { background: rgba(255, 235, 235, .9); }
.btn.loading::after { border-color: currentColor; border-right-color: transparent; }
.lq-ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .3) 40%, transparent 70%);
  transform: scale(0); animation: lq-ripple .7s var(--ease) forwards;
}
.btn.primary .lq-ripple { background: radial-gradient(circle, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .15) 45%, transparent 70%); }
@keyframes lq-ripple { to { transform: scale(2.6); opacity: 0; } }

.pill { border-radius: 999px; background: rgba(255, 255, 255, .7); }
.tag { border-radius: 8px; }
.tabs { border-bottom-color: rgba(13, 34, 56, .08); }
.tabs a { border-radius: 12px 12px 0 0; transition: color .2s, background .25s; }
.tabs a.active { background: rgba(11, 91, 255, .07); }
.alert { border-radius: 16px; animation: lq-pop .45s var(--spring) both; }
.alert.ok { background: rgba(43, 217, 154, .16); border-color: rgba(43, 217, 154, .35); color: #0a7a52; }
.alert.error { background: rgba(255, 90, 90, .14); border-color: rgba(255, 90, 90, .3); }
.alert.warn { background: rgba(255, 197, 61, .2); border-color: rgba(255, 197, 61, .4); }
.alert.info { background: rgba(56, 200, 255, .15); border-color: rgba(56, 200, 255, .35); color: #0b5bb8; }
@keyframes lq-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

.option-grid label { border-radius: 18px; background: rgba(255, 255, 255, .5); transition: transform .4s var(--spring), box-shadow .3s, background .2s; }
.option-grid label:hover { transform: translateY(-2px); }
.option-grid label:has(input:checked) { background: rgba(11, 91, 255, .1); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 91, 255, .15); }
.dropzone {
  border-radius: 22px; border: 2px dashed rgba(11, 91, 255, .3); background: rgba(255, 255, 255, .45);
  transition: transform .45s var(--spring), background .3s, border-color .3s;
}
.dropzone:hover { transform: scale(1.01); border-color: rgba(11, 91, 255, .5); }
.dropzone.drag { transform: scale(1.03); background: rgba(56, 200, 255, .18); border-color: var(--aqua); }
.chip { background: rgba(11, 91, 255, .1); }
.code-box { border-radius: 16px; background: rgba(9, 28, 60, .88); }
table { border-collapse: separate; border-spacing: 0; }
th { background: rgba(255, 255, 255, .45); }
th:first-child { border-radius: 12px 0 0 12px; } th:last-child { border-radius: 0 12px 12px 0; }
tr { transition: background .2s; }
tbody tr:hover, table tr:hover td { background: rgba(255, 255, 255, .35); }
.toast {
  background: rgba(13, 34, 56, .9);
  border-radius: 999px; padding: 12px 20px; border: 1px solid rgba(255, 255, 255, .15);
  transition: opacity .3s, transform .5s var(--spring);
}
.toast.error { background: rgba(194, 57, 52, .85); }
.score-ring > div { background: rgba(255, 255, 255, .85); }
.stars { color: var(--sun); text-shadow: 0 1px 6px rgba(255, 197, 61, .45); }
.avatar { background: linear-gradient(135deg, #bfe6ff, #d6dcff); }
.owner-reply { background: rgba(255, 255, 255, .5); border-left-color: var(--aqua); border-radius: 0 14px 14px 0; }
.empty h3 { font-family: var(--display); }
.steps-list li.done::before { background: rgba(43, 217, 154, .2); color: #0a7a52; }
.post-card img, .gallery img { transition: transform .6s var(--ease); }
.post-card:hover img, .gallery figure:hover img { transform: scale(1.04); }
.score-ring { box-shadow: 0 10px 30px -12px rgba(11, 91, 255, .4); }

/* ---------- motion: entrance, count-up, tilt, page transition ---------- */
.lq-tilt { transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.lq-tilt:hover { box-shadow: 0 1px 0 #fff inset, 0 24px 40px -18px rgba(11, 60, 160, .4); }
.lq-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%); }
.lq-tilt:hover .lq-glare { opacity: 1; }
.stat .value.lq-counting { font-variant-numeric: tabular-nums; }

/* shimmer while buttons load */
.btn.loading { background-image: linear-gradient(100deg, rgba(255, 255, 255, .5) 20%, rgba(255, 255, 255, .95) 40%, rgba(255, 255, 255, .5) 60%); background-size: 200% 100%; animation: lq-shimmer 1.1s linear infinite; }
.btn.primary.loading { background-image: linear-gradient(100deg, var(--brand) 20%, #6aa8ff 40%, var(--brand) 60%); }
@keyframes lq-shimmer { to { background-position: -200% 0; } }

/* ---------- auth pages ---------- */
.auth-body { background: transparent; }
.auth-card { border-radius: 30px; padding: 34px; background: rgba(255, 255, 255, .62); animation: lq-rise-card .9s var(--spring) both; }
@keyframes lq-rise-card { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.brand-lg .lq-logo { width: 64px; height: 64px; filter: drop-shadow(0 8px 16px rgba(11, 91, 255, .35)); animation: lq-float 5s ease-in-out infinite; }
@keyframes lq-float { 50% { transform: translateY(-5px) rotate(-2deg); } }
.auth-card h2 { font-size: 1.7rem; }

/* ---------- mobile & performance ---------- */
@media (max-width: 820px) {
  .sidebar { background: linear-gradient(180deg, #0c2a5c, #081d44); background-color: #081d44; box-shadow: 12px 0 40px rgba(0, 0, 0, .35); }
  body.nav-open .nav-overlay { background: rgba(6, 18, 40, .55); }
  body.nav-open { overflow: hidden; }
  .card { border-radius: 22px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-lg .lq-logo, .auth-card, .alert { animation: none !important; }
  .lq-in { opacity: 1; transform: none; }
  .btn, .lq-tilt, .option-grid label, .dropzone, .sidebar nav a { transition: none !important; }
}
body.lq-lite .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .95); }
@media print {
  body { background: #fff; }
  .card, .stat { backdrop-filter: none; box-shadow: none; background: #fff; }
}

/* fast taps on phones (no 300ms delay, no grey flash) */
a, button, .btn, input, select, textarea, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:hover { transform: none; }
  .sidebar nav a:hover { transform: none; }
  .option-grid label:hover, .dropzone:hover { transform: none; }
}

/* demo install banner */
.banner.demo { background: linear-gradient(90deg, #0b5bff, #38c8ff); color: #fff; border: 0; }
.banner.demo a { color: #fff; text-decoration: underline; }
.demo-start { border: 2px solid var(--brand); border-radius: 18px; padding: 16px; margin-bottom: 18px; background: rgba(11, 91, 255, .04); }
.demo-start h3 { margin: 0 0 4px; }
