/* styles.css */
:root {
  --bg: #f2f5ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #0b1b3a;
  --muted: #5b6b86;
  --blue: #1f57d6;
  --blue-2: #0d3fb3;
  --yellow: #ffcf4a;
  --shadow: 0 18px 50px rgba(13, 44, 120, 0.12);
  --shadow-soft: 0 10px 24px rgba(13, 44, 120, 0.10);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 40% 0%, #e7f0ff 0%, transparent 55%),
    linear-gradient(180deg, #f3f6ff 0%, #f7f9ff 40%, #f2f5ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.55;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ===============================
   HEADER / TOPBAR
================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

/* -------------------------------
   BRAND LOGOS
-------------------------------- */

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logos img {
  height: 36px;
  width: auto;
}

/* Bajaj logo slightly smaller */
.brand-logos img:last-child {
  max-height: 42px;
}

/* -------------------------------
   NAV LINKS
-------------------------------- */

.navlinks {
  display: flex;
  gap: 26px;
}

.navlinks a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #243a72;
  text-decoration: none;
  white-space: nowrap;
}

.navlinks a:hover {
  color: #1f57d6;
}

/* -------------------------------
   ACTION BUTTONS
-------------------------------- */

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 87, 214, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(31, 87, 214, 0.26);
}

.btn-yellow {
  background: linear-gradient(180deg, #ffd769 0%, var(--yellow) 100%);
  color: #1b2a4a;
  box-shadow: 0 12px 24px rgba(255, 207, 74, 0.25);
}

.btn-yellow:hover {
  box-shadow: 0 18px 40px rgba(255, 207, 74, 0.30);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 87, 214, 0.20);
  color: #123a8b;
}

.btn-ghost:hover {
  background: rgba(31, 87, 214, 0.06);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(31, 87, 214, 0.15);
  background: rgba(255, 255, 255, 0.65);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(11, 27, 58, 0.75);
  margin: 4px auto;
}

.hero {
  margin: 18px auto 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(900px 360px at 20% 20%, rgba(255, 255, 255, 0.70) 0%, transparent 60%),
    linear-gradient(135deg, rgba(179, 214, 255, 0.55), rgba(64, 140, 255, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(11, 63, 183, 0.10);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 40px 38px;
  align-items: center;
}

.hero h1 {
  font-size: 2.65rem;
  line-height: 1.08;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero .sub {
  margin-top: 12px;
  max-width: 56ch;
}

.hero .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.chip {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(31, 87, 214, 0.12);
  color: rgba(11, 27, 58, 0.80);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.illus {
  height: 320px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.10)),
    radial-gradient(700px 250px at 30% 30%, rgba(46, 123, 255, 0.35), transparent 55%),
    radial-gradient(700px 250px at 70% 70%, rgba(255, 207, 74, 0.20), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
}

.illus:before {
  content: "";
  position: absolute;
  inset: -30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.0) 100%);
  transform: rotate(12deg);
  opacity: .55;
}

.illus .badge {
  position: absolute;
  right: 18px;
  top: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 87, 214, 0.15);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  color: #123a8b;
  box-shadow: var(--shadow-soft);
}

.section {
  margin: 26px 0;
  padding: 24px 0;
}

.panel {
  background: var(--card);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-inner {
  padding: 26px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.kicker {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(18, 58, 139, 0.85);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.block-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.block-title h2 {
  font-size: 1.9rem;
}

.block-title .line {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 87, 214, 0.6), rgba(31, 87, 214, 0.0));
  transform: translateY(-6px);
}

.illu-mini {
  height: 220px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 220px at 30% 40%, rgba(31, 87, 214, 0.22), transparent 60%),
    radial-gradient(500px 220px at 70% 60%, rgba(255, 207, 74, 0.20), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.list {
  margin: 12px 0 0;
  padding-left: 16px;
  color: rgba(11, 27, 58, 0.82);
}

.list li {
  margin: 8px 0;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(13, 44, 120, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(31, 87, 214, 0.10);
  border: 1px solid rgba(31, 87, 214, 0.15);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(18, 58, 139, 0.90);
}

.card p {
  margin-top: 10px;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 16px;
  color: rgba(11, 27, 58, 0.78);
}

.card ul li {
  margin: 6px 0;
}

.stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.step {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.step .num {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(31, 87, 214, 0.10);
  border: 1px solid rgba(31, 87, 214, 0.15);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(18, 58, 139, 0.95);
}

.step h3 {
  margin-top: 10px;
  font-size: 1.15rem;
}

.step p {
  margin-top: 6px;
}

.credit-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

.table {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 87, 214, 0.08);
}

.row:last-child {
  border-bottom: 0;
}

.row b {
  color: rgba(11, 27, 58, 0.92);
}

.row span {
  color: rgba(11, 27, 58, 0.76);
}

.note {
  background: rgba(31, 87, 214, 0.06);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.note ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(11, 27, 58, 0.78);
}

.note li {
  margin: 6px 0;
}

.cta-band {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  padding: 20px;
  background:
    radial-gradient(800px 240px at 10% 20%, rgba(255, 255, 255, 0.65), transparent 55%),
    linear-gradient(135deg, rgba(31, 87, 214, 0.22), rgba(255, 207, 74, 0.15)),
    rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 87, 214, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.cta-band h2 {
  font-size: 1.55rem;
}

.cta-band p {
  margin-top: 6px;
}

.footer {
  padding: 26px 0 40px;
  color: rgba(11, 27, 58, 0.65);
  font-size: 0.95rem;
}

.footer .foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(18, 58, 139, 0.85);
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

/* Get Started page */
.onboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.onboard-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.onboard-card h3 {
  font-size: 1.2rem;
}

.onboard-card p {
  margin-top: 8px;
}

.onboard-card .btn {
  margin-top: 12px;
}

.first-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.action-card {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(31, 87, 214, 0.10);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(13, 44, 120, 0.08);
}

.action-card .meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(11, 27, 58, 0.70);
  font-weight: 700;
  font-size: 0.95rem;
}

.action-card .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: 1fr;
  }

  .credit-grid {
    grid-template-columns: 1fr;
  }

  .onboard-grid {
    grid-template-columns: 1fr;
  }

  .first-actions {
    grid-template-columns: 1fr;
  }

  .navlinks {
    display: none;
  }

  .burger {
    display: block;
  }
}

.mobile-drawer {
  display: none;
  padding: 10px 0 18px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: rgba(11, 27, 58, 0.85);
}

.mobile-drawer a:hover {
  background: rgba(31, 87, 214, 0.06);
}

/* credits/buy-credit.php */
/* BUY CREDITS UI */
.input-readonly {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  margin-bottom: 10px;
}

.credit-packs {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.credit-pack {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  transition: .2s;
}

.credit-pack input {
  accent-color: #f5c400;
}

.credit-pack:hover {
  border-color: #f5c400;
  background: #fffbe6;
}

.credit-pack b {
  display: block;
  font-size: 16px;
}

.credit-pack span {
  font-size: 13px;
  color: #666;
}

/* ===============================
   MODAL (LOGIN / SIGNUP)
================================ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 60, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: min(420px, calc(100% - 32px));
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: pop .28s ease;
}

@keyframes pop {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-box h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  color: var(--text);
}

.modal-box input, .modal-box select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 87, 214, 0.25);
  margin-bottom: 12px;
  font-size: 0.95rem;
  background: #ffffff;
  font-family: inherit;
  color: var(--text);
}

.modal-box input:focus, .modal-box select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 87, 214, 0.15);
}

.modal-box .btn {
  margin-top: 6px;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 26px;
  cursor: pointer;
  color: #7a88a8;
  z-index: 2;
}

.modal .close:hover {
  color: #1f57d6;
}

.error {
  color: #d0342c;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.switch-text {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #4a5d85;
}

.switch-text a {
  color: #1f57d6;
  font-weight: 600;
  text-decoration: none;
}

.switch-text a:hover {
  text-decoration: underline;
}

/* Page title */
.page-title-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #123a8b;
}

.page-title .page-sub {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(11, 27, 58, 0.65);
}

.page-action {
  margin-left: auto;
}

