:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #111c31;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --red: #ff3d00;
  --violet: #7c3aed;
  --gold: #facc15;
  --green: #10b981;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, 0.25), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.16), transparent 24%),
    var(--bg);
  font-size: 15px;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 12px 5%;
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand-lockup {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.header-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.buy-link {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: #0b3a78;
  text-decoration: none;
  font-weight: 900;
}

.account-chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 18px 30px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 24px;
  align-items: stretch;
}

.hero-left,
.login-box,
.market-section,
.products-section,
.projects-section,
.sidebar,
.data-panel {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-left {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
}

.hero-left h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.login-stack {
  display: grid;
  gap: 16px;
}

.login-box {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.login-box h2,
.section-title h2,
.market-section h2,
.data-toolbar h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-box h2 {
  color: var(--text);
  font-size: 20px;
}

.login-box h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 99px;
  background: var(--blue);
  vertical-align: middle;
}

.supplier-box h2::before {
  background: var(--red);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
  border-color: var(--blue);
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary,
.login-main {
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--blue), #0284c7);
  border-color: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.supplier-box .primary {
  background: linear-gradient(135deg, var(--red), #d97706);
}

.ghost {
  padding: 8px 12px;
}

.form-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.form-links a {
  color: var(--blue);
}

.link-button {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  text-align: left;
}

.message {
  min-height: 18px;
  color: #fecaca;
}

.signin-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.promise-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.18), rgba(124, 58, 237, 0.16));
  border: 1px solid var(--line);
  color: #fff;
  font-size: 21px;
  line-height: 1.25;
  box-shadow: var(--shadow);
}

.promise-banner span {
  color: var(--gold);
  white-space: nowrap;
}

.market-section,
.products-section,
.projects-section {
  margin-top: 26px;
  padding: 24px;
}

.market-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.marketplace {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.marketplace strong {
  font-size: 34px;
  letter-spacing: 0;
}

.marketplace span {
  color: #334155;
  font-size: 13px;
}

.flipkart {
  background: var(--gold);
  color: #1457b8;
}

.meesho {
  background: #fff0f7;
  color: #9b1b76;
}

.blinkit {
  background: #ecffe6;
  color: #16240e;
}

.market-section h2 {
  margin-top: 20px;
  color: var(--gold);
  font-size: 28px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.process-grid a {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.35;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.product-card {
  display: grid;
  grid-template-rows: 185px auto auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.48);
  color: var(--text);
  text-decoration: none;
}

.product-card img {
  width: 100%;
  height: 185px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
}

.product-card strong {
  min-height: 54px;
  line-height: 1.25;
}

.product-card span {
  color: var(--blue);
  font-weight: 900;
}

.project-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  font-size: 19px;
  font-weight: 800;
}

.project-list span {
  color: var(--muted);
  font-size: 15px;
}

.app-panel {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  padding: 14px;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.report-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.report-item.active {
  border-color: var(--blue);
  background: rgba(56, 189, 248, 0.14);
}

.report-item span,
#pageMeta,
.status-line {
  color: var(--muted);
}

.report-item span {
  font-size: 12px;
  font-weight: 400;
}

.data-panel {
  min-width: 0;
}

.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.table-controls {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 70px auto 70px;
  align-items: center;
  gap: 8px;
}

#pageMeta {
  white-space: nowrap;
  text-align: center;
}

.status-line {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #111c31;
  z-index: 1;
}

td {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.site-footer {
  margin-top: 34px;
  padding: 30px 5%;
  background: #090d16;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.social-links a {
  color: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 18px auto 0;
}

.footer-grid h2 {
  margin: 0 0 8px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    gap: 10px;
  }

  .hero-section,
  .promise-banner,
  .app-panel,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-left {
    min-height: 0;
    padding: 24px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .market-banner,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .data-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-controls {
    grid-template-columns: 1fr 62px auto 62px;
  }

  .report-list,
  .table-wrap {
    max-height: none;
  }
}
