/* Travel guest dashboard — modern account hub */
.ta-dash {
  --ta-dash-radius: 20px;
  --ta-dash-accent: var(--primary-color);
  --ta-dash-accent-soft: rgba(26, 115, 232, 0.1);
  --ta-dash-surface: #fff;
  --ta-dash-border: rgba(148, 163, 184, 0.28);
  --ta-dash-muted: #64748b;
  --ta-dash-text: #0f172a;
  max-width: 1120px;
  margin: 28px auto 56px;
  padding: 0 16px;
}

.ta-dash-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 24px;
  align-items: center;
  padding: 24px 26px;
  border-radius: var(--ta-dash-radius);
  background: linear-gradient(135deg, #eef4ff 0%, #f5f0ff 48%, #fff8f5 100%);
  border: 1px solid var(--ta-dash-border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  margin-bottom: 22px;
}

.ta-dash-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ta-dash-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Outfit', system-ui, sans-serif;
}

.ta-dash-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ta-dash-muted);
}

.ta-dash-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ta-dash-text);
}

.ta-dash-hero__meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ta-dash-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ta-dash-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.ta-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ta-dash-stat {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ta-dash-surface);
  border: 1px solid var(--ta-dash-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ta-dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(26, 115, 232, 0.35);
}

.ta-dash-stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ta-dash-text);
  line-height: 1.1;
}

.ta-dash-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ta-dash-muted);
}

.ta-dash-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.ta-dash-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ta-dash-muted);
  transition: background 0.15s, color 0.15s;
}

.ta-dash-nav__link.is-active {
  background: var(--ta-dash-surface);
  color: var(--ta-dash-text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.ta-dash-panel {
  background: var(--ta-dash-surface);
  border: 1px solid var(--ta-dash-border);
  border-radius: var(--ta-dash-radius);
  padding: 24px 26px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.ta-dash-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.ta-dash-panel__title {
  margin: 0;
  font-size: 1.25rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ta-dash-text);
}

.ta-dash-panel__lead {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--ta-dash-muted);
  max-width: 52ch;
  line-height: 1.5;
}

.ta-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.ta-dash-btn--primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.ta-dash-btn--soft {
  background: var(--ta-dash-accent-soft);
  color: var(--ta-dash-accent);
}

.ta-dash-btn--ghost {
  background: transparent;
  color: var(--ta-dash-muted);
  border: 1px solid var(--ta-dash-border);
}

.ta-dash-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ta-dash-empty {
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
}

.ta-dash-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.ta-dash-empty p {
  margin: 0 0 16px;
  color: var(--ta-dash-muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.ta-dash-group {
  margin-bottom: 28px;
}

.ta-dash-group:last-child {
  margin-bottom: 0;
}

.ta-dash-group__title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ta-dash-muted);
}

.ta-dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.ta-dash-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--ta-dash-border);
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
  position: relative;
}

.ta-dash-card:hover {
  border-color: rgba(26, 115, 232, 0.4);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ta-dash-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.ta-dash-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #94a3b8;
}

.ta-dash-card__body {
  flex: 1;
  min-width: 0;
}

.ta-dash-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ta-dash-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ta-dash-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ta-dash-muted);
}

.ta-dash-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ta-dash-card__actions a,
.ta-dash-card__actions button {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: #e2e8f0;
  color: #334155;
}

.ta-dash-card__actions a.is-primary {
  background: var(--ta-dash-accent-soft);
  color: var(--ta-dash-accent);
}

.ta-dash-fav-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #b91c1c;
}

.ta-dash-badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ta-dash-badge--published {
  background: #dcfce7;
  color: #166534;
}

.ta-dash-badge--draft {
  background: #fef3c7;
  color: #92400e;
}

.ta-dash-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ta-dash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ta-dash-field--full {
  grid-column: 1 / -1;
}

.ta-dash-field span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ta-dash-muted);
}

.ta-dash-field input,
.ta-dash-field textarea,
.ta-dash-field select {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
}

.ta-dash-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;
}

.ta-dash-profile-side {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
}

/* —— Profile tab (premium) —— */
.ta-dash--tab-profile .ta-dash-hero {
  margin-bottom: 18px;
}

.ta-dash-hero__bio {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ta-dash-text);
  max-width: 52ch;
}

.ta-dash-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ta-dash-hero__chip {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.ta-dash-hero__chip--soft {
  background: rgba(148, 163, 184, 0.16);
  color: var(--ta-dash-muted);
}

.ta-dash-profile-card {
  text-align: center;
  padding: 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(148, 163, 184, 0.06) 100%);
  border: 1px solid var(--ta-dash-border);
}

.ta-dash-profile-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
}

.ta-dash-profile-avatar-wrap .ta-dash-avatar {
  width: 112px;
  height: 112px;
}

.ta-dash-profile-card__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ta-dash-text);
}

.ta-dash-profile-card__handle {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--ta-dash-muted);
}

.ta-dash-profile-completion {
  margin: 18px 0 14px;
  text-align: left;
}

.ta-dash-profile-completion__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.ta-dash-profile-completion__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 0.35s ease;
}

.ta-dash-profile-completion__label {
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ta-dash-muted);
}

.ta-dash-profile-preview-chips {
  text-align: left;
  margin-bottom: 12px;
}

.ta-dash-profile-preview-chips__title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ta-dash-muted);
}

.ta-dash-profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.ta-dash-profile-chip-list li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--ta-dash-border);
  color: var(--ta-dash-text);
}

.ta-dash-profile-chip-list--interest li {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #5b21b6;
}

.ta-dash-profile-card__since {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ta-dash-border);
  font-size: 0.82rem;
  color: var(--ta-dash-muted);
}

.ta-dash-profile-section {
  margin: 0 0 22px;
  padding: 0;
  border: none;
}

.ta-dash-profile-section__title {
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--ta-dash-border);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ta-dash-text);
  width: 100%;
}

.ta-dash-field__hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ta-dash-muted);
  line-height: 1.4;
}

.ta-dash-field input:focus,
.ta-dash-field textarea:focus,
.ta-dash-field select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ta-dash-profile-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.ta-dash-danger-zone {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.ta-dash-danger-zone__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #991b1b;
}

.ta-dash-danger-zone__lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #b91c1c;
}

.ta-dash-btn--danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.ta-dash-btn--danger:hover {
  background: #fee2e2;
}

html[data-lp-color-scheme='dark'] .ta-dash-danger-zone {
  background: hsl(0 45% 12%);
  border-color: hsl(0 40% 28%);
}

html[data-lp-color-scheme='dark'] .ta-dash-danger-zone__title,
html[data-lp-color-scheme='dark'] .ta-dash-danger-zone__lead {
  color: #fca5a5;
}

html[data-lp-color-scheme='dark'] .ta-dash-profile-chip-list li {
  background: hsl(222 40% 12%);
}

html[data-lp-color-scheme='dark'] .ta-dash-hero__chip {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.ta-dash-flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.ta-dash-flash--ok {
  background: #ecfdf5;
  color: #166534;
}

.ta-dash-flash--err {
  background: #fef2f2;
  color: #991b1b;
}

/* Breakpoints: see ta-travel-responsive.css (mobile / tablet / desktop) */

html[data-lp-color-scheme='dark'] .ta-dash {
  --ta-dash-surface: hsl(222 42% 11%);
  --ta-dash-border: rgba(148, 163, 184, 0.18);
  --ta-dash-muted: #94a3b8;
  --ta-dash-text: #f1f5f9;
}

html[data-lp-color-scheme='dark'] .ta-dash-hero {
  background: linear-gradient(135deg, hsl(222 45% 12%) 0%, hsl(262 30% 14%) 100%);
}

html[data-lp-color-scheme='dark'] .ta-dash-card {
  background: hsl(222 40% 10%);
}

html[data-lp-color-scheme='dark'] .ta-dash-field input,
html[data-lp-color-scheme='dark'] .ta-dash-field textarea,
html[data-lp-color-scheme='dark'] .ta-dash-field select {
  background: hsl(222 40% 9%);
  border-color: rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
}
