/* ==========================================================================
   Account — Login, Register, Dashboard
   ========================================================================== */

/* Auth hero section */
.auth-hero {
  padding: 38px 0 28px;
}

.auth-box {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(135deg, #fff0b8 0%, #fff8e8 46%, #eaffef 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .8);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  min-height: 640px;
}

.auth-box::before {
  content: "";
  position: absolute;
  left: -130px;
  top: -160px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.auth-copy {
  padding: 62px 50px;
  position: relative;
}

/* Benefits list in auth copy */
.benefit-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.auth-copy .benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  min-height: auto;
}

.auth-copy .benefit i {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.security-note {
  margin-top: 24px;
  background: #fff;
  border: 1px dashed #b9d8c0;
  border-radius: 20px;
  padding: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.security-note b {
  color: var(--green);
}

/* Auth panel */
.auth-panel-wrap {
  padding: 42px 44px 42px 0;
  position: relative;
  display: flex;
  align-items: center;
}

.auth-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(54, 32, 15, .16);
}

/* Tab switcher */
.switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px;
  margin-bottom: 22px;
}

.switcher button {
  border: none;
  border-radius: 15px;
  padding: 13px 12px;
  font-weight: 950;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
}

.switcher button.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 116, 58, .18);
}

/* Alert box */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, #eaffef, #fff);
  border: 1px solid #bfe0c7;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.alert i {
  font-style: normal;
  flex-shrink: 0;
}

.alert b {
  display: block;
  color: var(--green);
}

/* Form block (login / register tabs) */
.form-block {
  display: none;
}

.form-block.active {
  display: block;
}

.form-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.form-title h2 {
  font-size: 30px;
  margin: 0;
  color: var(--brown);
  letter-spacing: -1px;
}

.form-title p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Social login */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.social-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 13px 12px;
  font-weight: 900;
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
}

.social-btn:hover {
  border-color: #9bcfaa;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 18px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #f0e5d6;
  flex: 1;
}

/* Password field */
.password-field {
  position: relative;
}

.password-field input {
  padding-right: 56px;
}

.show-pass {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--mint);
  color: var(--green);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 950;
  cursor: pointer;
  font-family: inherit;
}

/* Password strength */
.strength {
  margin-top: 10px;
}

.strength-bar {
  height: 9px;
  background: #f1e7da;
  border-radius: 999px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f0b429, var(--green));
  border-radius: 999px;
}

.strength small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 750;
  font-size: 12px;
}

/* Checkbox row */
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
  margin-top: 14px;
}

.check-row input {
  margin-top: 4px;
}

.check-row b {
  color: var(--green);
}

/* Form actions */
.form-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.form-actions .btn {
  border-radius: 16px;
  width: 100%;
}

.form-footer {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.form-footer a {
  font-weight: 950;
  color: var(--green);
}

.forgot-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.forgot-line a {
  color: var(--green);
  font-weight: 950;
}

/* Success panel */
.success-panel {
  display: none;
  margin-top: 18px;
  background: linear-gradient(135deg, #eaffef, #fff8e8);
  border: 1px solid #bfe0c7;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}

.success-panel.show {
  display: block;
}

.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  margin: 0 auto 12px;
}

.success-panel h3 {
  margin: 0 0 8px;
  color: var(--brown);
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto 42px;
}

/* Account flow section */
.account-flow {
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.flow-left {
  padding: 38px;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #fff;
}

.flow-left h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 12px 0;
  color: #fff;
}

.flow-left p {
  line-height: 1.7;
  color: #e9ffee;
}

.flow-steps {
  padding: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.flow-step {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.flow-step i {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-style: normal;
  margin-bottom: 12px;
  font-weight: 900;
  color: var(--green);
}

.flow-step b {
  display: block;
  color: var(--brown);
  margin-bottom: 6px;
}

.flow-step span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Anti-spam captcha box */
.anti-spam {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff8e8, #f4fff6);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.captcha-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px dashed #b9d8c0;
  border-radius: 16px;
  padding: 12px;
}

.captcha-code {
  font-weight: 950;
  color: var(--green);
  background: #fff8e8;
  border-radius: 12px;
  padding: 12px;
}

/* Honeypot — always hidden */
.bot-honey {
  display: none !important;
}

.reset-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reset-highlights {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.reset-highlights div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  padding: 14px 15px;
}

.reset-highlights i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--green);
  font-style: normal;
  font-weight: 950;
  flex: 0 0 26px;
}

.reset-highlights span {
  color: #e9ffee;
  line-height: 1.55;
  font-size: 14px;
}

.reset-steps-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.reset-steps-mini div {
  background: rgba(255, 255, 255, .11);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  padding: 14px 12px;
}

.reset-steps-mini b {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 5px;
}

.reset-steps-mini span {
  display: block;
  color: #dff6e5;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.reset-support-card {
  margin-top: 18px;
  background: #fff;
  color: var(--brown);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}

.reset-support-card b {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
  font-size: 18px;
}

.reset-support-card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

/* Dashboard page spacing */
main:has(.account-layout) .hero {
  padding-top: 64px !important;
  padding-bottom: 78px !important;
}

main:has(.account-layout) .hero-box {
  overflow: visible !important;
}

main:has(.account-layout) .hero-side {
  padding-bottom: 74px !important;
}

main:has(.account-layout) .hero-side .mini-card {
  left: -50px !important;
  bottom: -34px !important;
  width: min(370px, calc(100% - 28px)) !important;
  max-width: 370px !important;
  padding: 20px 24px !important;
  z-index: 4 !important;
}

main:has(.account-layout) .hero-side .mini-card small {
  max-width: none !important;
}

.account-layout {
  margin-top: 48px !important;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  padding-bottom: 68px;
}

.account-sidebar,
.dashboard-side,
.dashboard .panel,
.profile-mini,
.dashboard-page .summary-card {
  border: 1px solid rgba(226, 211, 185, .72);
  border-radius: 28px;
  background: linear-gradient(135deg, #fffdf8 0%, #fff 48%, #f5fff7 100%);
  box-shadow: 0 22px 58px rgba(54, 32, 15, .075);
}

.account-sidebar,
.dashboard-side,
.dashboard .panel {
  padding: 24px;
}

.profile-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
}

.profile-mini i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-weight: 950;
}

.profile-mini b,
.profile-mini span {
  display: block;
}

.profile-mini span {
  color: var(--muted);
  font-size: 13px;
}

.account-menu,
.dashboard,
.dashboard-side {
  display: grid;
  gap: 12px;
}

.account-menu a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  color: #675b50;
  font-weight: 900;
  padding: 13px 14px;
}

.account-menu a.active,
.account-menu a:hover {
  background: #e7f6ec;
  color: var(--green);
}

.account-menu em {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid #eadbc5;
  border-radius: 999px;
  background: #fff;
  font-style: normal;
  font-size: 13px;
}

.dashboard-stats,
.dashboard .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stats div,
.dashboard .stat {
  border: 1px solid rgba(226, 211, 185, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  padding: 18px;
}

.dashboard-stats b,
.dashboard .stat b {
  display: block;
  color: var(--green);
  font-size: 26px;
  line-height: 1.1;
}

.dashboard-stats span,
.dashboard .stat span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 26px;
}

.linkbox input {
  width: 100%;
  border: 1px solid #eadbc5;
  border-radius: 18px;
  background: #fff;
  color: #2b251f;
  font: inherit;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.toggle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid #eadbc5;
  border-radius: 20px;
  padding: 16px;
  margin-top: 14px;
}

.switch {
  width: 62px;
  height: 34px;
  border-radius: 999px;
  background: #eadbc5;
  position: relative;
  cursor: pointer;
  flex: 0 0 62px;
}

.switch::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  left: 4px;
  top: 4px;
  transition: .2s;
}

.switch.on {
  background: var(--green);
}

.switch.on::after {
  transform: translateX(28px);
}

/* Dashboard interactions */
.dashboard [hidden] {
  display: none !important;
}

.dashboard-generated-panel {
  animation: dashboardFade .24s ease;
}

.dashboard-panel-lead {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.dashboard-mini-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-mini-list div {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.dashboard-mini-list b,
.dashboard-mini-list span {
  display: block;
}

.dashboard-mini-list b {
  color: var(--green);
  margin-bottom: 6px;
}

.dashboard-mini-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.switch {
  cursor: pointer;
}

.dashboard-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid #cfe8d4;
  border-radius: 18px;
  padding: 14px 16px;
  background: #0f5b2d;
  color: #fff;
  box-shadow: 0 22px 58px rgba(15, 91, 45, .24);
  font-weight: 850;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.dashboard-toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Responsive */
@media (max-width: 1050px) {
  main:has(.account-layout) .hero {
    padding-top: 42px !important;
    padding-bottom: 36px !important;
  }

  main:has(.account-layout) .hero-box {
    overflow: hidden !important;
  }

  main:has(.account-layout) .hero-side {
    padding-bottom: 34px !important;
  }

  main:has(.account-layout) .hero-side .mini-card {
    left: 54px !important;
    bottom: 62px !important;
    width: auto !important;
    max-width: 270px !important;
    padding: 16px 18px !important;
  }

  .account-layout {
    grid-template-columns: 1fr;
    margin-top: 28px !important;
  }

  .auth-box,
  .account-flow {
    grid-template-columns: 1fr;
  }

  .auth-panel-wrap {
    padding: 0 34px 34px;
  }

  .trust-strip,
  .flow-steps,
  .dashboard-stats,
  .dashboard .stats,
  .dashboard-mini-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .account-layout {
    margin-top: 18px !important;
  }

  .auth-copy {
    padding: 34px 22px;
  }

  .auth-panel-wrap {
    padding: 0 22px 28px;
  }

  .auth-card {
    padding: 20px;
    border-radius: 26px;
  }

  .trust-strip,
  .flow-steps,
  .social-login,
  .captcha-box,
  .dashboard-stats,
  .dashboard .stats,
  .dashboard-mini-list {
    grid-template-columns: 1fr;
  }

  .form-title {
    display: block;
  }

  .forgot-line {
    display: grid;
  }

  .flow-left,
  .flow-steps {
    padding: 26px 20px;
  }

  .reset-steps-mini {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dashboard Account PRO MAX VIP - scoped rebuild from demo
   ========================================================================== */

.dashboard-page {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 40%, #f7fff8 100%);
}

.dashboard-page .wrap {
  width: min(1220px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.dashboard-page .dashboard-hero {
  padding: 34px 0 28px;
}

.dashboard-page .dashboard-hero-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 38px;
  background: linear-gradient(135deg, #fff0b8 0%, #fff8e8 42%, #eaffef 100%);
  box-shadow: var(--shadow);
}

.dashboard-page .dashboard-hero-box::before {
  content: "";
  position: absolute;
  left: -130px;
  top: -160px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.dashboard-page .dashboard-hero-copy {
  position: relative;
  z-index: 1;
  padding: 60px;
}

.dashboard-page .dashboard-hero-copy h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  color: #2b251f;
  font-size: clamp(44px, 4.4vw, 56px);
  line-height: .96;
  letter-spacing: 0;
}

.dashboard-page .dashboard-hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 42px 46px 42px 0;
}

.dashboard-page .vip-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(54, 32, 15, .16);
  padding: 26px;
}

.dashboard-page .vip-top {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #fff;
  padding: 28px;
}

.dashboard-page .vip-top::before {
  content: "";
  position: absolute;
  right: -72px;
  top: -72px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.dashboard-page .avatar-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-page .avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 27px;
  background: #fff;
  color: var(--green);
  font-size: 34px;
  font-weight: 950;
}

.dashboard-page .vip-top h3 {
  margin: 0;
  color: #fff;
  font-size: 28px;
}

.dashboard-page .vip-top p {
  margin: 5px 0 0;
  color: #e9ffee;
  line-height: 1.55;
}

.dashboard-page .vip-stats,
.dashboard-page .mini-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-page .vip-stats div,
.dashboard-page .mini-grid div {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
  padding: 14px;
}

.dashboard-page .vip-stats b,
.dashboard-page .mini-grid b {
  display: block;
  color: #fff;
  font-size: 22px;
}

.dashboard-page .vip-stats small,
.dashboard-page .mini-grid span {
  color: #e9ffee;
}

.dashboard-page .retention-alert {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8e8, #f4fff6);
  padding: 16px;
}

.dashboard-page .retention-alert b {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.dashboard-page .bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #f1e7da;
}

.dashboard-page .bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #35aa58);
}

.dashboard-page .retention-alert small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-page .dashboard-mini-card {
  position: absolute;
  left: -28px;
  bottom: 62px;
  max-width: 270px;
  border-radius: 22px;
  background: #fff;
  color: var(--green);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
  font-weight: 900;
  padding: 16px 18px;
}

.dashboard-page .dashboard-mini-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-page .account-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 0 !important;
  padding-bottom: 68px;
}

.dashboard-page .account-sidebar {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.dashboard-page .user-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid #f0e5d6;
  padding-bottom: 18px;
}

.dashboard-page .mini-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), #35aa58);
  color: #fff;
  font-weight: 950;
}

.dashboard-page .user-box b,
.dashboard-page .user-box span {
  display: block;
}

.dashboard-page .user-box span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-page .account-menu {
  display: grid;
  gap: 8px;
}

.dashboard-page .account-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  color: #5f534a;
  font-weight: 850;
  padding: 13px 14px;
  transition: .2s;
}

.dashboard-page .account-menu a.active,
.dashboard-page .account-menu a:hover {
  background: var(--mint);
  color: var(--green);
}

.dashboard-page .account-menu em {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  padding: 3px 8px;
}

.dashboard-page .logout {
  margin-top: 16px;
  border-top: 1px solid #f0e5d6;
  padding-top: 14px;
}

.dashboard-page .logout a {
  display: block;
  border-radius: 16px;
  background: #fff1ef;
  color: #b94a3b;
  font-weight: 900;
  padding: 13px 14px;
}

.dashboard-page .dashboard {
  display: grid;
  gap: 22px;
}

.dashboard-page .stats,
.dashboard-page .automation-grid,
.dashboard-page .health-grid,
.dashboard-page .grid-4,
.dashboard-page .funnel,
.dashboard-page .voucher-grid {
  display: grid;
  gap: 16px;
}

.dashboard-page .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-page .grid-2 {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
}

.dashboard-page .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-page .automation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page .health-grid,
.dashboard-page .voucher-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page .funnel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-page .stat,
.dashboard-page .panel,
.dashboard-page .automation-card,
.dashboard-page .health,
.dashboard-page .quick-action,
.dashboard-page .voucher,
.dashboard-page .security,
.dashboard-page .automation,
.dashboard-page .stage {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.dashboard-page .stat {
  padding: 22px;
  transition: .25s;
}

.dashboard-page .stat:hover {
  transform: translateY(-5px);
  border-color: #bfe0c7;
  box-shadow: 0 24px 54px rgba(23, 116, 58, .14);
}

.dashboard-page .stat i,
.dashboard-page .automation i,
.dashboard-page .health i,
.dashboard-page .quick-action i,
.dashboard-page .ai-item i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--mint);
  font-size: 22px;
  font-style: normal;
}

.dashboard-page .stat b {
  display: block;
  color: var(--green);
  font-size: 30px;
}

.dashboard-page .stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-page .panel,
.dashboard-page .automation-card {
  border-radius: 30px;
  padding: 26px;
}

.dashboard-page .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-page .panel-head h2,
.dashboard-page .automation-card h2 {
  margin: 0;
  color: var(--brown);
  font-size: 26px;
  line-height: 1.15;
}

.dashboard-page .retention-card,
.dashboard-page .affiliate-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
}

.dashboard-page .retention-card h2,
.dashboard-page .affiliate-card h2 {
  color: #fff;
}

.dashboard-page .retention-card p,
.dashboard-page .affiliate-card p {
  color: #e9ffee;
  line-height: 1.65;
}

.dashboard-page .days {
  margin: 12px 0;
  font-size: 48px;
  font-weight: 950;
}

.dashboard-page .ai-list,
.dashboard-page .security-list {
  display: grid;
  gap: 12px;
}

.dashboard-page .ai-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
  padding: 16px;
}

.dashboard-page .ai-item i {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
}

.dashboard-page .ai-item b,
.dashboard-page .automation b,
.dashboard-page .health h3,
.dashboard-page .quick-action b,
.dashboard-page .voucher b,
.dashboard-page .security b {
  display: block;
  color: var(--brown);
}

.dashboard-page .ai-item span,
.dashboard-page .automation span,
.dashboard-page .health p,
.dashboard-page .voucher span,
.dashboard-page .security span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-page .automation {
  background: #fffaf2;
  padding: 18px;
}

.dashboard-page .toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border: 0;
  padding: 0;
}

.dashboard-page .switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #dbeade;
}

.dashboard-page .switch::before,
.dashboard-page .switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

.dashboard-page .switch::after {
  display: none;
}

.dashboard-page .switch.on {
  background: var(--green);
}

.dashboard-page .switch.on::before {
  left: 27px;
}

.dashboard-page .quick-action {
  display: grid;
  place-items: center;
  min-height: 126px;
  text-align: center;
  background: #fffaf2;
  padding: 18px;
}

.dashboard-page .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf2;
  padding: 15px;
}

.dashboard-page .status {
  display: inline-flex;
  border-radius: 99px;
  background: var(--mint);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
}

.dashboard-page .status.warn {
  background: #fff4cf;
  color: #9a6515;
}

.dashboard-page .affiliate-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.dashboard-page .affiliate-stats div {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .13);
  padding: 12px;
}

.dashboard-page .affiliate-stats b,
.dashboard-page .affiliate-stats span {
  display: block;
}

.dashboard-page .affiliate-stats b {
  color: #fff;
  font-size: 20px;
}

.dashboard-page .affiliate-stats span {
  color: #e9ffee;
  font-size: 12px;
}

.dashboard-page .linkbox {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

.dashboard-page .linkbox input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--brown);
  font-weight: 800;
}

.dashboard-page .linkbox button {
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 950;
  padding: 0 12px;
}

.dashboard-page .voucher,
.dashboard-page .health,
.dashboard-page .stage {
  background: #fffaf2;
  padding: 18px;
}

.dashboard-page .voucher code {
  display: inline-flex;
  margin-top: 10px;
  border: 1px dashed #b9d8c0;
  border-radius: 10px;
  background: #fff;
  color: var(--brown);
  font-weight: 900;
  padding: 7px 9px;
}

.dashboard-page .profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dashboard-page .field {
  display: grid;
  gap: 8px;
}

.dashboard-page .field.full {
  grid-column: 1 / -1;
}

.dashboard-page .field label {
  color: #4f4439;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-page .field input,
.dashboard-page .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: #5d5147;
  font: inherit;
  padding: 15px 16px;
}

.dashboard-page .field textarea {
  min-height: 90px;
}

.dashboard-page [hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .dashboard-page .dashboard-hero-box,
  .dashboard-page .account-layout,
  .dashboard-page .grid-2 {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-hero-side {
    padding: 0 34px 34px;
  }

  .dashboard-page .dashboard-mini-card {
    left: 54px;
  }

  .dashboard-page .account-sidebar {
    position: static;
  }

  .dashboard-page .stats,
  .dashboard-page .automation-grid,
  .dashboard-page .health-grid,
  .dashboard-page .grid-4,
  .dashboard-page .funnel,
  .dashboard-page .voucher-grid,
  .dashboard-page .affiliate-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard-page .wrap {
    width: min(100% - 28px, 1220px);
  }

  .dashboard-page .dashboard-hero {
    padding-top: 18px;
  }

  .dashboard-page .dashboard-hero-box {
    border-radius: 24px;
  }

  .dashboard-page .dashboard-hero-copy {
    padding: 34px 22px;
  }

  .dashboard-page .dashboard-hero-copy h1 {
    font-size: 38px;
  }

  .dashboard-page .dashboard-mini-card {
    display: none;
  }

  .dashboard-page .stats,
  .dashboard-page .automation-grid,
  .dashboard-page .health-grid,
  .dashboard-page .grid-4,
  .dashboard-page .funnel,
  .dashboard-page .voucher-grid,
  .dashboard-page .affiliate-stats,
  .dashboard-page .profile-form {
    grid-template-columns: 1fr;
  }

  .dashboard-page .panel,
  .dashboard-page .automation-card {
    padding: 22px;
  }
}
