@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #101319;
  --surface-2: #161a21;
  --surface-3: #1c212a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f7f8;
  --muted: #9299a7;
  --muted-2: #858c99;
  --accent: #7C0707;
  --accent-strong: #7C0707;
  --accent-soft: rgba(226, 58, 97, 0.14);
  --vip-tier: #B4002D;
  --premium-tier: #15181D;
  --success: #47d7a0;
  --warning: #f5bc61;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  --content: 1366px;
  --content-half: 683px;
  --compact-content: 700px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -8%, rgba(226, 58, 97, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
label,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

button {
  color: inherit;
}

svg {
  display: block;
}

.app-frame {
  width: 100%;
  max-width: var(--content);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
}

.page {
  padding: calc(max(22px, env(safe-area-inset-top)) + 50px) 18px calc(112px + env(safe-area-inset-bottom));
}

.auth-page {
  max-width: var(--compact-content);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(max(28px, env(safe-area-inset-top)) + 50px) 22px max(28px, env(safe-area-inset-bottom));
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.language-control {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  position: fixed;
  z-index: 70;
  top: max(12px, env(safe-area-inset-top));
  left: max(16px, calc(50% - var(--content-half) + 16px));
  padding: 0 8px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 19, 25, .94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
}

.language-control svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.language-control select {
  min-width: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-control:focus-within {
  outline: 3px solid rgba(226, 58, 97, .3);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(145deg, #20242c, #11141a);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.3);
}

.brand-mark svg {
  width: 19px;
  color: var(--accent-strong);
}

.auth-intro {
  margin-top: auto;
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

.auth-title {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.04;
  letter-spacing: -1.6px;
}

.auth-copy {
  max-width: 390px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.auth-form,
.stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-label {
  color: #d7dae0;
  font-size: 12px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input::placeholder {
  color: #858c99;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.input:focus {
  border-color: rgba(226, 58, 97, 0.65);
  background: #12151b;
  box-shadow: 0 0 0 4px rgba(226, 58, 97, 0.1);
}

.input.has-action {
  padding-right: 54px;
}

.input-action {
  width: 44px;
  height: 44px;
  position: absolute;
  right: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.input-action svg {
  width: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.text-link {
  border: 0;
  background: none;
  color: #e6e8ec;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary-button {
  border: 1px solid #ef5779;
  background: linear-gradient(180deg, #ec466b, #d72f55);
  color: white;
  box-shadow: 0 12px 30px rgba(226, 58, 97, 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
}

.primary-button:hover {
  background: linear-gradient(180deg, #f45478, #df385d);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.primary-button:active,
.secondary-button:active,
.action-card:active {
  transform: scale(0.985);
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: #e4e6ea;
}

.full-width {
  width: 100%;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.auth-switch a {
  color: var(--text);
  font-weight: 700;
}

.form-error {
  margin: -2px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 118, 149, 0.2);
  border-radius: 12px;
  background: rgba(226, 58, 97, 0.08);
  color: #ff91aa;
  font-size: 12px;
  line-height: 1.45;
}

.form-error[hidden] {
  display: none;
}

.privacy-note {
  margin: auto 0 0;
  padding-top: 34px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 188, 97, 0.18);
  border-radius: 15px;
  background: rgba(245, 188, 97, 0.08);
  color: #f7d08e;
}

.notice-banner[hidden] {
  display: none;
}

.notice-banner span {
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.notice-banner small {
  color: #b9a37e;
  font-size: 11px;
}

.notice-banner button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(245, 188, 97, 0.22);
  border-radius: 10px;
  background: rgba(245, 188, 97, 0.09);
  color: #ffdc9e;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.topbar-meta {
  min-width: 0;
}

.overline {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.page-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: #d5d8de;
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
}

.notification-dot {
  width: 7px;
  height: 7px;
  position: absolute;
  top: 10px;
  right: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent-strong);
}

.profile-hero {
  overflow: hidden;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% -12%, rgba(226, 58, 97, 0.2), transparent 55%),
    linear-gradient(145deg, #181b22, #101319);
  box-shadow: var(--shadow);
}

.profile-hero::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  right: -80px;
  bottom: -90px;
  border: 24px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  padding: 8px 11px;
  border: 1px solid rgba(71, 215, 160, 0.2);
  background: rgba(71, 215, 160, 0.08);
  color: #7de5bd;
}

.status-pill.inactive {
  border-color: rgba(245, 188, 97, 0.2);
  background: rgba(245, 188, 97, 0.08);
  color: #f3c97f;
}

.status-pill.inactive .status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(245, 188, 97, 0.1);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(71, 215, 160, 0.1);
}

.hero-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: linear-gradient(145deg, #313743, #20242d);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.account-avatar-link {
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.account-avatar-link:hover {
  border-color: rgba(226, 58, 97, 0.55);
  transform: translateY(-1px);
}

.account-avatar-link:focus-visible {
  outline: 3px solid rgba(226, 58, 97, 0.36);
  outline-offset: 3px;
}

.hero-title {
  margin: 26px 0 6px;
  font-size: 24px;
  letter-spacing: -0.8px;
}

.hero-copy {
  max-width: 420px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c92a50, #f45579);
  box-shadow: 0 0 14px rgba(226, 58, 97, 0.34);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.progress-meta strong {
  color: #e7e9ed;
}

.section {
  margin-top: 30px;
}

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

.section-title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.35px;
}

.section-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.stat-card {
  min-width: 0;
  padding: 16px 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.stat-label {
  overflow: hidden;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 6vw, 25px);
  font-weight: 700;
  letter-spacing: -0.8px;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: var(--success);
  font-size: 10px;
  font-weight: 600;
}

.stat-caption {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
}

.stat-trend svg {
  width: 11px;
}

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

.action-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease, background 150ms ease, transform 140ms ease;
}

.action-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  color: #dfe1e5;
}

.action-icon.accent {
  background: var(--accent-soft);
  color: #f27692;
}

.action-icon svg {
  width: 19px;
}

.action-title {
  display: block;
  margin: 16px 0 3px;
  font-size: 14px;
  font-weight: 700;
}

.action-copy {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

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

.dashboard-card-group+.dashboard-card-group {
  margin-top: 30px;
}

.dashboard-card-group>h2 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -.25px;
}

.dashboard-launch-card {
  min-height: 122px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 14px 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 140ms ease, border-color 150ms ease, background 150ms ease;
}

.dashboard-launch-card.addon-card {
  border-color: rgba(226, 58, 97, .28);
  background: linear-gradient(135deg, rgba(226, 58, 97, .16), var(--surface) 70%);
}

.dashboard-launch-card.addon-card:last-child {
  grid-column: 1 / -1;
}

.dashboard-launch-card:hover {
  border-color: var(--line-strong);
  background-color: var(--surface-2);
}

.dashboard-launch-card:active {
  transform: scale(.985);
}

.dashboard-launch-card:focus-visible {
  outline: 3px solid rgba(226, 58, 97, .32);
  outline-offset: 3px;
}

.dashboard-launch-icon {
  width: 20px;
  height: 20px;
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  align-self: start;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 17px;
}

.dashboard-launch-card strong {
  font: 750 14px/1.3 "Manrope", sans-serif;
}

.dashboard-launch-card>span:last-child {
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.photo-button-grid {
  gap: 9px;
  align-items: stretch;
}

.photo-button {
  min-height: 104px;
  padding: 12px;
  gap: 8px 6px;
  border-radius: 16px;
}

.photo-button .dashboard-launch-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: var(--surface-3);
  color: #eef0f3;
  font-size: 15px;
}

.photo-button strong {
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.photo-button>span:last-child {
  font-size: 20px;
}

body[data-page="home"] .page-title span {
  color: #ff6b8d;
}

body[data-page="home"] .hero-avatar {
  border-color: rgba(255, 77, 117, .42);
  background: #25131c;
}

body[data-page="home"] .photo-button {
  --tile-rgb: 255, 73, 109;
  --tile-color: #ff6887;
  min-height: 92px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-color: rgba(255, 73, 109, .46);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 73, 109, .1), rgba(91, 13, 24, .05) 35%, var(--surface))
}

body[data-page="home"] .photo-button:hover {
  border-color: rgba(var(--tile-rgb), .46);
  background: var(--surface-2);
}

body[data-page="home"] .photo-button .dashboard-launch-icon {
  width: 40px;
  height: 40px;
  grid-column: auto;
  align-self: center;
  border-color: rgba(var(--tile-rgb), .52);
  background: rgba(var(--tile-rgb), .11);
  box-shadow: inset 0 0 14px rgba(var(--tile-rgb), .16), 0 0 12px rgba(var(--tile-rgb), .12);
  color: var(--tile-color);
}

body[data-page="home"] .photo-button .dashboard-launch-icon svg {
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 0 4px rgba(var(--tile-rgb), .5));
}

body[data-page="home"] .dashboard-launch-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body[data-page="home"] .dashboard-launch-copy strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

body[data-page="home"] .dashboard-launch-copy small {
  color: #c4c7ce;
  font-size: 10px;
  line-height: 1.3;
}

body[data-page="home"] .photo-button .dashboard-launch-arrow {
  color: var(--tile-color);
  font-size: 27px;
  filter: drop-shadow(0 0 4px rgba(var(--tile-rgb), .48));
}

body[data-page="home"] .dashboard-card-wide {
  grid-column: 1 / -1;
}

body[data-page="home"] .dashboard-card-gold {
  --tile-rgb: 235, 179, 61;
  --tile-color: #ffd66b;
  border-color: rgba(235, 179, 61, .7);
  background: linear-gradient(135deg, rgba(235, 179, 61, .25), rgba(90, 62, 10, .2) 58%, var(--surface));
}

body[data-page="home"] .dashboard-card-gold .dashboard-launch-copy strong {
  color: #ffca55;
  font-size: 17px;
}

body[data-page="home"] .dashboard-card-gold .dashboard-launch-copy small {
  color: #f1e2c2;
  font-size: 11px;
}

body[data-page="home"] .dashboard-card-red {
  --tile-rgb: 228, 54, 74;
  --tile-color: #ff6478;
  border-color: rgba(228, 54, 74, .72);
  background: linear-gradient(135deg, rgba(255, 73, 109, .1), rgba(91, 13, 24, .05) 35%, var(--surface))
}

body[data-page="home"] .dashboard-card-blue {
  --tile-rgb: 55, 139, 255;
  --tile-color: #6eafff;
  border-color: rgba(55, 139, 255, .72);
  background: linear-gradient(135deg, rgba(55, 139, 255, .22), rgba(13, 46, 91, .18) 62%, var(--surface));
}

body[data-page="home"] .dashboard-card-blue .dashboard-launch-copy strong {
  font-size: 22px;
}

body[data-page="home"] .dashboard-card-blue .dashboard-launch-copy small {
  color: #e0e9f8;
  font-size: 11px;
}

@media (max-width: 370px) {
  body[data-page="home"] .photo-button {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px;
  }

  body[data-page="home"] .photo-button .dashboard-launch-icon {
    width: 42px;
    height: 42px;
  }

  body[data-page="home"] .photo-button .dashboard-launch-icon svg {
    width: 24px;
    height: 24px;
  }

  body[data-page="home"] .dashboard-launch-copy strong {
    font-size: 11px;
  }

  body[data-page="home"] .dashboard-launch-copy small {
    font-size: 9px;
  }
}

.dashboard-profile-summary {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-main-photo {
  min-height: 226px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 73, 109, .55);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 73, 109, .12), transparent 55%),
    #111216;
  box-shadow: inset 0 0 22px rgba(255, 45, 82, .07), 0 14px 30px rgba(0, 0, 0, .3), 0 0 18px rgba(255, 45, 82, .07);
  color: var(--muted);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-main-photo:hover {
  border-color: rgba(255, 92, 122, .82);
  box-shadow: inset 0 0 26px rgba(255, 45, 82, .09), 0 17px 34px rgba(0, 0, 0, .34), 0 0 24px rgba(255, 45, 82, .11);
  transform: translateY(-2px);
}

.dashboard-main-photo:focus-visible {
  outline: 3px solid rgba(255, 73, 109, .32);
  outline-offset: 3px;
}

.dashboard-main-photo img {
  width: 100%;
  height: 100%;
  min-height: 226px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.dashboard-main-photo:hover img {
  transform: scale(1.025);
}

.dashboard-photo-overlay {
  min-height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 11px 11px;
  background: linear-gradient(to top, rgba(5, 6, 9, .94), rgba(5, 6, 9, .62) 54%, transparent);
}

.dashboard-photo-caption {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.dashboard-photo-caption strong {
  overflow: hidden;
  color: #fff;
  font: 750 13px/1.2 "Manrope", sans-serif;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
  white-space: nowrap;
}

.dashboard-photo-caption small {
  color: #aeb3bd;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-photo-action {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 73, 109, .45);
  border-radius: 50%;
  background: rgba(8, 9, 12, .78);
  color: #ff6684;
  backdrop-filter: blur(8px);
}

.dashboard-photo-action svg,
.dashboard-photo-empty-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-photo-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 73, 109, .42);
  border-radius: 50%;
  background: rgba(255, 73, 109, .08);
  color: #ff6684;
}

.dashboard-main-photo>small {
  font-size: 9px;
}

.dashboard-profile-facts {
  min-width: 0;
  display: grid;
  align-content: stretch;
  gap: 8px;
}

.dashboard-rating-line,
.dashboard-phone-line,
.dashboard-plan-line {
  min-width: 0;
  position: relative;
  padding: 10px;
  border: 1px solid rgba(255, 73, 109, .4);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 73, 109, .1), rgba(15, 16, 21, .96) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 9px 20px rgba(0, 0, 0, .2);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.dashboard-rating-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.dashboard-fact-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 73, 109, .38);
  border-radius: 50%;
  background: rgba(255, 73, 109, .08);
  color: #ff6684;
  box-shadow: inset 0 0 12px rgba(255, 73, 109, .07);
}

.dashboard-fact-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-fact-icon.rating {
  border-color: rgba(255, 201, 78, .4);
  background: rgba(255, 201, 78, .08);
  color: #ffc94e;
}

.dashboard-rating-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-rating-copy>small,
.dashboard-fact-copy small {
  color: #858c98;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-rating-copy>span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.dashboard-rating-copy strong {
  color: #fff;
  font: 800 16px/1 "Manrope", sans-serif;
}

.dashboard-rating-copy em {
  color: #a9aeb8;
  font-size: 12px;
  font-style: normal;
}

.dashboard-stars {
  display: inline-flex;
  gap: 1px;
}

.dashboard-stars>span {
  background: linear-gradient(90deg, #ffc94e var(--star-fill), #3b4049 var(--star-fill));
  color: transparent;
  font-size: 12px;
  line-height: 1;
  background-clip: text;
  -webkit-background-clip: text;
}

.dashboard-phone-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.dashboard-fact-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-fact-copy strong {
  overflow: hidden;
  color: #f2f3f6;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-phone-line>b,
.dashboard-plan-line>b {
  color: #ff6684;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(255, 73, 109, .38));
}

.dashboard-plan-line {
  --mini-plan-rgb: 255, 73, 109;
  --mini-plan-color: #ff6684;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-color: rgba(var(--mini-plan-rgb), .42);
  background: linear-gradient(145deg, rgba(var(--mini-plan-rgb), .12), rgba(15, 16, 21, .96) 64%);
}

.dashboard-plan-premium {
  --mini-plan-rgb: 105, 150, 255;
  --mini-plan-color: #8eb6ff;
}

.dashboard-plan-vip {
  --mini-plan-rgb: 241, 184, 61;
  --mini-plan-color: #ffd166;
}

.dashboard-plan-line .dashboard-fact-icon {
  border-color: rgba(var(--mini-plan-rgb), .42);
  background: rgba(var(--mini-plan-rgb), .09);
  color: var(--mini-plan-color);
}

.dashboard-plan-line .dashboard-fact-copy strong,
.dashboard-plan-line>b {
  color: var(--mini-plan-color);
}

.dashboard-phone-line:hover {
  border-color: rgba(255, 91, 120, .7);
  transform: translateY(-1px);
}

.dashboard-plan-line:hover {
  border-color: rgba(var(--mini-plan-rgb), .72);
  transform: translateY(-1px);
}

.dashboard-plan-line>b {
  filter: drop-shadow(0 0 4px rgba(var(--mini-plan-rgb), .4));
}

.dashboard-profile-stats {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.dashboard-profile-stat {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 1px 7px;
  padding: 8px;
  border: 1px solid rgba(55, 139, 255, .56);
  border-radius: 15px;
  background:
    radial-gradient(circle at 10% 50%, rgba(55, 139, 255, .2), transparent 55%),
    linear-gradient(145deg, rgba(37, 102, 197, .18), rgba(12, 17, 28, .98) 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 18px rgba(0, 0, 0, .2), 0 0 14px rgba(55, 139, 255, .06);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.dashboard-profile-stat:hover {
  border-color: rgba(86, 162, 255, .86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 10px 20px rgba(0, 0, 0, .24), 0 0 19px rgba(55, 139, 255, .12);
  transform: translateY(-1px);
}

.dashboard-profile-stat:focus-visible {
  outline: 3px solid rgba(55, 139, 255, .3);
  outline-offset: 2px;
}

.dashboard-profile-stat>span {
  width: 29px;
  height: 29px;
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid rgba(83, 160, 255, .44);
  border-radius: 50%;
  background: rgba(55, 139, 255, .1);
  color: #70b2ff;
  box-shadow: inset 0 0 10px rgba(55, 139, 255, .1), 0 0 9px rgba(55, 139, 255, .11);
}

.dashboard-profile-stat svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 3px rgba(83, 160, 255, .55));
}

.dashboard-profile-stat>strong {
  overflow: hidden;
  color: #f7f9ff;
  font: 800 18px/1 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-profile-stat>small {
  overflow: hidden;
  color: #91bdf5;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-subscription-card {
  --plan-rgb: 255, 73, 109;
  --plan-color: #ff6887;
  display: grid;
  gap: 13px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(var(--plan-rgb), .5);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% -12%, rgba(var(--plan-rgb), .27), transparent 42%),
    linear-gradient(145deg, #171113 0%, #0e1014 58%, #140a0d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .3), 0 0 22px rgba(var(--plan-rgb), .07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-subscription-card:hover {
  border-color: rgba(var(--plan-rgb), .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 38px rgba(0, 0, 0, .34), 0 0 28px rgba(var(--plan-rgb), .11);
  transform: translateY(-2px);
}

.dashboard-subscription-card:focus-visible {
  outline: 3px solid rgba(var(--plan-rgb), .3);
  outline-offset: 3px;
}

.dashboard-subscription-premium {
  --plan-rgb: 185, 192, 204;
  --plan-color: #f5f6f8;
  border-color: rgba(185, 192, 204, .42);
  background:
    radial-gradient(circle at 92% -12%, rgba(255, 255, 255, .12), transparent 42%),
    linear-gradient(145deg, #252930 0%, var(--premium-tier) 58%, #0c0e11 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 34px rgba(0, 0, 0, .34), 0 0 22px rgba(185, 192, 204, .08);
}

.dashboard-subscription-vip {
  --plan-rgb: 180, 0, 45;
  --plan-color: #ff557c;
  border-color: var(--vip-tier);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .3), 0 0 24px rgba(180, 0, 45, .14);
}

.dashboard-subscription-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.dashboard-subscription-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--plan-rgb), .58);
  border-radius: 50%;
  background: rgba(var(--plan-rgb), .1);
  box-shadow: inset 0 0 18px rgba(var(--plan-rgb), .12), 0 0 16px rgba(var(--plan-rgb), .12);
  color: var(--plan-color);
}

.dashboard-subscription-icon svg {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 0 5px rgba(var(--plan-rgb), .55));
}

.dashboard-subscription-icon.website-plan-badge {
  width: 58px;
  height: 64px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-subscription-icon.website-plan-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dashboard-subscription-premium .dashboard-subscription-icon.website-plan-badge img {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .25));
}

.dashboard-subscription-vip .dashboard-subscription-copy strong {
  color: #fff;
  text-shadow: 0 0 14px rgba(180, 0, 45, .48);
}

.dashboard-subscription-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-subscription-copy small {
  color: #a5aab3;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-subscription-copy strong {
  overflow: hidden;
  color: var(--plan-color);
  font: 800 24px/1.05 "Manrope", sans-serif;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(var(--plan-rgb), .22);
  white-space: nowrap;
}

.dashboard-plan-status {
  padding: 5px 8px;
  border: 1px solid rgba(255, 103, 124, .26);
  border-radius: 999px;
  background: rgba(255, 73, 109, .08);
  color: #ff8196;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dashboard-plan-status.active {
  border-color: rgba(80, 218, 164, .28);
  background: rgba(71, 215, 160, .09);
  color: #71dfb4;
}

.dashboard-plan-city {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 1;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(5, 7, 10, .58);
  backdrop-filter: blur(10px);
}

.dashboard-city-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(var(--plan-rgb), .1);
  color: var(--plan-color);
}

.dashboard-city-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-plan-city>span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dashboard-plan-city small {
  color: #7f8691;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dashboard-plan-city strong {
  overflow: hidden;
  color: #f1f2f5;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-subscription-card ul {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-subscription-card li {
  position: relative;
  padding: 8px 10px 8px 32px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: #d8dbe1;
  font-size: 10px;
  line-height: 1.4;
}

.dashboard-subscription-card li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 10px;
  color: var(--plan-color);
  font-weight: 800;
  filter: drop-shadow(0 0 4px rgba(var(--plan-rgb), .4));
  transform: translateY(-50%);
}

.dashboard-subscription-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin-top: 1px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: var(--plan-color);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-subscription-action>b {
  font-size: 21px;
  font-weight: 400;
  line-height: .8;
  filter: drop-shadow(0 0 4px rgba(var(--plan-rgb), .42));
}

.dashboard-tours-section {
  margin-bottom: 26px;
}

.dashboard-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.dashboard-section-title h2 {
  margin: 0;
  font-size: 16px;
}

.dashboard-section-title a {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-tour-rail {
  display: grid;
  grid-auto-columns: minmax(220px, 84%);
  grid-auto-flow: column;
  gap: 10px;
  margin-right: -18px;
  padding-right: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dashboard-tour-rail::-webkit-scrollbar {
  display: none;
}

.dashboard-tour-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 5px 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(226, 58, 97, .12), var(--surface) 68%);
  scroll-snap-align: start;
}

body[data-page="home"] .dashboard-tour-card {
  border-color: rgba(255, 66, 96, .58);
  background:
    radial-gradient(circle at 88% 45%, rgba(255, 34, 69, .2), transparent 42%),
    linear-gradient(145deg, #161012 0%, #0e0f13 56%, #16090c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 14px 32px rgba(0, 0, 0, .28), 0 0 18px rgba(255, 34, 69, .06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body[data-page="home"] .dashboard-tour-card:hover {
  border-color: rgba(255, 84, 113, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 16px 36px rgba(0, 0, 0, .32), 0 0 24px rgba(255, 34, 69, .1);
  transform: translateY(-2px);
}

body[data-page="home"] .dashboard-tour-card:focus-visible {
  outline: 3px solid rgba(255, 73, 109, .34);
  outline-offset: 3px;
}

body[data-page="home"] .dashboard-tour-card .tour-card-arrow {
  color: #ff5c7e;
}

body[data-page="home"] .dashboard-tour-card.empty {
  background:
    radial-gradient(circle at 88% 45%, rgba(255, 34, 69, .16), transparent 42%),
    linear-gradient(145deg, #151012, #0e0f13 65%);
}

body[data-page="home"] .dashboard-tour-rail {
  grid-auto-columns: min(96%, 410px);
}

body[data-page="home"] .dashboard-tour-detail-card {
  min-height: 206px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  gap: 15px 8px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  padding: 16px;
}

.dashboard-tour-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  grid-row: 1;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.dashboard-tour-heading>b {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 73, 109, .62);
  border-radius: 50%;
  background: rgba(255, 45, 82, .09);
  box-shadow: inset 0 0 16px rgba(255, 45, 82, .1), 0 0 14px rgba(255, 45, 82, .1);
  color: #ff5878;
}

.dashboard-tour-heading>b svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 4px rgba(255, 73, 109, .55));
}

.dashboard-tour-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-title small {
  width: max-content;
  display: block;
  grid-column: auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 73, 109, .28);
  border-radius: 999px;
  background: rgba(255, 73, 109, .08);
  color: #ff6c88;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
}

body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-title strong {
  max-width: 190px;
  display: block;
  overflow: hidden;
  grid-column: auto;
  color: #fff;
  font: 760 18px/1.18 "Manrope", sans-serif;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-title em {
  display: block;
  overflow: hidden;
  grid-column: auto;
  color: #aeb3bd;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tour-meta {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-column: 1;
  grid-row: 3;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(5, 7, 10, .7);
  backdrop-filter: blur(8px);
}

.dashboard-tour-meta>span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-meta small,
body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-meta strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  grid-column: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-meta small {
  color: #818894;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="home"] .dashboard-tour-detail-card .dashboard-tour-meta strong {
  margin-top: 3px;
  color: #f5f6f8;
  font: 700 16px/1.2 "DM Sans", sans-serif;
}

.dashboard-tour-meta>i {
  color: #ff5878;
  font-size: 14px;
  font-style: normal;
  filter: drop-shadow(0 0 4px rgba(255, 73, 109, .45));
}

.dashboard-tour-calendar {
  width: 47%;
  max-width: 176px;
  height: auto;
  position: absolute;
  z-index: 0;
  top: 46px;
  right: -10px;
  opacity: .62;
  object-fit: contain;
  filter: saturate(1.18) contrast(1.04) drop-shadow(0 0 13px rgba(255, 32, 68, .18));
  -webkit-mask-image: linear-gradient(to left, #000 68%, transparent 100%);
  mask-image: linear-gradient(to left, #000 68%, transparent 100%);
}

.dashboard-tour-manage {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 16px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(255, 73, 109, .34);
  border-radius: 11px;
  background: rgba(9, 10, 14, .88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-tour-manage>b {
  color: #ff5c7e;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.dashboard-tour-card .tour-week-label {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-tour-card strong {
  grid-column: 1;
  font: 750 18px/1.2 "Manrope", sans-serif;
}

.dashboard-tour-card small,
.dashboard-tour-card em {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.dashboard-tour-card .tour-card-arrow {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
  color: var(--muted);
  font-size: 28px;
}

.dashboard-tour-card.empty {
  background: var(--surface);
}

@media (max-width: 350px) {
  .dashboard-profile-summary {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: 8px;
  }

  .dashboard-main-photo,
  .dashboard-main-photo img {
    min-height: 210px;
  }

  .dashboard-rating-line,
  .dashboard-phone-line,
  .dashboard-plan-line {
    padding: 8px;
  }

  .dashboard-rating-line,
  .dashboard-phone-line,
  .dashboard-plan-line {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .dashboard-rating-line {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .dashboard-fact-icon {
    width: 34px;
    height: 34px;
  }

  .dashboard-stars>span {
    font-size: 9px;
  }

  .dashboard-profile-stats {
    gap: 5px;
  }

  .dashboard-profile-stat {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 1px 5px;
    padding: 6px;
  }

  .dashboard-profile-stat>span {
    width: 25px;
    height: 25px;
  }

  .dashboard-profile-stat svg {
    width: 14px;
    height: 14px;
  }

  .dashboard-profile-stat>strong {
    font-size: 15px;
  }

  .dashboard-profile-stat>small {
    font-size: 7px;
  }
}

.dashboard-account-bar {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 -18px 28px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #17191b;
}

.dashboard-account-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #17656b;
  color: #d5e4e4;
}

.dashboard-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-account-copy strong {
  overflow: hidden;
  font: 700 16px/1.2 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-account-copy small {
  color: #b7bbc1;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dashboard-account-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.dashboard-account-actions a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #149da5;
  color: #071012;
  font: 700 25px/1 "Manrope", sans-serif;
}

.dashboard-account-actions a:focus-visible {
  outline: 3px solid rgba(20, 157, 165, .38);
  outline-offset: 3px;
}

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

.reference-dashboard-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 12px 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: #3a3d43;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform 140ms ease, background 150ms ease, border-color 150ms ease;
}

.reference-dashboard-card.addon {
  border-color: rgba(20, 157, 165, .25);
}

.reference-dashboard-card:hover {
  border-color: rgba(255, 255, 255, .18);
  background: #42454b;
}

.reference-dashboard-card:active {
  transform: scale(.985);
}

.reference-dashboard-card:focus-visible {
  outline: 3px solid rgba(20, 157, 165, .38);
  outline-offset: 3px;
}

.reference-card-icon {
  width: 45px;
  height: 45px;
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  align-self: start;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #fff;
  font: 600 19px/1 "Manrope", sans-serif;
}

.reference-dashboard-card.addon .reference-card-icon {
  border-color: #54c8ce;
  color: #8de4e8;
}

.reference-card-label {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.reference-card-arrow {
  color: #fff;
  font-size: 30px;
  line-height: .8;
}

@media (max-width: 350px) {
  .dashboard-account-actions {
    gap: 6px;
  }

  .dashboard-account-actions a {
    width: 38px;
    height: 38px;
  }

  .reference-dashboard-card {
    min-height: 138px;
    padding: 13px;
  }

  .reference-card-label {
    font-size: 11px;
  }
}

.list-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.list-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

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

a.list-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.list-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-3);
  color: #cfd3da;
}

.list-icon svg {
  width: 18px;
}

.list-text {
  min-width: 0;
  flex: 1;
}

.list-title {
  display: block;
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
}

.list-copy {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-chevron {
  width: 18px;
  flex: 0 0 auto;
  color: var(--muted-2);
}

.mini-pill {
  padding: 5px 8px;
  background: var(--accent-soft);
  color: #ee6f8c;
}

.bottom-nav {
  width: calc(100% - 20px);
  max-width: min(calc(var(--content) - 20px), 900px);
  height: calc(74px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(18, 21, 27, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  border-radius: 17px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  transition: color 150ms ease, background 150ms ease;
}

button.nav-item {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.nav-item.active::before {
  content: "";
  width: 16px;
  height: 3px;
  position: absolute;
  top: 3px;
  border-radius: 9px;
  background: var(--accent-strong);
}

body[data-page="home"] .nav-item.active {
  background: rgba(226, 58, 97, .08);
  color: #ff6b8d;
}

body[data-page="home"] .nav-item.active svg {
  filter: none;
}

.nav-item:focus-visible {
  outline: 2px solid rgba(226, 58, 97, 0.52);
  outline-offset: -2px;
}

.desktop-nav-menu {
  display: none;
}

.app-menu-dialog {
  width: min(700px, 100%);
  max-width: none;
  max-height: min(88vh, 760px);
  position: fixed;
  inset: auto 0 0;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.app-menu-dialog[open] {
  animation: menu-rise 180ms ease-out;
}

.app-menu-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.app-menu-sheet {
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 9px 16px calc(26px + env(safe-area-inset-bottom));
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #101319;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.5);
}

.app-menu-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}

.app-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.app-menu-heading h2 {
  margin: 2px 0 0;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.app-menu-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font: 400 25px/1 inherit;
  cursor: pointer;
}

.app-menu-list {
  display: grid;
  gap: 8px;
}

.app-menu-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
}

.app-menu-row:first-child {
  border-color: rgba(226, 58, 97, 0.26);
  background: var(--accent-soft);
}

.app-menu-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: #e9ebef;
}

.app-menu-icon svg {
  width: 21px;
  height: 21px;
}

.app-menu-row strong,
.app-menu-row small {
  display: block;
}

.app-menu-row strong {
  font-size: 14px;
}

.app-menu-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.app-menu-arrow {
  color: var(--muted);
  font-size: 25px;
}

.app-menu-section-label {
  margin: 13px 3px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app-menu-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.app-menu-secondary a {
  min-height: 43px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: #dfe2e7;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.app-menu-edit-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.app-menu-edit-links a {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: #dfe2e7;
  font-size: 11px;
  font-weight: 700;
}

.app-menu-edit-links a span {
  color: var(--muted);
  font-size: 18px;
}

.app-menu-edit-links a.active {
  border-color: rgba(226, 58, 97, .5);
  background: var(--accent-soft);
  color: #fff;
}

.app-menu-edit-links a:focus-visible {
  outline: 3px solid rgba(226, 58, 97, .32);
  outline-offset: 2px;
}

@keyframes menu-rise {
  from {
    transform: translateY(22px);
    opacity: 0;
  }

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

@media (max-width: 390px) {
  .app-menu-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared mobile workspace primitives. Keep feature pages composed from these
   small pieces so adding or rearranging a MyEA screen stays straightforward. */
.grow {
  flex: 1;
}

.top-gap {
  margin-top: 16px;
}

.hero-eyebrow {
  margin-top: 24px;
  margin-bottom: -16px;
}

.compact-hero .hero-title {
  margin-top: 18px;
}

.profile-greeting {
  margin: 0;
  font: 750 18px/1.25 "Manrope", sans-serif;
  letter-spacing: -.35px;
}

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

.button-row>* {
  min-width: 0;
}

.small-button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
}

.danger-button {
  border-color: #f35b7e;
  background: #bb2348;
}

.back-button {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  font-size: 30px;
  line-height: 1;
}

.metric-scroll {
  display: grid;
  grid-auto-columns: minmax(128px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.metric-scroll::-webkit-scrollbar {
  display: none;
}

.metric-scroll .stat-card {
  min-height: 104px;
}

.metric-scroll .stat-value {
  display: block;
  margin-top: 8px;
}

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

.wallet-card {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.wallet-card strong {
  font: 800 25px/1 "Manrope", sans-serif;
}

.wallet-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.completion-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 188, 97, .1);
  color: var(--warning);
  font-weight: 800;
}

.completion-mark.done {
  background: rgba(71, 215, 160, .1);
  color: var(--success);
}

.completion-mark.pending {
  background: rgba(106, 157, 255, .1);
  color: #8db6ff;
}

.skeleton-card,
.skeleton-list {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--surface) 20%, var(--surface-2) 36%, var(--surface) 52%);
  background-size: 220% 100%;
  animation: skeleton 1.3s ease-in-out infinite;
}

.skeleton-card {
  height: 220px;
}

.skeleton-card.tall {
  height: 430px;
}

.skeleton-list {
  height: 260px;
  margin-top: 28px;
}

@keyframes skeleton {
  to {
    background-position-x: -220%;
  }
}

.editor-page {
  padding-bottom: calc(190px + env(safe-area-inset-bottom));
}

.profile-quick-nav {
  display: flex;
  gap: 8px;
  position: sticky;
  z-index: 20;
  top: 0;
  margin: 0 -16px 14px;
  padding: 10px 16px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  background: linear-gradient(180deg, rgba(9, 11, 15, .98) 76%, rgba(9, 11, 15, 0));
  scroll-snap-type: inline proximity;
  -webkit-overflow-scrolling: touch;
}

.profile-quick-nav::-webkit-scrollbar {
  display: none;
}

.profile-quick-nav a {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  scroll-snap-align: center;
}

.profile-quick-nav a.active {
  border-color: rgba(226, 58, 97, .55);
  background: var(--accent-soft);
  color: #fff;
}

.profile-quick-nav a:focus-visible {
  outline: 3px solid rgba(226, 58, 97, .32);
  outline-offset: 2px;
}

.editor-section {
  margin-bottom: 12px;
  scroll-margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.editor-section summary {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  cursor: pointer;
  list-style: none;
}

.editor-section summary::-webkit-details-marker {
  display: none;
}

.editor-section summary>span:first-child {
  display: grid;
  gap: 3px;
}

.editor-section summary small {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.editor-section summary strong {
  font: 700 15px/1.25 "Manrope", sans-serif;
}

.editor-section summary em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.summary-chevron {
  color: var(--muted);
  font-size: 22px;
  transition: transform 160ms ease;
}

.editor-section[open] .summary-chevron {
  transform: rotate(180deg);
}

.editor-section-body {
  display: grid;
  gap: 17px;
  padding: 0 17px 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.editor-section-page {
  overflow: visible;
}

.editor-section-heading {
  display: grid;
  gap: 5px;
  padding: 19px 17px 17px;
}

.editor-section-heading h2 {
  font-size: 18px;
  line-height: 1.25;
}

.editor-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.editor-section-status {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.editor-section-status.ready {
  color: var(--success);
}

.field-grid {
  display: grid;
  gap: 15px;
}

.field-grid.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
  line-height: 1.5;
}

.input[readonly] {
  color: var(--muted);
  background: #0d1015;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.subpanel {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}

.subpanel h3 {
  margin-bottom: 14px;
  font-size: 14px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.switch-row>span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.switch-row strong {
  font-size: 13px;
}

.switch-row small {
  color: var(--muted);
  font-size: 11px;
}

.switch-row>input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row>input:checked+.toggle {
  background: var(--accent);
}

.switch-row>input:checked+.toggle::after {
  transform: translateX(19px);
}

.switch-row>input:focus-visible+.toggle {
  outline: 3px solid rgba(226, 58, 97, .32);
  outline-offset: 3px;
}

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

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.choice input:checked+span {
  border-color: rgba(226, 58, 97, .5);
  background: var(--accent-soft);
  color: #fff;
}

.choice input:focus-visible+span {
  outline: 3px solid rgba(226, 58, 97, .32);
  outline-offset: 2px;
}

.schedule-list {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
}

.schedule-row>span {
  color: var(--muted);
  font-size: 11px;
}

.schedule-row .input {
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  font-size: 16px;
}

.repeat-list {
  display: grid;
  gap: 9px;
}

.repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .45fr) 38px;
  gap: 8px;
}

.repeat-row .input {
  height: 46px;
  padding: 0 12px;
  font-size: 13px;
}

.tiny-button {
  width: 38px;
  height: 38px;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
}

.tiny-button:disabled {
  opacity: .3;
}

.sticky-save {
  width: calc(100% - 24px);
  max-width: calc(var(--content) - 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  background: rgba(20, 23, 30, .96);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}

.sticky-save>div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sticky-save strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-save small {
  color: var(--muted);
  font-size: 9px;
}

.sticky-save .primary-button,
.sticky-save .secondary-button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 11px;
}

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

.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0c0e12;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.media-card.dragging {
  opacity: .55;
  transform: scale(.98);
}

.media-card.drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(180, 0, 45, .22);
}

.media-drag-handle {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(5, 6, 8, .78);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

.media-preview {
  aspect-ratio: 3 / 4;
  position: relative;
  background: #050608;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.media-badge.muted-badge {
  background: rgba(12, 14, 18, .82);
  color: var(--muted);
}

.media-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 5px;
}

.media-actions button {
  min-width: 28px;
  flex: 1 1 28px;
  padding: 7px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.media-actions button:hover {
  background: var(--surface-3);
  color: #fff;
}

.compact-empty {
  grid-column: 1 / -1;
  padding: 24px;
}

.preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-cover {
  aspect-ratio: 3 / 4;
  max-height: 520px;
  background: #050608;
}

.preview-cover img,
.preview-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-body {
  padding: 22px;
}

.preview-body h1 {
  margin: 22px 0 5px;
  font-size: 27px;
}

.preview-meta {
  color: var(--muted);
}

.preview-bio {
  margin: 20px 0;
  color: #d4d7dc;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-2);
  color: #d5d8de;
  font-size: 11px;
}

.large-status {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: 800 23px/1 "Manrope", sans-serif;
}

.large-status.approved {
  background: rgba(71, 215, 160, .1);
  color: var(--success);
}

.large-status.rejected {
  background: rgba(226, 58, 97, .12);
  color: #ff7695;
}

.confirm-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: transparent;
  color: var(--text);
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}

.confirm-card {
  padding: 22px;
  border-radius: inherit;
  background: var(--surface);
}

.confirm-card h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.confirm-card p:not(.eyebrow) {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.confirm-card .button-row {
  justify-content: flex-end;
}

.confirm-card button {
  min-height: 46px;
}

.toast.error {
  border-color: rgba(255, 118, 149, .3);
}

.toast.error>span:first-child {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 58, 97, .15);
  color: #ff7695;
  font-weight: 800;
}

@media (min-width: 560px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-section-body>.field {
    grid-column: 1 / -1;
  }

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

@media (max-width: 430px) {
  .sticky-save>div:first-child {
    display: none;
  }

  .sticky-save .button-row {
    width: 100%;
  }

  .sticky-save .button-row>* {
    flex: 1;
  }

  .nav-item {
    font-size: 9px;
  }
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-title {
  margin-bottom: 6px;
  font-size: 16px;
}

.panel-copy {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-avatar-large {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(145deg, #373d49, #1d222b);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.center {
  text-align: center;
}

.verification {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}

.verification svg {
  width: 14px;
}

.toggle {
  width: 46px;
  height: 27px;
  flex: 0 0 auto;
  position: relative;
  border: 0;
  border-radius: 99px;
  background: #2b3039;
  cursor: pointer;
  transition: background 180ms ease;
}

.toggle::after {
  content: "";
  width: 21px;
  height: 21px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease;
}

.toggle.on {
  background: var(--accent);
}

.toggle.on::after {
  transform: translateX(19px);
}

.chart-card {
  padding: 20px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.chart-value {
  margin: 4px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.chart-bars {
  height: 145px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(255, 255, 255, .045) 44px);
}

.bar-wrap {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: end;
}

.bar {
  width: 100%;
  min-height: 5px;
  border-radius: 6px 6px 2px 2px;
  background: #2d323c;
}

.bar.highlight {
  background: linear-gradient(#ef5276, #c92a50);
  box-shadow: 0 -4px 18px rgba(226, 58, 97, 0.15);
}

.chart-labels {
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

.chart-labels span {
  flex: 1;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

.empty-state {
  padding: 38px 24px;
  text-align: center;
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 17px;
  background: var(--surface-3);
  color: var(--muted);
}

.empty-icon svg {
  width: 24px;
}

.danger-text {
  color: #ff7695;
}

.toast {
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 11px;
  position: fixed;
  z-index: 80;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  transform: translate(-50%, -18px);
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #191d24;
  color: #eceef1;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.toast svg {
  width: 18px;
  color: var(--success);
}

.signup-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 25px 0 0;
}

.signup-progress span {
  height: 4px;
  flex: 1;
  border-radius: 9px;
  background: var(--surface-3);
}

.signup-progress span.active {
  background: var(--accent);
}

.select-wrap::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 20px;
  right: 19px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

select.input {
  appearance: none;
  padding-right: 48px;
}

.fine-print {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}

.fine-print a {
  color: #c9ccd2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at 25% 0%, rgba(226, 58, 97, 0.13), transparent 34rem),
      radial-gradient(circle at 82% 90%, rgba(76, 92, 122, 0.1), transparent 30rem),
      #07090c;
  }

  .app-frame {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: rgba(9, 11, 15, 0.72);
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.38);
  }

  .page {
    padding-right: clamp(34px, 4vw, 54px);
    padding-left: clamp(34px, 4vw, 54px);
  }

  .auth-page {
    padding-right: 72px;
    padding-left: 72px;
  }
}

@media (min-width: 1025px) {
  .app-frame:not(.auth-page) {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
  }

  .app-frame:not(.auth-page) > .page {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: 48px;
  }

  .app-frame:not(.auth-page) > .bottom-nav {
    width: 200px;
    max-width: none;
    height: calc(100dvh - 32px);
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr;
    grid-template-rows: 62px repeat(4, 52px) minmax(0, 1fr);
    align-content: start;
    position: sticky;
    top: 16px;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 16px;
    padding: 10px;
    border-radius: 22px;
    overflow: hidden;
  }

  .app-frame:not(.auth-page) > .bottom-nav::before {
    content: "MyEA";
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.04em;
  }

  .bottom-nav .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 15px;
    border-radius: 13px;
    font-size: 13px;
  }

  .bottom-nav .nav-menu-button {
    display: none;
  }

  .desktop-nav-menu {
    min-height: 0;
    display: block;
    overflow-y: auto;
    padding: 14px 6px 68px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }

  .desktop-nav-title,
  .desktop-nav-label {
    margin: 0;
    padding: 0 9px;
  }

  .desktop-nav-title {
    color: var(--text);
    font: 800 14px/1.3 "Manrope", sans-serif;
  }

  .desktop-nav-label {
    margin-top: 16px;
    margin-bottom: 5px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .desktop-nav-menu nav {
    display: grid;
    gap: 2px;
  }

  .desktop-nav-menu a {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 7px 9px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
  }

  .desktop-nav-menu a:hover,
  .desktop-nav-menu a.active {
    background: rgba(255, 255, 255, .055);
    color: var(--text);
  }

  .desktop-nav-menu a.active {
    box-shadow: inset 3px 0 var(--accent-strong);
  }

  .bottom-nav .nav-item svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav .nav-item.active::before {
    width: 3px;
    height: 24px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  button.nav-item {
    width: 100%;
  }

  .language-control {
    top: auto;
    right: auto;
    bottom: 32px;
    left: max(42px, calc(50% - var(--content-half) + 42px));
  }

  body[data-page="profile-section"] .sticky-save {
    width: 100%;
    max-width: none;
    position: sticky;
    left: auto;
    bottom: 16px;
    transform: none;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(20, 23, 30, .94);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  }

  body[data-page="profile-section"] .sticky-save > div:first-child {
    grid-template-columns: 9px minmax(0, 1fr);
    column-gap: 9px;
  }

  body[data-page="profile-section"] .sticky-save > div:first-child::before {
    content: "";
    width: 8px;
    height: 8px;
    grid-row: 1 / 3;
    align-self: center;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(71, 215, 160, .1);
  }

  body[data-page="profile-section"] .sticky-save strong,
  body[data-page="profile-section"] .sticky-save small {
    grid-column: 2;
  }

  body[data-page="profile-section"] .sticky-save strong {
    font-size: 13px;
  }

  body[data-page="profile-section"] .sticky-save small {
    font-size: 10px;
  }

  body[data-page="profile-section"] .sticky-save .secondary-button {
    min-width: 116px;
    min-height: 46px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 12px;
  }

  body[data-page="profile"] [data-profile-view] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  body[data-page="profile"] [data-profile-view] > .notice-banner,
  body[data-page="profile"] [data-profile-view] > .profile-hero {
    grid-column: 1 / -1;
  }

  body[data-page="profile"] [data-profile-view] > .section {
    margin-top: 24px;
  }

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

@media (max-width: 374px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .stats-grid {
    gap: 7px;
  }

  .stat-card {
    padding-right: 10px;
    padding-left: 10px;
  }

  .schedule-row {
    grid-template-areas:
      "day start clear"
      "to end clear";
    grid-template-columns: 32px minmax(0, 1fr) 38px;
    gap: 6px 7px;
  }

  .schedule-row>span:first-child {
    grid-area: day;
  }

  .schedule-row>.input:nth-of-type(1) {
    grid-area: start;
  }

  .schedule-row>span:nth-of-type(2) {
    grid-area: to;
    text-align: right;
  }

  .schedule-row>.input:nth-of-type(2) {
    grid-area: end;
  }

  .schedule-row>.tiny-button {
    grid-area: clear;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
