/* Clickiya Builder — main stylesheet (readable; minify for production) */
:root {
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --secondary: #fb923c;
  --secondary-dark: #f97316;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-alt: "Montserrat", var(--font-body);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 400;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #dc0000;
  border: 2px solid var(--border);
}

/* Top nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  text-decoration: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-desktop a {
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
}

.nav-desktop a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile: hide hamburger — use bottom nav on app pages only; public uses compact horizontal scroll */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile-links {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    width: 100%;
    justify-content: flex-start;
    scrollbar-width: thin;
  }

  .nav-mobile-links a {
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
  }

  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 901px) {
  .nav-mobile-links {
    display: none;
  }
}

/* Hero */
.hero {
  padding: clamp(34px, 7vw, 66px) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-cta .btn { width: 100%; }
.hero-cta .btn {
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 0.95rem;
}

.hero-visual {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 12px;
}

.mock-browser {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-dot:nth-child(1) {
  background: #fb7185;
}

.mock-dot:nth-child(2) {
  background: #fbbf24;
}

.mock-dot:nth-child(3) {
  background: #34d399;
}

.mock-body {
  padding: 24px;
  min-height: 220px;
  background: var(--bg);
}

.mock-block {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.35;
  margin-bottom: 10px;
}

.mock-block.w-70 {
  width: 70%;
}

.mock-block.w-50 {
  width: 50%;
}

/* Sections */
.section {
  padding: clamp(22px, 4.5vw, 42px) 0;
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.step-card,
.feature-card,
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover,
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

/* Templates */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.template-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.template-card .thumb {
  aspect-ratio: 16/10;
  background: var(--surface);
  object-fit: cover;
}

.template-card .meta {
  padding: 16px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary-dark);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.testimonial .stars {
  color: var(--secondary);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}

.price-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 8px;
}

.price-card .amount {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.price-card .amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex: 1;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.price-card li::before {
  content: "✓";
  color: var(--primary-dark);
  font-weight: 700;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  padding: 56px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(251, 146, 60, 0.15) 100%);
  text-align: center;
  border: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0 0 12px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0 16px;
  margin-top: 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: var(--muted);
  display: block;
  padding: 2px 0;
  font-size: 0.84rem;
}

.footer-col a:hover {
  color: var(--primary-dark);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  border-color: var(--primary);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

[data-theme="dark"] .alert-success {
  background: #064e3b;
  color: #a7f3d0;
}

[data-theme="dark"] .alert-error {
  background: #7f1d1d;
  color: #fecaca;
}

/* App shell + bottom nav (dashboard) */
.app-shell {
  padding-bottom: 88px;
}

@media (min-width: 901px) {
  .app-shell {
    padding-bottom: 24px;
  }
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  text-decoration: none;
}

.bottom-nav .ico {
  font-size: 1.25rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .bottom-nav {
    display: block;
  }

  .dash-sidebar {
    display: none;
  }
}

/* Dashboard layout */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  min-height: 70vh;
}

.dash-sidebar {
  background: linear-gradient(165deg, #0b1f46, #112a60);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.25);
}

.dash-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #dbeafe;
  font-weight: 400;
  margin-bottom: 4px;
}

.dash-sidebar a:hover,
.dash-sidebar a.active {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
  text-decoration: none;
}

.dash-main {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}
.dash-main h1,
.dash-main h2,
.dash-main h3,
.dash-main label {
  color: #0f172a;
}
.dash-main p,
.dash-main small {
  color: #475569;
}
.dash-main .form-group input,
.dash-main .form-group select,
.dash-main .form-group textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
.dash-main .form-group label {
  color: #334155;
}
.dash-main .btn.btn-ghost {
  border-color: #bfdbfe;
  color: #0f172a;
  background: #f8fbff;
}
[data-theme="dark"] .dash-main {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-color: #dbeafe;
}
[data-theme="dark"] .dash-main,
[data-theme="dark"] .dash-main h1,
[data-theme="dark"] .dash-main h2,
[data-theme="dark"] .dash-main h3,
[data-theme="dark"] .dash-main p,
[data-theme="dark"] .dash-main label,
[data-theme="dark"] .dash-main .num {
  color: #0f172a !important;
}
[data-theme="dark"] .dash-hero h1,
[data-theme="dark"] .dash-hero p {
  color: #fff !important;
}
.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, #0f3c88, #1e4fbf);
  padding: 16px;
}
.dash-hero h1 {
  color: #fff;
}
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dash-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.06);
  color: #0f172a;
}

.stat-card .num {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #0f172a;
}

.dash-main .stat-grid .stat-card:nth-child(1) {
  background: linear-gradient(135deg, #dbeafe, #f8fbff);
}
.dash-main .stat-grid .stat-card:nth-child(2) {
  background: linear-gradient(135deg, #dcfce7, #f8fff9);
}
.dash-main .stat-grid .stat-card:nth-child(3) {
  background: linear-gradient(135deg, #ffedd5, #fff8ef);
}
.dash-main .stat-grid .stat-card:nth-child(4) {
  background: linear-gradient(135deg, #ede9fe, #f7f5ff);
}

/* Admin dashboard shell */
.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  min-height: 75vh;
}
.admin-sidebar {
  background: linear-gradient(165deg, #0f1b3d, #182a5a);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px;
  position: sticky;
  top: 86px;
  height: fit-content;
}
.admin-sidebar .title {
  color: #fff;
  font-weight: 600;
  margin: 4px 0 10px;
}
.admin-sidebar a {
  display: block;
  color: #c7ddff;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: #fff;
  background: rgba(56, 189, 248, .24);
  text-decoration: none;
}
.admin-main {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 18px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.dash-table-wrap {
  overflow-x: auto;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 700px;
}
.dash-table thead tr {
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.dash-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.dash-table td,
.dash-table th {
  padding: 12px 8px;
}
.site-card-grid {
  display: none;
  gap: 12px;
}
.site-card {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.05);
}
.site-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.site-card p {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #334155;
}
.row-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.row-actions .btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.template-pick-card {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.05);
}
.template-pick-card.active {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}
.template-pick-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.template-pick-card .meta {
  padding: 10px 12px 0;
}
.template-pick-card .meta strong {
  display: block;
  margin-bottom: 2px;
}
.template-pick-card .meta span {
  font-size: 0.8rem;
  color: #0ea5e9;
}
.template-pick-card .meta p {
  margin: 8px 0 10px;
  color: #64748b;
  font-size: 0.85rem;
}
.template-pick-card .actions {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Builder */
.builder-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: calc(100vh - 70px);
}

.builder-panel {
  border-right: 1px solid var(--border);
  background: var(--surface);
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}

.builder-canvas-wrap {
  background: #e2e8f0;
  padding: 16px;
  overflow: auto;
}

.builder-frame {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 600px;
}

@media (max-width: 1024px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-panel {
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* Utilities */
.lazy {
  content-visibility: auto;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-profile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #bae6fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
}
.nav-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-profile-fallback {
  font-weight: 600;
  color: #0369a1;
}

.split-auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.auth-visual {
  background: linear-gradient(145deg, #dff3ff, #fff2e8);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #0f172a;
}
.auth-visual p { color: #334155 !important; }
.auth-card {
  padding: 28px;
  background: #ffffff;
  color: #0f172a;
}
.auth-card h1 { font-weight: 500; letter-spacing: -0.01em; }
.auth-card .form-group label { color: #334155; }
.auth-card .form-group input,
.auth-card .form-group select,
.auth-card .form-group textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
[data-theme="dark"] .split-auth {
  border-color: #334155;
  background: #0f172a;
}
[data-theme="dark"] .auth-card {
  background: #ffffff;
  color: #0f172a;
}
.auth-step {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.password-wrap {
  position: relative;
}
.password-wrap .toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.faq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.faq-visual {
  border-radius: 16px;
  background: linear-gradient(145deg, #dff3ff, #ffe8d6);
  border: 1px solid var(--border);
  padding: 24px;
  min-height: 240px;
  color: #0f172a;
}
.faq-visual p,
.faq-visual ul { color: #334155 !important; }

.floating-actions {
  position: fixed;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 220;
  background: #2563eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.floating-actions a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.2);
  font-size: 22px;
}
.floating-actions a:last-child { border-bottom: none; }
.chatbot-trigger {
  position: fixed;
  right: 16px;
  bottom: 98px;
  z-index: 240;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  background: radial-gradient(circle at 30% 25%, #1e3a8a, #0f172a);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  overflow: hidden;
  padding: 0;
}
.chatbot-trigger img { width: 100%; height: 100%; object-fit: cover; }
.chatbot-panel {
  position: fixed;
  right: 16px;
  bottom: 172px;
  z-index: 245;
  width: min(540px, calc(100vw - 22px));
  background: linear-gradient(180deg, #0a1a4f, #09133b 60%, #0b1a58);
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
  display: none;
}
.chatbot-panel.show { display: block; }
.chatbot-head {
  background: linear-gradient(90deg, rgba(14,165,233,.1), rgba(249,115,22,.08));
  color: #f8fafc;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}
.chatbot-head .status { color: #22c55e; font-size: .92rem; display:flex; gap:6px; align-items:center; }
.chatbot-head .status .dot { width:8px; height:8px; border-radius:50%; background:#22c55e; display:inline-block; }
.chatbot-head button { border: none; background: rgba(255,255,255,.08); width:30px; height:30px; border-radius:50%; color: #fff; font-size: 1.2rem; cursor: pointer; }
.chatbot-body { max-height: 320px; overflow-y: auto; padding: 12px; background: transparent; }
.chatbot-welcome { background: rgba(15, 23, 42, .4); border: 1px solid rgba(125, 211, 252, .24); border-radius: 16px; padding: 14px; color: #dbeafe; }
.chatbot-welcome p { margin: 0; font-size: 1.04rem; line-height: 1.5; }
.chatbot-chip-row { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.chatbot-chip { border: 1px solid rgba(249,115,22,.45); background: rgba(15,23,42,.55); color: #fdba74; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.chatbot-body p { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 0.95rem; line-height: 1.45; }
.chatbot-body p.bot { background: rgba(14,165,233,.18); color: #e0f2fe; border:1px solid rgba(14,165,233,.35); }
.chatbot-body p.mine { background: #0ea5e9; color: #fff; margin-left: 36px; }
.chatbot-form { padding: 12px; display: grid; gap: 8px; border-top: 1px solid rgba(125, 211, 252, 0.16); }
.chatbot-contact-grid { display:grid; gap:8px; grid-template-columns: 1fr 1fr 1fr; }
.chatbot-form input,
.chatbot-form textarea { width: 100%; border: 1px solid rgba(125,211,252,.3); border-radius: 10px; padding: 10px 12px; background: rgba(15,23,42,.55); color:#e2e8f0; }
.chatbot-input-row { display:grid; grid-template-columns: 1fr 56px; gap:8px; align-items:center; }
.chatbot-form .send { width: 56px; height: 46px; border-radius: 999px; border: 0; color: #fff; background: linear-gradient(135deg,#fb923c,#0ea5e9); cursor:pointer; }
.chatbot-powered { text-align:center; color:#93c5fd; font-size:.88rem; }
.chatbot-powered a { color:#fb923c; font-weight:700; }

.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(15, 23, 42, .45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lead-popup.show { display: flex; }
.lead-popup-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(2,6,23,.35);
}
.lead-popup-left {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: linear-gradient(155deg, #e0f2fe 0%, #eaf6ff 45%, #fff3e8 100%);
}
.lead-banner {
  width: 100%;
  min-height: 300px;
  border-radius: 16px;
  padding: 22px;
  background: radial-gradient(circle at left bottom, rgba(14,165,233,.22), transparent 46%), #f8fcff;
  border: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lead-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
  color: #0f172a;
}
.lead-banner p {
  margin: 0;
  color: #475569;
  font-size: 1rem;
}
.lead-popup-right {
  padding: 14px 14px 16px;
  background: #f8fafc;
  position: relative;
}
.lead-form-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: -20px auto 6px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(2,6,23,.22);
}
.lead-form-avatar i {
  font-size: 1.2rem;
  color: #fff;
}
.lead-popup-close {
  position: absolute;
  right: 18px;
  top: 8px;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}
.cookie-consent {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 250;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-consent.show {
  display: flex;
}
.cookie-consent p {
  margin: 0;
  font-size: 0.9rem;
}
.cookie-consent .actions {
  display: flex;
  gap: 8px;
}
.cookie-consent .btn {
  padding: 8px 12px;
  font-size: 0.86rem;
}
.invoice-card {
  position: relative;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  overflow: hidden;
}
.invoice-watermark {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 220px;
  opacity: 0.08;
  pointer-events: none;
}
.mini-bottom-nav {
  display: none;
}
@media (max-width: 900px) {
  .hero-cta { grid-template-columns: 1fr; }
  .split-auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .faq-split { grid-template-columns: 1fr; }
  .app-shell .site-header .inner {
    flex-direction: column;
    align-items: stretch;
  }
  .app-shell .site-header .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .app-shell .site-header .nav-actions .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  .app-shell .site-header .nav-actions .nav-profile {
    margin: 0 auto;
  }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .quick-actions {
    justify-content: flex-start;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-actions .btn { width: 100%; }
  .dash-hero h1 { font-size: 1.7rem; }
  .dash-widget-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px; }
  .stat-card .num { font-size: 1.35rem; }
  .site-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-actions { grid-template-columns: 1fr 1fr; }
  .row-actions form { grid-column: span 2; }
  .row-actions form .btn { width: 100%; }
  .dash-table-wrap { display: none; }
  .dash-table { min-width: 620px; }
  .template-picker { grid-template-columns: 1fr; }
  .lead-popup-card { grid-template-columns: 1fr; width: min(440px, 100%); }
  .lead-popup-left { display: none; }
  .floating-actions { left: 8px; right: auto; top: auto; bottom: 96px; transform: none; }
  .chatbot-trigger { right: 8px; bottom: 98px; width: 56px; height: 56px; }
  .chatbot-panel { right: 8px; bottom: 160px; width: min(520px, calc(100vw - 16px)); }
  .chatbot-contact-grid { grid-template-columns: 1fr; }
  .mini-bottom-nav {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 210;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .mini-bottom-nav .wrap {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .mini-bottom-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .mini-bottom-nav a .ico { font-size: 1.2rem; }
  .site-footer { padding-bottom: 90px; }
  .cookie-consent { bottom: 86px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
}

@media (max-width: 620px) {
  .quick-actions { grid-template-columns: 1fr; }
  .site-card-grid { grid-template-columns: 1fr; }
}
