/* =========================================================
   Marginbaba — light modern account pages
   ========================================================= */
.mb-account-page{
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(54,101,243,.08), transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(16,185,129,.06), transparent 50%),
    #f6f7fb;
  padding: 40px 14px 64px;
  min-height: 58vh;
}

.mb-account-wrap{
  max-width: 720px;
  margin: 0 auto;
}

.mb-account-card,
.mb-account-dashboard{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.8) inset,
    0 20px 50px rgba(15,23,42,.06);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}

/* ----- Sign in / Register heads ----- */
.mb-account-head{
  text-align: center;
  margin-bottom: 24px;
}
.mb-account-kicker{
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(54,101,243,.08);
  color: #3665f3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mb-account-head h1,
.mb-account-summary h1{
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}
.mb-account-head p,
.mb-account-summary p{
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
}

/* ----- Forms ----- */
.mb-account-form{ display: grid; gap: 12px; }
.mb-account-form label{
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}
.mb-account-form input[type="text"],
.mb-account-form input[type="email"],
.mb-account-form input[type="password"]{
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mb-account-form input:focus{
  border-color: #3665f3;
  box-shadow: 0 0 0 4px rgba(54,101,243,.12);
}

.mb-account-row,
.mb-account-actions,
.mb-account-footer-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mb-account-row{ margin: 2px 0 4px; }
.mb-account-row a,
.mb-account-switch a{ color: #3665f3; text-decoration: none; font-weight: 700; }
.mb-account-row a:hover,
.mb-account-switch a:hover{ text-decoration: underline; }
.mb-account-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}
.mb-account-check input{ width: 16px; height: 16px; accent-color: #3665f3; }

.mb-account-btn{
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff !important;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.mb-account-form .mb-account-btn{ width: 100%; margin-top: 6px; }
.mb-account-btn:hover,
.mb-account-btn:focus{
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,23,42,.15);
  text-decoration: none;
}
.mb-account-btn.is-light{
  background: #fff;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}
.mb-account-btn.is-light:hover{
  background: #f8fafc;
  box-shadow: none;
}

.mb-account-switch{
  margin-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.mb-account-help{
  margin: -4px 0 0;
  color: #94a3b8;
  font-size: 12px;
}
.mb-account-notice{
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.mb-account-notice.is-error{
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}
.mb-account-notice.is-success{
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

/* =========================================================
   Dashboard — light & modern
   ========================================================= */
.mb-account-dashboard{
  padding: 28px 24px 24px;
}

.mb-account-summary{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f1f5f9;
}

.mb-account-avatar{
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, #3665f3 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 12px 28px rgba(54,101,243,.28);
}

.mb-account-summary-text{ min-width: 0; }
.mb-account-summary .mb-account-kicker{ margin-bottom: 6px; }
.mb-account-summary h1{
  font-size: clamp(22px, 3.5vw, 28px);
  margin-bottom: 4px;
}
.mb-account-email{
  color: #64748b !important;
  font-size: 14px !important;
}
.mb-account-meta{
  margin-top: 4px !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 600;
}

.mb-account-section-label{
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mb-account-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mb-account-tile{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.mb-account-tile:hover,
.mb-account-tile:focus{
  border-color: rgba(54,101,243,.28);
  background: #fbfcff;
  box-shadow: 0 10px 28px rgba(54,101,243,.08);
  transform: translateY(-1px);
  outline: none;
}

.mb-account-tile-icon{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #3665f3;
  position: relative;
}
.mb-account-tile-icon::before{
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  /* default: simple link dot circle */
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l1.41-1.41a5 5 0 0 0-7.07-7.07L10 5.93'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0L5.52 12.4a5 5 0 0 0 7.07 7.07L14 18.07'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l1.41-1.41a5 5 0 0 0-7.07-7.07L10 5.93'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0L5.52 12.4a5 5 0 0 0 7.07 7.07L14 18.07'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mb-account-tile-icon[data-icon="deals"]::before{
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Ccircle cx='7' cy='7' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Ccircle cx='7' cy='7' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mb-account-tile-icon[data-icon="search"]::before{
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mb-account-tile-icon[data-icon="guides"]::before{
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mb-account-tile-icon[data-icon="support"]::before{
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 2.5-3 4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 2.5-3 4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mb-account-tile-icon[data-icon="orders"]::before{
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12l2 7H4l2-7Z'/%3E%3Cpath d='M4 9v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12l2 7H4l2-7Z'/%3E%3Cpath d='M4 9v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mb-account-tile-body{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mb-account-tile-body strong{
  color: #0f172a;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.015em;
}
.mb-account-tile-body em{
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
}
.mb-account-tile-arrow{
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 700;
  transition: transform .15s ease, color .15s ease;
}
.mb-account-tile:hover .mb-account-tile-arrow{
  color: #3665f3;
  transform: translateX(3px);
}

.mb-account-footer-actions{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  justify-content: center;
}
.mb-account-signout{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mb-account-signout:hover,
.mb-account-signout:focus{
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c !important;
  text-decoration: none;
}

@media (min-width: 640px) {
  .mb-account-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mb-account-page{ padding: 24px 12px 48px; }
  .mb-account-card,
  .mb-account-dashboard{ padding: 22px 18px; border-radius: 20px; }
  .mb-account-summary{ align-items: flex-start; gap: 14px; }
  .mb-account-avatar{ width: 52px; height: 52px; font-size: 22px; border-radius: 16px; }
  .mb-account-tile{ padding: 12px 14px; gap: 12px; }
  .mb-account-tile-icon{ width: 38px; height: 38px; border-radius: 10px; }
}
