/*
 * MPD My Account — Brand Stylesheet
 * Enqueued via functions.php on all my-account pages.
 * Place at: /wp-content/themes/YOUR-CHILD-THEME/mpd-my-account.css
 *
 * Brand tokens:
 *   Navy  #363D51  Teal  #266C8B  Teal-d  #1a5470
 *   Gold  #FAC462  Cream #F8EBD1  Coral   #EC6F6C
 *   Teal-xl #F0F8F7  Teal-ll #CEE6DF  Teal-l #CADFDF
 *   G0 #F5F7FA  G1 #E5E5E3  G2 #DDE0E8  G4 #97AFBB  G6 #4A5568
 */

/* ── reset within our scope ─────────────────────────────────── */

.mpd-account-hero-wrapper{
  display: flex;
    align-items: center;
    gap: 22px;
    max-width: 940px;
    width: 940px;
    margin: 0 auto;
}

.avada-woocommerce-myaccount-heading{
  display: none;;
}

#main{
  padding:0 !important;
}

#main .fusion-row{
  width:100%;
}

.post-content .fusion-fullwidth > .fusion-builder-row{
  max-width:100% !important;
  margin:0 !important;
}

.post-content .fusion-fullwidth > .fusion-builder-row > .fusion-layout-column .fusion-column-wrapper{
  margin:0 !important;
} 

.mpd-account-wrap *,
.mpd-login-wrap * {
  box-sizing: border-box;
}

/* ── page background ─────────────────────────────────────────── */
.mpd-account-page{
  background: #F5F7FA;
  min-height: calc(100vh - 200px);
}

.mpd-login-page{
  max-width: 940px;
  margin:30px auto;
}

/* ══════════════════════════════════════════════════════════════
   LOGGED-OUT: LOGIN / REGISTER
══════════════════════════════════════════════════════════════ */
.mpd-login-wrap {
  display: flex;
  min-height: 560px;
}

/* left panel */
.mpd-login-left {
  flex: 1;
  background: linear-gradient(135deg, #363D51 0%, #1a5470 100%);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mpd-login-left h2 {
  font-family: 'Lora', serif !important;
  font-weight: 700 !important;
  color: #fff !important; 
  font-size: 30px !important;
  line-height: 1.25 !important;
  margin: 0 0 14px !important;
}
.mpd-login-left h2 em {
  color: #FAC462;
  font-style: italic;
}
.mpd-login-left p {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 26px;
  max-width: 340px;
}
.mpd-login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mpd-login-feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FAC462;
  flex-shrink: 0;
}
.mpd-login-feature span {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 600;
}

/* right panel */
.mpd-login-right {
  width: 400px;
  padding: 44px 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mpd-login-right h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #363D51;
  font-size: 22px;
  margin: 0 0 4px;
}
.mpd-login-right-sub {
  color: #97AFBB;
  font-size: 13px;
  margin: 0 0 22px;
}

/* tabs */
.mpd-login-tabs {
  display: flex;
  background: #F5F7FA;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 22px;
  border: 1px solid #E5E5E3;
}
.mpd-login-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #97AFBB;
  transition: all .15s;
  text-decoration: none;
}
.mpd-login-tab.active,
.mpd-login-tab:hover {
  background: #fff;
  color: #363D51;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
}

/* form fields */
.mpd-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
}
.mpd-field label {
  font-weight: 800;
  color: #363D51;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mpd-field input[type="text"],
.mpd-field input[type="email"],
.mpd-field input[type="password"],
.mpd-field input[type="tel"] {
  border: 1.5px solid #DDE0E8;
  border-radius: 10px;
  color: #363D51;
  background: #fff;
  outline: none;
  appearance: none;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  transition: border-color .2s;
}
.mpd-field input:focus {
  border-color: #266C8B;
}
.mpd-field-hint {
  font-size: 10px;
  color: #97AFBB;
  font-weight: 500;
}
.mpd-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 13px;
}
.mpd-forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #266C8B;
  font-weight: 600;
  text-decoration: none;
  margin: -6px 0 14px;
}
.mpd-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #4A5568;
  font-weight: 500;
}
.mpd-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #266C8B;
}
.mpd-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #266C8B, #1a5470);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 5px 16px rgba(38,108,139,.28);
  transition: opacity .2s;
}
.mpd-login-btn:hover { opacity: .9; }
.mpd-terms-note {
  font-size: 11px;
  color: #97AFBB;
  text-align: center;
  margin-top: 13px;
  line-height: 1.7;
}
.mpd-terms-note a { color: #266C8B; }

/* ══════════════════════════════════════════════════════════════
   LOGGED-IN: ACCOUNT HERO
══════════════════════════════════════════════════════════════ */
.mpd-account-hero {
  background: linear-gradient(135deg, #363D51 0%, #1a5470 100%);
  padding: 36px 40px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.mpd-account-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #CEE6DF;
  border: 3px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #1a5470;
  font-size: 22px;
  flex-shrink: 0;
}
.mpd-account-hero-txt h1 {
  font-family: 'Lora', serif !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-size: 26px !important;
  margin: 0 0 5px !important;
}
.mpd-account-hero-txt p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 10px;
}
.mpd-account-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250,196,98,.18);
  border: 1px solid rgba(250,196,98,.38);
  border-radius: 20px;
  color: #FAC462;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 13px;
}

/* ══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════════════ */
.mpd-dash-page {
  background: #F5F7FA;
  padding: 28px 40px 48px;
}
.mpd-dash-inner {
  max-width: 940px;
  margin: 0 auto;
}
.mpd-dash-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: start;
}

/* sidebar */
.mpd-sidebar {
  background: #fff;
  border: 1px solid #E5E5E3;
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.mpd-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mpd-sidebar-nav li a,
.mpd-sidebar-nav li span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  text-decoration: none;
  border-bottom: 1px solid #E5E5E3;
  transition: all .15s;
  cursor: pointer;
}
.mpd-sidebar-nav li:last-child a,
.mpd-sidebar-nav li:last-child span {
  border-bottom: none;
}
.mpd-sidebar-nav li a:hover,
.mpd-sidebar-nav li span:hover {
  background: #F0F8F7;
  color: #266C8B;
}
.mpd-sidebar-nav li.is-active a,
.mpd-sidebar-nav li.is-active span {
  background: #F0F8F7;
  color: #266C8B;
  font-weight: 700;
  border-left: 3px solid #266C8B;
}
.mpd-sidebar-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .55 !important;
  padding:0 !important;
  border:0 !important;
}
.mpd-sidebar-nav li.is-active .mpd-sidebar-icon {
  opacity: 1 !important;
}
.mpd-sidebar-nav li.is-logout a {
  color: #EC6F6C;
}

/* dashboard content */
.mpd-dash-content {
  display: flex;
  flex-direction: column;
  gap:10px;
}

/* ── stat cards ── */
.mpd-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.mpd-stat-card {
  background: #fff;
  border: 1px solid #E5E5E3;
  border-radius: 13px;
  padding: 17px 18px;
}
.mpd-stat-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #F0F8F7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
}
.mpd-stat-card-icon svg {
  width: 15px;
  height: 15px;
}
.mpd-stat-card-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #97AFBB;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.mpd-stat-card-val {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #363D51;
  font-size: 22px;
  line-height: 1.1;
}
.mpd-stat-card-sub {
  font-size: 11px;
  color: #97AFBB;
  font-weight: 500;
  margin-top: 4px;
}

/* ── info card (generic bordered card) ── */
.mpd-info-card {
  background: #fff;
  border: 1px solid #E5E5E3;
  border-radius: 14px;
  overflow: hidden;
}
.mpd-info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #E5E5E3;
}
.mpd-info-card-hl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mpd-info-card-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #F0F8F7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mpd-info-card-ico svg {
  width: 14px;
  height: 14px;
}
.mpd-info-card-head h2,
.mpd-info-card-head h3 {
  font-family: 'Lora', serif !important;
  font-weight: 700 !important;
  color: #363D51 !important;
  font-size: 15px !important;
  margin: 0 !important;
}
.mpd-info-card-body {
  padding: 18px 20px;
}
.mpd-edit-btn {
  font-size: 11px;
  font-weight: 700;
  color: #266C8B;
  background: #F0F8F7;
  border: 1px solid #CADFDF;
  border-radius: 20px;
  padding: 4px 13px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all .15s;
}
.mpd-edit-btn:hover {
  background: #266C8B;
  color: #fff;
}

/* ── member card ── */
.mpd-member-card {
  background: linear-gradient(135deg, #1e3a4a 0%, #266C8B 50%, #1a5470 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 24px 26px;
}
.mpd-member-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.mpd-member-card::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.mpd-mc-cross {
  position: absolute;
  right: 0; bottom: 0;
  opacity: .07;
  font-size: 100px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  font-family: 'Lora', serif;
}
.mpd-mc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.mpd-mc-logo {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.mpd-mc-logo-sub {
  color: rgba(255,255,255,.6);
  font-weight: 600;
  font-size: 10px;
  margin-top: 3px;
}
.mpd-mc-plan-badge {
  background: #FAC462;
  color: #363D51;
  font-weight: 800;
  border-radius: 20px;
  font-size: 9px;
  padding: 3px 11px;
}
.mpd-mc-holder-lbl {
  color: rgba(255,255,255,.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 8px;
  position: relative;
  z-index: 1;
}
.mpd-mc-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #fff;
  font-size: 22px;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}
.mpd-mc-id {
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: .1em;
  font-size: 10px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.mpd-mc-child {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border-radius: 9px;
  padding: 10px 14px;
  margin: 14px 0 18px;
  position: relative;
  z-index: 1;
}
.mpd-mc-child-ico { font-size: 16px; flex-shrink: 0; }
.mpd-mc-child-lbl {
  color: rgba(255,255,255,.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 8px;
}
.mpd-mc-child-name {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  margin-top: 2px;
}
.mpd-mc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.mpd-mc-field-lbl {
  color: rgba(255,255,255,.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 8px;
}
.mpd-mc-field-val {
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}

/* ── quick actions ── */
.mpd-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.mpd-quick-card {
  background: #fff;
  border: 1px solid #E5E5E3;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all .18s;
}
.mpd-quick-card:hover {
  border-color: #CADFDF;
  background: #F0F8F7;
}
.mpd-quick-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F0F8F7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  font-size: 18px;
}
.mpd-quick-title {
  font-weight: 800;
  color: #363D51;
  font-size: 13px;
}
.mpd-quick-sub {
  color: #97AFBB;
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}

/* ── subscription row ── */
.mpd-sub-row {
  background: #F0F8F7;
  border: 1px solid #CADFDF;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.mpd-sub-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #363D51;
  font-size: 16px;
}
.mpd-sub-sub {
  color: #266C8B;
  font-weight: 600;
  font-size: 12px;
  margin-top: 3px;
}
.mpd-sub-price {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #363D51;
  font-size: 24px;
  line-height: 1;
  text-align: right;
}
.mpd-sub-price-sub {
  color: #97AFBB;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  margin-top: 3px;
}
.mpd-sub-actions {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.mpd-sub-btn {
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: opacity .15s;
}
.mpd-sub-btn:hover { opacity: .85; }
.mpd-sub-btn.manage { background: #266C8B; border-color: #266C8B; color: #fff; }
.mpd-sub-btn.cancel { background: #fff; border-color: #EC6F6C; color: #EC6F6C; }

/* upgrade card */
.mpd-upgrade-card {
  background: #F0F8F7;
  border: 1px solid #CADFDF;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.mpd-upgrade-card h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #363D51;
  font-size: 16px;
  margin: 10px 0 7px;
}
.mpd-upgrade-card p {
  color: #4A5568;
  font-size: 13px;
  max-width: 320px;
  margin: 0 auto 18px;
  line-height: 1.65;
}

/* ── orders table ── */
.mpd-orders-table {
  width: 100%;
  border-collapse: collapse;
}
.mpd-orders-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  color: #97AFBB;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-bottom: 1px solid #E5E5E3;
  background: #F5F7FA;
}
.mpd-orders-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #E5E5E3;
  color: #4A5568;
  vertical-align: middle;
}
.mpd-orders-table tr:last-child td { border-bottom: none; }
.mpd-orders-table td strong { color: #363D51; }
.mpd-order-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
}
.mpd-order-badge.active    { background: #CEE6DF; color: #266C8B; }
.mpd-order-badge.completed { background: #dcfce7; color: #15803d; }
.mpd-order-badge.pending   { background: #fef9c3; color: #a16207; }
.mpd-order-badge.cancelled { background: #fee2e2; color: #b91c1c; }
.mpd-order-link {
  color: #266C8B;
  font-weight: 700;
  text-decoration: none;
  font-size: 12px;
}
.mpd-order-link:hover { text-decoration: underline; }

/* ── form fields (account details) ── */
.mpd-account-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
}
.mpd-account-field label {
  font-weight: 800;
  color: #363D51;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mpd-account-field input[type="text"],
.mpd-account-field input[type="email"],
.mpd-account-field input[type="password"],
.mpd-account-field input[type="tel"] {
  border: 1.5px solid #DDE0E8;
  border-radius: 10px;
  color: #363D51;
  background: #fff;
  outline: none;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  height: 42px;
  padding: 0 13px;
  font-size: 13px;
  transition: border-color .2s;
}
.mpd-account-field input:focus { border-color: #266C8B; }
.mpd-account-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 13px;
}
.mpd-account-divider {
  height: 1px;
  background: #E5E5E3;
  margin: 16px 0;
}
.mpd-account-section-lbl {
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #97AFBB;
  font-size: 10px;
  border-bottom: 1px solid #E5E5E3;
  padding-bottom: 7px;
  margin-bottom: 14px;
}
.mpd-btn-primary {
  background: linear-gradient(135deg, #266C8B, #1a5470);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  height: 44px;
  padding: 0 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(38,108,139,.25);
  transition: opacity .2s;
}
.mpd-btn-primary:hover { opacity: .9; }

/* info rows (read-only data) */
.mpd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #E5E5E3;
  font-size: 13px;
}
.mpd-info-row:last-child { border-bottom: none; }
.mpd-info-row-lbl { color: #97AFBB; font-weight: 500; }
.mpd-info-row-val { font-weight: 700; color: #363D51; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mpd-dash-page { padding: 20px 20px 40px; }
  .mpd-dash-grid { grid-template-columns: 1fr; }
  .mpd-sidebar { position: static; }
  .mpd-sidebar-nav { display: flex; overflow-x: auto; }
  .mpd-sidebar-nav li { flex-shrink: 0; }
  .mpd-sidebar-nav li a,
  .mpd-sidebar-nav li span {
    border-bottom: none;
    border-right: 1px solid #E5E5E3;
    white-space: nowrap;
    padding: 11px 14px;
    font-size: 12px;
  }
  .mpd-sidebar-nav li.is-active a,
  .mpd-sidebar-nav li.is-active span {
    border-left: none;
    border-bottom: 3px solid #266C8B;
    background: #F0F8F7;
  }
  .mpd-stat-row { grid-template-columns: 1fr 1fr; }
  .mpd-account-field-row { grid-template-columns: 1fr; }
  .mpd-account-hero { padding: 24px 20px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .mpd-account-hero-txt h1 { font-size: 22px; }
}

@media (max-width: 640px) {
  .mpd-login-wrap { flex-direction: column; }
  .mpd-login-left { padding: 30px 22px 24px; }
  .mpd-login-left h2 { font-size: 22px; }
  .mpd-login-right { width: 100%; padding: 24px 20px 32px; }
  .mpd-stat-row { grid-template-columns: 1fr; }
  .mpd-quick-grid { grid-template-columns: 1fr; }
  .mpd-sub-row { flex-direction: column; align-items: flex-start; }
  .mpd-orders-table th:nth-child(4),
  .mpd-orders-table td:nth-child(4) { display: none; }
  .mpd-field-row { grid-template-columns: 1fr; }
  .mpd-mc-name { font-size: 18px; }
  .mpd-dash-page { padding: 14px 12px 36px; }
}


/* ══════════════════════════════════════════════════════════════
   PAYMENT METHODS PAGE
══════════════════════════════════════════════════════════════ */

/* current card display */
.mpd-payment-current {
  margin-bottom: 24px;
}
.mpd-payment-current-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #F0F8F7, #fff);
  border: 1px solid #CADFDF;
  border-radius: 13px;
  padding: 20px 22px;
  margin-bottom: 12px;
}

/* mini card graphic */
.mpd-mini-card {
  width: 180px;
  height: 108px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a4a 0%, #266C8B 60%, #1a5470 100%);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(38,108,139,.35);
}
.mpd-mini-card-shine {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.mpd-mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.mpd-mini-card-chip {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: #FAC462;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 3px 4px;
}
.mpd-chip-line {
  height: 2px;
  background: rgba(54,61,81,.35);
  border-radius: 1px;
}
.mpd-mini-card-brand {
  font-weight: 800;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}
.mpd-mini-card-number {
  color: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.mpd-mini-card-bot {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.mpd-mini-card-lbl {
  color: rgba(255,255,255,.5);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.mpd-mini-card-val {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* card info row */
.mpd-payment-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mpd-payment-card-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #DDE0E8;
  border-radius: 5px;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 9px;
  width: fit-content;
  color: #363D51;
}
.mpd-payment-card-mask {
  font-size: 14px;
  font-weight: 700;
  color: #363D51;
  letter-spacing: .06em;
  display: block;
}
.mpd-payment-card-exp {
  font-size: 12px;
  color: #97AFBB;
  font-weight: 500;
  display: block;
}
.mpd-payment-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #CEE6DF;
  color: #266C8B;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  width: fit-content;
}
.mpd-payment-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #266C8B;
  flex-shrink: 0;
}
.mpd-payment-note {
  font-size: 12px;
  color: #97AFBB;
  line-height: 1.65;
  font-weight: 500;
}

/* divider */
.mpd-payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.mpd-payment-divider::before,
.mpd-payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E5E3;
}
.mpd-payment-divider span {
  font-size: 11px;
  font-weight: 700;
  color: #97AFBB;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* empty state */
.mpd-payment-empty {
  text-align: center;
  padding: 28px;
  border: 1.5px dashed #DDE0E8;
  border-radius: 13px;
  margin-bottom: 24px;
}
.mpd-payment-empty svg {
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.mpd-payment-empty p {
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #363D51;
  font-size: 15px;
  margin-bottom: 5px;
}
.mpd-payment-empty-sub {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 500 !important;
  color: #97AFBB !important;
  font-size: 13px !important;
}

/* card form inputs with icon */
.mpd-payment-form {
  max-width: 540px;
}
.mpd-card-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mpd-cf-ico {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  flex-shrink: 0;
}
.mpd-card-input {
  border: 1.5px solid #DDE0E8;
  border-radius: 10px;
  color: #363D51;
  background: #fff;
  outline: none;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  height: 46px;
  padding: 0 14px 0 40px;
  font-size: 14px;
  transition: border-color .2s;
}
.mpd-card-input:focus {
  border-color: #266C8B;
  box-shadow: 0 0 0 3px rgba(38,108,139,.1);
}
.mpd-card-input::placeholder {
  color: #B6B8B6;
}
.mpd-card-brands {
  position: absolute;
  right: 12px;
  display: flex;
  gap: 4px;
}
.mpd-cb {
  font-weight: 800;
  font-size: 8px;
  border: 1px solid #DDE0E8;
  border-radius: 3px;
  padding: 2px 5px;
  background: #fff;
}
.mpd-cb.vi { color: #1a1f71; }
.mpd-cb.mc { color: #eb001b; }
.mpd-cb.ax { color: #2e77bc; }

/* submit row */
.mpd-payment-submit-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.mpd-payment-submit {
  min-width: 160px;
}
.mpd-payment-secure-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #97AFBB;
}
.mpd-payment-secure-note svg {
  flex-shrink: 0;
}

/* responsive */
@media (max-width: 640px) {
  .mpd-payment-current-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mpd-mini-card {
    width: 100%;
    height: 120px;
  }
  .mpd-payment-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .mpd-payment-submit {
    width: 100%;
    justify-content: center;
  }
}
