:root {
  --green: #5b7f2b;
  --green-dark: #315820;
  --orange: #f05a00;
  --orange-dark: #c84906;
  --brown: #3a2116;
  --muted: #6f6257;
  --line: rgba(100, 63, 30, 0.18);
  --panel: rgba(255, 250, 241, 0.82);
  --panel-strong: rgba(255, 252, 247, 0.94);
  --shadow: 0 18px 50px rgba(85, 53, 19, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--brown);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 244, 226, 0.04), rgba(255, 249, 238, 0.28) 70%, #fff8ee 100%),
    url("assets/partnerportal-background.png") center top / cover no-repeat fixed;
}

body.dashboard-page {
  background:
    linear-gradient(110deg, rgba(255, 241, 216, 0.88), rgba(255, 255, 250, 0.8)),
    url("assets/background-hero-fast.jpg") center / cover fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1580px, calc(100vw - 70px));
  margin: 22px auto 0;
}

.portal-home-shell {
  min-height: 100vh;
}

.topbar {
  min-height: 92px;
  padding: 13px 32px 13px 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 52px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 18px 38px rgba(93, 50, 15, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 246px;
}

.brand-main {
  font-weight: 900;
  font-size: clamp(1.68rem, 2.2vw, 2.2rem);
  letter-spacing: 0;
}

.brand-main .my,
.brand-main .plus {
  color: var(--orange-dark);
}

.brand-main .oxy {
  color: var(--orange-dark);
}

.brand-main .dot {
  font-size: 0.62em;
  color: #6c3b1c;
}

.brand-sub {
  margin-left: 112px;
  margin-top: 3px;
  color: #7b4120;
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-sub img {
  height: 24px;
  vertical-align: -4px;
}

.nav-divider {
  width: 1px;
  height: 32px;
  background: rgba(179, 112, 48, 0.44);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.45vw, 52px);
  color: #332117;
  font-weight: 700;
  font-size: 0.98rem;
  flex: 1;
}

.nav a {
  padding: 15px 0;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav .active {
  min-width: auto;
  text-align: center;
  color: var(--brown);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom-color: var(--orange);
}

.chev {
  font-size: 1rem;
  line-height: 1;
}

.portal-btn,
.primary-btn,
.outline-btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.portal-btn,
.primary-btn {
  color: white;
  background: linear-gradient(180deg, #ff7a16, #ef5200);
  box-shadow: 0 12px 26px rgba(230, 78, 0, 0.28);
}

.portal-btn {
  min-width: 194px;
  min-height: 58px;
  font-size: 1.03rem;
}

.outline-btn {
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(240, 90, 0, 0.58);
}

.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-layout {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(470px, 1fr) minmax(390px, 480px);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
  padding: 58px 46px 32px 30px;
}

.portal-hero {
  position: relative;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(3.8rem, 6.1vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: #4a210d;
  text-shadow: 0 2px 16px rgba(255, 229, 180, 0.32);
}

.hero-copy > p {
  max-width: 360px;
  margin: 0 0 24px;
  color: #1f130d;
  font-size: clamp(1.16rem, 1.5vw, 1.34rem);
  line-height: 1.38;
  font-weight: 700;
}

.hero-grid {
  display: block;
}

.feature-list {
  display: grid;
  gap: 15px;
}

.feature {
  display: grid;
  grid-template-columns: 58px minmax(0, 250px);
  gap: 18px;
  align-items: center;
}

.feature-icon,
.round-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 235, 186, 0.42);
  border: 2px solid rgba(91, 127, 43, 0.72);
  box-shadow: 0 10px 22px rgba(70, 45, 19, 0.08);
}

.feature h3,
.login-card h2,
.panel h2,
.panel h3 {
  margin: 0;
}

.feature p {
  margin: 4px 0 0;
  color: #1f130d;
  line-height: 1.26;
  font-weight: 500;
}

.product-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  justify-items: center;
}

.product-stage::after {
  content: "";
  width: min(440px, 92%);
  height: 74px;
  border-radius: 50%;
  background: rgba(108, 66, 28, 0.18);
  filter: blur(8px);
  position: absolute;
  bottom: 22px;
}

.product-stage img {
  position: relative;
  z-index: 1;
  width: min(350px, 84%);
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(72, 39, 15, 0.23));
}

.territory-card,
.login-card,
.dashboard-card,
.panel,
.footer-band {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.territory-card {
  width: 300px;
  margin-top: 26px;
  padding: 15px 20px 16px;
  border-radius: 18px;
}

.territory-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.territory-card p {
  margin: 0;
  color: #23140d;
  line-height: 1.55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.territory-card p strong {
  grid-column: 1 / -1;
}

.territory-card span {
  color: #2e1a10;
  font-weight: 600;
}

.login-card {
  width: 100%;
  padding: clamp(34px, 3.2vw, 46px);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 2.25vw, 2.1rem);
}

.login-card > p {
  margin: 0 0 30px;
  color: var(--muted);
}

.form-field {
  margin-bottom: 23px;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.input-wrap {
  height: 47px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(95, 70, 48, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--brown);
  background: transparent;
}

.input-wrap input.masked-password {
  -webkit-text-security: disc;
}

.input-wrap input.masked-password.is-visible-password {
  -webkit-text-security: none;
}

.password-toggle {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  background: transparent;
  cursor: pointer;
}

.password-toggle .eye-on {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-on {
  display: block;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 24px;
  color: #725b4b;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(95, 70, 48, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}

.check input:checked + span {
  background: #ef5200;
  border-color: #ef5200;
  box-shadow: inset 0 0 0 4px #fff7ed;
}

.forgot,
.link-orange {
  color: var(--orange-dark);
  font-weight: 800;
}

.login-actions {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 0;
}

.or-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #6f5a4d;
  font-weight: 700;
}

.or-line span {
  height: 1px;
  background: rgba(116, 82, 56, 0.24);
}

.approved {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: #4d382d;
  font-weight: 600;
}

.approved p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.lower-band {
  position: relative;
  margin: -8px calc(50% - 50vw) 0;
  padding: 44px max(70px, calc((100vw - 1480px) / 2 + 60px)) 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  border-radius: 50% 50% 0 0 / 14% 14% 0 0;
  background: rgba(255, 250, 243, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -14px 32px rgba(82, 44, 17, 0.06);
}

.lower-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 18px;
  padding-right: 30px;
  border-right: 1px solid rgba(125, 80, 39, 0.22);
}

.lower-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.lower-item p {
  margin: 5px 0 0;
  line-height: 1.42;
  color: #4e392d;
}

.mini-footer {
  margin: 0 calc(50% - 50vw);
  padding: 48px max(80px, calc((100vw - 1480px) / 2 + 70px));
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.7fr 0.7fr 0.7fr;
  gap: 46px;
  align-items: start;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
  background: rgba(255, 250, 243, 0.94);
  color: #5f4d42;
  font-size: 0.92rem;
}

.mini-footer img {
  height: 62px;
}

.footer-brand {
  display: grid;
  gap: 8px;
  color: #948274;
  font-size: 1.02rem;
}

.mini-footer > div {
  display: grid;
  gap: 10px;
}

.mini-footer strong {
  color: #3d281d;
  font-size: 0.84rem;
}

.mini-footer a {
  color: #5f4d42;
}

.social-row {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.social-row span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(236, 222, 201, 0.55);
  color: #3d281d;
  font-weight: 900;
}

.dashboard-shell {
  width: min(1500px, calc(100vw - 42px));
  margin: 16px auto 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-top: 14px;
}

.sidebar {
  padding: 14px;
  border-radius: 22px;
  min-height: 860px;
}

.side-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 800;
  color: #41291b;
}

.side-link.active {
  color: white;
  background: linear-gradient(180deg, #ff7515, #ef5200);
  box-shadow: 0 11px 22px rgba(230, 78, 0, 0.25);
}

.side-product {
  margin-top: 46px;
  text-align: center;
}

.side-product img {
  width: 160px;
  max-width: 90%;
  filter: drop-shadow(0 14px 22px rgba(55, 31, 12, 0.18));
}

.side-product h3 {
  margin: 14px 0 4px;
  font-size: 1.22rem;
}

.side-product p {
  margin: 0;
  color: #685548;
}

.dashboard-content {
  display: grid;
  gap: 14px;
}

.top-cards {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr 1.05fr;
  gap: 18px;
}

.dashboard-card,
.panel {
  border-radius: 18px;
}

.welcome-card {
  padding: 26px 34px;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 3.6rem;
  font-weight: 900;
  background: linear-gradient(145deg, #6f8b37, #e95d13);
  border: 4px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 25px rgba(73, 45, 22, 0.16);
}

.welcome-card .eyebrow,
.stat-label,
.small-label {
  color: #5d4a3d;
  font-weight: 800;
  font-size: 0.86rem;
}

.welcome-card h1 {
  margin: 2px 0 6px;
  font-size: 1.76rem;
  line-height: 1.05;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  color: var(--green-dark);
  border: 1px solid rgba(91, 127, 43, 0.34);
  border-radius: 8px;
  background: rgba(231, 241, 214, 0.75);
  font-weight: 900;
  font-size: 0.9rem;
}

.assignment,
.agreement {
  padding: 28px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
}

.assignment h2,
.agreement h2 {
  font-size: 1.28rem;
  line-height: 1.15;
  margin: 8px 0 16px;
}

.rate,
.days {
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.days {
  color: var(--orange-dark);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stat {
  min-height: 112px;
  padding: 20px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
}

.stat-value {
  display: block;
  margin: 4px 0 5px;
  font-size: 1.35rem;
  font-weight: 900;
}

.trend {
  color: var(--green-dark);
  font-size: 0.83rem;
  font-weight: 800;
}

.main-panels {
  display: grid;
  grid-template-columns: minmax(430px, 1.25fr) minmax(360px, 1fr);
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.map-card {
  min-height: 300px;
}

.map-box {
  position: relative;
  min-height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 252, 246, 0.42), rgba(255, 252, 246, 0.7)),
    url("assets/retail-hero-fast.jpg") center / cover;
}

.india-map {
  position: absolute;
  inset: 14px 18px 10px;
  opacity: 0.66;
}

.marker {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid white;
  box-shadow: 0 8px 16px rgba(119, 55, 10, 0.25);
}

.label-pin {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid rgba(236, 137, 44, 0.54);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.88);
  box-shadow: 0 9px 18px rgba(83, 54, 25, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(88, 57, 31, 0.13);
}

th {
  color: #5a4639;
  font-size: 0.82rem;
}

.bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.15fr;
  gap: 18px;
}

.logic-row,
.payout-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(88, 57, 31, 0.18);
}

.logic-row:last-child,
.payout-row:last-child {
  border-bottom: 0;
}

.logic-row strong,
.payout-row strong {
  color: var(--green-dark);
  font-size: 1.35rem;
}

.wallet-box,
.select-box {
  min-height: 34px;
  margin: 7px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(90, 66, 45, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
  color: #6c574a;
  font-size: 0.82rem;
}

.asset-row {
  display: flex;
  gap: 12px;
}

.asset-pill {
  flex: 1;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(99, 132, 49, 0.2);
  background: rgba(255, 255, 255, 0.45);
  font-weight: 800;
  color: #654535;
}

.asset-pill.active {
  color: #1264c9;
  border-color: rgba(18, 100, 201, 0.52);
  background: rgba(225, 240, 255, 0.72);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(91, 127, 43, 0.25);
  color: var(--green-dark);
  background: rgba(232, 242, 215, 0.75);
  font-size: 0.82rem;
  font-weight: 800;
}

.status.warn {
  color: #cf5300;
  border-color: rgba(244, 146, 26, 0.35);
  background: rgba(255, 235, 196, 0.78);
}

.footer-band {
  margin-top: 10px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.1fr;
  gap: 24px;
  border-radius: 16px;
}

.footer-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.footer-card:last-child {
  border-right: 0;
}

.footer-card p {
  margin: 4px 0 0;
  color: #5d4c40;
}

@media (max-width: 1120px) {
  .topbar,
  .nav {
    flex-wrap: wrap;
  }

  .portal-layout,
  .dashboard-grid,
  .top-cards,
  .main-panels,
  .bottom-panels,
  .footer-band,
  .lower-band {
    grid-template-columns: 1fr;
  }

  .portal-layout {
    min-height: auto;
    padding-bottom: 48px;
  }

  .lower-item {
    border-right: 0;
    padding-right: 0;
  }

  .mini-footer {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-shell,
  .dashboard-shell {
    width: min(100% - 24px, 1500px);
  }

  .topbar {
    border-radius: 26px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .portal-layout {
    padding: 28px 4px 0;
  }

  .hero-copy > p {
    max-width: 100%;
  }

  .hero-grid,
  .welcome-card,
  .assignment,
  .agreement,
  .stat,
  .territory-card,
  .lower-item,
  .footer-card {
    grid-template-columns: 1fr;
  }

  .product-stage {
    min-height: 380px;
  }

  .login-card {
    border-radius: 26px;
    padding: 28px 22px;
  }

  .lower-band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 34px 22px;
    border-radius: 26px 26px 0 0;
  }

  .mini-footer {
    grid-template-columns: 1fr;
    padding: 36px 22px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .asset-row {
    flex-direction: column;
  }
}
