:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f8faff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.74);
  --border: rgba(99, 102, 241, 0.16);
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 8px 32px rgba(79, 70, 229, 0.10);
  --shadow-lg: 0 20px 60px rgba(79, 70, 229, 0.18);
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 58%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.06) 100%);
  --radius: 18px;
  --radius-sm: 10px;
}

/* Lightweight Bootstrap fallback for offline/shared-hosting installs. */
.container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.g-1 { gap: .25rem; }
.g-2 { gap: .5rem; }
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }
.g-5 { gap: 3rem; }

[class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-4 { flex-basis: calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
.col-6 { flex-basis: calc(50% - .75rem); max-width: calc(50% - .75rem); }
.col-12 { flex-basis: 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-3 { flex-basis: calc(25% - 1.125rem); max-width: calc(25% - 1.125rem); }
  .col-md-4 { flex-basis: calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
  .col-md-5 { flex-basis: calc(41.666% - .875rem); max-width: calc(41.666% - .875rem); }
  .col-md-6 { flex-basis: calc(50% - .75rem); max-width: calc(50% - .75rem); }
  .col-md-7 { flex-basis: calc(58.333% - .625rem); max-width: calc(58.333% - .625rem); }
  .col-md-8 { flex-basis: calc(66.666% - .5rem); max-width: calc(66.666% - .5rem); }
  .col-md-9 { flex-basis: calc(75% - .375rem); max-width: calc(75% - .375rem); }
  .text-md-end { text-align: right; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex-basis: calc(16.666% - 1.25rem); max-width: calc(16.666% - 1.25rem); }
  .col-lg-4 { flex-basis: calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
  .col-lg-5 { flex-basis: calc(41.666% - .875rem); max-width: calc(41.666% - .875rem); }
  .col-lg-6 { flex-basis: calc(50% - .75rem); max-width: calc(50% - .75rem); }
  .col-lg-7 { flex-basis: calc(58.333% - .625rem); max-width: calc(58.333% - .625rem); }
  .col-lg-9 { flex-basis: calc(75% - .375rem); max-width: calc(75% - .375rem); }
}

@media (min-width: 1200px) {
  .col-xl-2 { flex-basis: calc(16.666% - 1.25rem); max-width: calc(16.666% - 1.25rem); }
  .col-xl-3 { flex-basis: calc(25% - 1.125rem); max-width: calc(25% - 1.125rem); }
  .col-xl-4 { flex-basis: calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
}

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none !important; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.position-relative { position: relative; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.mx-auto { margin-inline: auto; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.my-3 { margin-block: 1rem; }
.me-1 { margin-right: .25rem; }
.me-2 { margin-right: .5rem; }
.ms-1 { margin-left: .25rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.py-1 { padding-block: .25rem; }
.py-2 { padding-block: .5rem; }
.pt-3 { padding-top: 1rem; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.small { font-size: .875rem; }
.fw-bold { font-weight: 800; }
.fst-italic { font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.text-decoration-none { text-decoration: none; }
.shadow-sm { box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.disabled { pointer-events: none; opacity: .55; }

.navbar {
  min-height: 66px;
  display: flex;
  align-items: center;
}

.navbar > .container,
.navbar-collapse,
.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar > .container {
  justify-content: space-between;
  gap: 1rem;
}

.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.navbar-toggler {
  display: none;
  border: 0;
  background: transparent;
  padding: .45rem;
}

.navbar-toggler-icon {
  display: block;
  width: 1.45rem;
  height: 1.1rem;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  position: relative;
}

.navbar-toggler-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--text);
  transform: translateY(-50%);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: .8rem;
  text-align: left;
}

.progress {
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(99, 102, 241, .14);
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
}

.alert {
  padding: .85rem 1rem;
  margin-bottom: 1rem;
}

.alert-success { background: rgba(16, 185, 129, .12); color: #047857; border-color: rgba(16, 185, 129, .24); }
.alert-danger { background: rgba(239, 68, 68, .12); color: #b91c1c; border-color: rgba(239, 68, 68, .24); }
.alert-warning { background: rgba(245, 158, 11, .14); color: #a16207; border-color: rgba(245, 158, 11, .28); }

@media (max-width: 991px) {
  .navbar-toggler {
    display: inline-flex;
  }

  .navbar > .container {
    flex-wrap: wrap;
  }

  .navbar-collapse {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 0;
  }

  .navbar-collapse.show {
    display: flex;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

[data-theme="dark"] {
  --bg: #0b0d1a;
  --bg-card: #131629;
  --bg-glass: rgba(19, 22, 41, 0.84);
  --border: rgba(129, 140, 248, 0.2);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.50);
  --grad-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(124, 58, 237, 0.12) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 70% 8%, rgba(79, 70, 229, 0.12), transparent 70%),
    radial-gradient(720px 460px at 0% 88%, rgba(6, 182, 212, 0.10), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--primary);
}

.page-main {
  min-height: 70vh;
}

#mainNav {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
}

.navbar-brand span,
.footer-brand span,
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand span,
.footer-brand span {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

#mainNav .nav-link {
  border-radius: 8px;
  color: var(--text-muted) !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem !important;
  transition: all 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary) !important;
}

.dark-toggle,
.icon-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-glass);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dark-toggle:hover,
.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-grad,
.btn-hero-primary {
  border: 0;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.32);
  transition: all 0.22s ease;
}

.btn-grad {
  padding: 0.48rem 1.2rem;
  font-size: 0.9rem;
}

.btn-hero-primary {
  padding: 0.78rem 1.8rem;
  font-size: 1rem;
}

.btn-grad:hover,
.btn-hero-primary:hover {
  color: #fff;
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline-primary-custom,
.btn-hero-outline,
.btn-sm-outline {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-glass);
  color: var(--text);
  font-weight: 700;
  transition: all 0.22s ease;
}

.btn-outline-primary-custom {
  padding: 0.44rem 1.05rem;
  font-size: 0.88rem;
}

.btn-hero-outline {
  padding: 0.76rem 1.7rem;
  font-size: 1rem;
}

.btn-sm-outline {
  padding: 0.34rem 0.82rem;
  font-size: 0.82rem;
}

.btn-outline-primary-custom:hover,
.btn-hero-outline:hover,
.btn-sm-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm-grad {
  border: 0;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  padding: 0.34rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-sm-grad:hover {
  color: #fff;
  opacity: 0.9;
}

section {
  padding: 78px 0;
}

.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 82px;
  position: relative;
  overflow: hidden;
}

.hero-badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-glass);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.38rem 1rem;
}

.section-badge {
  background: var(--grad-soft);
  margin-bottom: 1rem;
}

.hero-title {
  max-width: 760px;
  margin: 1.4rem 0 1.2rem;
  font-size: 3.5rem;
  line-height: 1.12;
  font-weight: 800;
}

.hero-sub,
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-sub {
  max-width: 580px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.section-sub {
  max-width: 620px;
}

.glass-card,
.hero-glass-card,
.payment-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.glass-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.hero-glass-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
}

.hero-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  pointer-events: none;
}

.hero-glass-card > * {
  position: relative;
}

.hero-stat {
  padding: 1rem;
  text-align: center;
}

.stat-val,
.dash-stat-val,
.price-val {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-val {
  font-size: 2rem;
}

.stat-label,
.dash-stat-label,
.price-period {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-badge,
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-active,
.badge-closed,
.badge-live,
.badge-paid {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.status-pending,
.badge-inprog {
  background: rgba(245, 158, 11, 0.13);
  color: var(--warning);
}

.status-info {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
}

.badge-open,
.badge-failed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.service-card {
  min-height: 100%;
  padding: 1.65rem;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  height: 3px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon,
.dash-stat-icon,
.contact-icon,
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--grad-soft);
  color: var(--primary);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.service-card h5 {
  font-size: 1.06rem;
  font-weight: 800;
}

.service-card p,
.muted-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.pricing-card {
  padding: 1.9rem;
}

.pricing-popular {
  border-color: var(--primary);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.price-val {
  font-size: 2.35rem;
}

.price-yearly {
  display: none;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #dbe1f1;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-knob {
  width: 22px;
  height: 22px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: left 0.2s ease;
}

.toggle-switch.active .toggle-knob {
  left: 27px;
}

.price-feature,
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.42rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-feature i,
.feature-item i {
  color: var(--success);
  width: 18px;
}

.compare-table th {
  background: var(--grad-soft);
  color: var(--text);
  font-family: "Outfit", sans-serif;
}

.compare-table th.primary-col {
  background: var(--grad);
  color: #fff;
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  padding: 0.66rem 1rem;
  font-size: 0.92rem;
  outline: 0;
  transition: all 0.2s ease;
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-label-custom {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.payment-card {
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-card:hover,
.payment-card.active {
  border-color: var(--primary);
  background: var(--grad-soft);
}

.dash-stat {
  padding: 1.35rem;
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  font-size: 1.18rem;
}

.dash-stat-val {
  font-size: 1.72rem;
}

.admin-tab {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.58rem 1rem;
  transition: all 0.2s ease;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

.chat-window {
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.msg-bubble {
  max-width: 78%;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.msg-in {
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 0;
  background: var(--grad-soft);
}

.msg-out {
  align-self: flex-end;
  border-radius: 14px 14px 0 14px;
  background: var(--grad);
  color: #fff;
}

.ticket-row,
.domain-row,
.notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.86rem 0;
  border-bottom: 1px solid var(--border);
}

.ticket-row:last-child,
.domain-row:last-child,
.notif-item:last-child {
  border-bottom: 0;
}

.faq-question {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-align: left;
  font-weight: 800;
}

.faq-answer {
  display: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 0.4rem 0 1rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.blog-img,
.screenshot-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-img {
  height: 160px;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.screenshot-card {
  height: 140px;
  font-weight: 800;
}

.agreement-box {
  height: 170px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 1rem;
  font-size: 0.86rem;
  line-height: 1.7;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 60px;
}

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 3rem 0 1.4rem;
}

.footer-link {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-heading {
  margin-bottom: 1rem;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

.whatsapp-btn,
.back-top-btn {
  position: fixed;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  z-index: 999;
  box-shadow: var(--shadow);
}

.whatsapp-btn {
  bottom: 88px;
  width: 52px;
  height: 52px;
  background: #25d366;
  font-size: 1.4rem;
}

.back-top-btn {
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--grad);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.22s ease;
}

.back-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.table {
  color: var(--text);
}

.table td,
.table th {
  border-color: var(--border);
}

.alert {
  border-radius: 12px;
  border-width: 1.5px;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.65rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .hero-section,
  .auth-shell {
    padding: 100px 0 58px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-sub,
  .section-sub {
    font-size: 0.98rem;
  }

  .ticket-row,
  .domain-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
