/* MS CATVIndia account/checkout stable cleanup v2.8.12 */
.ms-stable-page,.ms-account-page{max-width:1180px;margin:0 auto;padding:24px 15px;color:#111827}.ms-account-page a{color:var(--color-primary,#10b981)}.ms-account-page h1{font-size:28px;line-height:1.25;margin:0 0 20px;font-weight:700}.ms-account-page h2{font-size:20px;margin:0 0 14px;font-weight:700}.ms-account-page fieldset{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;margin:0 0 20px}.ms-account-page legend{font-size:17px;font-weight:700;border:0;width:auto;margin:0 0 14px;padding:0 6px}.ms-account-page nav,.ms-account-page .breadcrumb{background:transparent;margin:0 0 18px;padding:0}.ms-account-page nav ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}.ms-account-page #content,.ms-content{min-width:0;width:100%}.ms-account-page .form-group{margin-bottom:16px}.ms-account-page label,.ms-account-page .control-label{font-weight:600;color:#374151;margin-bottom:6px}.ms-account-page .form-control,.ms-input{height:42px;border:1px solid #d1d5db;border-radius:10px;padding:8px 12px;box-shadow:none;background:#fff;color:#111827;width:100%;max-width:100%}.ms-account-page textarea.form-control,.ms-account-page textarea.ms-input{height:auto;min-height:90px}.ms-account-page .form-control:focus,.ms-input:focus{border-color:var(--color-primary,#10b981);box-shadow:0 0 0 3px rgba(16,185,129,.12);outline:0}.ms-account-page .text-danger,.ms-account-page .help-block{font-size:13px;margin-top:5px}.ms-account-page .btn,.ms-checkout-stable .btn{border-radius:10px;font-weight:700;padding:9px 16px;border:0;text-decoration:none;display:inline-block}.ms-account-page .btn-primary,.ms-checkout-stable .btn-primary{background:var(--color-primary,#10b981);color:#fff}.ms-account-page .btn-default,.ms-checkout-stable .btn-default{background:#f3f4f6;color:#111827}.ms-account-page .alert{border-radius:12px;padding:12px 14px}.ms-account-page .buttons{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px}.ms-account-page table{background:#fff;border-radius:12px;overflow:hidden}.ms-account-page .table-responsive{border:1px solid #e5e7eb;border-radius:12px;background:#fff}.ms-account-page .radio label,.ms-account-page .checkbox label{display:flex;align-items:center;gap:8px;font-weight:500}.ms-check{width:16px;height:16px;margin:0 6px 0 0;vertical-align:middle}.ms-account-page .fa{margin-right:5px}.ms-account-page .btn-google{display:flex;align-items:center;justify-content:center;gap:10px;background:#fbbc05;color:#374151;border:1px solid #e5e7eb;border-radius:12px;padding:12px 16px;width:100%;max-width:320px;margin:18px auto 0;text-decoration:none}.ms-account-page .btn-google img{width:22px;height:22px}.ms-checkout-stable,.checkout-checkout #accordion .panel-body{color:#111827}.ms-checkout-stable fieldset,.checkout-checkout #collapse-payment-address fieldset,.checkout-checkout #collapse-shipping-address form{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;margin-bottom:18px}.ms-checkout-stable legend,.checkout-checkout legend{font-size:18px;font-weight:700;border-bottom:1px solid #eef2f7;padding-bottom:10px;margin-bottom:16px}.checkout-checkout .form-control,.ms-checkout-stable .form-control{border-radius:10px;min-height:42px;border-color:#d1d5db;box-shadow:none;width:100%}.checkout-checkout .form-control:focus,.ms-checkout-stable .form-control:focus{border-color:var(--color-primary,#10b981);box-shadow:0 0 0 3px rgba(16,185,129,.12)}.ms-checkout-stable .form-group{margin-bottom:14px}.ms-checkout-stable label{font-weight:600;color:#374151;margin-bottom:6px}.ms-checkout-stable .radio label,.ms-checkout-stable .checkbox label{display:flex;align-items:center;gap:8px;font-weight:500}.ms-checkout-stable .ms-check{width:16px;height:16px;margin:0 6px 0 0;vertical-align:middle}@media(max-width:767px){.ms-stable-page,.ms-account-page{padding:16px 10px}.ms-account-page fieldset,.ms-checkout-stable fieldset{padding:14px;border-radius:12px}.ms-account-page h1{font-size:23px}.ms-account-page .buttons{flex-direction:column-reverse;align-items:stretch}.ms-account-page .buttons .btn{width:100%}.ms-account-page .table-responsive{font-size:13px}.ms-account-page .form-control,.ms-input{height:40px}}




.ms-account-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.ms-account-main {
  flex: 1 1 auto;
  min-width: 0;
}

.ms-column-right {
  flex: 0 0 290px;
  max-width: 290px;
}

.ms-account-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ms-account-sidebar-list {
  display: flex;
  flex-direction: column;
}

.ms-account-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #eef2f7;
}

.ms-account-sidebar-link:hover {
  background: #f8fafc;
  color: var(--color-primary, #0ea5e9);
  text-decoration: none;
}

.ms-account-sidebar-link i {
  width: 20px;
  text-align: center;
  color: var(--color-primary, #0ea5e9);
}

.ms-account-sidebar-logout i {
  color: #ef4444;
}

@media (max-width: 767px) {
  .ms-account-layout {
    display: block;
  }

  .ms-column-right {
    max-width: 100%;
    margin-top: 18px;
  }
}






/* ===== MS Affiliate Dashboard Modern Light UI v1.2 ===== */

#account-affiliate.ms-affiliate-form-page {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  border-radius: 22px;
}

#account-affiliate .ms-account-layout {
  align-items: flex-start;
  gap: 24px;
}

#account-affiliate .ms-account-main {
  max-width: 100%;
}

/* Hero */
#account-affiliate .ms-affiliate-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f7fcff 100%);
  border: 1px solid #e6eef8;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

#account-affiliate .ms-affiliate-hero .ms-account-avatar {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e0f7ff, #f0fbff);
  color: var(--color-primary, #38bdf8);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.18);
}

#account-affiliate .ms-affiliate-hero h1 {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

#account-affiliate .ms-affiliate-hero p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Action buttons */
#account-affiliate .ms-affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

#account-affiliate .ms-affiliate-actions .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#account-affiliate .ms-affiliate-actions .ms-btn-primary {
  background: var(--color-primary, #38bdf8);
  color: #fff;
}

#account-affiliate .ms-affiliate-actions .ms-btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

#account-affiliate .ms-affiliate-actions .ms-btn-light {
  background: #ffffff;
  border-color: #dbe7f3;
  color: #334155;
}

#account-affiliate .ms-affiliate-actions .ms-btn-light:hover {
  background: #f8fbff;
  color: #0f172a;
  text-decoration: none;
}

/* Tracking code */
#account-affiliate .ms-affiliate-code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 13px 15px;
  background: #ffffff;
  border: 1px dashed #b8dff3;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

#account-affiliate .ms-affiliate-code-box strong {
  color: #0f172a;
  font-size: 13px;
}

#account-affiliate .ms-affiliate-code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 7px 11px;
  background: #f1faff;
  border: 1px solid #d7effb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0369a1;
}

/* Stats */
#account-affiliate .ms-affiliate-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

#account-affiliate .ms-affiliate-stat {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5eef8;
  border-radius: 20px;
  padding: 18px 16px;
  min-height: 105px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

#account-affiliate .ms-affiliate-stat::before {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
}

#account-affiliate .ms-affiliate-stat strong {
  position: relative;
  display: block;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}

#account-affiliate .ms-affiliate-stat span {
  position: relative;
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Cards */
#account-affiliate .ms-account-card {
  background: #ffffff;
  border: 1px solid #e5eef8;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#account-affiliate .ms-account-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3fa;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

#account-affiliate .ms-account-card h2 i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 12px;
  background: #effaff;
  color: var(--color-primary, #38bdf8);
}

/* Summary line */
#account-affiliate .ms-affiliate-summary-line {
  margin: 0 0 14px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid #dceefe;
  border-radius: 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

/* Tables */
#account-affiliate .table-responsive {
  border: 1px solid #edf3fa !important;
  border-radius: 16px !important;
  overflow: auto;
  background: #ffffff;
}

#account-affiliate table.table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

#account-affiliate table.table thead th {
  background: #f8fbff !important;
  color: #475569 !important;
  font-size: 12px;
  font-weight: 900;
  border: 0 !important;
  border-bottom: 1px solid #e8eff8 !important;
  padding: 13px 12px !important;
  white-space: nowrap;
}

#account-affiliate table.table tbody td {
  padding: 13px 12px !important;
  font-size: 13px;
  color: #334155;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid #f0f4f8 !important;
}

#account-affiliate table.table tbody tr:last-child td {
  border-bottom: 0 !important;
}

#account-affiliate table.table tbody tr:hover td {
  background: #fbfdff;
}

/* Empty row */
#account-affiliate table.table tbody td.text-center,
#account-affiliate .ms-affiliate-empty {
  padding: 22px 14px !important;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
}

/* Status badges */
#account-affiliate .ms-affiliate-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

#account-affiliate .ms-affiliate-status-badge.is-approved {
  background: #ecfdf5;
  color: #15803d;
}

#account-affiliate .ms-affiliate-status-badge.is-returned {
  background: #fff1f2;
  color: #e11d48;
}

/* Sidebar modern match */
#account-affiliate .ms-account-sidebar-card {
  border-radius: 20px;
  border-color: #e5eef8;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#account-affiliate .ms-account-sidebar-link {
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 800;
}

#account-affiliate .ms-account-sidebar-link:hover {
  background: #f8fbff;
}

/* Responsive */
@media (max-width: 991px) {
  #account-affiliate .ms-affiliate-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #account-affiliate .ms-account-layout {
    display: block;
  }

  #account-affiliate .ms-column-right {
    max-width: 100%;
    margin-top: 18px;
  }

  #account-affiliate .ms-affiliate-hero {
    padding: 18px;
    border-radius: 18px;
  }

  #account-affiliate .ms-affiliate-hero h1 {
    font-size: 22px;
  }

  #account-affiliate .ms-affiliate-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #account-affiliate .ms-affiliate-stats {
    grid-template-columns: 1fr;
  }

  #account-affiliate .ms-affiliate-stat {
    min-height: auto;
  }

  #account-affiliate .ms-account-card {
    padding: 14px;
    border-radius: 18px;
  }

  #account-affiliate table.table thead th,
  #account-affiliate table.table tbody td {
    font-size: 12px;
    padding: 10px 9px !important;
  }
}











/* Account Transaction Page */
.ms-account-transaction-page .ms-account-card {
  background: #fff;
  border: 1px solid #e5eef8;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ms-account-transaction-page .ms-account-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf3fa;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.ms-account-transaction-page .ms-account-card h2 i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 12px;
  background: #effaff;
  color: var(--color-primary, #38bdf8);
}

.ms-account-transaction-page .ms-table-wrap {
  border: 1px solid #edf3fa;
  border-radius: 16px;
  overflow: auto;
  background: #fff;
}

.ms-account-transaction-page .ms-account-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.ms-account-transaction-page .ms-account-table thead th {
  background: #f8fbff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  border: 0;
  border-bottom: 1px solid #e8eff8;
  padding: 13px 12px;
  white-space: nowrap;
}

.ms-account-transaction-page .ms-account-table tbody td {
  padding: 13px 12px;
  font-size: 13px;
  color: #334155;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid #f0f4f8;
}

.ms-account-transaction-page .ms-account-table tbody tr:last-child td {
  border-bottom: 0;
}

.ms-account-transaction-page .ms-account-table tbody tr:hover td {
  background: #fbfdff;
}

.ms-account-transaction-page .ms-empty-row {
  padding: 26px 14px !important;
  color: #94a3b8;
  font-weight: 700;
}

.ms-account-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ms-pagination-results {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.ms-account-transaction-page .ms-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .ms-account-pagination {
    display: block;
  }

  .ms-pagination-results {
    margin-top: 10px;
    text-align: left;
  }

  .ms-account-transaction-page .ms-form-actions {
    display: block;
  }

  .ms-account-transaction-page .ms-form-actions .ms-btn {
    width: 100%;
    text-align: center;
  }
}