/* ─── Genio AI · shared design system (website + admin) ─────────────────────────── */
:root {
  /* Genio AI brand: Deep Navy #061B59 · Royal Blue #0755E8 · Electric Blue #087BFA · Aqua Cyan #19C8F2 · White */
  --navy: #061b59;
  --royal: #0755e8;
  --electric: #087bfa;
  --aqua: #19c8f2;
  --white: #ffffff;
  --bg: #030f36;
  --bg-2: #04133f;
  --surface: #061b59;
  --surface-2: #0b2a7a;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ffffff;
  --muted: #a9bceb;
  --gold: #f5b83d;
  --green: #22c55e;
  --red: #ff6b81;
  --grad: linear-gradient(135deg, var(--royal), var(--electric) 55%, var(--aqua));
  --radius: 16px;
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 20px 50px -20px rgba(0,0,0,.55);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grad-text { background: linear-gradient(100deg, #ffffff 20%, var(--aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }

/* aurora glow behind pages */
.aurora { position: relative; isolation: isolate; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; pointer-events: none;
}
.aurora::before { background: var(--electric); top: -38vmax; left: -20vmax; }
.aurora::after { background: var(--aqua); bottom: -45vmax; right: -25vmax; opacity: .18; }

/* ─── Logo ─── */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px -8px var(--electric); }
.logo-mark img { width: 27px; height: 27px; }

/* ─── Buttons ─── */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--b); color: var(--text); font: 600 14px/1 inherit; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px var(--electric); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--electric); filter: brightness(1.07); }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(255,107,129,.12); border-color: rgba(255,107,129,.35); color: var(--red); }
.btn-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); color: var(--green); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ─── Cards ─── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)) , var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ─── Forms ─── */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--electric); box-shadow: 0 0 0 4px rgba(8,123,250,.18); }
.field { margin-bottom: 16px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--electric); }
.error-text { color: var(--red); font-size: 13px; margin-top: 6px; }

/* ─── Alerts / badges ─── */
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 18px; font-size: 14px; }
.alert-ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #86efac; }
.alert-err { background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.3); color: #fda4af; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge-vip { color: #1b1203; background: linear-gradient(135deg, #fde68a, var(--gold)); border-color: transparent; }
.badge-green { color: var(--green); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.badge-red { color: var(--red); border-color: rgba(255,107,129,.35); background: rgba(255,107,129,.08); }
.badge-amber { color: var(--gold); border-color: rgba(245,184,61,.35); background: rgba(245,184,61,.08); }
.badge-violet { color: #9cc8ff; border-color: rgba(8,123,250,.4); background: rgba(8,123,250,.12); }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.025); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-cell .email { color: var(--muted); font-size: 13px; }

/* pagination (Laravel default markup) */
nav[role="navigation"] { margin-top: 18px; }
nav[role="navigation"] svg { width: 18px; height: 18px; }
nav[role="navigation"] .hidden { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
nav[role="navigation"] p { color: var(--muted); font-size: 13px; margin: 0; }
nav[role="navigation"] span[aria-current] span, nav[role="navigation"] a { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; margin: 0 2px; padding: 0 8px; font-size: 13px; }
nav[role="navigation"] span[aria-current] span { background: var(--grad); border-color: transparent; }
nav[role="navigation"] .sm\:hidden { display: none; }

/* ─── Website ─── */
.announce { background: var(--grad); text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.site-nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(3,15,54,.7); border-bottom: 1px solid var(--line); }
.site-nav .container { display: flex; align-items: center; height: 68px; gap: 26px; }
.site-nav .links { display: flex; gap: 22px; color: var(--muted); font-weight: 500; font-size: 14px; }
.site-nav .links a:hover { color: var(--text); }
.hero { padding: 96px 0 70px; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 900; margin-bottom: 18px; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pill b { color: var(--text); }
.phone {
  width: min(320px, 80vw); aspect-ratio: 9 / 19; margin: 60px auto 0; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #0b2a7a, #030f36); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -30px rgba(8,123,250,.55);
}
.phone-screen { height: 100%; border-radius: 32px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; padding: 18px; gap: 10px; text-align: left; font-size: 13px; }
.bubble { padding: 10px 13px; border-radius: 14px; max-width: 85%; }
.bubble.me { align-self: flex-end; background: var(--grad); }
.bubble.ai { background: var(--surface-2); border: 1px solid var(--line); }
.code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 11.5px; background: #020a26; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: #9ee8fb; }
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; }
.features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(8,123,250,.14); border: 1px solid rgba(8,123,250,.35); margin-bottom: 16px; font-size: 22px; }
.feature h3 { font-size: 18px; }
.pricing { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 44px; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 2px; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; color: #d6d6e7; }
.price-card li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: rgba(25,200,242,.15); color: var(--aqua); }
.price-card.popular { transform: translateY(-8px); }
.cta { text-align: center; padding: 56px 28px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, rgba(8,123,250,.35), transparent 60%), var(--surface); border: 1px solid var(--line-2); }
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 28px; }
.legal { max-width: 780px; white-space: pre-line; }

/* ─── Admin ─── */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--bg-2); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .logo { padding: 0 10px 22px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active { background: rgba(8,123,250,.16); color: #fff; box-shadow: inset 2px 0 0 var(--electric); }
.nav-item .ico { width: 20px; text-align: center; }
.nav-item .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
.sidebar .bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.main { padding: 28px 34px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-size: 26px; margin: 0; }
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat .orb { position: absolute; right: -24px; top: -24px; width: 90px; height: 90px; border-radius: 50%; filter: blur(24px); opacity: .45; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart .bars { display: flex; gap: 3px; align-items: flex-end; width: 100%; justify-content: center; flex: 1; }
.chart .bar { width: 42%; border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.chart .bar.a { background: linear-gradient(180deg, #5aa6ff, var(--electric)); }
.chart .bar.b { background: linear-gradient(180deg, #7fe0f7, var(--aqua)); }
.chart .lbl { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.two-col { grid-template-columns: 1.4fr 1fr; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: fit-content; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs a.on { background: var(--grad); color: #fff; }
.search { display: flex; gap: 10px; }
.search .input { height: 40px; width: 260px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.inline-form { display: inline; }
.mobile-bar { display: none; }

@media (max-width: 980px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  .mobile-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(3,15,54,.85); backdrop-filter: blur(12px); z-index: 40; }
  .main { padding: 20px 18px 50px; }
  .two-col { grid-template-columns: 1fr; }
  .site-nav .links { display: none; }
  .search .input { width: 100%; }
  .price-card.popular { transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* FAQ */
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--aqua); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }

/* ── Creations (admin) ── */
.alert-warn { color: #fde68a; background: rgba(245,184,61,.08); border: 1px solid rgba(245,184,61,.3); padding: 12px 14px; border-radius: 12px; }
.alert-warn a { color: inherit; text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.creations { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; }
.creation { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.creation .media { display: grid; place-items: center; background: #020b26; max-height: 340px; overflow: hidden; }
.creation .media img, .creation .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.creation .meta { padding: 12px; display: grid; gap: 8px; }
.creation .prompt { font-size: 14px; line-height: 1.45; }

/* admin sidebar: scrollable, with a "Settings" group of sub-pages */
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.nav-group { margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.nav-item.nav-sub { padding-top: 7px; padding-bottom: 7px; font-size: 13.5px; }
