@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --green: #1a9e6e;
  --green-light: #23c283;
  --green-dark: #0f6b49;
  --teal-dark: #0d3b30;
  --gold: #f5c518;
  --bg: #f3f6f9;
  --white: #ffffff;
  --card: #ffffff;
  --text: rgba(17, 24, 39, 1);
  --muted: #6b7280;
  --border: #e5e7eb;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #3b82f6;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}

body {
  background: #EEF7F6;
}

.header-banner {
  background: linear-gradient(175deg, #020403 0%, #083B31 40.96%, #001B16 58.52%, #001B16 70%, #000 100%);
  color: white;
  padding: 22px 100px 49px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 4px 5.8px 0px rgba(0, 0, 0, 0.37);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-patner-header {
  padding: 15px 50px 0;
}

.main-dashboard-patner {
  padding: 0 100px 40px;
}

.header-greeting {
  font-size: 13px;
  opacity: 0.8;
  font-family: "Poppins", sans-serif;
  color: rgb(255, 255, 255);
  font-weight: 600;
}

.header-name {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
  font-family: "Inter", sans-serif;
}

.header-sub {
  font-size: 13px;
  opacity: 0.7;
  color: rgb(207, 255, 240);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  border: none;
  color: white;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.avatar figure {
  width: 18px;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.user-role {
  font-size: 12px;
  opacity: 0.75;
  color: rgba(0, 255, 175, 1);
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.dashboard-patner-inner {
  box-shadow: 0px 4px 12.1px 0px rgba(0, 0, 0, 0.25);
  padding: 40px 30px;
  border-radius: 40px;
  margin-top: -40px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.1);
}

.partner-card {
  background: linear-gradient(90deg, #073F34 0%, #041B17 52%, #000000 100%);
  color: white;
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 75px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.partner-id-section {
  min-width: 160px;
}

.partner-label {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.partner-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
  margin-bottom: 20px;
}

.partner-id-val {
  color: rgba(0, 255, 162, 1);
  font-weight: 700;
  font-size: 15px;
}

.progress-section {
  flex: 1;
  min-width: 220px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(239, 255, 249, 1);
  margin-bottom: 15px;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(135deg, #64F7BB 0%, #00B884 45%, #007B5D 100%);
  height: 100%;
  border-radius: 99px;
  width: 64.5%;
}

.progress-sub {
  font-size: 12px;
  color: rgb(207, 255, 240);
  margin-top: 10px;
}

.partner-btns {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.btn {
  padding: 20px 28px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
}

.btn-outline {
  background: rgb(6, 25, 20);
  border: 1px solid rgba(167, 249, 221, 0.35);
  color: white;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #00B884 45%, #007B5D 100%);
  color: white;
  font-family: "Inter", sans-serif;
}

.btn-primary:hover {
  background: var(--green);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 24px;
}

.stat-card {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
  border: 1px solid rgb(221, 238, 234);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  background: linear-gradient(305deg, rgb(255, 255, 255) 75.34%, rgb(5, 200, 152) 137.6%);
}

/* .stat-card::before{content:'';background: linear-gradient(0deg, #FFFFFF, #FFFFFF),
linear-gradient(251.88deg, #FFFFFF 75.34%, #05C898 137.6%);
} */
.stat-icon {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #00FF9B 0%, #000000 245.76%), linear-gradient(135deg, #64F7BB 0%, #00B884 45%, #007B5D 100%);
  border-radius: 100px;
  padding: 10px;
}

.stat-card-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}

.stat-val {
  font-size: 30px;
  font-weight: 800;
  color: rgba(17, 24, 39, 1);
  line-height: 1;
  font-family: "Inter", sans-serif;
  margin-bottom: 20px;
}

.stat-label {
  font-size: 12px;
  color: rgba(107, 114, 128, 1);
  margin-top: 3px;
}

.mid-row {
  display: grid;
  grid-template-columns: 1.7fr 1.2fr;
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  font-family: "Inter", sans-serif;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
  color: rgba(17, 24, 39, 1);
  margin-top: 20px;
  margin-bottom: 30px;
}

.card-sub {
  font-size: 14px;
  color: rgba(107, 114, 128, 1);
  margin-bottom: 35px;
  font-family: "Poppins", sans-serif;
  max-width: 300px;
}

.redeem-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.redeem-btns {
  display: flex;
  gap: 40px;
}

.btn-bank {
  color: white;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #006FFF 0%, #00D0FF 100%);
  box-shadow: 0px 2px 2.8px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
}

.btn-buy {
  color: white;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
  box-shadow: 0px 2px 2.8px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
  background: linear-gradient(135deg, #64F7BB 0%, #00B884 45%, #007B5D 100%);
}

.gauge-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.gauge-svg {
  width: 330px;
  height: 160px;
}

.icon-gauge {
  width: 50px;
  height: 50px;
  background: rgba(189, 189, 189, 1);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  margin-top: -55px;
}

.gauge-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  font-family: "Inter", sans-serif;
  margin-bottom: 15px;
}

.gauge-sub {
  font-size: 12px;
  color: rgba(0, 0, 0, 1);
  text-align: center;
}

.min-note {
  font-size: 13px;
  color: rgba(137, 137, 137, 1);
  margin-top: 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

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

.ledger-header .title {
  font-size: 20px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: rgba(17, 24, 39, 1);
  margin-top: 0px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ledger-header .subtitle {
  font-size: 12px;
  color: var(--muted);
}

.btn-sm {
  background: rgba(0, 0, 0, 1);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  color: #000;
  font-weight: 600;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-family: "Inter", sans-serif;
}

td {
  padding: 14px 10px;
  vertical-align: middle;
  color: rgb(55, 65, 81);
}

tr:last-child td {
  border-bottom: none;
}

.credit {
  color: var(--green);
  font-weight: 700;
}

.debit {
  color: var(--red);
  font-weight: 700;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ref-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ref-stats {
  display: flex;
  gap: 10px;
}

.ref-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.ref-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: rgba(17, 24, 39, 1);
}

.ref-stat-val.green {
  color: var(--green);
}

.ref-stat-val.orange {
  color: var(--orange);
}

.chart-area {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.chart-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

.chart-badge {
  position: absolute;
  top: 12px;
  left: 55%;
  background: var(--green-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.ref-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: "Inter", sans-serif;
}

.hist-btns {
  display: flex;
  gap: 40px;
}

.badge {
  display: inline-block;
  padding: 15px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  min-width: 116px;
}

table.text-center th,
table.text-center td {
  text-align: center;
}

.badge-green {
  background: #d1fae5;
  color: var(--green-dark);
}

.badge-orange {
  background: #fef3c7;
  color: #92400e;
}

.lower-row {
  display: grid;
  grid-template-columns: 1.9fr 0.99fr 0.99fr;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trust-list li {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.trust-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(55, 65, 81, 1);
  margin-bottom: 30px;
}

.benefit-item::before {
  content: '⭐';
}

.rank-num {
  font-size: 20px;
  font-weight: 700;
  color: rgba(17, 24, 39, 1);
  font-family: "Inter", sans-serif;
  text-align: center;
}

.rank-label {
  font-size: 13px;
  color: var(--muted);
}

.rank-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0;
  padding-bottom: 10px;
}

.rank-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.rank-name {
  font-weight: 700;
  font-size: 20px;
  color: rgba(17, 24, 39, 1);
}

.rank-tag {
  font-size: 12px;
  color: rgba(107, 114, 128, 1);
  font-family: "Poppins", sans-serif;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.card-row .card-column {
  width: 55%;
}

.redeem-row {
  width: 40%;
}

.ref-header-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 0;
  color: rgba(17, 24, 39, 1);
}

.ref-header-title figure {
  width: 50px;
  height: 50px;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}

.card-title.same-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

.same-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.same-flex .btn-sm {
  background: rgba(0, 0, 0, 1);
  color: rgba(0, 184, 132, 1);
  padding: 4px 16px;
  border-radius: 10px;
}

.same-flex .text {
  color: rgba(107, 114, 128, 1);
  font-size: 12px;
  font-family: "Poppins", sans-serif;
}

.card-title.card-center {
  justify-content: center;
}

.card.transparency-bg {
  background-image: url(../../authorized-partner-dashboard/transparency.svg);
  background-size: 160px;
  background-repeat: no-repeat;
  background-position: 95%;
}

.ref-stats .col-s {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(221, 238, 234, 1);
  border-radius: 15px;
  padding: 10px 14px;
  width: 100px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mid-row,
  .bottom-row,
  .lower-row {
    grid-template-columns: 1fr;
  }

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

.stat-card-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}

.stat-val {
  font-size: 30px;
  font-weight: 800;
  color: rgba(17, 24, 39, 1);
  line-height: 1;
  font-family: Montserrat, sans-serif;
  margin-bottom: 20px;
}

.stat-label {
  font-size: 12px;
  color: rgba(107, 114, 128, 1);
  margin-top: 3px;
}

.mid-row {
  display: grid;
  grid-template-columns: 1.7fr 1.2fr;
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  font-family: Montserrat, sans-serif;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: Montserrat, sans-serif;
  color: rgba(17, 24, 39, 1);
  margin-top: 20px;
  margin-bottom: 30px;
}

.card-sub {
  font-size: 14px;
  color: rgba(107, 114, 128, 1);
  margin-bottom: 35px;
  font-family: Roboto, sans-serif;
  max-width: 300px;
}

.redeem-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.redeem-btns {
  display: flex;
  gap: 40px;
}

.btn-bank {
  color: white;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: Montserrat, sans-serif;
  background: linear-gradient(135deg, #006FFF 0%, #00D0FF 100%);
  box-shadow: 0px 2px 2.8px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
}

.btn-bank:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  filter: grayscale(0.2);
}

.btn-buy {
  color: white;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: Montserrat, sans-serif;
  box-shadow: 0px 2px 2.8px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
  background: linear-gradient(135deg, #64F7BB 0%, #00B884 45%, #007B5D 100%);
}

.gauge-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: Montserrat, sans-serif;
}

.gauge-svg {
  width: 330px;
  height: 160px;
}

.icon-gauge {
  width: 50px;
  height: 50px;
  background: rgba(189, 189, 189, 1);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  margin-top: -55px;
}

.gauge-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  font-family: Montserrat, sans-serif;
  margin-bottom: 15px;
}

.gauge-sub {
  font-size: 12px;
  color: rgba(0, 0, 0, 1);
  text-align: center;
}

.min-note {
  font-size: 13px;
  color: rgba(137, 137, 137, 1);
  margin-top: 20px;
  text-align: center;
  font-family: Roboto, sans-serif;
}

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

.ledger-header .title {
  font-size: 20px;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  color: rgba(17, 24, 39, 1);
  margin-top: 0px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ledger-header .subtitle {
  font-size: 12px;
  color: var(--muted);
}

.btn-sm {
  background: rgba(0, 0, 0, 1);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: Montserrat, sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  color: #000;
  font-weight: 600;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  font-family: Montserrat, sans-serif;
}

td {
  padding: 14px 10px;
  vertical-align: middle;
  color: rgb(55, 65, 81);
}

tr:last-child td {
  border-bottom: none;
}

.credit {
  color: var(--green);
  font-weight: 700;
}

.debit {
  color: var(--red);
  font-weight: 700;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin-bottom: 24px;
}

.ref-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ref-stats {
  display: flex;
  gap: 10px;
}

.ref-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.ref-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: rgba(17, 24, 39, 1);
}

.ref-stat-val.green {
  color: var(--green);
}

.ref-stat-val.orange {
  color: var(--orange);
}

.chart-area {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.chart-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

.chart-badge {
  position: absolute;
  top: 12px;
  left: 55%;
  background: var(--green-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.ref-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: Montserrat, sans-serif;
}

.hist-btns {
  display: flex;
  gap: 40px;
}

.hist-btns .btn-sm.is-active {
  background: var(--green-dark);
  color: #fff;
}

.authorized-partner-referral-history-scroll-wrap.is-expanded {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.authorized-partner-referral-history-scroll-wrap.is-expanded thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 15px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  min-width: 116px;
}

table.text-center th,
table.text-center td {
  text-align: center;
}

.badge-green {
  background: #d1fae5;
  color: var(--green-dark);
}

.badge-orange {
  background: #fef3c7;
  color: #92400e;
}

.lower-row {
  display: grid;
  grid-template-columns: 1.9fr 0.99fr 0.99fr;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trust-list li {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.trust-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(55, 65, 81, 1);
  margin-bottom: 30px;
}

.benefit-item::before {
  content: '⭐';
}

.rank-num {
  font-size: 20px;
  font-weight: 700;
  color: rgba(17, 24, 39, 1);
  font-family: Montserrat, sans-serif;
  text-align: center;
}

.rank-label {
  font-size: 13px;
  color: var(--muted);
}

.rank-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0;
  padding-bottom: 10px;
}

.rank-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.rank-name {
  font-weight: 700;
  font-size: 20px;
  color: rgba(17, 24, 39, 1);
}

.rank-tag {
  font-size: 12px;
  color: rgba(107, 114, 128, 1);
  font-family: Roboto, sans-serif;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.card-row .card-column {
  width: 55%;
}

.redeem-row {
  width: 40%;
}

.ref-header-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 0;
  color: rgba(17, 24, 39, 1);
}

.ref-header-title figure {
  width: 50px;
  height: 50px;
  text-align: center;
  align-items: center;
  display: flex;
  justify-content: center;
}

.card-title.same-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

.same-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.same-flex .btn-sm {
  background: rgba(0, 0, 0, 1);
  color: rgba(0, 184, 132, 1);
  padding: 4px 16px;
  border-radius: 10px;
}

.same-flex .text {
  color: rgba(107, 114, 128, 1);
  font-size: 12px;
  font-family: Roboto, sans-serif;
}

.card-title.card-center {
  justify-content: center;
}

.card.transparency-bg {
  background-image: url(../../authorized-partner-dashboard/transparency.svg);
  background-size: 160px;
  background-repeat: no-repeat;
  background-position: 95%;
}

.ref-stats .col-s {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(221, 238, 234, 1);
  border-radius: 15px;
  padding: 10px 14px;
  width: 100px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mid-row,
  .bottom-row,
  .lower-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width:1699px) {
  .header-banner {
    padding: 22px 60px 49px;
  }

  .main-dashboard-patner {
    padding: 0 80px 40px;
  }

  .dashboard-patner-header {
    padding: 15px 30px 0;
  }

  .ledger-header .title {
    font-size: 18px;
  }

  .ref-stats .col-s {
    padding: 10px 14px;
    width: 90px;
  }

  .stat-val {
    font-size: 26px;
  }

  .mid-row {
    grid-template-columns: 1.8fr 1.4fr;
  }

  .btn-bank {
    padding: 15px 21px;
  }

  .redeem-btns {
    gap: 10px;
  }

  td {
    font-size: 11px;
  }

  .ref-header-title {
    font-size: 18px;
  }

  .hist-btns {
    gap: 10px
  }

  th {
    font-size: 11px;
  }

  .badge {
    display: inline-block;
    padding: 15px 2px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    min-width: 106px;
  }

  .btn-sm {
    font-size: 10px;
  }

  .rank-num,
  .rank-name,
  .rank-num {
    font-size: 15px !important;
  }

  .benefit-item {
    font-size: 12px;
  }

  .partner-card {
    gap: 55px;
  }

  .stats-grid {
    gap: 15px;
  }
}

@media (max-width:1499px) {
  .ref-header {
    flex-wrap: wrap;
  }

  .bottom-row {
    grid-template-columns: 1fr 1.5fr;
  }

  .redeem-btns {
    flex-wrap: wrap;
  }

  .mid-row {
    grid-template-columns: 1.8fr 1.7fr;
  }

  .trust-list li {
    font-size: 12px;
  }

  .main-dashboard-patner {
    padding: 0 60px 40px;
  }

  .gauge-svg {
    width: 250px;
    height: 120px;
  }

  .dashboard-patner-inner {
    padding: 20px 20px;
    border-radius: 30px;
  }

  .table-responsive table {
    white-space: nowrap;
  }

  .partner-card {
    gap: 45px;
  }
}

@media (max-width:1399px) {
  .btn-bank {
    padding: 9px 21px;
  }

  .btn-buy {
    padding: 10px 27px;
  }

  .stat-icon {
    width: 65px;
    height: 65px;
    padding: 16px;
  }

  .stat-card {
    gap: 10px
  }

  .btn {
    padding: 12px 18px;
  }

  .main-dashboard-patner {
    padding: 0px 40px 40px;
  }

  .dashboard-patner-header {
    padding: 15px 20px 0;
  }

  .card-title {
    font-size: 14px;
  }

  .benefit-item {
    margin-bottom: 20px;
  }

  .trust-list {
    gap: 20px;
  }

  .card-title {
    margin-top: 0;
    margin-bottom: 20px;
  }

  .lower-row {
    margin-bottom: 10px;
  }
}

@media (max-width:1199px) {
  .partner-id-section {
    min-width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 14px;
  }

  .mid-row {
    grid-template-columns: inherit;
    flex-wrap: wrap;
  }

  .bottom-row {
    grid-template-columns: inherit;

  }

  .lower-row {
    grid-template-columns: inherit;
  }

  .main-dashboard-patner {
    padding: 0px 30px 40px;
  }

  .partner-card {
    gap: 25px;
  }

  .header-banner {
    padding: 22px 30px 49px;
  }
}

@media (max-width:991px) {

  .ref-hist-header,
  .ledger-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-banner {
    padding: 22px 20px 49px;
    flex-wrap: wrap;
    gap: 13px;
  }
}

.svg-group {
  position: relative;
}

.icon-gauge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  margin: 25px auto auto;
}

@media (max-width:767px) {
  .dashboard-patner-header {
    padding: 0px 0px 0;

  }

  .header-banner {
    padding: 22px 20px 49px;
    flex-wrap: wrap;
    gap: 13px;
    border-radius: 0;
  }

  .main-dashboard-patner {
    padding: 0px 15px 20px;
  }

  .dashboard-patner-inner {
    padding: 10px 10px;
    border-radius: 10px;
    margin: -30px 0 0;
  }

  .partner-card {
    padding: 12px 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 14px;
  }

  .card-row .card-column {
    width: 100%;
  }

  .redeem-row {
    width: 100%;
  }

}


.dashboard-content-shell {
  position: relative;
}

.dashboard-content-shell.has-centered-gate {
  min-height: 720px;
}

.dashboard-content-shell.has-centered-gate .dashboard-lock-blur {
  filter: blur(1px);
  opacity: 0.94;
  pointer-events: none;
  user-select: none;
}

.dashboard-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dashboard-lock-card {
  max-width: 520px;
  width: 100%;
  padding: 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.dashboard-lock-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  color: rgba(17, 24, 39, 1);
  font-family: Montserrat, sans-serif;
}

.dashboard-lock-card p {
  margin: 0 0 20px;
  color: rgba(107, 114, 128, 1);
  font-size: 15px;
  line-height: 1.7;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(6, 25, 20, 0.92);
  border: 1px solid rgba(167, 249, 221, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dashboard-preview-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(207, 255, 240, 1);
}

.stat-val.is-small {
  font-size: 24px;
}

@media (max-width: 900px) {
  .dashboard-lock-card h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  div#authorized-partner-action-alert {
    display: none;
  }

  .header-banner {
    border-radius: 0 0 30px 30px;
    background: linear-gradient(135deg, #031612 0%, #084D3E 42%, #000000 100%);
    position: relative;
    padding: 30px 60px 65px 80px;
  }

  .user-name {
    display: none;
  }

  .user-role {
    display: none;
  }

  .avatar {
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -15px;
  }

  .avatar figure {
    width: 30px;
  }

  .header-sub {
    font-size: 10px;
    font-weight: 300;
  }

  .header-greeting {
    font-weight: 400;
  }

  .header-banner {
    gap: 0;
  }

  .header-icons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -15px;
    width: 27px;
  }

  .dashboard-patner-inner {
    padding: 30px 20px 45px;
    border-radius: 20px;
    margin: -40px 0 0;
  }

  .partner-card {
    padding: 20px 20px;
  }

  .partner-id-section {
    text-align: left;
  }

  .partner-title {
    font-size: 15px;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    margin-bottom: 5px;
  }

  .partner-label {
    font-size: 12px;
    opacity: 1;
    font-weight: 400;
    margin-bottom: 4px;
  }

  .partner-id-val {
    color: #3BF1AE;
    font-weight: 700;
    font-size: 21px;
  }

  .progress-header {
    font-size: 11px;
    margin-bottom: 13px;
    font-weight: 700;
  }

  .partner-card {
    border-radius: 25px;
    ;
  }

  .progress-sub {
    font-size: 10px;
    color: #FFF;
    margin-top: 10px;
    font-weight: 400;
  }

  .partner-card {
    border-radius: 25px;
    position: relative;
    padding-bottom: 61px;
    background: linear-gradient(175deg, #073F34 0%, #041B17 52%, #000000 100%);
    margin-bottom: 60px;
  }

  .partner-btns {
    display: flex;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    justify-content: center;
  }

  .btn {
    padding: 12px 14px;
    border: 1px solid #68F6C4;
    border-radius: 10px;
    font-size: 12px;
  }

  .btn-outline {
    background: #061914;
  }

  .btn-primary {
    background: linear-gradient(19deg, #44F1B2 0%, #0BC486 55%, #007B5D 100%);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-icon {
    width: 35px;
    height: 35px;
    padding: 8px;
  }

  .stat-card {
    padding: 15px 15px;
  }

  .stat-card-subtitle {
    font-size: 9px;
  }

  .stat-val {
    font-size: 15px;
    margin-bottom: 10px;
    color: #111827;
  }

  .stat-label {
    font-size: 9px;
    color: #6B7280;
    margin-top: 0px;
  }

  .stat-card {
    padding: 15px 15px;
    background: linear-gradient(305deg, #FFFFFF 75.34%, #05C898 137.6%);
    border: 1px solid #DDEEEA;
  }

  .card {
    border: 1px solid #DDEEEA;
    box-shadow: 0px 5px 3px rgb(175 175 175 / 46%);
  }

  .icon-card {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 30px;
  }

  .mid-row .card .card-title {
    padding-right: 100px;
    margin-bottom: 12px;
    font-size: 20px;
    color: #111827;
  }

  .card-sub {
    font-size: 10px;
  }

  .redeem-btns {
    justify-content: center;
  }

  .card-sub {
    margin-bottom: 30px;
  }

  .btn-bank,
  .btn-buy {
    font-size: 11px;
  }

  .ledger-header .title {
    font-size: 11px;
  }

  .ledger-header .subtitle {
    font-size: 9px;
  }

  .btn-sm {
    font-size: 9px;
    padding: 5px 15px;
  }

  td {
    font-size: 7px;
  }

  td {
    padding: 11px 6px;
  }

  th {
    font-size: 7px;
  }

  .authorized-partner-ledger-scroll-wrap {
    overflow: hidden;
    overflow-x: auto;
  }

  .authorized-partner-ledger-scroll-wrap table {
    width: 490px;
  }

  .card.card-2 {
    background: linear-gradient(140deg, #FFFFFF 75.34%, #05C898 137.6%);
  }

  .icon-gauge {
    width: 40px;
    height: 40px;
  }

  .icon-gauge figure {
    width: 20px;
  }

  .card.card-1 {
    background-image: url(../../authorized-partner-dashboard/bg-card.webp);
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
  }

  .group-view {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding-top: 40px;
  }

  .gauge-svg {
    width: 190px;
    height: 80px;
    margin: auto;
    display: block;
  }

  .gauge-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
    max-width: 120px;
  }

  .gauge-val {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    font-family: "Poppins", sans-serif;
    margin-bottom: 5px;
    margin-top: 14px;
  }

  .gauge-sub {
    font-size: 8px;
    color: rgba(0, 0, 0, 1);
    text-align: center;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
  }

  .authorized-partner-min-note-row .min-note {
    text-align: left !important;
    font-size: 9px;
  }

  .authorized-partner-min-note-row .min-note span {
    color: #FFBB00;
  }

  .authorized-partner-min-note-row {
    margin-top: 0px;
    min-height: 18px;
  }

  .authorized-partner-min-note-row {
    padding-top: 20px !important;
    margin: 0 !important;
  }

  .ref-header-title {
    font-size: 15px;
  }

  .ref-stats .col-s {
    padding: 4px 12px;
    width: 89px;
    border-radius: 10px;
  }

  .ref-stat-label {
    font-size: 9px;
  }

  .ref-stat-val {
    font-size: 13px;
  }

  .card-title.card-center {
    justify-content: left;
    font-size: 16px;
  }

  .rank-row {
    margin: 0;
  }

  .rank-num,
  .rank-name,
  .rank-num {
    font-size: 22px !important;
  }

  .btn-buy {
    padding: 10px 15px;
  }
}

@media (max-width:380px) {
  .dashboard-patner-inner {
    padding: 20px 15px 25px;
    border-radius: 20px;
    margin: -40px 0 0;
  }

  .partner-btns {
    display: flex;
    gap: 7px;
    margin-left: auto;
    flex-wrap: wrap;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
  }

  .partner-card {
    padding-bottom: 21px;
    margin-bottom: 30px;
  }

  .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }

  .ref-stats .col-s {
    padding: 4px 12px;
    width: 70px;
    border-radius: 10px;
  }
}


.authorized-partner-ledger-scroll-wrap {
  width: 100%;
}

.authorized-partner-ledger-scroll-wrap.is-expanded {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.authorized-partner-ledger-scroll-wrap.is-expanded thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.authorized-partner-modal-close-icon {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 50%;
  color: #111827;
  display: inline-flex;
  font-size: 22px;
  font-weight: 600;
  height: 34px;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 34px;
}

.authorized-partner-modal-close-icon:hover {
  background: #e5e7eb;
  color: #000;
  transform: scale(1.04);
}

.authorized-partner-modal-close-icon:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

.authorized-partner-modal-close-icon span {
  display: block;
  margin-top: -2px;
}

.authorized-partner-document-review-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.authorized-partner-document-preview {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.authorized-partner-document-preview-head {
  align-items: center;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.authorized-partner-document-preview-head strong {
  color: #111827;
  font-size: 13px;
}

.authorized-partner-document-preview-frame {
  background: #f3f4f6;
  border: 0;
  display: block;
  height: 150px;
  width: 100%;
}

.authorized-partner-document-preview-empty {
  align-items: center;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  font-size: 13px;
  height: 150px;
  justify-content: center;
}

.reward-withdraw-status {
  background: #eef6ff;
  border-radius: 30px;
  color: #1d4ed8;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  text-transform: capitalize;
}

.reward-withdraw-status.status-approved {
  background: #ecfdf3;
  color: #15803d;
}

.reward-withdraw-status.status-pending {
  background: #eef6ff;
  color: #1d4ed8;
}

.reward-withdraw-status.status-paid {
  background: #ecfeff;
  color: #0f766e;
}

.reward-withdraw-status.status-rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.reward-withdraw-status.status-cancelled {
  background: #f3f4f6;
  color: #4b5563;
}

.reward-withdraw-status.status-missing,
.reward-withdraw-status.status-draft {
  background: #fff7ed;
  color: #c2410c;
}

@media (max-width: 575px) {
  .authorized-partner-document-review-grid {
    grid-template-columns: 1fr;
  }
}

.authorized-partner-min-note-row {
  margin-top: 20px;
  min-height: 28px;
  position: relative;
}

.authorized-partner-min-note-row .min-note {
  margin-top: 0;
  text-align: center;
}

.authorized-partner-view-document-link {
  background: #f7fffc;
  border: 1px solid rgba(5, 200, 152, 0.28);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(5, 200, 152, 0.08);
  color: #008767;
  font-size: 12px;
  font-weight: 600;
  left: 0;
  margin-top: 0;
  padding: 5px 12px;
  position: absolute;
  top: 0;
  text-decoration: none;
  white-space: nowrap;
}

.authorized-partner-view-document-link:hover,
.authorized-partner-view-document-link:focus {
  background: #effdf8;
  border-color: rgba(5, 200, 152, 0.45);
  color: #006f55;
  outline: none;
  text-decoration: none;
}

.mid-row {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.3fr);
}

@media (max-width: 1499px) {
  .mid-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.75fr);
  }
}

@media (max-width: 1199px) {
  .mid-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .authorized-partner-min-note-row {
    padding-top: 22px;
  }

  .authorized-partner-view-document-link {
    margin-top: 0;
  }
}
/* Bell icon notification */
.authorized-partner-unread-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.authorized-partner-notifications-dropdown {
  background: #fff;
}

.authorized-partner-notification-row {
  animation: slideIn 0.2s ease-out;
}

.authorized-partner-notification-row:hover {
  background: #f9fafb;
}

.authorized-partner-load-more-btn:hover {
  background: #f3f4f6;
}

.authorized-partner-load-more-btn:active {
  background: #e5e7eb;
}

.authorized-partner-load-more-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .authorized-partner-notifications-dropdown {
    min-width: 280px;
    max-width: 90vw;
  }
  .btn-bank {
    padding: 9px 10px;
}
.card.card-1 {
    position: relative;
    padding-bottom: 50px;
    margin-bottom: 25px;
}
.authorized-partner-view-document-link {
    position: absolute;
    bottom: -70px;
    height: 40px;
    top: inherit;
    left: 0;
    right: 0;
    max-width: 150px;
    margin: auto;
    background: #061914;
    color: #FFF;
    border: 2px solid #3ddda5;
}
.header-icons{z-index: 9;}

}
/* .authorized-partner-view-document-link { background: #061914;
    color: #FFF;
    border: 2px solid #3ddda5;    padding: 10px 25px;}
    div#authorized-partner-notifications-dropdown {
    background: #020b09 !important;
    border: 1px solid #19cf91 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}
div#authorized-partner-notifications-dropdown div, div div#authorized-partner-notifications-dropdown div {
    padding: 15px 0px !important;
    color: #000!important;
    border-color: #10c88a !important;
    text-align: left !important;
    justify-content: left !important;
    background: #FFF !important;
    flex-wrap: wrap;
    flex-shrink: inherit;
}
div#authorized-partner-notifications-dropdown div div {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}
div div#authorized-partner-notifications-dropdown > div {
    flex-wrap: inherit !important;
    padding: 0px 0px !important;
}
div#authorized-partner-notifications-dropdown > div > div {
    padding: 10px 15px 10px !important;
}
button#authorized-partner-load-more-btn {
    background: #00d481 !important;
    color: #000 !important;
}
 */
 button#authorized-partner-load-more-btn {
    background: #00da84 !important;
    color: #000 !important;
}
div div#authorized-partner-notifications-dropdown > div:first-child {
    padding: 10px 0 !important;
    border-radius: 7px 7px 0 0 !important;
    background: linear-gradient(175deg, #073F34 0%, #041B17 52%, #000000 100%) !important;
}
div div#authorized-partner-notifications-dropdown > div:first-child div {
    padding: 0 15px !important;
        background: transparent !important;
    color: #FFF !important;
}
div#authorized-partner-notifications-dropdown {
    border: 1px solid #00da84 !important;
}
button#authorized-partner-mark-all-btn {
    color: #00da84 !important;
}
