:root {
  --primary: #0f766e;
  --primary-dark: #0a5c56;
  --accent: #14b8a6;
  --background: #f8fafc;
  --surface: #ffffff;
  --ink: #102a2a;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 16px 42px rgba(15, 118, 110, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--background);
  font-family: "Manrope", Arial, sans-serif;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: calc(100% - 28px);
  max-width: 1280px;
  margin-inline: auto;
}

.dashboard-shell {
  padding-bottom: 48px;
}

.breadcrumb {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.breadcrumb svg {
  width: 12px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: #334155;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 22px;
}

.eyebrow,
.section-heading span,
.card-heading span {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 5px 0 4px;
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: -0.045em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.secure-chip {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--primary);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.secure-chip svg {
  width: 16px;
}

.welcome-card {
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(94, 234, 212, 0.27), transparent 28%),
    linear-gradient(135deg, #064e49, var(--primary) 62%, #0d9488);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(15, 118, 110, 0.18);
}

.welcome-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  inset: auto -85px -105px auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 56px rgba(255, 255, 255, 0.025);
}

.welcome-card__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-card__content > div,
.section-heading > div,
.card-heading > div {
  min-width: 0;
}

.profile-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: #ccfbf1;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 800;
}

.welcome-card__label {
  color: #99f6e4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-card h2 {
  margin: 4px 0 5px;
  font-size: clamp(21px, 5vw, 28px);
  letter-spacing: -0.035em;
}

.welcome-card p {
  margin: 0;
  color: #d5faf5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--primary-dark);
  background: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.profile-button svg {
  width: 14px;
}

.overview-section {
  margin-top: 25px;
}

.section-heading,
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2,
.card-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 9px 26px rgba(15, 118, 110, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.overview-card:hover {
  border-color: #99f6e4;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.overview-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 11px;
}

.overview-card__icon svg {
  width: 19px;
}

.overview-card--pending .overview-card__icon {
  color: #d97706;
  background: #fffbeb;
  border-color: #fde68a;
}

.overview-card div {
  display: grid;
  gap: 2px;
}

.overview-card strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.overview-card div span {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.overview-card small {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.dashboard-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.07);
}

.card-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.card-heading button {
  flex: 0 0 auto;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.orders-list {
  display: grid;
}

.order-row {
  display: grid;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid #f1f5f9;
}

.order-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-row__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.order-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f0fdfa;
  border-radius: 11px;
}

.order-icon svg {
  width: 20px;
}

.order-row__identity div,
.order-total {
  display: grid;
  gap: 3px;
}

.order-row__identity strong,
.order-total strong {
  font-size: 11px;
}

.order-row__identity span,
.order-total span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.status {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}

.status--shipped {
  color: #0369a1;
  background: #e0f2fe;
}

.status--processing {
  color: #b45309;
  background: #fef3c7;
}

.status--delivered {
  color: #047857;
  background: #d1fae5;
}

.outline-button {
  min-height: 42px;
  padding: 0 13px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease;
}

.outline-button:hover {
  color: #fff;
  background: var(--primary);
}

.dashboard-sidebar {
  display: grid;
  gap: 14px;
}

.address {
  padding: 14px;
  background: #f8fffd;
  border: 1px solid #ccfbf1;
  border-radius: 13px;
}

.address__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
}

.address__icon svg {
  width: 18px;
}

.address__head div {
  display: grid;
  gap: 2px;
}

.address__head strong {
  font-size: 12px;
}

.address__head div span {
  width: fit-content;
  padding: 3px 6px;
  color: var(--primary);
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
}

.address p {
  margin: 14px 0;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
}

.address__contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid #ccfbf1;
}

.address__contact span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.address__contact button {
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.add-address-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  color: var(--primary);
  background: #fff;
  border: 1px dashed #5eead4;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.add-address-button svg {
  width: 16px;
}

.quick-actions {
  display: grid;
  gap: 7px;
}

.quick-actions button,
.quick-actions a {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: #334155;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-align: start;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.quick-actions button:hover,
.quick-actions a:hover {
  color: var(--primary);
  background: #f8fffd;
  border-color: #99f6e4;
}

.quick-actions button > span,
.quick-actions a > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f0fdfa;
  border-radius: 9px;
}

.quick-actions svg {
  width: 15px;
}

.quick-actions button > span svg,
.quick-actions a > span svg {
  width: 17px;
}

.quick-actions .logout-action {
  color: #b91c1c;
}

.quick-actions .logout-action > span {
  color: #dc2626;
  background: #fef2f2;
}

.account-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  color: #fff;
  background: #102a2a;
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.account-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 620px) {
  .container {
    width: calc(100% - 40px);
  }

  .secure-chip {
    display: flex;
  }

  .welcome-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 25px 28px;
  }

  .profile-button {
    min-width: 130px;
  }

  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .overview-card {
    padding: 18px;
  }

  .order-row {
    grid-template-columns: minmax(180px, 1.4fr) minmax(78px, 0.7fr) minmax(92px, 0.8fr) auto;
    align-items: center;
    gap: 12px;
  }

  .outline-button {
    min-height: 38px;
  }
}

@media (min-width: 980px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    align-items: start;
    gap: 18px;
  }

  .dashboard-card {
    padding: 21px;
  }

  .dashboard-sidebar {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .page-heading {
    margin-bottom: 18px;
  }

  .welcome-card {
    padding: 19px 16px;
    border-radius: 16px;
  }

  .welcome-card__content {
    align-items: flex-start;
  }

  .profile-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .dashboard-card {
    padding: 15px;
  }

  .overview-card {
    padding: 14px;
  }

  .card-heading {
    align-items: flex-end;
  }

  .profile-button,
  .outline-button,
  .add-address-button {
    width: 100%;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
