:root {
  --bg-main: #f5f7fb;
  --bg-soft: #eef4ff;
  --text-dark: #0f172a;
  --text-light: #5b6472;
  --primary: #0b2c5f;
  --primary-dark: #071a38;
  --accent: #f4b942;
  --accent-soft: #fff6d9;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  color: var(--text-dark);
  overflow-x: hidden;
}

.search-box {
  position: relative;
  width: 250px;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000000;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 999;
}

.search-suggestions div {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
}

.search-suggestions div:hover {
  background: #f2f2f2;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
}
h1 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
}
button {
  font-family: "Inter", sans-serif;
  border-radius: 30px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

/* Primary */
.add-cart {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-soft);
}

.add-cart:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

/* Accent */
.buy-now {
  background: var(--accent-soft);
  color: var(--accent);
}

p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

.whatsapp-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(37, 211, 102, 0.25);
  z-index: 1001;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 34px rgba(37, 211, 102, 0.32);
}

.whatsapp-btn i {
  font-size: 22px;
}

/* ================= BACKGROUND SLIDER ================= */
.hero-wrapper {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

/* SLIDER IMAGES */
.bg-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* ACTIVE IMAGE */
.bg-slider img.active {
  opacity: 1;
}

/* DARK OVERLAY */
.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 24, 56, 0.86) 0%,
    rgba(7, 24, 56, 0.45) 55%,
    rgba(7, 24, 56, 0.3) 100%
  );
  z-index: 1;
}

/* KEEP CONTENT ABOVE */
.header,
.hero {
  position: relative;
  z-index: 2;
  color: white;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  z-index: 1000;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #071a38 0%, #0b2c5f 55%, #133c7d 100%);
  box-shadow: 0 12px 30px rgba(7, 24, 56, 0.2);
}

.header.scrolled {
  background: rgba(7, 24, 56, 0.96);
  padding: 10px 5%;
  box-shadow: 0 10px 25px rgba(7, 24, 56, 0.25);
}

.logo img {
  height: 45px;
  transition: 0.3s;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-name {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.header.scrolled .logo img {
  height: 38px;
}

/* NAV */

.nav {
  display: flex;
  gap: 10px;
}

.menu-toggle {
  display: none;
}

.nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #f8f5f5;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* NAV HOVER UNDERLINE */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}
.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover::after {
  width: 100%;
}

/* HEADER RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.account-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.account-link:hover {
  color: var(--accent);
}

/* Signin page card */
.signin-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 48px 20px 64px;
  background:
    radial-gradient(
      circle at top left,
      rgba(244, 185, 66, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(59, 111, 224, 0.22),
      transparent 24%
    ),
    linear-gradient(135deg, #061225 0%, #112b56 45%, #0b2c5f 100%);
  color: #fff;
  overflow: hidden;
}

.signin-page::before,
.signin-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.25;
}

.signin-page::before {
  width: 260px;
  height: 260px;
  background: #f4b942;
  top: -80px;
  right: -60px;
}

.signin-page::after {
  width: 220px;
  height: 220px;
  background: #74a7ff;
  bottom: -70px;
  left: -50px;
}

.signin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(1100px, 100%);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.35);
}

.signin-hero {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.06)
  );
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff4cf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.signin-hero h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 10px;
  color: #ffffff;
}

.signin-hero p {
  color: #e7eeff;
  max-width: 480px;
}

.signin-highlights {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.signin-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #edf4ff;
  font-size: 14px;
}

.signin-highlights li::before {
  content: "✦";
  color: #f4b942;
  font-size: 16px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  padding: 34px 32px;
  border-radius: 0;
  box-shadow: none;
  color: #10243f;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card h1 {
  margin-bottom: 6px;
  color: #0b2c5f;
  font-size: 32px;
}

.auth-card .muted {
  color: #5f6f86;
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  margin-top: 10px;
  color: #15345d;
  font-size: 14px;
  font-weight: 600;
}

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid #d7e1f0;
  background: #f8fbff;
  color: #10243f;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: #0b2c5f;
  box-shadow: 0 0 0 4px rgba(11, 44, 95, 0.12);
  transform: translateY(-1px);
}

.auth-card .view-btn {
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0b2c5f 0%, #3b6fe0 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 25px rgba(11, 44, 95, 0.16);
}

.auth-card .view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(11, 44, 95, 0.2);
}

.auth-switch {
  margin-top: 16px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.auth-switch a {
  color: #0b2c5f;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.signin-error {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffe8e8;
  color: #a33a3a;
  border: 1px solid #f3c2c2;
  font-size: 14px;
}

.auth-note {
  margin-top: 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .signin-shell {
    grid-template-columns: 1fr;
  }

  .signin-hero {
    padding-bottom: 20px;
  }

  .auth-card {
    max-width: none;
  }
}

.affiliate-page {
  background: linear-gradient(180deg, #f4f7ff 0%, #eef3ff 100%);
  color: #10243f;
}

.affiliate-hero {
  padding: 110px 20px 70px;
  background:
    linear-gradient(135deg, rgba(7, 26, 49, 0.78), rgba(15, 45, 86, 0.58)),
    url("image/affiliate.jpeg") center/cover no-repeat;
  color: white;
}

.affiliate-hero-copy {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.affiliate-hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin: 0 0 18px;
}

.affiliate-hero-copy p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.affiliate-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #f7b733 0%, #f59e0b 100%);
  color: #0d1b2a;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.affiliate-benefits {
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: white;
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 18px 38px rgba(15, 45, 86, 0.12);
  text-align: center;
}

.benefit-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #edf3ff;
  color: #1b4f93;
  font-size: 26px;
  margin-bottom: 14px;
}

.benefit-card h3 {
  margin: 0 0 8px;
  color: #10243f;
}

.benefit-card p {
  margin: 0;
  color: #596c87;
  line-height: 1.6;
}

.affiliate-auth-grid {
  max-width: 1180px;
  margin: 50px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.affiliate-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 16px 30px rgba(15, 45, 86, 0.08);
}

.affiliate-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #10243f;
}

.affiliate-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.affiliate-card label {
  color: #1c3053;
  font-size: 0.95rem;
  font-weight: 600;
}

.affiliate-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe5f4;
  background: #f8fbff;
  color: #10243f;
}

.full-width {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.affiliate-dashboard-panel {
  max-width: 1180px;
  margin: 54px auto 70px;
  padding: 30px 20px 10px;
}

.panel-header h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #10243f;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.aff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.aff-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 14px 24px rgba(16, 36, 63, 0.08);
}

.aff-card h3 {
  margin: 0 0 10px;
  color: #1b4f93;
  font-size: 1rem;
}

.aff-card p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #10243f;
}

.aff-ref-box {
  margin-top: 28px;
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 24px rgba(16, 36, 63, 0.08);
}

.aff-ref-box h3 {
  margin-top: 0;
  color: #10243f;
}

.ref-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ref-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #dbe5f4;
  background: #f8fbff;
}

.ref-row button {
  padding: 12px 18px;
  border: none;
  background: #10243f;
  color: white;
  border-radius: 12px;
  cursor: pointer;
}

.aff-table {
  margin-top: 28px;
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 24px rgba(16, 36, 63, 0.08);
  overflow-x: auto;
}

.aff-table h3 {
  margin-top: 0;
  color: #10243f;
}

.aff-table table {
  width: 100%;
  border-collapse: collapse;
}

.aff-table th,
.aff-table td {
  text-align: left;
  border-bottom: 1px solid #e9eef8;
  padding: 12px 10px;
}

.aff-table th {
  color: #1b4f93;
  background: #f7faff;
}

@media (max-width: 768px) {
  .affiliate-hero {
    padding-top: 90px;
  }

  .ref-row {
    flex-direction: column;
  }

  .ref-row button {
    width: 100%;
  }
}

/* Admin / Superadmin premium styles */
.admin-main {
  padding: 40px;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  min-height: calc(100vh - 80px);
}

.admin-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.sidebar {
  width: 250px;
  background: linear-gradient(135deg, #071a38 0%, #0b2c5f 60%, #133f87 100%);
  color: #fff;
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 22px 50px rgba(11, 44, 95, 0.16);
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar .brand img {
  height: 38px;
}

.sidebar .brand strong {
  display: block;
  font-size: 16px;
}

.sidebar .brand p {
  color: #cfe0ff;
  font-size: 13px;
  margin-top: 2px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.tab-item {
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  color: #dbefff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.tab-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.content-area {
  flex: 1;
}

.admin-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b2c5f 0%, #163d7c 55%, #3b6fe0 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(11, 44, 95, 0.16);
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff4cf;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-hero h1 {
  font-size: clamp(24px, 2.3vw, 32px);
  margin-bottom: 8px;
  color: #fff;
}

.admin-hero p {
  color: #e8f2ff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  min-width: 360px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #dfeeff;
}

.stat-card strong {
  font-size: 24px;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.admin-section {
  background: #ffffff;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid #e8eef8;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7c8aa5;
  margin-bottom: 3px;
}

.admin-section h2 {
  font-size: 22px;
  color: #0f172a;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2e5bbd;
  font-size: 12px;
  font-weight: 700;
}

.table-shell {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #edf2f7;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.premium-table th,
.premium-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.premium-table th {
  color: #334155;
  font-weight: 700;
  background: #f8fbff;
}

.premium-table tr:hover {
  background: #fbfdff;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  background: #f8fbff;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.admin-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dce7f7;
  background: #fff;
  color: #0f172a;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #e7eefc;
  color: #23427a;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.edit-btn,
.remove-btn {
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.edit-btn {
  background: linear-gradient(135deg, #4f8bff, #3067d0);
}

.remove-btn {
  background: linear-gradient(135deg, #ffa36b, #ff6b6b);
}

.edit-btn:hover,
.remove-btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.empty-state {
  padding: 18px;
  color: #64748b;
  background: #f8fbff;
  border-radius: 12px;
  border: 1px dashed #dce7f7;
}

.btn-primary {
  background: linear-gradient(135deg, #0b2c5f, #3a6fd8);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-danger {
  background: #ff6b6b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* responsive: collapse sidebar under 800px */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .sidebar ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .admin-main {
    padding: 20px;
  }

  .sidebar ul {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SEARCH BOX ===== */
.search-box {
  flex: 1;
  max-width: 350px;
  margin: 0 20px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 18px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
}

/* ================= CART ================= */
.cart {
  position: relative;
  font-size: 22px;
  cursor: pointer;
}

/* CART BADGE */
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 76vh;
  padding: 40px 5%;
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(244, 185, 66, 0.18);
  color: #ffd98b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(34px, 4vw, 54px);
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.hero-text p {
  color: #f3f7ff;
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 16px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.highlight-card i {
  color: #f4b942;
}

/* BUTTON */
.hero-text button {
  background: linear-gradient(135deg, var(--accent) 0%, #ffcf63 100%);
  color: #071a38;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
}

.hero-text button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 22px rgba(244, 185, 66, 0.28);
}

/* HERO IMAGE HOVER */
.hero-img img {
  width: 250px;
  transition: 0.4s;
}

.hero-img img:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ================= SECTION ================= */
.section {
  padding: 70px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  color: var(--text-dark);
  font-size: 28px;
}

/* ===== PREMIUM VIEW BUTTON ===== */
.view-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #0b2c5f, #5b8cff);
  color: white;
  font-weight: 500;
  letter-spacing: 0.5px;

  cursor: pointer;
  transition: all 0.3s ease;

  box-shadow: 0 5px 15px rgba(11, 44, 95, 0.3);
}

/* HOVER EFFECT */
.view-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(91, 140, 255, 0.5);
  background: linear-gradient(135deg, #081f45, #1e3c72);
}

/* CLICK EFFECT */
.view-btn:active {
  transform: scale(0.95);
}

/* ================= CARDS ================= */
.card-container {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: linear-gradient(145deg, #ffffff 0%, #f9fbff 100%);
  padding: 18px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s ease;
  cursor: pointer;
  border: 1px solid rgba(11, 44, 95, 0.06);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.card.hidden {
  display: none;
}

/* CARD ACTION BUTTONS */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.card-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.3s;
}

/* ARROWS */
.card-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 5;
}

.card img {
  border-radius: 15px;
}

.card-slider .prev {
  left: 5px;
}

.card-slider .next {
  right: 5px;
}

.card-slider button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ADD TO CART */
.add-cart {
  background: linear-gradient(135deg, #0b2c5f, #3a6fd8);
  border-radius: 20px;
}

.add-cart:hover {
  background: #081f45;
  transform: scale(1.05);
}

/* BUY NOW */
.buy-now {
  background: #f5e6d3;
  border-radius: 20px;
}

.buy-now:hover {
  background: #d4b98b;
  transform: scale(1.05);
}

/* PREMIUM HOVER */
.card img {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  margin-bottom: 12px;
  object-fit: cover;
}

.card h3 {
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.card p {
  color: var(--text-light);
}

/* ================= BANNER ================= */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #071a38 0%, #122b53 55%, #1d3d6c 100%);
  padding: 44px 60px;
  border-radius: 30px;
  margin: 40px auto;
  max-width: 1240px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

/* TEXT */
.banner-text {
  color: white;
  text-align: center;
  flex: 1;
}

.banner-text h2 {
  font-size: 38px;
  margin-bottom: 10px;
}

.banner-text p {
  color: #ccc;
  font-size: 16px;
}

/* LEFT IMAGE */
.left-img {
  width: 180px;
}

/* RIGHT IMAGE */
.right-img {
  width: 180px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    text-align: center;
  }

  .left-img,
  .right-img {
    width: 120px;
    margin: 10px 0;
  }
}

.banner::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(74, 125, 255, 0.3); /* blue glow */
  filter: blur(80px);
  top: -80px;
  left: -80px;
}

.banner::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: rgba(255, 107, 107, 0.2); /* pink glow */
  filter: blur(80px);
  bottom: -80px;
  right: -80px;
}

.banner h2 {
  font-size: 30px;
  font-weight: 600;
  color: #ffffff;
}

.banner p {
  color: #cbd5e1;
  line-height: 1.6;
}

.banner img {
  width: 220px;
  border-radius: 22px;
  transition: 0.4s ease;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

.banner img:hover {
  transform: scale(1.05);
}

/* ================= TESTIMONIAL & EXTRA SECTIONS ================= */
.testimonial,
.influencer-section,
.fitness-section,
.education-section,
.marketing-section {
  padding: 70px 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.testimonial {
  text-align: center;
}

.testimonial-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff, #f3f7ff);
  box-shadow: var(--shadow-soft);
}

.image-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.image-slider img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 24px;
}

.content {
  text-align: left;
}

.quote {
  font-size: 46px;
  color: var(--accent);
  line-height: 1;
}

.stars {
  color: var(--accent);
  font-size: 20px;
  margin: 10px 0;
}

.dots {
  margin-top: 14px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot.active {
  background: var(--primary);
}

.influencer-card,
.fitness-card,
.education-card {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 44, 95, 0.06);
}

.influencer-grid,
.fitness-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.join-btn,
.fitness-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, #3468c7 100%);
  color: #fff;
}

.influencer-bg {
  padding: 20px 5% 60px;
}

.influencer-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, #071a38, #173a6a);
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.influencer-form input,
.influencer-form button {
  width: 100%;
  margin-top: 10px;
}

.influencer-form button {
  background: linear-gradient(135deg, var(--accent) 0%, #ffcf63 100%);
  color: #071a38;
  font-weight: 700;
}

/* ================= PREMIUM FOOTER ================= */
.subscribe {
  background: linear-gradient(180deg, #eef4ff 0%, #e9eef5 100%);
  padding: 30px 8%;
}

/* BLUE BOX */
.subscribe-box {
  background: #0b2c5f;
  padding: 45px 30px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 40px;
}

.subscribe-box h2 {
  font-size: 25px;
  max-width: 450px;
}

/* INPUT */
.subscribe-input {
  display: flex;
  gap: 10px;
}

.subscribe-input input {
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  width: 250px;
}

.subscribe-input button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: white;
  color: #0b2c5f;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

/* LINKS + ICONS */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links a {
  margin-right: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* SOCIAL */
.social-icons i {
  margin-right: 15px;
  cursor: pointer;
}

/* OVERLAY BACKGROUND */
#subscribePopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

/* POPUP BOX */
#subscribePopup .popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popupFade 0.3s ease;
}

/* TEXT */
#subscribePopup h3 {
  margin-bottom: 10px;
  color: #0a7b6c;
}

#subscribePopup p {
  font-size: 14px;
  color: #555;
}

/* BUTTON */
#subscribePopup button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #0a7b6c;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ANIMATION */
@keyframes popupFade {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* LAST LINE */
.footer-last {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #cbbfa3;
  padding-top: 15px;
  font-size: 12px;
}

.footer-policy a {
  margin-left: 15px;
  text-decoration: none;
  color: #333;
}

/* ================= TESTIMONIAL ================= */
.testimonial {
  padding: 100px 0;
  text-align: center;
  background: #fdfaf6;
}

.testimonial h2 {
  font-size: 32px;
  margin-bottom: 50px;
  color: #1e2a3a;
}

.testimonial-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

/* IMAGE */
.image-box {
  width: 280px;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  z-index: 1;
  flex-shrink: 0;
}

/* SLIDER */
.image-slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* EACH IMAGE */
.image-slider img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 14px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.image-box:hover img {
  transform: scale(1.03);
}

/* SHAPES */
.shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.shape.top {
  width: 35px;
  height: 35px;
  background: #1ecad3;
  top: -10px;
  left: -10px;
}

.shape.bottom {
  width: 110px;
  height: 110px;
  background: #1ecad3;
  bottom: -25px;
  right: -25px;
}

/* ARROWS */
.t-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.t-prev {
  left: 5px;
}
.t-next {
  right: 5px;
}

/* CONTENT */
.content {
  max-width: 420px;
  text-align: left;
}

.quote {
  font-size: 35px;
  color: #ff6b4a;
}

.stars {
  color: #ff6b4a;
  margin: 10px 0;
  font-size: 25px;
}

.content p {
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

.content h4 {
  margin-top: 15px;
}

/* DOTS */
.dots {
  margin-top: 25px;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 5px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background: #0b2c5f;
}

/* ANIMATION */
.fade {
  animation: fade 0.5s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* IMAGE STRIP CONTAINER */
.image-strip {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
}

.image-strip:hover .strip-track {
  animation-play-state: paused;
}

/* MOVING TRACK */
.strip-track {
  display: flex;
  gap: 15px;
  animation: scrollStrip 15s linear infinite;
}

/* IMAGES */
.strip-track img {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  transition: transform 0.3s ease;
  display: block;
  padding: 0;
}

.strip-track img:hover {
  transform: scale(1.08);
}

.social-icons a {
  color: inherit;
  text-decoration: none;
}

.social-icons a:hover i {
  transform: scale(1.2);
  color: #0b2c5f;
}
.read-more-btn {
  margin-top: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #0b2c5f, #4a7dff);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

/* Arrow style */
.read-more-btn i {
  transition: transform 0.3s ease;
}

/* Hover effects */
.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/* Click */
.read-more-btn:active {
  transform: scale(0.95);
}

.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.blog-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 25px;
  width: 600px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  scroll-behavior: smooth;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #0b2c5f;
  border-radius: 10px;
}

.modal-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ANIMATION */
@keyframes scrollStrip {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================= INFLUENCER SECTION ================= */
.influencer-section {
  background: linear-gradient(135deg, #f8f9fc, #eef1f7);
  padding: 70px 20px;
  text-align: center;
}

.influencer-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.influencer-section p {
  color: #555;
  margin-bottom: 30px;
}

/* Cards */
.influencer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.influencer-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.influencer-card:hover {
  transform: translateY(-8px);
}

.influencer-card h3 {
  margin-bottom: 10px;
}

.influencer-card p {
  font-size: 14px;
  color: #666;
}

/* Button */
.join-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 12px 30px;
  background: #ff9800;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.join-btn:hover {
  background: #e68900;
}

/* ================= FORM ================= */
/* BACKGROUND SECTION */
.influencer-bg {
  padding: 80px 20px;

  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("image/bg5.jpg"); /* apni image */

  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
}

/* FORM BOX (white card upar aayega) */
.influencer-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.influencer-form h3 {
  margin-bottom: 20px;
}

/* Inputs */
.influencer-form input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.2s;
}

.influencer-form input:focus {
  border-color: #ff9800;
}

/* Button */
.influencer-form button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #ff9800;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.influencer-form button:hover {
  background: #e68900;
}

/* ================= POPUP ================= */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 300px;
}

.popup-content button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ff9800;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.affiliate-section {
  background: linear-gradient(135deg, #111, #333);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.affiliate-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step {
  background: #222;
  padding: 20px;
  border-radius: 10px;
}

.btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: #ff9800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= DASHBOARD FIX ================= */

#dashboard-section {
  display: none;
}

#dashboard-section.active {
  display: block;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: space-between;
}

.back-btn {
  background: black;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

/* Heading */
.container h1 {
  font-size: 40px;
  margin-bottom: 30px;
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

/* Cards */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  font-size: 18px;
  font-weight: 500;
}

/* Referral Box */
.ref-box {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.ref-box input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.ref-box button {
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  background: #e0e0e0;
  cursor: pointer;
  transition: 0.3s;
}

.ref-box button:hover {
  background: #ccc;
}

/* Table */
.table {
  margin-top: 30px;
  overflow-x: auto;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
}

.table thead {
  background: #f5f5f5;
}

.table tr {
  border-bottom: 1px solid #eee;
}

/* Withdraw Section */
.withdraw {
  margin-top: 30px;
  display: flex;
  gap: 10px;
}

.withdraw input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 200px;
}

.withdraw button {
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: #e0e0e0;
  cursor: pointer;
  transition: 0.3s;
}

.withdraw button:hover {
  background: #ccc;
}

/* ================= FITNESS SECTION ================= */
.fitness-section {
  background: linear-gradient(135deg, #f1f8e9, #e8f5e9);
  padding: 70px 20px;
  text-align: center;
  margin-top: 50px;
}

.fitness-container {
  max-width: 1100px;
  margin: auto;
}

/* Heading */
.fitness-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.fitness-section p {
  color: #555;
  margin-bottom: 30px;
}

/* Grid */
.fitness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* Cards */
.fitness-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.fitness-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.fitness-card h3 {
  margin-bottom: 10px;
}

.fitness-card p {
  font-size: 14px;
  color: #666;
}

/* Button */
.fitness-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  background: #2e7d32;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.fitness-btn:hover {
  background: #1b5e20;
  transform: scale(1.05);
}

/* Tip text */
#fitnessTip {
  margin-top: 25px;
  font-size: 16px;
  color: #2e7d32;
}

/* ================= MARKETING TOOL ================= */
.marketing-section {
  background: #f5f7fb;
  padding: 60px 20px;
  text-align: center;
}

.tool-box {
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95); /* glass look */
  max-width: 700px;
  margin: 30px auto;
}

.tool-box input,
.tool-box select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.tool-box button {
  background: #0b2c5f;
  color: #fff; /* important */
  padding: 12px;
  border-radius: 8px;
}

.output-box {
  background: rgba(255, 255, 255, 0.95); /* thoda transparent white */
  color: #000;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
}

/* POPUP */
.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.close-btn {
  background: red;
  margin-top: 10px;
}

.marketing-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;

  /* Background image */
  background: url("image/bg8.jpg") no-repeat center/cover;
}

.marketing-section label {
  color: #000000 !important; /* label text ko white karo */
}

.marketing-section input,
.marketing-section select {
  color: #000 !important; /* input ke andar ka text */
  background: #fff; /* input visible rahe */
}

.marketing-section h2,
.marketing-section p {
  color: #fff;
}

/* Dark overlay */
.marketing-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* darkness control */
  z-index: 1;
}

/* Content ko upar lana */
.marketing-section .container {
  position: relative;
  z-index: 2;
  color: white;
}

/* ================= EDUCATION SECTION ================= */
.education-section {
  background: linear-gradient(135deg, #eef3ff, #f5f7ff);
  padding: 70px 20px;
  text-align: center;
}

.education-container {
  max-width: 1100px;
  margin: auto;
}

.education-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.education-section p {
  color: #555;
  margin-bottom: 30px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.education-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.education-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  background: #2d5bff;
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.education-btn:hover {
  background: #1a3ed6;
  transform: scale(1.05);
}

#educationTip {
  margin-top: 20px;
  font-weight: 500;
  color: #2d5bff;
}

/* ===== MOBILE HEADER FIX ===== */

/* FIX NAV OVERLAY ISSUE */

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    order: 1; /* Move to far left */
  }

  .logo {
    order: 2; /* Move logo to center/middle */
    margin-right: auto; /* Push everything else to the right */
    padding-left: 15px;
  }

  .header-right {
    order: 4; /* Cart/Other items */
  }

  .search-box {
    order: 3; /* Search after logo */
    margin: 0 10px;
    flex: 1;
    min-width: 120px;
  }

  .search-box input {
    padding: 8px 12px;
    font-size: 14px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0b2c5f;
    flex-direction: column;
    padding: 80px 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    margin: 15px 0;
    font-size: 18px;
  }

  .header-right {
    gap: 15px;
    order: 3;
  }

  .header-right input {
    display: block; /* Show it now */
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px;
    text-align: center;
    justify-content: center;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 20px;
  }

  .hero-text h1 {
    font-size: 26px; /* smaller for mobile */
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .hero-text button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* FIX HEIGHT ISSUE */
  .hero-wrapper {
    height: auto;
    min-height: 60vh;
    padding-bottom: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 40px 20px;
    margin-left: 0; /* 🔥 remove desktop shift */
  }

  .section-header {
    text-align: center;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .card-container {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 15px;
    margin-left: 0; /* 🔥 remove negative margin */
  }

  .card {
    width: 100%; /* 🔥 full responsive */
    padding: 12px;
    border-radius: 12px;
  }

  .card img {
    height: 120px;
    object-fit: cover;
  }

  .card h3 {
    font-size: 14px;
  }

  .card p {
    font-size: 12px;
  }

  /* SUBSCRIBE MOBILE FIX */
  .subscribe {
    padding: 30px 15px;
  }

  .subscribe-box {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 35px 20px;
  }

  .subscribe-box h2 {
    font-size: 20px;
    max-width: 100%;
  }

  .subscribe-input {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .subscribe-input input {
    width: 100%;
    text-align: center;
  }

  .subscribe-input button {
    width: 100%;
  }

  /* TESTIMONIAL MOBILE FIX */
  .testimonial {
    padding: 60px 20px;
  }

  .testimonial-wrapper {
    flex-direction: column !important;
    gap: 30px;
  }

  .image-box {
    width: 260px !important;
    height: 300px !important;
    margin: 0 auto !important;
    overflow: hidden;
  }

  .image-slider {
    display: flex !important;
    width: 100%;
    height: 100%;
  }

  .image-slider img {
    width: 260px !important;
    height: 300px !important;
    flex-shrink: 0;
    object-fit: cover;
  }

  .content {
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
  }

  .testimonial h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

/* ================= AFFILIATE DASHBOARD ================= */
#affiliate-dashboard {
  margin-top: 40px;
}

#affiliate-dashboard h2 {
  font-size: 34px;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.aff-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.aff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}
.aff-card {
  background: var(--white);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}
.aff-card h3 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 8px;
}
.aff-card p {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.aff-ref-box {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.aff-ref-box input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
}
.aff-ref-box button {
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
}
.aff-ref-box button:hover {
  opacity: 0.95;
}

.aff-table {
  margin-top: 20px;
  overflow-x: auto;
}
.aff-table h3 {
  margin-bottom: 10px;
}
.aff-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}
.aff-table th,
.aff-table td {
  padding: 12px;
  text-align: left;
}
.aff-table thead {
  background: #fafafa;
}
.aff-table tr {
  border-bottom: 1px solid #eee;
}

.aff-withdraw {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.aff-withdraw input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 220px;
}
.aff-withdraw button {
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  cursor: pointer;
}
.aff-withdraw button:hover {
  opacity: 0.95;
}

@media (max-width: 768px) {
  .aff-card p {
    font-size: 16px;
  }
  .aff-ref-box {
    flex-direction: column;
    align-items: stretch;
  }
  .aff-ref-box input {
    width: 100%;
  }
  .aff-withdraw {
    flex-direction: column;
    align-items: stretch;
  }
}
