/* ===== Specialist dashboard — premium brand space ===== */

:root {
  --dash-ease: var(--theme-ease, cubic-bezier(0.22, 1, 0.36, 1));
  --dash-duration: 0.5s;
  --dash-glass: var(--glass);
  --dash-radius-card: 2rem;
  --dash-radius-sidebar: 1.75rem;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  padding-bottom: 5.5rem;
}

@media (min-width: 1024px) {
  .dashboard-page {
    padding-bottom: 0;
  }
}

/* --- Atmosphere --- */
.dash-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.dash-atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.5) 0%,
      var(--background) 35%,
      var(--background) 70%,
      rgba(231, 139, 123, 0.04) 100%);
}

.dash-atmosphere__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.dash-atmosphere__blob--1 {
  top: -5%;
  left: -8%;
  width: min(50vw, 22rem);
  height: min(50vw, 22rem);
  background: radial-gradient(circle, rgba(16, 35, 62, 0.1), transparent 70%);
  animation: dashBlob1 30s var(--dash-ease) infinite;
}

.dash-atmosphere__blob--2 {
  bottom: 10%;
  right: -6%;
  width: min(45vw, 20rem);
  height: min(45vw, 20rem);
  background: radial-gradient(circle, rgba(231, 139, 123, 0.14), transparent 70%);
  animation: dashBlob2 26s var(--dash-ease) infinite;
}

.dash-atmosphere__wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.65;
}

.dash-atmosphere__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes dashBlob1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(20px, 16px, 0); }
}

@keyframes dashBlob2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-16px, -12px, 0); }
}

/* --- Shell --- */
.dash-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .dash-shell {
    grid-template-columns: 15.5rem 1fr;
    padding: 1.75rem 2rem 2.5rem;
    gap: 2rem;
    align-items: start;
  }
}

/* --- Sidebar --- */
.dash-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .dash-sidebar {
    display: block;
    position: sticky;
    top: 1.75rem;
  }
}

.dash-sidebar__panel {
  background: var(--dash-glass);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: var(--dash-radius-sidebar);
  box-shadow: 0 20px 60px rgba(16, 35, 62, 0.06);
  padding: 1.25rem 0.875rem;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 3.5rem);
}

.dash-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0.25rem 0.75rem 1.25rem;
}

.dash-sidebar__logo {
  display: block;
  padding: 0;
}

.dash-sidebar__theme {
  display: none;
  flex-shrink: 0;
}

.dash-topbar__theme {
  display: inline-flex;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .dash-sidebar__theme {
    display: inline-flex;
  }

  .dash-topbar__theme {
    display: none;
  }
}

.dash-sidebar__logo img {
  height: 1.75rem;
  width: auto;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.dash-nav__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  text-align: left;
  border: none;
  border-radius: 1rem;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    color var(--dash-duration) var(--dash-ease),
    background var(--dash-duration) var(--dash-ease),
    box-shadow var(--dash-duration) var(--dash-ease),
    transform 0.35s var(--dash-ease);
}

.dash-nav__link:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(2px);
}

.dash-nav__link.is-active {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(231, 139, 123, 0.2),
    0 8px 28px rgba(231, 139, 123, 0.12),
    0 0 24px rgba(231, 139, 123, 0.08);
}

.dash-nav__icon {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-nav__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dash-sidebar__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 35, 62, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-sidebar__save {
  width: calc(100% - 1rem);
  margin: 0 0.5rem;
  justify-content: center;
}

.dash-nav__link--logout:hover {
  color: var(--coral-dark);
  background: rgba(231, 139, 123, 0.08);
  box-shadow: none;
}

/* --- Main --- */
.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: -1rem -1rem 0;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  border-bottom: 1px solid rgba(16, 35, 62, 0.06);
}

@media (min-width: 1024px) {
  .dash-topbar {
    display: none;
  }
}

.dash-topbar__logo {
  flex-shrink: 0;
  display: flex;
  line-height: 0;
}

.dash-topbar__logo img {
  height: 1.5rem;
  width: auto;
}

.dash-topbar__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.dash-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.dash-topbar__menu {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 0.875rem;
  background: var(--dash-glass);
  backdrop-filter: blur(12px);
  color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

.dash-topbar__save {
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 0.875rem;
}

.dash-topbar__save-label--short {
  display: none;
}

@media (max-width: 420px) {
  .dash-topbar__save-label--long {
    display: none;
  }

  .dash-topbar__save-label--short {
    display: inline;
  }

  .dash-topbar__save {
    padding: 0.5rem 0.75rem;
  }
}

.dash-topbar__menu svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Hero --- */
.dash-hero__card {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--dash-glass);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: var(--dash-radius-card);
  box-shadow: 0 20px 60px rgba(16, 35, 62, 0.06);
  overflow: hidden;
}

@media (min-width: 768px) {
  .dash-hero__card {
    grid-template-columns: 1fr minmax(14rem, 17rem);
    align-items: center;
  }
}

.dash-hero__glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(231, 139, 123, 0.15), transparent 65%);
  pointer-events: none;
}

.dash-hero__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.dash-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dash-hero__avatar {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 12px 32px rgba(16, 35, 62, 0.18);
}

.dash-hero__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-hero__avatar.has-photo .dash-hero__initials {
  display: none;
}

.dash-hero__initials {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.dash-hero__status {
  position: absolute;
  bottom: 0.15rem;
  right: 0.15rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--emerald-500);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(16, 35, 62, 0.15);
}

.dash-hero__name {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
}

.dash-hero__role {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.dash-hero__city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--navy);
  opacity: 0.75;
}

.dash-hero__city svg {
  width: 0.875rem;
  height: 0.875rem;
}

.dash-hero__completion {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 35, 62, 0.05);
  border-radius: 1.25rem;
}

.dash-hero__completion-label {
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.4;
}

.dash-hero__completion-label strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--coral-dark);
}

.dash-hero__completion-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dash-progress {
  margin: 1rem 0 1.125rem;
  height: 0.5rem;
  background: rgba(16, 35, 62, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--coral-light));
  box-shadow: 0 0 16px rgba(231, 139, 123, 0.45);
  transition: width 0.8s var(--dash-ease);
}

.dash-hero__completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dash-hero__completion-actions .dash-btn--primary {
  flex: 1 1 auto;
  min-width: 8.5rem;
}

/* --- Cards --- */
.dash-card {
  background: var(--dash-glass);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: var(--dash-radius-card);
  box-shadow: 0 20px 60px rgba(16, 35, 62, 0.06);
  overflow: hidden;
  transition:
    transform var(--dash-duration) var(--dash-ease),
    box-shadow var(--dash-duration) var(--dash-ease);
}

.dash-card:hover {
  box-shadow: 0 24px 64px rgba(16, 35, 62, 0.08);
}

.dash-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 1.75rem) 0;
}

.dash-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.dash-card__desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.dash-card__save {
  flex-shrink: 0;
  padding: 0.5rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 35, 62, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    background 0.3s var(--dash-ease),
    border-color 0.3s var(--dash-ease),
    transform 0.3s var(--dash-ease),
    box-shadow 0.3s var(--dash-ease);
}

.dash-card__save:disabled,
.dash-topbar__save:disabled,
.dash-sidebar__save:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dash-card__save.is-saving,
.dash-btn.is-saving {
  pointer-events: none;
}

.dash-card__save:hover {
  background: #fff;
  border-color: rgba(231, 139, 123, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(231, 139, 123, 0.12);
}

.dash-card__body {
  padding: clamp(1rem, 3vw, 1.75rem);
}

/* --- Form fields --- */
.dash-field {
  margin-bottom: 1.25rem;
}

.dash-field:last-child {
  margin-bottom: 0;
}

.dash-field label,
.dash-field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.dash-field input:not(.rika-contact-input__field),
.dash-field textarea {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 35, 62, 0.1);
  border-radius: var(--radius-xl);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.dash-field textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.65;
}

.dash-field input:not(.rika-contact-input__field):focus,
.dash-field textarea:focus {
  outline: none;
  border-color: rgba(231, 139, 123, 0.45);
  box-shadow: 0 0 0 4px var(--glow);
}

.dash-field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .dash-field-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-field .rika-select {
  margin-bottom: 0;
}

.dash-category-picker {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Subcategory — same behavior as onboarding (no max-height clip) */
.dash-category-sub,
.dash-category-picker .onboarding-category-sub {
  overflow: visible;
  max-height: none;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-category-sub.is-visible,
.dash-category-picker .onboarding-category-sub.is-visible {
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.75rem;
  pointer-events: auto;
}

.dash-category-sub.is-visible:has(.rika-select.is-open),
.dash-category-picker .onboarding-category-sub.is-visible:has(.rika-select.is-open) {
  z-index: 50;
}

.dash-category-sub[hidden],
.dash-category-picker .onboarding-category-sub[hidden] {
  display: none !important;
}

.dash-category-sub .dash-field {
  margin-bottom: 0;
  overflow: visible;
}

.dash-category-picker .rika-select.is-open .rika-select__menu {
  z-index: 70;
}

/* Let open selects extend outside the glass card */
.dash-card:has(.rika-select.is-open) {
  overflow: visible;
  z-index: 4;
}

.dash-card__body:has(.rika-select.is-open) {
  overflow: visible;
}

/* --- Avatar upload --- */
.dash-avatar-field {
  margin-bottom: 1.5rem;
}

.dash-avatar-upload {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dash-avatar-upload__trigger {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}

.dash-avatar-upload__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border: 2px dashed rgba(16, 35, 62, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dash-avatar-upload__preview.is-filled {
  border-style: solid;
  border-color: rgba(16, 35, 62, 0.08);
}

.dash-avatar-upload__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-avatar-upload__initials {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
}

.dash-avatar-upload__preview.is-filled .dash-avatar-upload__initials {
  display: none;
}

.dash-avatar-upload__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.dash-avatar-upload__badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.dash-link-btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dash-link-btn:hover {
  color: var(--coral-dark);
}

.dash-link-btn--muted {
  color: var(--muted-foreground);
}

.dash-link-btn--danger {
  color: var(--coral-dark);
}

.dash-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* --- Copy inputs --- */
.dash-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.dash-input-wrap:not(.rika-contact-input) input {
  padding-right: 3rem;
}

.dash-copy {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: rgba(16, 35, 62, 0.05);
  color: var(--navy);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--dash-ease);
}

.dash-copy:hover {
  background: var(--glow);
  color: var(--coral-dark);
}

.dash-copy.is-copied {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
}

.dash-copy svg {
  width: 1rem;
  height: 1rem;
}

.dash-field__status {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dash-field__status.is-valid {
  opacity: 1;
  transform: none;
  color: var(--emerald-600);
}

.dash-field__status.is-invalid {
  opacity: 1;
  transform: none;
  color: var(--red-500);
}

.dash-field input.is-invalid {
  border-color: rgba(239, 68, 68, 0.45);
}

/* --- Portfolio --- */
.dash-portfolio-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 2rem 1.25rem;
  border: 2px dashed rgba(16, 35, 62, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.dash-portfolio-drop:hover,
.dash-portfolio-drop.is-dragover {
  border-color: rgba(231, 139, 123, 0.45);
  background: rgba(231, 139, 123, 0.06);
}

.dash-portfolio-drop svg {
  width: 2rem;
  height: 2rem;
  color: var(--coral);
}

.dash-portfolio-drop__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.dash-portfolio-drop__sub {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

.dash-portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .dash-portfolio {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.dash-portfolio__item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--secondary);
  box-shadow: 0 8px 24px rgba(16, 35, 62, 0.08);
  cursor: grab;
  transition:
    transform 0.35s var(--dash-ease),
    box-shadow 0.35s var(--dash-ease);
}

.dash-portfolio__item:nth-child(3n + 1) {
  grid-row: span 1;
}

.dash-portfolio__item:nth-child(5n + 1) {
  aspect-ratio: 4 / 5;
}

.dash-portfolio__item:not(:nth-child(5n + 1)) {
  aspect-ratio: 1;
}

.dash-portfolio__item.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.dash-portfolio__item.is-drop-target {
  box-shadow: 0 0 0 3px var(--coral);
}

.dash-portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--dash-ease);
}

.dash-portfolio__item:hover img {
  transform: scale(1.04);
}

.dash-portfolio__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.625rem;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 35, 62, 0.55));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dash-portfolio__item:hover .dash-portfolio__overlay {
  opacity: 1;
}

.dash-portfolio__drag {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  cursor: grab;
}

.dash-portfolio__remove {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  border: none;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--dash-ease);
}

.dash-portfolio__remove:hover {
  transform: scale(1.08);
  background: #fff;
}

/* --- Services editor (mirrors public profile cards) --- */
.dash-services-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(16, 35, 62, 0.06);
}

.dash-services-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.dash-services-block__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.dash-services-block__range {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin: 0;
}

.dash-services-editor {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 520px) {
  .dash-services-editor {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dash-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(16, 35, 62, 0.04);
  transition:
    transform 0.35s var(--dash-ease),
    box-shadow 0.35s var(--dash-ease),
    border-color 0.35s var(--dash-ease);
}

.dash-service-card:focus-within {
  border-color: rgba(231, 139, 123, 0.35);
  box-shadow: 0 12px 40px rgba(231, 139, 123, 0.1);
}

.dash-service-card__remove {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(16, 35, 62, 0.06);
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--dash-ease);
}

.dash-service-card__remove:hover {
  background: rgba(231, 139, 123, 0.15);
  color: var(--coral-dark);
  transform: scale(1.05);
}

.dash-service-card__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-service-card__field-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.dash-service-card__input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.dash-service-card__input::placeholder {
  color: var(--muted-foreground);
  font-weight: 500;
}

.dash-service-card__input:focus {
  outline: none;
  border-color: rgba(231, 139, 123, 0.45);
  box-shadow: 0 0 0 3px rgba(231, 139, 123, 0.12);
}

.dash-service-card__price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-service-card__price .dash-service-card__input {
  flex: 1;
  font-weight: 600;
  color: var(--navy);
}

.dash-service-card__currency {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #5b9fd4;
}

.dash-services-add {
  display: inline-flex;
  gap: 0.5rem;
}

.dash-services-add svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dash-services-empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(16, 35, 62, 0.12);
  border-radius: 1.25rem;
}

/* --- Location (onboarding comboboxes) --- */
.dash-location-fields {
  position: relative;
}

.dash-location-fields .onboarding-combobox__list {
  z-index: 60;
}

.dash-card:has(.dash-location-fields .onboarding-combobox__list:not([hidden])),
.dash-card:has(.dash-location-fields .onboarding-combobox__input:focus) {
  overflow: visible;
  z-index: 4;
}

.dash-card__body.dash-location-fields:has(.onboarding-combobox__list:not([hidden])) {
  overflow: visible;
}

.dash-field.onboarding-field .onboarding-combobox__input {
  width: 100%;
}

/* --- Map --- */
.dash-map-block {
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(16, 35, 62, 0.06);
  border-radius: 1.25rem;
}

.dash-map-block__label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.dash-map-block__hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.dash-map-preview {
  height: 11rem;
  margin: 1rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 62, 0.08);
  z-index: 0;
}

.dash-map-preview .leaflet-control-attribution {
  font-size: 9px;
}

/* --- Toggles --- */
.dash-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(16, 35, 62, 0.06);
}

.dash-toggle-row:last-of-type {
  border-bottom: none;
}

.dash-toggle-row__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.dash-toggle-row__desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.2rem;
}

.dash-toggle {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.dash-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-toggle__track {
  display: block;
  width: 2.75rem;
  height: 1.5rem;
  background: rgba(16, 35, 62, 0.12);
  border-radius: var(--radius-full);
  transition: background 0.3s var(--dash-ease);
}

.dash-toggle__track::after {
  content: '';
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(16, 35, 62, 0.15);
  transition: transform 0.35s var(--dash-ease);
}

.dash-toggle input:checked + .dash-toggle__track {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
}

.dash-toggle input:checked + .dash-toggle__track::after {
  transform: translateX(1.25rem);
}



/* --- Buttons --- */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.35s var(--dash-ease),
    box-shadow 0.35s var(--dash-ease),
    background 0.35s ease;
}

.dash-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.dash-hero__completion-actions .dash-btn--sm {
  flex: 1 1 auto;
  min-width: 0;
}

.dash-btn--ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 35, 62, 0.1);
}

.dash-btn--ghost:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 35, 62, 0.08);
}

.dash-btn--outline {
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(16, 35, 62, 0.12);
  width: 100%;
}

.dash-btn--outline:hover {
  border-color: rgba(231, 139, 123, 0.4);
  background: rgba(231, 139, 123, 0.06);
}

.dash-btn--primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(16, 35, 62, 0.2);
}

.dash-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(16, 35, 62, 0.24);
}

.dash-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --- Map modal --- */
.dash-map-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.dash-map-modal[hidden] {
  display: none;
}

.dash-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 62, 0.35);
  backdrop-filter: blur(6px);
}

.dash-map-modal__panel {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  background: var(--card-solid);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.25rem;
  box-shadow: 0 -16px 48px rgba(16, 35, 62, 0.15);
  overflow: auto;
}

@media (min-width: 640px) {
  .dash-map-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .dash-map-modal__panel {
    border-radius: 1.5rem;
    max-height: 85vh;
  }
}

.dash-map-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dash-map-modal__head h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.dash-map-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: rgba(16, 35, 62, 0.06);
  cursor: pointer;
}

.dash-map-modal__hint {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.dash-map-modal__map {
  height: 16rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 62, 0.08);
}

.dash-map-modal__result {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  min-height: 1.25rem;
}

.dash-map-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dash-map-modal__actions .dash-btn {
  flex: 1;
}

body.is-dash-map-open,
body.is-dash-modal-open {
  overflow: hidden;
}

/* --- Delete confirm modal --- */
.dash-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.dash-confirm-modal[hidden] {
  display: none;
}

.dash-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 62, 0.38);
  backdrop-filter: blur(8px);
}

.dash-confirm-modal__panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 1.75rem;
  box-shadow: 0 24px 64px rgba(16, 35, 62, 0.14);
}

.dash-confirm-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(231, 139, 123, 0.14);
  color: var(--coral-dark);
}

.dash-confirm-modal__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.dash-confirm-modal__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.dash-confirm-modal__text {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.dash-confirm-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.dash-confirm-modal__actions .dash-btn {
  width: 100%;
}

.dash-btn--danger-solid {
  color: #fff;
  background: linear-gradient(135deg, var(--coral-dark), #c75a4a);
  box-shadow: 0 8px 24px rgba(212, 105, 90, 0.35);
}

.dash-btn--danger-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(212, 105, 90, 0.4);
}

.dash-settings-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid rgba(16, 35, 62, 0.08);
}

.dash-password-form {
  max-width: 26rem;
}

.dash-password-form__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.dash-password-form__desc {
  margin-top: 0.375rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.dash-password-form .dash-field + .dash-field {
  margin-top: 1rem;
}

.dash-input-wrap--password input {
  padding-right: 3rem;
}

.dash-toggle-pw {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: rgba(16, 35, 62, 0.05);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-toggle-pw:hover {
  background: var(--glow);
  color: var(--coral-dark);
}

.dash-toggle-pw svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dash-toggle-pw .icon-eye-off {
  display: none;
}

.dash-toggle-pw.is-visible .icon-eye {
  display: none;
}

.dash-toggle-pw.is-visible .icon-eye-off {
  display: block;
}

.dash-password-form__status {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.dash-password-form__status--error {
  color: #dc2626;
}

.dash-password-form__status--success {
  color: #16a34a;
}

.dash-password-form .dash-btn--primary {
  width: 100%;
  margin-top: 1.25rem;
  min-height: 3rem;
}

/* --- Toast --- */
.dash-toast-stack {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: min(22rem, calc(100% - 2rem));
}

@media (min-width: 1024px) {
  .dash-toast-stack {
    bottom: 2rem;
    right: 2rem;
    left: auto;
    transform: none;
  }
}

.dash-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(16, 35, 62, 0.12);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  animation: dashToastIn 0.45s var(--dash-ease) forwards;
}

.dash-toast.is-leaving {
  animation: dashToastOut 0.35s var(--dash-ease) forwards;
}

.dash-toast__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
  flex-shrink: 0;
}

@keyframes dashToastIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dashToastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

/* --- Mobile nav --- */
.dash-mobile-nav {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 16px 48px rgba(16, 35, 62, 0.12);
  width: min(calc(100% - 1.5rem), 24rem);
}

@media (min-width: 1024px) {
  .dash-mobile-nav {
    display: none;
  }
}

.dash-mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  border: none;
  background: none;
  border-radius: 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

.dash-mobile-nav__item svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dash-mobile-nav__item.is-active {
  color: var(--navy);
  background: rgba(231, 139, 123, 0.12);
}

/* --- Sheet --- */
.dash-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dash-sheet[hidden] {
  display: none;
}

.dash-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 62, 0.3);
  backdrop-filter: blur(4px);
}

.dash-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem;
  background: var(--card-solid);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -12px 40px rgba(16, 35, 62, 0.12);
}

.dash-sheet__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(16, 35, 62, 0.08);
}

.dash-sheet__theme-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.dash-sheet__link {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  border: none;
  border-radius: 0.875rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dash-sheet__link:hover {
  background: rgba(16, 35, 62, 0.04);
}

.dash-sheet__link--logout {
  color: var(--coral-dark);
}

/* --- Footer --- */
.dash-footer {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.dash-footer p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dash-footer .rika-support--compact {
  margin-top: 0.625rem;
}

.dash-footer .rika-support__link:hover {
  color: var(--coral);
}

/* --- Reveal --- */
.dash-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--dash-ease),
    transform 0.7s var(--dash-ease);
}

.dash-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile drawer from menu */
@media (max-width: 1023px) {
  .dash-sidebar.is-drawer-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    padding: 1rem;
    background: rgba(16, 35, 62, 0.25);
    backdrop-filter: blur(4px);
  }

  .dash-sidebar.is-drawer-open .dash-sidebar__panel {
    max-width: 16rem;
    min-height: auto;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-atmosphere__blob--1,
  .dash-atmosphere__blob--2 {
    animation: none;
  }

  .dash-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dash-card,
  .dash-portfolio__item img {
    transition: none;
  }
}

/* ----- Dark theme ----- */
[data-theme="dark"] .dash-atmosphere {
  display: none;
}

[data-theme="dark"] .dash-atmosphere__wash {
  background: var(--bg-primary);
}

[data-theme="dark"] .dash-atmosphere__blob--1 {
  background: radial-gradient(circle, rgba(45, 74, 111, 0.28), transparent 70%);
}

[data-theme="dark"] .dash-atmosphere__blob--2 {
  background: radial-gradient(circle, rgba(224, 160, 148, 0.12), transparent 70%);
}

[data-theme="dark"] .dash-atmosphere__wave {
  color: rgba(45, 74, 111, 0.22);
  opacity: 0.45;
}

[data-theme="dark"] .dash-sidebar__panel,
[data-theme="dark"] .dash-hero__card,
[data-theme="dark"] .dash-card,
[data-theme="dark"] .dash-sheet__panel,
[data-theme="dark"] .dash-map-modal__panel,
[data-theme="dark"] .dash-confirm-modal__panel {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .dash-topbar {
  background: rgba(10, 14, 22, 0.88);
  border-bottom-color: var(--glass-border);
}

[data-theme="dark"] .dash-topbar__title,
[data-theme="dark"] .dash-hero__name,
[data-theme="dark"] .dash-hero__city,
[data-theme="dark"] .dash-card__title,
[data-theme="dark"] .dash-field label,
[data-theme="dark"] .dash-field__label,
[data-theme="dark"] .dash-link-btn,
[data-theme="dark"] .dash-portfolio-drop__text,
[data-theme="dark"] .dash-services-block__label,
[data-theme="dark"] .dash-service-card__input,
[data-theme="dark"] .dash-map-block__label,
[data-theme="dark"] .dash-toggle-row__title,
[data-theme="dark"] .dash-map-modal__head h2,
[data-theme="dark"] .dash-map-modal__result,
[data-theme="dark"] .dash-confirm-modal__title,
[data-theme="dark"] .dash-toast,
[data-theme="dark"] .dash-sheet__link {
  color: var(--text-primary);
}

[data-theme="dark"] .dash-nav__link {
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-nav__link:hover,
[data-theme="dark"] .dash-nav__link.is-active {
  color: var(--text-primary);
  background: rgba(224, 160, 148, 0.12);
  box-shadow: none;
}

[data-theme="dark"] .dash-sidebar__foot {
  border-top-color: var(--border);
}

[data-theme="dark"] .dash-topbar__menu {
  color: var(--text-primary);
  background: var(--glass);
  border-color: var(--glass-border);
}

[data-theme="dark"] .dash-hero__glow {
  opacity: 0.35;
}

[data-theme="dark"] .dash-hero__avatar,
[data-theme="dark"] .dash-avatar-upload__preview {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dash-hero__status {
  border-color: var(--glass);
}

[data-theme="dark"] .dash-hero__role,
[data-theme="dark"] .dash-hero__completion-hint,
[data-theme="dark"] .dash-card__desc,
[data-theme="dark"] .dash-hint,
[data-theme="dark"] .dash-services-block__range,
[data-theme="dark"] .dash-map-block__hint,
[data-theme="dark"] .dash-toggle-row__desc,
[data-theme="dark"] .dash-map-modal__hint,
[data-theme="dark"] .dash-confirm-modal__text,
[data-theme="dark"] .dash-footer p,
[data-theme="dark"] .dash-portfolio-drop__sub,
[data-theme="dark"] .dash-link-btn--muted {
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-password-form__title {
  color: var(--text-primary);
}

[data-theme="dark"] .dash-password-form__desc {
  color: var(--text-muted);
}

[data-theme="dark"] .dash-settings-foot {
  border-top-color: var(--border);
}

[data-theme="dark"] .dash-toggle-pw {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-toggle-pw:hover {
  background: rgba(224, 160, 148, 0.15);
  color: var(--coral-light);
}

[data-theme="dark"] .dash-password-form__status--error {
  color: #f87171;
}

[data-theme="dark"] .dash-password-form__status--success {
  color: #4ade80;
}

[data-theme="dark"] .dash-hero__completion {
  background: rgba(12, 20, 34, 0.55);
  border-color: var(--glass-border);
}

[data-theme="dark"] .dash-hero__completion-label {
  color: var(--text-primary);
}

[data-theme="dark"] .dash-progress {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dash-card__save,
[data-theme="dark"] .dash-btn--ghost {
  color: var(--text-primary);
  background: var(--input-bg);
  border-color: var(--input-border);
}

[data-theme="dark"] .dash-card__save:hover,
[data-theme="dark"] .dash-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 160, 148, 0.35);
  box-shadow: none;
}

[data-theme="dark"] .dash-field input:not(.rika-contact-input__field),
[data-theme="dark"] .dash-field textarea {
  color: var(--text-primary);
  background: var(--input-bg);
  border-color: var(--input-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .dash-field input:not(.rika-contact-input__field):focus,
[data-theme="dark"] .dash-field textarea:focus {
  background: var(--input-bg);
  border-color: rgba(224, 160, 148, 0.45);
  box-shadow: 0 0 0 3px var(--focus-ring), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .dash-copy {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-copy:hover {
  background: rgba(224, 160, 148, 0.15);
  color: var(--accent);
}

[data-theme="dark"] .dash-portfolio-drop,
[data-theme="dark"] .dash-services-empty {
  background: var(--input-bg);
  border-color: var(--input-border);
}

[data-theme="dark"] .dash-portfolio-drop:hover,
[data-theme="dark"] .dash-portfolio-drop.is-dragover {
  background: rgba(224, 160, 148, 0.08);
  border-color: rgba(224, 160, 148, 0.4);
}

[data-theme="dark"] .dash-portfolio__item {
  background: rgba(12, 20, 34, 0.65);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .dash-services-block {
  border-top-color: var(--border);
}

[data-theme="dark"] .dash-service-card {
  background: rgba(12, 20, 34, 0.55);
  border-color: var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .dash-service-card__input {
  background: var(--input-bg);
  border-color: var(--input-border);
}

[data-theme="dark"] .dash-service-card__remove {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

[data-theme="dark"] .dash-map-block {
  background: rgba(12, 20, 34, 0.45);
  border-color: var(--glass-border);
}

[data-theme="dark"] .dash-map-preview {
  border-color: var(--input-border);
}

[data-theme="dark"] .dash-toggle-row {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .dash-toggle__track {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .dash-toggle__track::after {
  background: var(--text-primary);
}

[data-theme="dark"] .dash-btn--outline {
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .dash-btn--outline:hover {
  background: rgba(224, 160, 148, 0.08);
  border-color: rgba(224, 160, 148, 0.35);
}

[data-theme="dark"] .dash-btn--primary {
  background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dash-btn--primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #4a6f96 0%, var(--navy-light) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dash-map-modal__backdrop,
[data-theme="dark"] .dash-confirm-modal__backdrop,
[data-theme="dark"] .dash-sheet__backdrop {
  background: rgba(4, 8, 16, 0.72);
}

[data-theme="dark"] .dash-map-modal__close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

[data-theme="dark"] .dash-map-modal__map {
  border-color: var(--input-border);
}

[data-theme="dark"] .dash-confirm-modal__icon {
  background: rgba(224, 160, 148, 0.15);
}

[data-theme="dark"] .dash-toast {
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .dash-mobile-nav {
  background: rgba(15, 23, 37, 0.92);
  border-color: var(--glass-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dash-mobile-nav__item {
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-mobile-nav__item.is-active {
  color: var(--text-primary);
  background: rgba(224, 160, 148, 0.12);
}

[data-theme="dark"] .dash-sheet__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .dash-sidebar.is-drawer-open {
  background: rgba(4, 8, 16, 0.65);
}

/* --- Support Rika (community modals) --- */
.dash-support__hub-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2rem;
  margin-bottom: 0.125rem;
}

.dash-support__hub-copy {
  text-align: center;
  margin-bottom: 1.125rem;
}

.dash-support__hub-copy .dash-support-modal__title {
  margin: 0 0 0.625rem;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.dash-support__hub-copy .dash-support-modal__text {
  margin: 0;
}

.dash-support__intro {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-align: center;
}

.dash-support__options {
  display: grid;
  gap: 0.625rem;
  grid-template-columns: 1fr;
}

.dash-support__hub button.dash-support__option {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 1.125rem;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  margin: 0;
  padding: 1rem 1.125rem;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: 0 8px 28px rgba(16, 35, 62, 0.05);
  transition:
    transform 0.35s var(--dash-ease),
    box-shadow 0.35s var(--dash-ease),
    border-color 0.35s var(--dash-ease),
    background 0.35s var(--dash-ease);
}

.dash-support__hub button.dash-support__option:hover,
.dash-support__hub button.dash-support__option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(231, 139, 123, 0.3);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(16, 35, 62, 0.08);
  outline: none;
}

.dash-support__option-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 0.875rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(231, 139, 123, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.dash-support__option-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dash-support__option-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
}

.dash-support__option-hint {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.dash-support__option-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.3s var(--dash-ease), opacity 0.3s var(--dash-ease);
}

.dash-support__option-arrow svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  flex-shrink: 0;
}

.dash-support__hub button.dash-support__option:hover .dash-support__option-arrow {
  transform: translateX(2px);
  opacity: 0.9;
}

/* --- Support modals --- */
.dash-support-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.dash-support-modal[hidden] {
  display: none;
}

.dash-support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 62, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s var(--dash-ease);
}

.dash-support-modal.is-open .dash-support-modal__backdrop {
  opacity: 1;
}

.dash-support-modal__panel {
  position: relative;
  width: 100%;
  max-width: 26rem;
  border-radius: 1.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition:
    opacity 0.45s var(--dash-ease),
    transform 0.45s var(--dash-ease);
}

.dash-support-modal.is-open .dash-support-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dash-support-modal__panel.dash-support-modal__panel--hub {
  max-width: 26rem;
  padding: 1rem 1.375rem 1.375rem;
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 248, 245, 0.82) 45%,
      rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 28px 72px rgba(16, 35, 62, 0.16),
    0 0 48px rgba(231, 139, 123, 0.1);
}

.dash-support-modal__panel--hub::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 45%;
  background: radial-gradient(circle, rgba(231, 139, 123, 0.14), transparent 70%);
  pointer-events: none;
}

.dash-support-modal__close--hub {
  position: static;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-support__hub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dash-support-modal__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(16, 35, 62, 0.04) 0%, rgba(231, 139, 123, 0.14) 55%, rgba(255, 255, 255, 0.2) 100%);
  pointer-events: none;
}

.dash-support-modal__gradient--crypto {
  background:
    linear-gradient(145deg, rgba(16, 35, 62, 0.06) 0%, rgba(99, 102, 241, 0.08) 45%, rgba(231, 139, 123, 0.1) 100%);
}

.dash-support-modal__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dash-support-modal__close:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.04);
}

.dash-support-modal__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.dash-support-modal__glass {
  position: relative;
  z-index: 1;
  margin: 0.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 56px rgba(16, 35, 62, 0.1);
}

.dash-support-modal__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-align: center;
}

.dash-support-modal__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-align: center;
}

.dash-support-mono__logo {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, #1a1a1a, #000);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.dash-support-mono__logo-mark {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-transform: lowercase;
}

.dash-support-mono__amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 1.375rem;
}

.dash-support-mono__amount {
  padding: 0.875rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 1rem;
  cursor: pointer;
  transition:
    background 0.3s var(--dash-ease),
    border-color 0.3s var(--dash-ease),
    transform 0.3s var(--dash-ease),
    box-shadow 0.3s var(--dash-ease);
}

.dash-support-mono__amount:hover {
  transform: translateY(-1px);
  border-color: rgba(231, 139, 123, 0.3);
}

.dash-support-mono__amount.is-active {
  background: linear-gradient(145deg, rgba(16, 35, 62, 0.96), rgba(16, 35, 62, 0.88));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(16, 35, 62, 0.2);
}

.dash-support-mono__cta {
  width: 100%;
  margin-top: 1.25rem;
  min-height: 3.125rem;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-support-crypto__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dash-support-crypto__card {
  padding: 1rem 1.125rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 35, 62, 0.07);
  box-shadow: 0 8px 28px rgba(16, 35, 62, 0.05);
  transition:
    transform 0.35s var(--dash-ease),
    box-shadow 0.35s var(--dash-ease),
    border-color 0.35s var(--dash-ease);
}

.dash-support-crypto__card:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 139, 123, 0.22);
  box-shadow: 0 14px 36px rgba(16, 35, 62, 0.08);
}

.dash-support-crypto__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-support-crypto__symbol {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  background: rgba(16, 35, 62, 0.06);
  color: var(--navy);
}

.dash-support-crypto__name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
}

.dash-support-crypto__network {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dash-support-crypto__address {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--navy);
  word-break: break-all;
  background: rgba(16, 35, 62, 0.04);
  border-radius: 0.75rem;
}

.dash-support-crypto__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6875rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(16, 35, 62, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.dash-support-crypto__copy svg {
  width: 1rem;
  height: 1rem;
}

.dash-support-crypto__copy:hover {
  background: #fff;
  border-color: rgba(231, 139, 123, 0.35);
  transform: translateY(-1px);
}

[data-theme="dark"] .dash-support-modal__panel.dash-support-modal__panel--hub {
  background:
    linear-gradient(165deg,
      rgba(28, 36, 52, 0.96) 0%,
      rgba(32, 28, 40, 0.94) 50%,
      rgba(24, 30, 44, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(224, 160, 148, 0.08);
}

[data-theme="dark"] .dash-support-modal__panel--hub::before {
  background: radial-gradient(circle, rgba(224, 160, 148, 0.1), transparent 70%);
}

[data-theme="dark"] .dash-support-modal__close--hub {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

[data-theme="dark"] .dash-support__hub button.dash-support__option,
[data-theme="dark"] .dash-support-modal__glass,
[data-theme="dark"] .dash-support-crypto__card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .dash-support__option-label,
[data-theme="dark"] .dash-support-modal__title,
[data-theme="dark"] .dash-support-mono__amount,
[data-theme="dark"] .dash-support-crypto__name,
[data-theme="dark"] .dash-support-crypto__address,
[data-theme="dark"] .dash-support-crypto__symbol,
[data-theme="dark"] .dash-support-crypto__copy {
  color: var(--text-primary);
}

[data-theme="dark"] .dash-support__intro,
[data-theme="dark"] .dash-support__option-hint,
[data-theme="dark"] .dash-support-modal__text,
[data-theme="dark"] .dash-support-crypto__network {
  color: var(--text-secondary);
}

[data-theme="dark"] .dash-support__option-icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(224, 160, 148, 0.12));
  box-shadow: none;
}

[data-theme="dark"] .dash-support-mono__amount {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

[data-theme="dark"] .dash-support-mono__amount.is-active {
  background: linear-gradient(145deg, rgba(224, 160, 148, 0.35), rgba(16, 35, 62, 0.9));
  color: #fff;
}

[data-theme="dark"] .dash-support-crypto__address {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .dash-support-crypto__copy {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

[data-theme="dark"] .dash-support-modal__close {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

[data-theme="dark"] .dash-support-modal__backdrop {
  background: rgba(4, 8, 16, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .dash-support-modal__panel,
  .dash-support-modal__backdrop {
    transition: none;
  }

  .dash-support-modal.is-open .dash-support-modal__panel {
    opacity: 1;
    transform: none;
  }
}
