/* Devnixplus site builder: app styles on top of Bootstrap 5 (same palette as the showcase page). */
:root {
  --ink: #0f1020; --ink-2: #1b1d36; --text: #1d1e2c; --muted: #646779; --line: #e6e7ef; --bg: #f6f6fa;
  --card: #fff; --brand: #5b4bff; --brand-dark: #4436d6; --brand-2: #00c2a8; --star: #f5a524; --radius: 16px;
  --shadow: 0 1px 2px rgba(15,16,32,.06), 0 8px 24px rgba(15,16,32,.06);
  --shadow-hover: 0 2px 4px rgba(15,16,32,.08), 0 22px 48px rgba(15,16,32,.14);
  --bs-body-font-family: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--text); --bs-body-bg: var(--bg); --bs-link-color: var(--brand-dark); --bs-link-color-rgb: 68,54,214;
  --bs-primary: var(--brand); --bs-primary-rgb: 91,75,255;
}
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3, .h4 { letter-spacing: -.02em; font-weight: 800; }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }

/* buttons */
.btn { border-radius: 999px; font-weight: 600; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1px solid var(--brand); color: var(--brand-dark); background: #fff; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-wa { background: #25d366; color: #06301a; border-color: #25d366; }
.btn-wa:hover { background: #1fbf5a; color: #06301a; }
.btn-google { background: #fff; border: 1px solid var(--line); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; }
.btn-google:hover { border-color: #c9c6ff; background: #fafaff; }

/* nav + footer */
.app-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.app-nav .nav-link { font-weight: 600; color: var(--text); }
.app-nav .navbar-toggler { border: 0; font-size: 1.6rem; }
.app-footer { margin-top: 64px; padding: 40px 0 28px; background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.app-footer a { color: var(--text); }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.support-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1030; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.support-fab:hover { color: #fff; transform: translateY(-2px); }
@media (max-width: 767.98px) { main { padding-bottom: 72px; } }   /* room for the WhatsApp bubble */

/* hero */
.hero-app { position: relative; overflow: hidden; color: #fff; padding: 56px 0 88px;
  background: radial-gradient(900px 420px at 85% -10%, rgba(91,75,255,.55), transparent 60%),
              radial-gradient(700px 380px at -5% 110%, rgba(0,194,168,.35), transparent 60%), var(--ink); }
.hero-app h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; }
.hero-app h1 span { background: linear-gradient(90deg, #a79dff, #5ff2dc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-app .lead { color: #c3c5d8; max-width: 640px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; color: #d9d6ff; font-weight: 600; font-size: 15px; }
.hero-points i { color: var(--brand-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 600; color: #d9d6ff; }

/* cards + panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.auth-card { max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
@media (min-width: 576px) { .auth-card { padding: 36px; } }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps-mini { display: flex; gap: 8px; font-size: 13px; font-weight: 600; }
.steps-mini span { padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.steps-mini .active { background: var(--brand); color: #fff; }
.steps-mini .done { background: #e6fbf7; color: #00796b; }
.allauth-generic input:not([type=checkbox]):not([type=hidden]), .allauth-generic select { display: block; width: 100%; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.allauth-generic button[type=submit] { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.2rem; font-weight: 600; }
.allauth-generic h1 { font-size: 1.5rem; }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,75,255,.12); }
.form-label { font-weight: 600; font-size: 14px; }

/* template gallery */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.toolbar .form-control, .toolbar .form-select { min-width: 160px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tpl-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tpl-shot { position: relative; aspect-ratio: 16 / 10; background: #eceef4; overflow: hidden; }
.tpl-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tpl-shot .tpl-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 42px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.tpl-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-body h3 { font-size: 17px; margin: 0; }
.tpl-meta { font-size: 13px; color: var(--muted); }
.tpl-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-actions .btn { flex: 1 1 auto; }

/* dashboard */
.proj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.proj-card.is-highlight { outline: 3px solid var(--brand); }
.proj-thumb { height: 96px; background: linear-gradient(135deg, #ecebff, #e6fbf7); overflow: hidden; position: relative; display: grid; place-items: center; }
.proj-mark { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 26px; color: var(--brand); box-shadow: var(--shadow); }
.proj-thumb .badge { position: absolute; top: 10px; left: 10px; }
.proj-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-body h3 { font-size: 18px; margin: 0; }
.proj-url { font-size: 13px; word-break: break-all; }
.proj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.proj-actions .btn { font-size: 14px; }
.proj-note { font-size: 13px; border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.progress-thin { height: 6px; border-radius: 6px; }
.empty-state { text-align: center; padding: 48px 16px; }

/* go live */
.plan-option { border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; height: 100%; display: flex; flex-direction: column; }
.plan-option.featured { border-color: var(--brand); box-shadow: 0 10px 30px rgba(91,75,255,.15); }
.plan-option .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan-option ul { padding-left: 0; list-style: none; }
.plan-option li { padding: 4px 0 4px 26px; position: relative; }
.plan-option li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; color: var(--brand-2); }

/* static pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-note { background: #fff8e6; border: 1px solid #f5d98b; border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* admin panel */
.manage-layout { display: grid; grid-template-columns: 1fr; gap: 0; min-height: calc(100vh - 62px); }
@media (min-width: 992px) { .manage-layout { grid-template-columns: 230px 1fr; } }
.manage-side { background: var(--ink); padding: 16px 12px; }
.manage-side a { display: flex; align-items: center; gap: 10px; color: #c3c5d8; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.manage-side a:hover, .manage-side a.active { background: rgba(255,255,255,.08); color: #fff; }
.manage-side .count { margin-left: auto; background: var(--brand-2); color: #003b33; border-radius: 999px; padding: 0 8px; font-size: 12px; }
@media (max-width: 991.98px) { .manage-side { display: flex; overflow-x: auto; gap: 4px; } .manage-side a { white-space: nowrap; } }
.manage-main { padding: 20px 16px 48px; min-width: 0; }
@media (min-width: 768px) { .manage-main { padding: 28px 28px 56px; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; height: 100%; }
.stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.table-app { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.table-app table { margin: 0; }
.table-app th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafafe; white-space: nowrap; }
.table-app td { vertical-align: middle; font-size: 14px; }
.code-block { background: #0f1020; color: #e6e7ef; border-radius: 12px; padding: 14px; font-size: 12.5px; white-space: pre; overflow-x: auto; max-height: 420px; }
.no-consent { background: #fff1f1; }
