/* Creator dashboard — partners.trekstakapp.com/dashboard.html */

/* Contrast tokens — scoped to partner tools (dashboard + payout schedule) */
.dashboard-body,
.partners-tool-body {
  --line: rgba(255, 255, 255, 0.22);
  --muted: rgba(255, 255, 255, 0.84);
  --dash-label: rgba(255, 255, 255, 0.78);
  --dash-hint: rgba(255, 255, 255, 0.58);
  --dash-inset: rgba(5, 9, 18, 0.52);
  --dash-inset-border: rgba(255, 255, 255, 0.2);
}

.dashboard-body {
  min-height: 100vh;
  background: #070d18;
  overflow-x: hidden;
  max-width: 100%;
}

html:has(.dashboard-body) {
  overflow-x: hidden;
}

.dashboard-shell {
  padding: calc(9.5rem + env(safe-area-inset-top)) var(--pad) 3rem;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#login-view[hidden],
#password-setup-view[hidden],
#dashboard-view[hidden] {
  display: none !important;
}

body.dashboard-authed .dashboard-shell {
  padding-top: calc(9.5rem + env(safe-area-inset-top));
}

/* Partner tool header — independent of landing-page .nav rules */
.site-header--partner-tools {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: 0.85rem;
}

.partner-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.partner-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  width: 100%;
  padding: 0.55rem 0 0.15rem;
  border-top: 1px solid var(--line);
  margin-top: 0.55rem;
}

.partner-toolbar a {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.partner-toolbar a:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
}

.partner-toolbar a.is-active {
  color: var(--navy-deep);
  background: var(--ink);
  border-color: var(--ink);
}

.partner-toolbar-exit {
  margin-left: auto;
  color: var(--orange-hot, #ff8f3d) !important;
  border-color: rgba(240, 122, 42, 0.35) !important;
}

.site-header--partner-tools {
  max-width: 100%;
  overflow-x: hidden;
}

.partners-tool-body {
  background: #070d18;
}

.partners-tool-body .schedule-page {
  padding-top: calc(9.5rem + env(safe-area-inset-top));
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 1rem;
}

.dashboard-toolbar .btn {
  min-height: 2.35rem;
}

.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  margin-bottom: 1.75rem;
}

.dashboard-greeting h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dashboard-greeting p {
  margin: 0;
  color: var(--dash-label);
  font-size: 0.95rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dashboard-actions .btn {
  min-height: 2.35rem;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/* Login */
.login-panel {
  max-width: 26rem;
  margin: 4rem auto 0;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, #2a3f62 0%, #1a2a45 55%, #141f35 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-panel h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.login-panel .lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-demo-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(254, 130, 0, 0.14);
  border: 1px solid rgba(254, 130, 0, 0.38);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.login-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--dash-hint);
  line-height: 1.4;
}

.login-forgot {
  display: block;
  margin: 0.65rem auto 0;
  padding: 0;
  border: none;
  background: none;
  color: #ffc48a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.login-forgot:hover {
  color: #fff;
}

.login-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(220, 70, 70, 0.12);
  border: 1px solid rgba(220, 70, 70, 0.35);
  color: #ffb4b4;
  font-size: 0.9rem;
}

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

.login-success {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.35);
  color: #b8f0d0;
  font-size: 0.9rem;
}

.login-success[hidden] {
  display: none;
}

.login-demo-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--orange-hot);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: inherit;
}

.login-demo-btn:hover {
  color: #fff;
}

/* Code hero */
.code-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(254, 130, 0, 0.52);
  background: linear-gradient(135deg, rgba(254, 130, 0, 0.18), rgba(254, 130, 0, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.code-hero-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffc48a;
  margin-bottom: 0.2rem;
}

.code-hero-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #fff;
}

.code-hero-meta {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.code-hero-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Stats grid — extends landing mock */
.dash-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

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

.dash-panel {
  padding: 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, #2a3f62 0%, #1a2a45 52%, #141f35 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

/* Earn tab stat tiles */
.dashboard-body .dash-stat,
.partners-tool-body .dash-stat {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-body .dash-stat span,
.partners-tool-body .dash-stat span {
  color: var(--dash-label);
}

.dashboard-body .dash-stat strong,
.partners-tool-body .dash-stat strong {
  color: #fff;
}

.dashboard-body .dash-stat.highlight,
.partners-tool-body .dash-stat.highlight {
  border-color: rgba(254, 130, 0, 0.48);
  background: rgba(254, 130, 0, 0.14);
}

/* Profile — warmer surface + live preview so it reads above other blue panels */
.dash-panel--profile {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, #2f2418 0%, #1e3354 42%, #121f38 100%);
  border-color: rgba(254, 130, 0, 0.48);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(254, 130, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-preview-card {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 1rem;
  background: rgba(5, 9, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.profile-preview-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.profile-preview-live-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffc48a;
  text-decoration: none;
  white-space: nowrap;
}

.profile-preview-live-link:hover {
  color: #fff;
  text-decoration: underline;
}

.profile-preview-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.profile-preview-avatar {
  position: relative;
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(254, 130, 0, 0.32), rgba(254, 130, 0, 0.1));
  border: 2px solid rgba(254, 130, 0, 0.75);
  box-shadow: 0 10px 28px rgba(254, 130, 0, 0.2);
}

.profile-preview-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-preview-avatar-img.is-hidden,
.profile-preview-initials.is-hidden {
  display: none !important;
}

.profile-preview-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffd4a8;
  line-height: 1;
  user-select: none;
}

.profile-preview-body {
  min-width: 0;
  flex: 1;
  padding-top: 0.15rem;
}

.profile-preview-name {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

.profile-preview-handle {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffc48a;
}

.profile-preview-bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.profile-preview-bio.is-placeholder {
  color: rgba(255, 255, 255, 0.48);
  font-style: italic;
}

.dash-panel--profile .page-form input[type="text"],
.dash-panel--profile .page-form input[type="url"],
.dash-panel--profile .page-form textarea {
  background: var(--dash-inset);
  border-color: var(--dash-inset-border);
}

.dash-panel--profile .page-form input:focus,
.dash-panel--profile .page-form textarea:focus {
  border-color: rgba(254, 130, 0, 0.65);
  box-shadow: 0 0 0 2px rgba(254, 130, 0, 0.15);
}

.dash-panel--profile .form-actions .btn-primary {
  box-shadow: 0 8px 20px rgba(254, 130, 0, 0.28);
}

/* Sheet intros — City Reviews / My trip / Posts */
.sheet-intro {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 9, 18, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sheet-intro-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-intro-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.dash-panel--cities {
  background: linear-gradient(165deg, #1a2f3a 0%, #1a2a45 45%, #141f35 100%);
  border-color: rgba(90, 190, 210, 0.42);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(90, 190, 210, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sheet-intro--cities {
  border-color: rgba(90, 190, 210, 0.35);
  background: linear-gradient(135deg, rgba(90, 190, 210, 0.14), rgba(5, 9, 18, 0.4));
}

.sheet-intro--cities .sheet-intro-kicker {
  color: #8fd8e8;
}

.dash-panel--cities .dash-panel-head--section h2 {
  border-left-color: #5abec2;
}

.dash-panel--cities .form-actions .btn-primary,
.dash-panel--cities .dash-panel-head .btn-primary {
  box-shadow: 0 8px 18px rgba(90, 190, 210, 0.22);
}

.dash-panel--live {
  background: linear-gradient(165deg, #1a3328 0%, #1a2a45 42%, #141f35 100%);
  border-color: rgba(80, 200, 120, 0.42);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(80, 200, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sheet-intro--live {
  border-color: rgba(80, 200, 120, 0.35);
  background: linear-gradient(135deg, rgba(80, 200, 120, 0.14), rgba(5, 9, 18, 0.4));
}

.sheet-intro--live .sheet-intro-kicker {
  color: #7ee0a8;
}

.dash-panel--live .dash-panel-head--section h2 {
  border-left-color: #50c878;
}

.dash-panel--live .form-actions .btn-primary,
.dash-panel--live .dash-panel-head .btn-primary,
.dash-panel--live .live-trip-status-actions .btn-primary {
  box-shadow: 0 8px 18px rgba(80, 200, 120, 0.22);
}

.dash-panel--posts {
  background: linear-gradient(165deg, #2a2440 0%, #1a2a45 42%, #141f35 100%);
  border-color: rgba(170, 140, 255, 0.4);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(170, 140, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sheet-intro--posts {
  border-color: rgba(170, 140, 255, 0.35);
  background: linear-gradient(135deg, rgba(170, 140, 255, 0.14), rgba(5, 9, 18, 0.4));
}

.sheet-intro--posts .sheet-intro-kicker {
  color: #c8b6ff;
}

.dash-panel--posts .dash-panel-head--section h2 {
  border-left-color: #a88cff;
}

.dash-panel--posts .form-actions .btn-primary,
.dash-panel--posts .dash-panel-head .btn-primary {
  box-shadow: 0 8px 18px rgba(170, 140, 255, 0.22);
}

.dash-panel--cities .page-form input[type="text"],
.dash-panel--cities .page-form input[type="url"],
.dash-panel--cities .page-form textarea,
.dash-panel--cities .page-form select,
.dash-panel--live .page-form input[type="text"],
.dash-panel--live .page-form input[type="url"],
.dash-panel--live .page-form input[type="date"],
.dash-panel--live .page-form textarea,
.dash-panel--live .page-form select,
.dash-panel--posts .page-form input[type="text"],
.dash-panel--posts .page-form input[type="url"],
.dash-panel--posts .page-form textarea,
.dash-panel--posts .page-form select {
  background: var(--dash-inset);
  border-color: var(--dash-inset-border);
}

.dash-panel--cities .cotw-tips-block,
.dash-panel--cities .city-review-ratings-block {
  margin-top: 1.1rem;
  padding: 1rem;
  border-top: none;
  border-radius: 0.85rem;
  border: 1px solid rgba(90, 190, 210, 0.28);
  background: rgba(90, 190, 210, 0.06);
}

.dash-panel--live .live-trip-status-bar {
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(80, 200, 120, 0.35);
  background: rgba(80, 200, 120, 0.1);
}

.trip-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.date-picker-field .date-input,
.page-form input[type="date"].date-input {
  color-scheme: dark;
  min-height: 2.85rem;
  padding-right: 0.65rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.date-picker-field .date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
  filter: invert(1) brightness(1.2);
  padding: 0.2rem;
  margin-left: 0.25rem;
}

.date-picker-field .date-input:focus {
  border-color: rgba(80, 200, 120, 0.7);
  box-shadow: 0 0 0 2px rgba(80, 200, 120, 0.18);
}

.post-admin-date {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7ee0a8;
}

@media (max-width: 520px) {
  .trip-dates-row {
    grid-template-columns: 1fr;
  }
}

.dash-panel--posts .post-editor,
.dash-panel--cities .post-editor,
.dash-panel--live .post-editor {
  border-width: 1px;
}

.dash-panel--posts .post-admin-card {
  border-color: rgba(170, 140, 255, 0.28);
  background: rgba(170, 140, 255, 0.07);
}

.dash-panel--cities .post-admin-card {
  border-color: rgba(90, 190, 210, 0.28);
  background: rgba(90, 190, 210, 0.07);
}

.dash-panel--live .post-admin-card {
  border-color: rgba(80, 200, 120, 0.28);
  background: rgba(80, 200, 120, 0.07);
}

.page-section-btn.is-active[data-section-tab="cities"] {
  background: linear-gradient(135deg, rgba(90, 190, 210, 0.32), rgba(90, 190, 210, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(90, 190, 210, 0.45),
    0 4px 14px rgba(90, 190, 210, 0.12);
}

.page-section-btn.is-active[data-section-tab="live"] {
  background: linear-gradient(135deg, rgba(80, 200, 120, 0.32), rgba(80, 200, 120, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(80, 200, 120, 0.45),
    0 4px 14px rgba(80, 200, 120, 0.12);
}

.page-section-btn.is-active[data-section-tab="posts"] {
  background: linear-gradient(135deg, rgba(170, 140, 255, 0.32), rgba(170, 140, 255, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(170, 140, 255, 0.45),
    0 4px 14px rgba(170, 140, 255, 0.12);
}

.dash-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.dash-panel-head a,
.dash-panel-head span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Stronger section titles — Profile, Posts, Tool Kit */
.dash-panel-head--section {
  align-items: center;
  margin: -0.15rem -0.15rem 1.15rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dash-panel-head--section h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  padding-left: 0.7rem;
  border-left: 3px solid var(--orange);
}

.dash-finance {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
}

.dash-finance-head {
  margin: 0 0 1.15rem;
  padding: 0 0 0.95rem;
}

.dash-finance .dash-grid-full {
  margin-bottom: 1.25rem;
}

/* Progress */
.reward-progress {
  margin: 0;
}

.reward-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
}

.reward-progress-top strong {
  font-family: var(--font-display);
  color: var(--orange);
}

.reward-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reward-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  transition: width 0.4s ease;
}

.reward-progress-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Chart */
.usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 5.5rem;
  padding-top: 0.5rem;
}

.usage-bar {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(254, 130, 0, 0.35);
  transition: background 0.15s ease;
}

.usage-bar:hover {
  background: var(--orange);
}

.usage-chart-empty {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Share kit */
.share-grid {
  display: grid;
  gap: 0.75rem;
}

.share-card {
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.share-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.share-card-head strong {
  font-size: 0.92rem;
  color: #fff;
}

.share-card p,
.share-card textarea {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.share-card textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid var(--dash-inset-border);
  background: var(--dash-inset);
  color: var(--ink);
  font-family: var(--font-body);
}

.share-card--promo {
  border-color: rgba(254, 130, 0, 0.45);
  background: linear-gradient(135deg, rgba(254, 130, 0, 0.16), rgba(254, 130, 0, 0.06));
}

.asset-downloads {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.asset-download {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 9, 18, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.asset-download:hover {
  border-color: rgba(254, 130, 0, 0.45);
  color: #fff;
}

.asset-download img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0.3rem;
}

.promo-code-display {
  margin: 0.15rem 0 0.25rem !important;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff !important;
}

.promo-code-meta {
  margin: 0 !important;
  font-size: 0.86rem;
  color: #ffc48a !important;
}

.qr-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.qr-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.35rem;
}

.redeem-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.redeem-steps li {
  margin-bottom: 0.35rem;
}

.redeem-steps li:last-child {
  margin-bottom: 0;
}

/* Earnings table */
.table-wrap {
  overflow-x: auto;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-table th,
.dash-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.dash-table th {
  font-weight: 600;
  color: var(--dash-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.28);
}

.dash-table td {
  color: rgba(255, 255, 255, 0.9);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill.pending {
  background: rgba(255, 200, 80, 0.15);
  color: #ffd080;
}

.status-pill.paid {
  background: rgba(80, 200, 120, 0.15);
  color: #7ee0a8;
}

.payout-info {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.payout-info dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.payout-info dd {
  margin: 0 0 0.65rem;
}

.toast {
  position: fixed;
  bottom: calc(var(--webapp-nav-h, 3.35rem) + env(safe-area-inset-bottom) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
  z-index: 300;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

#page-posts-heading,
#share-heading,
#earnings-heading,
#payout-settings-heading {
  scroll-margin-top: calc(9.5rem + env(safe-area-inset-top));
}

.panel-note {
  margin: -0.35rem 0 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.page-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.75rem;
}

.page-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-form .field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dash-label);
}

.page-form .field em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}

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

.page-form input[type="text"],
.page-form input[type="url"],
.page-form textarea,
.page-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid var(--dash-inset-border);
  background: var(--dash-inset);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.page-form textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.page-form input:focus,
.page-form textarea:focus,
.page-form select:focus {
  outline: none;
  border-color: rgba(254, 130, 0, 0.65);
  box-shadow: 0 0 0 2px rgba(254, 130, 0, 0.14);
}

.checkbox-field {
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem !important;
}

.checkbox-field input {
  width: auto;
  accent-color: var(--orange);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.inline-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.post-editor {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(254, 130, 0, 0.42);
  background: rgba(254, 130, 0, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.post-editor h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
}

.post-editor[hidden] {
  display: none !important;
}

.posts-admin-list {
  display: grid;
  gap: 0.65rem;
}

.posts-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.post-admin-card {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.post-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.post-admin-head strong {
  display: inline;
  font-size: 0.95rem;
  margin-bottom: 0;
  margin-right: 0.35rem;
  color: #fff;
}

.trip-flag {
  margin-right: 0.2rem;
  font-style: normal;
}

.trip-country {
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.post-admin-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.post-admin-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.post-admin-preview {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.page-form .field-hint--warn {
  color: #ffc48a;
}

.page-form .field-hint--warn[hidden] {
  display: none !important;
}

.chip-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.chip-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.chip-fieldset legend em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
}

.chip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.chip-option input {
  accent-color: var(--orange);
}

.status-pill.draft {
  background: rgba(140, 160, 200, 0.15);
  color: #b8c8e8;
}

.status-pill.currently {
  background: rgba(80, 200, 120, 0.18);
  color: #7ee0a8;
}

.status-pill.upcoming {
  background: rgba(254, 130, 0, 0.16);
  color: #ffc48a;
}

.status-pill.just-back {
  background: rgba(140, 160, 200, 0.15);
  color: #b8c8e8;
}

.status-pill.planning {
  background: rgba(140, 160, 200, 0.15);
  color: #b8c8e8;
}

.status-pill.live {
  background: rgba(80, 200, 120, 0.18);
  color: #7ee0a8;
}

.status-pill.wrapped {
  background: rgba(254, 130, 0, 0.12);
  color: #ffc48a;
}

.live-trip-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.live-trip-status-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.live-trip-days-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.video-upload-preview video {
  width: 100%;
  max-height: 240px;
  border-radius: 10px;
  background: #000;
}

#live-trip-cover-preview img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  max-height: 220px;
}

.cotw-tips-block {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cotw-tips-title,
.city-review-ratings-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cotw-tips-grid {
  margin-top: 0.65rem;
}

#cotw-photo-preview img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  max-height: 220px;
}

.city-review-ratings-block {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.city-review-rating-rows {
  display: grid;
  gap: 0.85rem;
  margin: 0.75rem 0 0.85rem;
}

.city-review-rating-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.city-review-rating-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.city-review-rating-row-head select {
  flex: 1;
  min-width: 10rem;
}

.city-review-custom-label[hidden] {
  display: none !important;
}

.star-picker {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}

.city-review-admin-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.city-review-admin-list li {
  margin-bottom: 0.25rem;
}

.star-picker-btn {
  border: none;
  background: none;
  padding: 0.1rem 0.15rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.star-picker-btn.is-active,
.star-picker-btn:hover {
  color: #ffc48a;
}

.star-picker-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.city-review-admin-stars {
  color: #ffc48a;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

#profile-avatar-preview {
  width: 5.5rem;
  height: 5.5rem;
  max-width: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(254, 130, 0, 0.45);
  background: rgba(0, 0, 0, 0.25);
}

#profile-avatar-preview img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.image-upload-field {
  display: grid;
  gap: 0.55rem;
}

.image-upload-preview {
  width: 100%;
  max-width: 280px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--dash-inset);
}

.image-upload-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-upload-preview[hidden] {
  display: none !important;
}

.image-upload-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-upload-btn input {
  display: none;
}

.upload-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--dash-hint);
}

.upload-url-fallback {
  margin-top: 0.25rem;
}

.upload-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-status.is-busy {
  color: var(--orange);
}

.upload-status.is-error {
  color: #ffb4b4;
}

.upload-status.is-ok {
  color: #7ee0a8;
}

.page-section-nav {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  align-items: center;
  position: relative;
  z-index: 6;
  margin: 0 0 1.15rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(5, 9, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.page-section-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dash-label);
  padding: 0 0.25rem 0 0.35rem;
  white-space: nowrap;
}

.page-section-nav::-webkit-scrollbar {
  display: none;
}

.page-section-btn {
  margin: 0;
  padding: 0.5rem 0.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  min-width: 0;
}

.page-section-btn:hover {
  color: var(--ink);
}

.page-section-btn.is-active {
  background: rgba(254, 130, 0, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(254, 130, 0, 0.38);
}

.page-section-btn.is-active[data-section-tab="profile"] {
  background: linear-gradient(135deg, rgba(254, 130, 0, 0.38), rgba(254, 130, 0, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(254, 130, 0, 0.45),
    0 4px 14px rgba(254, 130, 0, 0.15);
}

@media (max-width: 520px) {
  .page-section-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-section-nav-label {
    display: none;
  }
}

@media (min-width: 900px) {
  .dashboard-page-layout {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .dashboard-page-layout .page-section-nav {
    position: sticky;
    top: calc(8.5rem + env(safe-area-inset-top));
    flex-direction: column;
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0.5rem;
  }

  .dashboard-page-layout .page-section-btn {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-form .form-grid {
    grid-template-columns: 1fr;
  }

  .post-admin-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .code-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .partner-toolbar::-webkit-scrollbar {
    display: none;
  }

  .partner-toolbar a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }
}
