/* Asianskymall Healthcare Advocate Program Public Styles - Organic Olive Green & Earthy Brown Logo Brand Theme */
:root {
  --asm-emerald-dark: #4b5a26;
  --asm-emerald: #6c8038;
  --asm-emerald-light: #849a45;
  --asm-olive-dark: #3a471b;
  --asm-olive: #6c8038;
  --asm-brown-dark: #3d2f24;
  --asm-brown: #544436;
  --asm-rose: #c89696;
  --asm-gold-dark: #a17024;
  --asm-gold: #c9933b;
  --asm-gold-light: #dfaa4d;
  --asm-gold-bright: #f4d068;
  --asm-cream-bg: #fdfbe8;
  --asm-dark-slate: #3d2f24;
  --asm-card-bg: #ffffff;
  --asm-border-radius: 16px;
  --asm-shadow: 0 10px 30px rgba(108, 128, 56, 0.12);
  --asm-font-main: "Outfit", "Plus Jakarta Sans", -apple-system, sans-serif;
}

.asm-portal-wrapper,
.asm-myacc-portal-wrapper {
  font-family: var(--asm-font-main);
  color: var(--asm-dark-slate);
  max-width: 1200px;
  margin: 20px auto;
  background: #f8fafc;
  border-radius: var(--asm-border-radius);
  box-shadow: var(--asm-shadow);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* Header */
.asm-portal-header {
  background: linear-gradient(135deg, #3d2f24 0%, #6c8038 50%, #4b5a26 100%);
  padding: 24px 30px 0 30px;
  color: #ffffff;
}

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

.asm-logo-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.asm-logo-icon {
  font-size: 38px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.asm-brand-name {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--asm-gold-bright);
  text-transform: uppercase;
}

.asm-brand-sub {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 400;
}

.asm-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.asm-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(
    135deg,
    var(--asm-gold) 0%,
    var(--asm-gold-bright) 100%
  );
  color: var(--asm-emerald-dark);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.asm-user-info {
  display: flex;
  flex-direction: column;
}

.asm-role-pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Tabs */
.asm-tab-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.asm-tab-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: none;
  padding: 12px 20px;
  border-radius: 12px 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.asm-tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.asm-tab-btn.active {
  background: #ffffff;
  color: var(--asm-emerald-dark);
  font-weight: 800;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* Content Area */
.asm-tab-container {
  padding: 30px;
  background: #ffffff;
}

.asm-tab-content {
  display: none;
}

.asm-tab-content.active {
  display: block;
  animation: asmFadeIn 0.3s ease;
}

@keyframes asmFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grids & Cards */
.asm-grid-2,
.asm-myacc-grid-3 {
  display: grid;
  gap: 20px;
}

.asm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.asm-myacc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
  margin-bottom: 0;
}

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

.asm-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

/* Compact Dashboard Stat Cards */
.asm-card-stat {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.asm-card-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.asm-card-gold {
  border-left: 4px solid var(--asm-gold);
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}
.asm-card-emerald {
  border-left: 4px solid var(--asm-emerald);
  background: linear-gradient(180deg, #fdfbe8 0%, #ffffff 100%);
}
.asm-card-purple {
  border-left: 4px solid var(--asm-rose);
  background: linear-gradient(180deg, #fcf5f5 0%, #ffffff 100%);
}

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

.asm-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.asm-stat-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asm-stat-hero-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--asm-dark-slate);
  margin: 0 0 6px 0;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-family: var(--asm-font-main);
}

.asm-stat-hero-val .asm-stat-unit,
.asm-stat-hero-val small {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-left: 2px;
}

.asm-stat-hero-val.asm-stat-locked {
  font-size: 17px;
  color: #b45309;
}

.asm-stat-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

.asm-mini-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.asm-mini-green {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.asm-mini-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.asm-mini-purple {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.asm-stat-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.asm-badge-gold {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}
.asm-badge-emerald,
.asm-badge-green {
  background: #f0f4e4;
  color: #3a471b;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}
.asm-badge-purple {
  background: #f7e8e8;
  color: #7a4646;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}

/* Buttons */
.asm-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}
.asm-btn-emerald {
  background: var(--asm-emerald);
  color: #ffffff;
}
.asm-btn-emerald:hover {
  background: var(--asm-emerald-dark);
}
.asm-btn-gold {
  background: var(--asm-gold);
  color: #ffffff;
}
.asm-btn-gold:hover {
  background: var(--asm-gold-dark);
}
.asm-btn-secondary {
  background: #e2e8f0;
  color: #334155;
}
.asm-btn-disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

/* WooCommerce My Account Summary Card */
.asm-myacc-summary-card {
  background: linear-gradient(135deg, #3d2f24 0%, #6c8038 60%, #4b5a26 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(108, 128, 56, 0.18);
}

.asm-myacc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.asm-myacc-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.asm-myacc-badge.platinum {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  color: #ffffff;
}
.asm-myacc-badge.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #451a03;
}

.asm-myacc-title {
  margin: 6px 0 0 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.asm-myacc-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.asm-stat-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.asm-stat-lbl {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}
.asm-stat-val {
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0;
  color: #fbbf24;
}

/* My Account Portal Hero */
.asm-portal-hero {
  background: linear-gradient(135deg, #3d2f24 0%, #6c8038 100%);
  padding: 30px;
  border-radius: 16px 16px 0 0;
  color: #ffffff;
}

.asm-tier-badge-large {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.asm-badge-icon {
  font-size: 44px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 14px;
}

.asm-tier-badge-large h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--asm-gold-bright);
}
.asm-tier-badge-large p {
  margin: 4px 0 0 0;
  color: #e2e8f0;
  font-size: 14px;
}

/* 90-Day Progress Bar */
.asm-progress-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.asm-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

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

.asm-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.asm-progress-sub {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.asm-hero-pills {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.asm-pill-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  flex: 1 1 200px;
  min-width: 180px;
}
.asm-pill-lbl {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}
.asm-pill-status.active {
  color: #34d399;
  font-weight: 800;
}
.asm-pill-status.used {
  color: #94a3b8;
}

/* Referral Box */
.asm-myacc-referral-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.asm-myacc-referral-box h4 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: var(--asm-emerald-dark);
  font-weight: 700;
}
.asm-myacc-referral-box p {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.asm-copy-group {
  display: flex;
  gap: 10px;
}
.asm-copy-group input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 14px;
  background: #f8fafc;
  color: #1e293b;
  transition: all 0.2s ease;
}
.asm-copy-group input:focus {
  background: #ffffff;
  border-color: var(--asm-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 147, 59, 0.15);
}

/* ==========================================================================
   HAP Money Conversion / Cash Withdrawal Card Styles (Modern Fintech)
   ========================================================================== */
.asm-hap-payout-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--asm-emerald);
  border-radius: 18px;
  padding: 28px;
  margin: 24px 0;
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Header Row & Info */
.asm-hap-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.asm-hap-header-info {
  flex: 1;
  min-width: 280px;
}

.asm-hap-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.asm-hap-badge-pill .asm-badge-icon {
  font-size: 13px;
}

.asm-hap-header-title {
  margin: 0 0 8px 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.asm-hap-header-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.asm-tax-compliance-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: #334155;
}

.asm-tax-compliance-tag strong {
  color: #0f172a;
}

/* Balance Widget */
.asm-hap-balance-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 16px;
  padding: 16px 22px;
  min-width: 220px;
  text-align: right;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.06);
}

.asm-balance-lbl {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #065f46;
  margin-bottom: 4px;
}

.asm-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: asmPulse 2s infinite;
}

@keyframes asmPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.asm-balance-val {
  font-size: 28px;
  font-weight: 800;
  color: #065f46;
  line-height: 1.2;
  font-family: var(--asm-font-main);
}

.asm-balance-meta {
  font-size: 11px;
  color: #047857;
  margin-top: 4px;
}

/* Form Container Card */
.asm-hap-form-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}

.asm-form-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.asm-form-intro-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.asm-form-intro h5 {
  margin: 0 0 2px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.asm-form-intro p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* Grid Layouts */
.asm-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.asm-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 850px) {
  .asm-form-grid-2,
  .asm-form-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Form Controls */
.asm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.asm-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.asm-min-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.asm-verified-badge {
  background: #f0fdf4;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.asm-tag-subtle {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.asm-form-input,
.asm-form-select {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s ease;
}

.asm-form-input:focus,
.asm-form-select:focus {
  outline: none;
  border-color: var(--asm-emerald);
  box-shadow: 0 0 0 3px rgba(108, 128, 56, 0.15);
  background: #ffffff;
}

.asm-input-currency-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.asm-currency-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
}

.asm-form-input.asm-has-currency {
  padding-left: 32px !important;
}

.asm-select-wrapper {
  position: relative;
}

.asm-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.asm-form-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* Real-Time Preview Card */
.asm-calc-preview-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.asm-calc-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.asm-calc-icon {
  font-size: 16px;
}

.asm-calc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #334155;
}

.asm-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .asm-calc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.asm-calc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.asm-calc-box-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.asm-calc-box-val {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--asm-font-main);
}

.asm-calc-box-deduct {
  background: #fff5f5;
  border-color: #fecaca;
}

.asm-calc-box-deduct .asm-calc-box-lbl {
  color: #991b1b;
}

.asm-calc-box-net {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.asm-calc-box-net .asm-calc-box-lbl {
  color: #047857;
}

.asm-text-danger {
  color: #dc2626 !important;
}

.asm-text-success {
  color: #059669 !important;
}

.asm-calc-footer-note {
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  line-height: 1.4;
}

/* Form Submit Row */
.asm-form-submit-row {
  margin-top: 16px;
}

.asm-btn-payout-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #4b5a26 0%, #6c8038 100%);
  color: #ffffff;
  border: none;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 128, 56, 0.25);
  transition: all 0.25s ease;
}

.asm-btn-payout-submit:hover {
  background: linear-gradient(135deg, #3d4a1f 0%, #57672d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 128, 56, 0.35);
}

.asm-btn-payout-submit:active {
  transform: translateY(0);
}

.asm-withdraw-msg-box {
  margin-top: 12px;
}

/* History Section */
.asm-hap-history-wrap {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.asm-history-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.asm-history-icon {
  font-size: 18px;
}

.asm-history-title-row h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.asm-table-responsive {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.asm-modern-payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  margin: 0;
}

.asm-modern-payout-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.asm-modern-payout-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.asm-modern-payout-table tr:hover td {
  background: #f8fafc;
}

.asm-modern-payout-table tr:last-child td {
  border-bottom: none;
}

.asm-claim-code {
  font-weight: 700;
  color: var(--asm-emerald-dark);
}

.asm-dest-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asm-method-tag {
  font-weight: 600;
  font-size: 12px;
  color: #0f172a;
}

.asm-acct-num {
  font-size: 11px;
  color: #64748b;
}

.asm-ref-code {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}

.asm-date-cell {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

/* Status Badges */
.asm-status-pill,
.asm-badge-olive {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.asm-status-approved,
.asm-badge-olive {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.asm-status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.asm-status-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Fallback / General form-row styling for public templates */
.asm-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.asm-form-row .asm-form-group {
  flex: 1;
}

@media (max-width: 768px) {
  .asm-form-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* Redeemable Grid */
.asm-redeem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 800px) {
  .asm-redeem-grid {
    grid-template-columns: 1fr;
  }
}

.asm-redeem-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.asm-redeem-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.asm-redeem-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asm-points-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(
    135deg,
    var(--asm-gold) 0%,
    var(--asm-gold-bright) 100%
  );
  color: #451a03;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.asm-redeem-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.asm-redeem-body h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--asm-emerald-dark);
}
.asm-redeem-body p {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  flex: 1;
}
.asm-redeem-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* Tabs inside My Account */
.asm-myacc-tabs {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  border-bottom: 2px solid #e2e8f0;
}
.asm-myacc-tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.asm-myacc-tab-btn.active {
  color: var(--asm-emerald);
  border-bottom-color: var(--asm-emerald);
}

.asm-myacc-tab-content {
  display: none;
  padding-top: 16px;
}
.asm-myacc-tab-content.active {
  display: block;
}

.asm-myacc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.asm-myacc-table th,
.asm-myacc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  text-align: left;
}
.asm-myacc-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

/* Modal */
.asm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asm-modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.asm-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.asm-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--asm-emerald-dark);
}
.asm-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}
.asm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ==========================================================================
   My Account - Dedicated Referrals & Downlines Cards (Modern Fintech Gap)
   ========================================================================== */
.asm-referrals-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px 28px;
  /* margin: 28px 0; */
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.asm-ref-quick-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.asm-stat-pill-sm {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.asm-stat-pill-sm .asm-pill-lbl {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.asm-empty-referrals-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  margin: 16px 0;
}

.asm-empty-ref-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.asm-empty-referrals-card h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
}

.asm-empty-referrals-card p {
  color: #64748b;
  font-size: 13.5px;
  max-width: 580px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* Grid with generous clean gap between referral cards */
.asm-referrals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.asm-referral-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.asm-referral-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.asm-referral-card.asm-ref-direct {
  border-left: 4px solid var(--asm-gold);
}

.asm-referral-card.asm-ref-downline {
  border-left: 4px solid #8b5cf6;
}

.asm-ref-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.asm-ref-user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asm-ref-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.asm-ref-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.asm-ref-date {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.asm-ref-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.asm-badge-level {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.asm-badge-tier {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.asm-badge-tier.gold {
  background: #fef3c7;
  color: #92400e;
}

.asm-badge-tier.platinum {
  background: #e0e7ff;
  color: #3730a3;
}

.asm-ref-card-body {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 6px 0 12px 0;
}

.asm-ref-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12.5px;
}

.asm-ref-status-row .asm-ref-lbl {
  color: #64748b;
  font-weight: 600;
}

.asm-pill-status-active {
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.asm-pill-status-pending {
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.asm-ref-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.asm-ref-stat-item {
  display: flex;
  flex-direction: column;
}

.asm-ref-stat-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.asm-ref-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.asm-ref-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748b;
  padding-top: 4px;
}

/* ==========================================================================
   Modern App Dashboard Layout for WooCommerce My Account
   ========================================================================== */
body.woocommerce-account .wp-block-post-content,
body.woocommerce-account .entry-content,
body.woocommerce-account main,
body.woocommerce-account .wp-site-blocks > main,
body.woocommerce-account .wp-block-group,
body.woocommerce-account .is-layout-constrained > *,
body.woocommerce-account .is-layout-constrained > :not(.alignleft):not(.alignright):not(.alignfull),
body.woocommerce-account :where(.wp-block-post-content) > *,
body.woocommerce-account :where(.entry-content) > * {
  max-width: 1360px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce {
  display: flex;
  gap: 28px;
  max-width: 1360px;
  width: 100%;
  margin: 30px auto;
  padding: 0 20px;
  align-items: flex-start;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
  }
}

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 290px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 30px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    position: static;
  }
}

/* Sidebar User Profile Header */
.asm-sidebar-user-card {
  padding: 16px;
  background: linear-gradient(135deg, #3d2f24 0%, #6c8038 60%, #4b5a26 100%);
  border-radius: 14px;
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(108, 128, 56, 0.2);
}

.asm-sidebar-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asm-sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asm-gold) 0%, var(--asm-gold-bright) 100%);
  color: var(--asm-emerald-dark);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.asm-sidebar-user-details {
  flex: 1;
  min-width: 0;
}

.asm-sidebar-user-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asm-sidebar-user-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fef08a;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.asm-sidebar-perk-badge {
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar Menu List */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #f8fafc;
  color: var(--asm-emerald-dark);
  transform: translateX(3px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: linear-gradient(135deg, #3d2f24 0%, #6c8038 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(108, 128, 56, 0.25);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
  padding-top: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #ef4444;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
  width: auto;
  float: none;
}

.woocommerce-account .asm-myacc-portal-wrapper {
  margin: 0;
  max-width: 100%;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.woocommerce-account .asm-portal-hero {
  border-radius: 0;
}

/* ==========================================================================
   Portal Sub-Tabs Integrated Navigation Bar
   ========================================================================== */
.asm-portal-nav-tabs {
  display: flex;
  gap: 4px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 8px;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.asm-portal-nav-tabs::-webkit-scrollbar {
  display: none;
}

.asm-portal-tab-btn {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: inherit;
  flex: 1;
  min-width: 0;
}

.asm-portal-tab-btn:hover {
  background: #e2e8f0;
  color: var(--asm-emerald-dark);
}

.asm-portal-tab-btn.active {
  background: linear-gradient(135deg, #3d2f24 0%, #6c8038 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(108, 128, 56, 0.25);
}

.asm-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 800;
}
.asm-portal-tab-btn:not(.active) .asm-tab-count {
  background: #e2e8f0;
  color: #475569;
}

.asm-tab-badge-avail {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 800;
}
.asm-portal-tab-btn:not(.active) .asm-tab-badge-avail {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.asm-portal-tab-panes-wrapper {
  padding: 24px;
  width: 100%;
  box-sizing: border-box;
}

.asm-portal-tab-pane {
  display: none;
}

.asm-portal-tab-pane.active {
  display: block;
  animation: asmFadeIn 0.25s ease;
}

/* Overview Shortcuts Grid */
.asm-overview-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .asm-overview-shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

.asm-shortcut-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.asm-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.asm-shortcut-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asm-shortcut-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.asm-shortcut-header h5 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.asm-shortcut-header p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

.asm-btn-text-link {
  background: none;
  border: none;
  color: var(--asm-emerald);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0 0 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.asm-btn-text-link:hover {
  color: var(--asm-emerald-dark);
  text-decoration: underline;
}
