/* CostLyf Dashboard – mobile-first, matches reference image */

:root {
  --dash-bg: #fff;
  --dash-text: #1d1d1f;
  --dash-text-muted: #6e6e73;
  --dash-primary: #2d2d30;
  --dash-search-bg: #f0f0f2;
  --dash-pill-active-bg: #2d2d30;
  --dash-pill-movies: #e8e0f0;
  --dash-pill-movies-text: #5c4a7a;
  --dash-pill-music: #e8e0f0;
  --dash-pill-music-text: #5c4a7a;
  --dash-pill-security-bg: #d4edda;
  --dash-pill-security-text: #1e6b2e;
  --dash-card-bg: #fff;
  --dash-price: #5c4a7a;
  --dash-radius: 999px;
  --dash-card-radius: 16px;
  --dash-nav-h: 64px;
  --dash-top-bar-h: 64px;
  --dash-padding: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--dash-text);
  background: var(--dash-bg);
  line-height: 1.5;
  padding-bottom: var(--dash-nav-h);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Left sidebar: desktop only */
.sidebar {
  display: none;
}

@media (min-width: 768px) {
  .dashboard {
    flex-direction: row;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    background: #ffffff;
    border: none;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
  }

  .sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: none;
  }

  .sidebar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .sidebar-logo-icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .sidebar-logo img:not(.sidebar-logo-icon) {
    display: block;
    width: 96px;
    height: auto;
  }

  .sidebar-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: var(--dash-search-bg);
    color: var(--dash-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .sidebar-toggle:hover {
    background: var(--dash-text-muted);
    color: #fff;
  }

  .sidebar-nav {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
  }

  .sidebar-nav-heading {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dash-text-muted);
  }

  .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dash-text-muted);
    transition: background 0.15s, color 0.15s;
  }

  .sidebar-nav-item:hover {
    background: var(--dash-search-bg);
    color: var(--dash-text);
  }

  .sidebar-nav-item--active {
    background: var(--dash-primary);
    color: #fff;
  }

  .sidebar-nav-item--active:hover {
    background: #1d1d1f;
    color: #fff;
  }

  .sidebar-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: inherit;
  }

  .sidebar-nav-icon svg {
    width: 20px;
    height: 20px;
  }

  .sidebar-nav-icon--circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
  }

  .sidebar-nav-icon--circle svg {
    width: 14px;
    height: 14px;
  }

  .sidebar-nav-item--active .sidebar-nav-icon--circle {
    border-color: #fff;
  }

  .sidebar-footer {
    padding: 1rem 1.25rem;
    border: none;
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dash-text-muted);
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
  }

  .sidebar-user:hover {
    background: var(--dash-search-bg);
    color: var(--dash-text);
  }

  .sidebar-user-avatar {
    flex-shrink: 0;
    line-height: 0;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
  }

  .sidebar-user-avatar--photo img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
  }

  .sidebar-user-avatar--default .profile-avatar-circle {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--circle-color, #eee);
    overflow: hidden;
  }

  .sidebar-user-avatar--default .profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sidebar-user-label {
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .sidebar--collapsed {
    width: 72px;
  }

  .sidebar--collapsed .sidebar-user-label,
  .sidebar--collapsed .sidebar-nav-item span:not(.sidebar-nav-icon) {
    overflow: hidden;
    width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }

  .sidebar--collapsed .sidebar-nav-heading {
    padding: 0;
    margin: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .sidebar--collapsed .sidebar-header,
  .sidebar--collapsed .sidebar-nav,
  .sidebar--collapsed .sidebar-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar--collapsed .sidebar-nav-item {
    padding: 0.625rem;
    justify-content: center;
  }
}

/* Content area: allow scroll so header + filters + main all fit (Join, etc.) */
.dashboard-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  overflow-y: auto;
}

/* Header: search + filters */
.dashboard-header {
  flex-shrink: 0;
  padding: var(--dash-padding);
  padding-top: max(var(--dash-padding), env(safe-area-inset-top));
  background: transparent;
}

@media (min-width: 768px) {
  .dashboard-header {
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dashboard-header .search-wrap {
    max-width: 280px;
    width: 100%;
  }

  .dashboard-header .filter-nav {
    max-width: 80%;
    width: 100%;
  }
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--dash-search-bg);
  border-radius: var(--dash-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.search-icon {
  flex-shrink: 0;
  color: var(--dash-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dash-text);
}

.search-input::placeholder {
  color: var(--dash-text-muted);
}

.search-input:focus {
  outline: none;
}

/* Filter pills */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 2px;
}

.filter-pill {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--dash-radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-pill--active {
  background: var(--dash-pill-active-bg);
  color: #fff;
}

.filter-pill:not(.filter-pill--active) {
  background: var(--dash-pill-movies);
  color: var(--dash-pill-movies-text);
}

.filter-pill[data-filter="security"]:not(.filter-pill--active) {
  background: var(--dash-pill-security-bg);
  color: var(--dash-pill-security-text);
}

/* Main content */
.dashboard-main {
  flex: 1;
  min-height: 0;
  padding: 0 var(--dash-padding) var(--dash-padding);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .dashboard-main {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

.dashboard-main--wallet {
  max-width: 100%;
}

@media (min-width: 768px) {
  .dashboard-main--wallet {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Wallet screen (My wallet) */
.wallet-screen {
  padding: 1.5rem 0 2rem;
  max-width: 100%;
}

.wallet-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dash-search-bg);
  color: var(--dash-text);
  margin-bottom: 1.25rem;
  transition: background 0.15s, color 0.15s;
}

.wallet-back:hover {
  background: var(--dash-text-muted);
  color: #fff;
}

.wallet-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
  text-align: center;
}

.wallet-balance-amount {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dash-text);
  line-height: 1.2;
  text-align: center;
}

.wallet-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.wallet-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 14px;
  background: var(--dash-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.wallet-action-btn:hover {
  background: #1d1d1f;
  transform: translateY(-1px);
}

.wallet-action-btn svg {
  flex-shrink: 0;
}

.wallet-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.wallet-card--upcoming {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wallet-card-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wallet-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text);
  flex-shrink: 0;
}

.wallet-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wallet-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
}

.wallet-card-sub {
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}

.wallet-card-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.wallet-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
}

.wallet-card-chevron {
  font-size: 1.25rem;
  color: var(--dash-text-muted);
}

.wallet-card--history {
  padding: 1.25rem;
}

.wallet-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.wallet-history-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
}

.wallet-month-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-month-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--dash-search-bg);
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.wallet-month-btn:hover {
  background: var(--dash-text-muted);
  color: #fff;
}

.wallet-month-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text);
  min-width: 7rem;
  text-align: center;
}

.wallet-receipt {
  min-height: 100px;
}
.wallet-receipt--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wallet-receipt-paper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  font-variant-numeric: tabular-nums;
}
.wallet-receipt-line {
  display: block;
}
.wallet-history-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}

/* Dashboard home: playful premium cards */
.dashboard-home {
  --home-block-width: 520px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.dashboard-placeholder {
  margin: 0;
  font-size: 1.125rem;
  color: var(--dash-text-muted);
}

/* Balance at top: light grey card, Balance | 0€ › (links to wallet) */
.home-balance {
  width: 100%;
  max-width: var(--home-block-width);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8e8ea;
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-balance:hover {
  background: #e0e0e2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.home-balance-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1f;
}

.home-balance-right {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.home-balance-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1f;
}

.home-balance-chevron {
  font-size: 1.5rem;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1;
}

/* Two vertical cards row */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: var(--home-block-width);
}

/* Card base: rounded, soft 3D, not clickable */
.home-card {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.home-card--join {
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #4a154b 0%, #2d1b2e 40%, #1a1a1a 100%);
}

.home-card--share {
  background: radial-gradient(ellipse 100% 120% at 50% 30%, #84cc16 0%, #3b82f6 45%, #2563eb 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 40px rgba(132, 204, 22, 0.08);
}

.home-card--control {
  width: 100%;
  max-width: var(--home-block-width);
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #22c55e 0%, #14b8a6 50%, #0d9488 100%);
}

.home-card-inner {
  padding: 1.5rem 1.25rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.home-card-inner--wide {
  min-height: 0;
  padding: 1.5rem 1.75rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
}

.home-card--control .home-card-inner--wide {
  justify-content: flex-start;
  gap: 1.5rem;
}

.home-control-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.home-control-illus {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-control-illus .home-card-illus-img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.home-card-title--left {
  margin: 0;
  text-align: left;
  color: #fff;
  font-size: 1.25rem;
}

.home-card--control .home-card-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

.home-card--control .home-pill {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.home-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.home-card-title-accent {
  color: #ff6b9d;
}

.home-card--share .home-card-title-accent {
  color: #fef08a;
}

/* Illustration: single img from media/home */
.home-card-illus {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.home-card-illus-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.home-card--share .home-card-illus-img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 24px rgba(254, 240, 138, 0.25));
}

/* White pill button: only clickable element in card */
.home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 48px;
  padding: 0 1.25rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
}

.home-pill:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.home-pill-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-pill-icon--svg {
  color: #1d1d1f;
}

.home-pill--no-icon .home-pill-text {
  font-weight: 600;
}

.home-pill-text {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .dashboard-home {
    --home-block-width: 560px;
  }

  .home-cards {
    gap: 1.25rem;
  }

  .home-card-inner {
    min-height: 240px;
    padding: 1.75rem 1.5rem;
  }

  .home-card-title {
    font-size: 1.125rem;
  }

  .home-card-illus {
    height: 110px;
  }

  .home-control-illus .home-card-illus-img {
    width: 260px;
  }
}

/* My offers (home) */
.my-offers {
  width: 100%;
  max-width: var(--home-block-width);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.my-offers-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}

.my-offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.my-offers-empty {
  margin: 0;
  padding: 1rem 0;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}

.my-offer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dash-card-bg);
  border-radius: var(--dash-card-radius);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.my-offer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.my-sub-status {
  display: block;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  margin-top: 0.15rem;
}

.my-offer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.my-offer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
}

.my-offer-slots {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--dash-text-muted);
}

.my-offer-slot {
  display: inline-flex;
}

.my-offer-slot--filled {
  color: var(--dash-text);
}

.my-offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--dash-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
}

.my-offer-tag svg {
  width: 14px;
  height: 14px;
}

.my-offer-card:hover {
  background: #f8f8f8;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
}

.my-offer-chevron {
  font-size: 1.25rem;
  color: var(--dash-text-muted);
}

/* My subscriptions: days left number inside progress wheel */
.my-sub-days {
  flex-shrink: 0;
}
.my-sub-days-wheel {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-sub-days-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.my-sub-days-bg {
  stroke: #e8e8ec;
}
.my-sub-days-fill {
  transition: stroke-dasharray 0.3s ease, stroke 0.3s ease;
}
.my-sub-days-num {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.category-section {
  margin-bottom: 2rem;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
  padding-left: calc(40px + 1.25rem + 1.5rem);
}

.category-head .category-title {
  margin-bottom: 0;
  text-align: left;
}

.category-see-all-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dash-text-muted);
}

.category-see-all-link:hover {
  color: var(--dash-text);
}

.category-section[data-category].category-section--hidden {
  display: none;
}

.category-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dash-text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.category-emoji {
  font-size: 1.25rem;
}

/* Card carousel: arrows left & right */
.card-carousel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--dash-search-bg);
  color: var(--dash-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.carousel-btn:hover {
  background: var(--dash-text-muted);
  color: #fff;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.card-scroll {
  flex: 1;
  min-width: 0;
  max-width: 360px;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.5rem;
  margin: 0;
  scroll-behavior: smooth;
}

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

.service-card {
  flex: 0 0 160px;
  background: var(--dash-card-bg);
  border-radius: var(--dash-card-radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  min-height: 120px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .service-card {
    flex: 0 0 calc((100% - 3 * 0.75rem) / 4);
  }
  /* Desktop: show 4 cards in view; carousel scrolls when more than 4 */
  .card-scroll {
    max-width: 740px;
  }
  .card-scroll .service-card {
    flex: 0 0 calc((100% - 3 * 0.75rem) / 4);
  }
}

.service-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.service-card--featured {
  background: #fff;
}

.service-card-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  min-height: 96px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-card-logo img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
}

.service-card-name,
.service-card-from,
.service-card-price {
  margin: 0;
  text-align: center;
}

.service-card-name {
  font-weight: 700;
}

.service-card-from {
  font-size: 0.6875rem;
  color: var(--dash-text-muted);
  opacity: 0.6;
}

.service-card-price {
  font-size: 1rem;
}

.service-card-amount {
  font-weight: 700;
  color: var(--dash-text);
  font-size: 1.125rem;
}

.service-card-period {
  font-size: 0.8125rem;
  color: var(--dash-text);
  opacity: 0.8;
}

.category-see-all {
  margin: 0.75rem 0 0;
  text-align: center;
}

.category-see-all a {
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  font-weight: 500;
}

.category-see-all a:hover {
  color: var(--dash-text);
}

/* Service marketplace (e.g. /join/netflix) */
.dashboard-content--service {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--dash-padding) 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.service-back {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dash-search-bg);
  color: var(--dash-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.service-back:hover {
  background: var(--dash-text-muted);
  color: #fff;
}

.service-header-center {
  flex: 1;
  min-width: 0;
}

.service-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}

.service-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  line-height: 1.45;
}

.service-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.service-header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--dash-search-bg);
  color: var(--dash-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.service-header-btn:hover {
  background: var(--dash-text-muted);
  color: #fff;
}

.service-header-btn-img {
  display: block;
  width: 20px;
  height: 20px;
}

.service-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

@media (min-width: 900px) {
  .service-layout {
    flex-direction: row;
  }
}

.service-sidebar {
  flex-shrink: 0;
  padding: 1.25rem var(--dash-padding);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 900px) {
  .service-sidebar {
    width: 280px;
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.service-filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-filter-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-filters .service-filter-label:not(:first-child) {
  margin-top: 0.25rem;
}

.service-plan-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.service-plan-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--dash-search-bg);
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.service-plan-pill:hover {
  background: #e0e0e2;
  color: var(--dash-text);
}

.service-plan-pill--active {
  background: var(--dash-primary);
  color: #fff;
}

.service-plan-pill--active:hover {
  background: #1d1d1f;
  color: #fff;
}

.service-tv-icon {
  font-size: 0.75em;
  opacity: 0.9;
}

.service-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-toggle-row .service-toggle-wrap {
  margin-left: auto;
}

.service-toggle-wrap {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.service-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.service-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 999px;
  transition: 0.2s;
}

.service-toggle-slider::after {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.service-toggle-input:checked + .service-toggle-slider {
  background: var(--dash-primary);
}

.service-toggle-input:checked + .service-toggle-slider::after {
  transform: translateX(18px);
}

.service-toggle-icon {
  color: var(--dash-text-muted);
  font-size: 1rem;
}

.service-toggle-icon--bolt {
  display: flex;
  color: #eab308;
}

.service-toggle-icon img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.service-toggle-label {
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  flex: 1;
  min-width: 0;
}

.service-toggle-row .service-toggle-label {
  flex: 0 1 auto;
}

.service-filter-sublabel {
  margin: -0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-sort-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-sort-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--dash-text);
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.service-sort-item:hover {
  background: var(--dash-search-bg);
}
.service-sort-item--active {
  background: var(--dash-primary);
  color: #fff;
}
.service-sort-item--active:hover {
  background: #1d1d1f;
  color: #fff;
}
.service-sort-item--active .service-sort-icon,
.service-sort-item--active .service-sort-chevron {
  color: #fff;
}
.service-sort-item--active .service-sort-icon img {
  filter: brightness(0) invert(1);
}

.service-sort-icon {
  display: flex;
  color: var(--dash-text-muted);
}

.service-sort-icon img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.service-sort-chevron {
  margin-left: auto;
  font-size: 1.125rem;
  color: var(--dash-text-muted);
}

.service-become-owner {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--dash-primary);
  color: #fff;
  border-radius: 16px;
}

.service-become-owner-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.service-become-owner-desc {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.95;
  line-height: 1.4;
}

.service-become-owner-earn {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.service-become-owner-earn strong {
  font-size: 1.125rem;
}

.service-share-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: #dc2626;
  color: #fff;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.service-share-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.service-main {
  flex: 1;
  min-height: 0;
  padding: 1.25rem var(--dash-padding) 2rem;
  overflow-y: auto;
}

.service-offers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-offer-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.5rem;
  min-height: 88px;
  background: var(--dash-card-bg);
  border-radius: var(--dash-card-radius);
  border: 1px solid transparent;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.service-offer-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-offer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: #e5e7eb;
}

.service-offer-avatar-wrap .service-offer-avatar {
  display: block;
  border-radius: 50%;
}

.service-offer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
  box-sizing: border-box;
  overflow: hidden;
}

.service-offer-avatar--img {
  padding: 0;
}

.service-offer-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-offer-trust-ring--1 { background: #dc2626; }
.service-offer-trust-ring--2 { background: #ea580c; }
.service-offer-trust-ring--3 { background: #f59e0b; }
.service-offer-trust-ring--4 { background: #eab308; }
.service-offer-trust-ring--5 { background: #ca8a04; }
.service-offer-trust-ring--6 { background: #84cc16; }
.service-offer-trust-ring--7 { background: #22c55e; }
.service-offer-trust-ring--8 { background: #16a34a; }
.service-offer-trust-ring--9 { background: #15803d; }
.service-offer-trust-ring--10 { background: #166534; }

.service-offer-trust-ring--1 .service-offer-trust { background: #dc2626; }
.service-offer-trust-ring--2 .service-offer-trust { background: #ea580c; }
.service-offer-trust-ring--3 .service-offer-trust { background: #f59e0b; }
.service-offer-trust-ring--4 .service-offer-trust { background: #eab308; color: #1d1d1f; }
.service-offer-trust-ring--5 .service-offer-trust { background: #ca8a04; color: #fff; }
.service-offer-trust-ring--6 .service-offer-trust { background: #84cc16; color: #1d1d1f; }
.service-offer-trust-ring--7 .service-offer-trust { background: #22c55e; color: #fff; }
.service-offer-trust-ring--8 .service-offer-trust { background: #16a34a; color: #fff; }
.service-offer-trust-ring--9 .service-offer-trust { background: #15803d; color: #fff; }
.service-offer-trust-ring--10 .service-offer-trust { background: #166534; color: #fff; }

.service-offer-trust {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--dash-text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-offer-body {
  flex: 1;
  min-width: 0;
}

.service-offer-text {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: var(--dash-text);
  line-height: 1.4;
}

.service-offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.service-offer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.service-offer-badge--verified {
  background: #22c55e;
  color: #fff;
}
.service-offer-badge--instant {
  background: #eab308;
  color: #1c1917;
}
.service-offer-badge--instant .service-offer-badge-icon {
  filter: none;
}

.service-offer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  flex-shrink: 0;
}
.service-offer-seats {
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}

.service-offer-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
  white-space: nowrap;
}

.service-offer-price-icon {
  margin-right: 0.35em;
  vertical-align: middle;
  display: inline-block;
}

.service-offer-badge-icon {
  vertical-align: middle;
  margin-right: 0.25em;
  display: inline-block;
}

.service-offer-badge--verified .service-offer-badge-icon {
  filter: brightness(0) invert(1);
}

.service-offer-period {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text-muted);
}

.service-offer-join {
  padding: 0.75rem 1.75rem;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--dash-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.service-offer-join:hover {
  background: #1d1d1f;
  transform: translateY(-1px);
}

.service-offer-join--joined {
  background: #e5e7eb;
  color: #6b7280;
  cursor: default;
  pointer-events: none;
}
.service-offer-join--joined:hover {
  background: #e5e7eb;
  transform: none;
}

.service-offer-join--manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.service-offers-loading,
.service-offers-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--dash-text-muted);
  font-size: 0.9375rem;
}

.service-pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.service-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.service-page-btn:hover {
  border-color: var(--dash-text-muted);
  background: var(--dash-search-bg);
}

.service-page-btn--current {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.service-page-btn--current:hover {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

/* Bottom navigation (mobile only) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--dash-nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--dash-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 20;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  color: var(--dash-text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  transition: color 0.15s;
  min-width: 56px;
}

.bottom-nav-item:hover,
.bottom-nav-item--active {
  color: var(--dash-text);
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.bottom-nav-icon img {
  width: 24px;
  height: auto;
  opacity: 0.9;
}

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

.bottom-nav-icon--circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--dash-text-muted);
  color: var(--dash-text-muted);
}

.bottom-nav-icon--circle svg {
  width: 14px;
  height: 14px;
}

.bottom-nav-item:hover .bottom-nav-icon--circle,
.bottom-nav-item--active .bottom-nav-icon--circle {
  border-color: var(--dash-text);
  color: var(--dash-text);
}

/* Offer detail (my offer opened) */
.dashboard-content--offer {
  background: #fafafa;
}
.dashboard-main--offer {
  max-width: 100%;
  padding: var(--dash-padding);
}
.offer-screen {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 0.5rem;
}
.offer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.offer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--dash-text);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.15s;
}
.offer-back:hover {
  background: rgba(0, 0, 0, 0.06);
}
.offer-header-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.offer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.offer-service-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: var(--dash-text);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.offer-share:hover {
  background: rgba(0, 0, 0, 0.06);
}
.offer-messages {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  color: var(--dash-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.offer-messages:hover {
  background: #d1d5db;
}
.offer-card {
  background: #fff;
}
/* Hide owner UI until view mode is determined (avoids flash for subscribers) */
.offer-view-pending .offer-owner-only,
.offer-view-member .offer-owner-only {
  display: none !important;
}
.offer-member-only {
  display: none;
}
.offer-view-member .offer-member-only {
  display: block;
}
.offer-view-pending .offer-member-only {
  display: none;
}
/* Owner view: hide Owner + Open Chat and Your slot / Cancel subscription (subscriber-only) */
.offer-view-owner .offer-member-only {
  display: none !important;
}
.offer-view-owner #offer-owner-row,
.offer-view-owner #offer-my-slot-row {
  display: none !important;
}
/* Center all content on subscribed (member) offer page */
.offer-card.offer-view-member {
  text-align: center;
}
.offer-card.offer-view-member .offer-row {
  justify-content: center;
  text-align: center;
}
.offer-card.offer-view-member .offer-row-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offer-card.offer-view-member .offer-row-main .offer-row-title,
.offer-card.offer-view-member .offer-row-main .offer-row-meta,
.offer-card.offer-view-member .offer-row-main .offer-row-value,
.offer-card.offer-view-member .offer-row-main .offer-row-detail {
  text-align: center;
}
.offer-card.offer-view-member #offer-owner-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.offer-card.offer-view-member #offer-owner-row .offer-row-main {
  flex: 0 1 auto;
}
.offer-card.offer-view-member #offer-owner-row .offer-row-actions,
.offer-row-actions.offer-row-actions--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex: 1 1 100%;
  margin-top: 0.25rem;
}
.offer-card.offer-view-member .offer-row-btn,
.offer-card.offer-view-member .offer-open-chat-btn {
  flex-shrink: 0;
}
.offer-owner-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-owner-avatar.subscription-owner-avatar {
  width: 40px;
  height: 40px;
}
.offer-view-member .offer-member-only[hidden] {
  display: none !important;
}
.offer-row-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.offer-owner-action-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #d4d4d4;
  background: #e5e5e5;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.offer-owner-action-btn:hover {
  background: #d4d4d4;
  border-color: #a3a3a3;
}
.offer-owner-action-btn svg {
  flex-shrink: 0;
}
.offer-owner-action-btn.offer-support-btn {
  display: inline-flex;
}
.offer-row-btn--danger {
  background: #fecaca;
  color: #b91c1c;
}
.offer-row-btn--danger:hover {
  background: #fca5a5;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.offer-row-btn--success {
  background: #22c55e;
  color: #fff;
}
.offer-row-btn--success:hover {
  background: #16a34a;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
#offer-cancel-subscription-btn {
  width: 100%;
  display: block;
  padding: 0.875rem 1.5rem;
  font-size: 1.0625rem;
  margin-top: 0.75rem;
  background: #fde8e8;
  color: #9f1239;
  border: 1px solid #fecaca;
}
#offer-cancel-subscription-btn:hover {
  background: #fce4e4;
  color: #831843;
}
.offer-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: none;
  font-family: inherit;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}
.offer-row:last-child {
  border-bottom: none;
}
.offer-row:hover {
  background: #f9fafb;
}
.offer-row--static {
  cursor: default;
  flex-wrap: wrap;
}
.offer-row--static:hover {
  background: transparent;
}
.offer-row-main {
  flex: 1;
  min-width: 0;
}
.offer-row-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-row-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-row-value span {
  font-weight: 700;
}
.offer-row-meta {
  margin: 0;
  font-size: 0.875rem;
}
.offer-row-meta--muted {
  color: var(--dash-text-muted);
  font-size: 0.8125rem;
}
.offer-row-detail {
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
  color: var(--dash-text);
}
.offer-row-detail--muted {
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.offer-row-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  line-height: 1.4;
}
.offer-row-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dash-text);
  color: #fff;
  flex-shrink: 0;
}
.offer-row-chevron {
  font-size: 1.25rem;
  color: var(--dash-text-muted);
  flex-shrink: 0;
}
.offer-visibility-pill {
  display: inline-flex;
  align-items: stretch;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  border: 2px solid transparent;
  transition: box-shadow 0.2s;
}
.offer-visibility-pill:focus-within {
  box-shadow: 0 0 0 2px var(--dash-primary);
}
.offer-visibility-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dash-text);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.offer-visibility-option:first-child {
  border-radius: 999px 0 0 999px;
}
.offer-visibility-option:last-child {
  border-radius: 0 999px 999px 0;
}
.offer-visibility-option:hover {
  color: var(--dash-text);
}
.offer-visibility-option--active {
  background: var(--dash-primary);
  color: #fff;
}
.offer-visibility-option--active:hover {
  background: #1d1d1f;
  color: #fff;
}
.offer-charter-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #059669;
}
.offer-charter-status--pending {
  color: #b45309;
}
.offer-charter-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
/* Stop the share confirmation overlay */
.offer-stop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.offer-stop-overlay[hidden] {
  display: none;
}
.offer-stop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.offer-stop-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.offer-stop-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-stop-message {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dash-text);
}
.offer-stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
/* Cancel subscription overlay (same layout as stop overlay) */
.offer-cancel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.offer-cancel-overlay[hidden] {
  display: none;
}
.offer-cancel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.offer-cancel-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.offer-cancel-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-cancel-message {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dash-text);
}
.offer-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.offer-my-slot-status--active {
  color: #15803d;
  font-weight: 600;
}

.offer-cancel-effective {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.offer-cancel-effective--scheduled {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
  margin-top: 0.35rem;
}
.offer-stop-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: none;
}
.offer-stop-btn--secondary {
  background: #f0f0f0;
  color: var(--dash-text);
}
.offer-stop-btn--secondary:hover {
  background: #e5e5e5;
}
.offer-stop-btn--danger {
  background: #dc2626;
  color: #fff;
}
.offer-stop-btn--danger:hover {
  background: #b91c1c;
}

/* Publish offer overlay (when switching visibility to Public) */
.offer-publish-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.offer-publish-overlay[hidden] {
  display: none;
}
.offer-publish-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.offer-publish-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.offer-publish-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-publish-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}
.offer-publish-service {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
}
.offer-publish-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}
.offer-publish-terms {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dash-text-muted);
  text-align: left;
}
.offer-publish-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: var(--dash-primary);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.offer-publish-btn:hover {
  background: #1d1d1f;
}
.offer-publish-btn--secondary {
  margin-top: 0.5rem;
  background: transparent;
  color: var(--dash-text-muted);
}
.offer-publish-btn--secondary:hover {
  background: #f0f0f0;
  color: var(--dash-text);
}

/* Co-subscribers overlay (slots list, reserve / unreserve / request removal) */
.offer-cosubs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.offer-cosubs-overlay[hidden] {
  display: none;
}
.offer-cosubs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.offer-cosubs-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.offer-cosubs-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}
.offer-cosubs-meta {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}
.offer-cosubs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.offer-cosubs-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 0.9375rem;
}
.offer-cosubs-slot--available { background: #f0fdf4; }
.offer-cosubs-slot--reserved { background: #fef3c7; }
.offer-cosubs-slot--taken { background: #e0e7ff; }
.offer-cosubs-slot-label { font-weight: 500; color: var(--dash-text); }
.offer-cosubs-slot-status { margin-left: 0.5rem; font-size: 0.8125rem; color: var(--dash-text-muted); }
.offer-cosubs-slot-user { margin-top: 0.25rem; font-size: 0.875rem; color: var(--dash-text); }
.offer-cosubs-slot-taken-meta { margin-top: 0.2rem; font-size: 0.8125rem; color: var(--dash-text-muted); }
.offer-cosubs-slot-hint { margin-top: 0.35rem; margin-bottom: 0.5rem; font-size: 0.8125rem; color: var(--dash-text-muted); line-height: 1.4; }
.offer-cosubs-slot-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.offer-cosubs-slot-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.offer-cosubs-slot-btn--primary { background: var(--dash-primary); color: #fff; }
.offer-cosubs-slot-btn--primary:hover { background: #1d1d1f; }
.offer-cosubs-slot-btn--secondary { background: #e5e5e5; color: var(--dash-text); }
.offer-cosubs-slot-btn--secondary:hover { background: #d4d4d4; }
.offer-cosubs-slot-btn--danger { background: #fecaca; color: #b91c1c; }
.offer-cosubs-slot-btn--danger:hover { background: #fca5a5; }
.offer-cosubs-close {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: #f0f0f0;
  color: var(--dash-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.offer-cosubs-close:hover { background: #e5e5e5; }

/* Join offer modal (when pressing Join on offer card) */
.join-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.join-offer-overlay[hidden] {
  display: none;
}
.join-offer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.join-offer-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.join-offer-modal .join-offer-next,
.join-offer-modal .join-offer-pay,
.join-offer-modal .join-offer-next--block,
.join-offer-modal .join-offer-pay-btn,
.join-offer-modal .join-offer-gpay-next {
  width: 100%;
  max-width: none;
  border-radius: 12px;
}
.join-offer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--dash-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.join-offer-close:hover {
  color: var(--dash-text);
  background: #f0f0f0;
}
.join-offer-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.join-offer-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 3px;
  border-radius: 50%;
  background: #e5e7eb;
}
.join-offer-avatar-wrap .join-offer-avatar {
  display: block;
  border-radius: 50%;
}
.join-offer-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  box-sizing: border-box;
}
.join-offer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.join-offer-avatar-wrap .join-offer-score {
  position: absolute;
  bottom: -4px;
  right: -4px;
  left: auto;
  transform: none;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--dash-text);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.join-offer-avatar-wrap.service-offer-trust-ring--1 .join-offer-score { background: #dc2626; }
.join-offer-avatar-wrap.service-offer-trust-ring--2 .join-offer-score { background: #ea580c; }
.join-offer-avatar-wrap.service-offer-trust-ring--3 .join-offer-score { background: #f59e0b; }
.join-offer-avatar-wrap.service-offer-trust-ring--4 .join-offer-score { background: #eab308; color: #1d1d1f; }
.join-offer-avatar-wrap.service-offer-trust-ring--5 .join-offer-score { background: #ca8a04; color: #fff; }
.join-offer-avatar-wrap.service-offer-trust-ring--6 .join-offer-score { background: #84cc16; color: #1d1d1f; }
.join-offer-avatar-wrap.service-offer-trust-ring--7 .join-offer-score { background: #22c55e; color: #fff; }
.join-offer-avatar-wrap.service-offer-trust-ring--8 .join-offer-score { background: #16a34a; color: #fff; }
.join-offer-avatar-wrap.service-offer-trust-ring--9 .join-offer-score { background: #15803d; color: #fff; }
.join-offer-avatar-wrap.service-offer-trust-ring--10 .join-offer-score { background: #166534; color: #fff; }
.join-offer-avatar-wrap.service-offer-trust-ring--1 { background: #dc2626; }
.join-offer-avatar-wrap.service-offer-trust-ring--2 { background: #ea580c; }
.join-offer-avatar-wrap.service-offer-trust-ring--3 { background: #f59e0b; }
.join-offer-avatar-wrap.service-offer-trust-ring--4 { background: #eab308; }
.join-offer-avatar-wrap.service-offer-trust-ring--5 { background: #ca8a04; }
.join-offer-avatar-wrap.service-offer-trust-ring--6 { background: #84cc16; }
.join-offer-avatar-wrap.service-offer-trust-ring--7 { background: #22c55e; }
.join-offer-avatar-wrap.service-offer-trust-ring--8 { background: #16a34a; }
.join-offer-avatar-wrap.service-offer-trust-ring--9 { background: #15803d; }
.join-offer-avatar-wrap.service-offer-trust-ring--10 { background: #166534; }
.join-offer-owner-name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}
.join-offer-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: #34c759;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}
.join-offer-verified-badge svg {
  color: #fff;
}
.join-offer-member-since {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.join-offer-box {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #f0f0f2;
  border-radius: 14px;
  text-align: left;
}
.join-offer-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.join-offer-box-head:hover {
  opacity: 0.9;
}
.join-offer-service {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--dash-text);
}
.join-offer-service-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.join-offer-expand {
  padding: 0.25rem;
  border: none;
  background: none;
  color: var(--dash-text-muted);
  cursor: pointer;
}
.join-offer-expand svg {
  display: block;
  transition: transform 0.2s ease;
}
.join-offer-box--collapsed .join-offer-expand svg {
  transform: rotate(180deg);
}
.join-offer-box-body {
  overflow: hidden;
}
.join-offer-box--collapsed .join-offer-box-body {
  display: none;
}
.join-offer-box-sep {
  height: 1px;
  margin: 0.75rem 0;
  background: rgba(0, 0, 0, 0.1);
}
.join-offer-plan {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--dash-text);
}
.join-offer-tv {
  font-size: 0.875rem;
  opacity: 0.9;
}
.join-offer-verify {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.join-offer-verify svg {
  flex-shrink: 0;
}
.join-offer-label {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--dash-text);
  text-align: center;
}
.join-offer-price-wrap {
  margin: 0 auto 0.25rem;
  padding: 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.join-offer-price-wrap:hover {
  color: var(--dash-text);
}
.join-offer-price-icon {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dash-text);
}
.join-offer-price-wrap:hover .join-offer-price-arrow {
  color: var(--dash-text);
}
.join-offer-period {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--dash-text-muted);
}
.join-offer-price-wrap:hover .join-offer-period {
  color: var(--dash-text-muted);
}
.join-offer-price-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text-muted);
  transition: transform 0.2s, color 0.15s;
}
.join-offer-price-arrow svg {
  display: block;
}
.join-offer-price-row {
  position: relative;
  margin: 0 0 0.25rem;
  text-align: center;
}
.join-offer-price-breakdown {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dash-search-bg);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.join-offer-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.join-offer-breakdown-row:last-of-type {
  margin-bottom: 1rem;
}
.join-offer-breakdown-label {
  font-size: 0.9375rem;
  color: var(--dash-text);
}
.join-offer-breakdown-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text);
}
.join-offer-breakdown-heading {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dash-text);
  text-align: left;
}
.join-offer-breakdown-includes {
  margin: 0;
  padding-left: 0;
  list-style: none;
  text-align: left;
}
.join-offer-breakdown-includes li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: var(--dash-text);
  text-align: left;
}
.join-offer-breakdown-includes li:last-child {
  margin-bottom: 0;
}
.join-offer-breakdown-icon {
  position: absolute;
  left: 0;
  top: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text-muted);
}
.join-offer-breakdown-icon svg {
  display: block;
}
.join-offer-disclaimer {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  text-align: center;
}
.join-offer-next {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.join-offer-next:hover {
  background: #000;
}

.join-offer-step--hidden {
  display: none !important;
}
.join-offer-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: #e5e7eb;
  color: var(--dash-text);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.join-offer-back:hover {
  background: #d1d5db;
}
.join-offer-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--dash-text);
  text-align: center;
}
.join-offer-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.join-offer-payment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.join-offer-payment-option:hover {
  background: #fafafa;
}
.join-offer-payment-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--dash-primary);
}
.join-offer-payment-label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dash-text);
}
.join-offer-payment-icon {
  color: #93c5fd;
}
.join-offer-payment-icon svg {
  display: block;
}
.join-offer-payment-amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text);
}
.join-offer-legal {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  color: var(--dash-text-muted);
  text-align: center;
  line-height: 1.45;
}
.join-offer-pay {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  color: #9ca3af;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
  transition: background 0.15s, color 0.15s;
}
.join-offer-pay:not(:disabled) {
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}
.join-offer-pay:not(:disabled):hover {
  background: #000;
}

/* Step 3: Top up my balance */
.join-offer-topup-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
.join-offer-topup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--dash-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.join-offer-topup-btn:hover {
  background: #d1d5db;
}
.join-offer-topup-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dash-text);
  min-width: 4ch;
  text-align: center;
}
.join-offer-topup-hint {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  text-align: center;
}
.join-offer-topup-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.join-offer-topup-preset {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  color: var(--dash-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.join-offer-topup-preset:hover {
  background: #d1d5db;
}
.join-offer-topup-preset--active {
  background: #1a1a1a;
  color: #fff;
}
.join-offer-next--block {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Step 4: Top up my Wallet – payment (Card / Google Pay) */
.join-offer-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.join-offer-pay-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.join-offer-pay-method:hover {
  background: #fafafa;
}
.join-offer-pay-method-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--dash-primary);
}
.join-offer-pay-method--active,
.join-offer-pay-method:has(.join-offer-pay-method-radio:checked) {
  border-color: rgba(0, 0, 0, 0.25);
  background: #fafafa;
}
.join-offer-pay-method-icon {
  display: inline-flex;
  color: var(--dash-text-muted);
}
.join-offer-pay-method-icon svg {
  display: block;
}
.join-offer-pay-method-gpay {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dash-text);
}
.join-offer-pay-method-label {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text);
}
.join-offer-card-form {
  text-align: left;
}
.join-offer-card-form--hidden {
  display: none;
}
.join-offer-field {
  margin-bottom: 1rem;
}
.join-offer-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dash-text-muted);
}
.join-offer-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dash-text);
  box-sizing: border-box;
}
.join-offer-input::placeholder {
  color: var(--dash-text-muted);
}
.join-offer-input:focus {
  outline: none;
  border-color: var(--dash-primary);
}
.join-offer-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.join-offer-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.join-offer-pay-btn:hover {
  background: #000;
}
.join-offer-pay-btn svg {
  flex-shrink: 0;
}
.join-offer-gpay-next {
  display: none;
  margin-top: 1rem;
}
.join-offer-gpay-next--visible {
  display: block;
}

/* Profile page */
.dashboard-content--profile {
  background: #f5f5f5;
}
.profile-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
@media (min-width: 900px) {
  .profile-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}
.profile-sidebar {
  flex-shrink: 0;
  width: 100%;
  padding: 1.5rem var(--dash-padding);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
@media (min-width: 900px) {
  .profile-sidebar {
    width: 300px;
    margin: var(--dash-padding);
    border-radius: 16px;
    padding: 1.5rem;
  }
}
.profile-user-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
}
.profile-avatar-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}
.profile-avatar {
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}
.profile-avatar svg {
  display: block;
  width: 56px;
  height: 56px;
}
.profile-avatar--photo,
.profile-avatar--default {
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}
.profile-avatar--photo img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.profile-avatar--default .profile-avatar-circle {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--circle-color, #eee);
  overflow: hidden;
}
.profile-avatar--default .profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  box-sizing: border-box;
}
.profile-username {
  margin: 0 0 0.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dash-text);
}
.profile-registered {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.profile-trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: #f0f0f0;
  border-radius: 12px;
  border: none;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s;
}
.profile-trust-card:focus,
.profile-trust-card:focus-visible {
  outline: none;
}
.profile-trust-card:hover {
  background: #e0e0e0;
}
a.profile-trust-card {
  text-decoration: none;
  color: inherit;
}
.profile-trust-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.profile-trust-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
}
.profile-trust-icon {
  display: inline-flex;
  color: #eab308;
  stroke: #eab308;
}
.profile-trust-icon svg {
  stroke: #eab308;
}
.profile-trust-label {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dash-text);
}
.profile-trust-value {
  flex-shrink: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #eab308;
  color: #fff;
}
.profile-trust-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}
.profile-trust-bar {
  height: 100%;
  background: #eab308;
  border-radius: 4px;
  transition: width 0.2s;
}
/* Trust score page (panel) */
.profile-trust-page-score {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.profile-trust-page-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dash-text-muted);
}
.profile-trust-criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-trust-criterion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--dash-text);
  transition: background 0.15s;
}
.profile-trust-criterion--clickable {
  cursor: pointer;
}
.profile-trust-criterion--clickable:not(.profile-trust-criterion--done):hover {
  background: #ebebeb;
}
.profile-trust-criterion--banking {
  background: #f8f8f8;
  cursor: default;
  opacity: 0.85;
}
.profile-trust-criterion--done {
  background: #f9f9f9;
  opacity: 0.75;
}
.profile-trust-criterion--done .profile-trust-criterion-text {
  color: var(--dash-text-muted);
}
.profile-trust-criterion--done .profile-trust-criterion-emoji {
  opacity: 0.8;
}
.profile-trust-criterion--pending .profile-trust-criterion-text {
  color: var(--dash-text);
  font-weight: 500;
}
.profile-trust-criterion--banking .profile-trust-criterion-text {
  color: var(--dash-text-muted);
}
.profile-trust-criterion-emoji {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.profile-trust-criterion-text {
  flex: 1;
  min-width: 0;
}
.profile-trust-criterion-meta {
  color: var(--dash-text-muted);
  font-weight: 500;
}
.profile-trust-criterion-status {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}
.profile-trust-criterion-status--done {
  background: #22c55e;
  color: #fff;
}
.profile-trust-criterion-status--pending {
  background: transparent;
  color: var(--dash-text);
  font-size: 1.25rem;
}
.profile-trust-criterion-status--disabled {
  background: #e5e5e5;
  color: var(--dash-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.profile-nav-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dash-text-muted);
}
.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: #f5f5f5;
  color: var(--dash-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: background 0.15s;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
button.profile-nav-item {
  appearance: none;
}
.profile-nav-item:focus,
.profile-nav-item:focus-visible {
  outline: none;
}
.profile-nav-item:hover {
  background: #ebebeb;
}
.profile-nav-item--active {
  background: #e5e5e5;
  color: var(--dash-text);
}
.profile-nav-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dash-text-muted);
}
.profile-nav-item span:nth-child(2) {
  flex: 1;
  min-width: 0;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}
.profile-nav-chevron {
  font-size: 1.1rem;
  color: var(--dash-text-muted);
}
.profile-sign-out {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--dash-text-muted);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.profile-sign-out:hover {
  background: #f5f5f5;
  color: var(--dash-text);
}
.profile-sign-out-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem var(--dash-padding) 2rem;
  background: #fff;
  margin: 0 var(--dash-padding) 1rem;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
@media (min-width: 900px) {
  .profile-main {
    margin: var(--dash-padding);
    margin-left: 0;
  }
}
.profile-main-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.profile-card {
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.profile-card-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
  flex: 1;
}
.profile-card-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-card-avatar-trigger {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  display: inline-block;
  line-height: 0;
}
.profile-card-avatar {
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}
.profile-card-avatar svg {
  display: block;
  width: 64px;
  height: 64px;
}
.profile-card-avatar--photo,
.profile-card-avatar--default {
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
}
.profile-card-avatar--photo img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}
.profile-card-avatar--default .profile-avatar-circle {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--circle-color, #eee);
  overflow: hidden;
}
.profile-card-avatar--default .profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dash-text);
  color: #fff;
}
.profile-card-avatar-edit svg {
  width: 14px;
  height: 14px;
}
.profile-field {
  margin-bottom: 1rem;
}
.profile-field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.profile-field-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.profile-field--language .profile-field-value {
  font-weight: 400;
}
.profile-language-select {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: var(--dash-search-bg);
  cursor: pointer;
  min-width: 160px;
}
.profile-language-select:focus {
  outline: none;
  border-color: var(--dash-primary);
}
.profile-field-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  background: none;
  color: var(--dash-text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s;
}
.profile-field-edit:hover {
  color: var(--dash-text);
}
.profile-section-title {
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dash-text);
}
.profile-panel[hidden] {
  display: none !important;
}
.profile-panel:not([hidden]) {
  display: block;
}
.profile-panel-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}
.profile-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
}
/* Privacy section (below change password) */
.profile-privacy-heading {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
}
.profile-privacy-label {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--dash-text);
}
.profile-cgu-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 10px;
  text-decoration: none;
  color: var(--dash-text);
  transition: background 0.15s;
}
.profile-cgu-card:hover {
  background: #ebebeb;
}
.profile-cgu-text {
  font-size: 0.9375rem;
  font-weight: 400;
}
.profile-cgu-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.7;
}
.profile-form {
  margin-top: 0.5rem;
}
.profile-form-field {
  margin-bottom: 1rem;
}
.profile-form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dash-text);
}
.profile-form-field input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}
.profile-form-field input:focus {
  outline: none;
  border-color: var(--dash-primary);
}
.profile-form-error {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #b91c1c;
}
.profile-form-error[hidden] {
  display: none !important;
}
.profile-form-success {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #059669;
}
.profile-form-success[hidden] {
  display: none !important;
}
.profile-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.profile-btn--primary {
  background: var(--dash-primary);
  color: #fff;
}
.profile-btn--primary:hover {
  background: #1d1d1f;
}
.profile-field-edit-mode .profile-field-value { display: none; }
.profile-field-edit-mode .profile-field-edit-wrap { display: flex; }
.profile-field-edit-wrap {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.profile-field-edit-wrap input {
  flex: 1;
  min-width: 120px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
}
.profile-field-edit-wrap input:focus {
  outline: none;
  border-color: var(--dash-primary);
}
.profile-field-edit-wrap .profile-edit-actions {
  display: flex;
  gap: 0.35rem;
}
.profile-field-edit-wrap button {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
.profile-btn-save { background: var(--dash-primary); color: #fff; }
.profile-btn-cancel { background: #e5e5e5; color: var(--dash-text); }
.profile-field-edit-wrap .profile-field-edit-row {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.profile-field-edit-wrap .profile-field-edit-row input { flex: 1; min-width: 0; }
.sidebar-user--active {
  background: var(--dash-primary);
  color: #fff;
}
.sidebar-user--active:hover {
  background: #1d1d1f;
  color: #fff;
}

/* Subscription detail page */
.subscription-page {
  padding: var(--dash-padding);
  max-width: 480px;
}
.subscription-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
  text-decoration: none;
}
.subscription-back:hover {
  color: var(--dash-text);
}
.subscription-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.subscription-owner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--dash-search-bg);
  border-radius: var(--dash-card-radius);
}
.subscription-owner-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dash-search-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.subscription-owner-avatar--img {
  padding: 0;
}
.subscription-owner-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.subscription-owner-avatar--default .inbox-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--circle-color, #e5e5e7);
  overflow: hidden;
  display: block;
}
.subscription-owner-avatar--default .inbox-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.subscription-owner-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.subscription-owner-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
}
.subscription-open-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.subscription-open-chat-icon {
  flex-shrink: 0;
}
.subscription-view {
  margin-top: 0.5rem;
}
.subscription-login-box {
  background: var(--dash-search-bg);
  border-radius: var(--dash-card-radius);
  padding: 1.25rem;
}
.subscription-login-heading {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
}
.subscription-login-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--dash-text-muted);
}
.subscription-login-details {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--dash-bg);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}
.subscription-login-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.subscription-login-row:last-child {
  margin-bottom: 0;
}
.subscription-login-label {
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  min-width: 5rem;
}
.subscription-login-value {
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
  color: var(--dash-text);
}
.subscription-actions {
  display: flex;
  flex-direction: column;
}
.subscription-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.subscription-btn--primary {
  background: var(--dash-primary);
  color: #fff;
}
.subscription-btn--primary:hover:not(:disabled) {
  opacity: 0.9;
}
.subscription-btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.subscription-btn--secondary {
  background: transparent;
  color: var(--dash-text);
  border: 1px solid var(--dash-text-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.subscription-btn--secondary:hover {
  background: var(--dash-search-bg);
  border-color: var(--dash-text);
}
.subscription-btn--secondary:active {
  background: #e5e5e7;
}
.subscription-btn--block {
  width: 100%;
}
.subscription-btn--danger {
  background: #b91c1c;
  color: #fff;
  border: none;
}
.subscription-btn--danger:hover {
  background: #991b1b;
  color: #fff;
}
.subscription-btn--danger:active {
  background: #7f1d1d;
  color: #fff;
}
.subscription-btn--verify {
  background: #166534;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.subscription-btn--verify:hover {
  background: #14532d;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.subscription-btn--verify:active {
  transform: scale(0.98);
  background: #14532d;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Subscription returning: chat (messenger-style) */
.subscription-chat-wrap {
  background: #fff;
  border-radius: var(--dash-card-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.subscription-chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.inbox-chat-header-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inbox-chat-header-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inbox-chat-header-avatar--default .inbox-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--circle-color, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.inbox-chat-header-avatar--default .inbox-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subscription-chat-with {
  font-size: 0.9375rem;
  color: var(--dash-text);
}
.subscription-chat-messages {
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 1rem;
  background: #fff;
}
@media (min-width: 768px) {
  .subscription-chat-messages {
    min-height: 360px;
    max-height: 560px;
  }
}
.subscription-chat-placeholder {
  margin: 0;
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  text-align: center;
  padding: 2rem 0.5rem;
}
.subscription-chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 92%;
}
.subscription-chat-msg--me {
  flex-direction: row-reverse;
  margin-left: auto;
}
.subscription-chat-msg--owner {
  flex-direction: row;
  margin-right: auto;
}
.subscription-chat-msg-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e5e5e7;
  color: var(--dash-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.subscription-chat-msg--owner .subscription-chat-msg-avatar {
  background: #e5e5e7;
}
.subscription-chat-msg--me .subscription-chat-msg-avatar {
  background: #d1d1d6;
  color: #6e6e73;
  font-size: 0.75rem;
}
.subscription-chat-msg-avatar--img,
.subscription-chat-msg-avatar--default {
  padding: 0;
  background: transparent;
}
.subscription-chat-msg-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.subscription-chat-msg-avatar--default .inbox-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--circle-color, #eee);
  overflow: hidden;
}
.subscription-chat-msg-avatar--default .inbox-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.subscription-chat-msg-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.subscription-chat-msg--me .subscription-chat-msg-content {
  align-items: flex-end;
}
.subscription-chat-msg-text {
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: 16px;
  background: #e5e5e7;
  color: var(--dash-text);
  max-width: 100%;
  word-wrap: break-word;
}
.subscription-chat-msg-text::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  top: 8px;
}
.subscription-chat-msg--owner .subscription-chat-msg-text::before {
  display: none;
}
.subscription-chat-msg--me .subscription-chat-msg-text::before {
  display: none;
}
.subscription-chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  padding-left: 0.25rem;
  font-size: 0.6875rem;
  color: var(--dash-text-muted);
}
.subscription-chat-msg--me .subscription-chat-msg-meta {
  padding-left: 0;
  padding-right: 0.25rem;
}
.subscription-chat-msg-checks {
  display: inline-flex;
  align-items: center;
  color: #34c759;
  margin-left: 0.2rem;
}
.subscription-chat-msg-check {
  font-size: 0.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.subscription-chat-msg-check svg {
  display: block;
  width: 1em;
  height: 1em;
  color: inherit;
}
.subscription-chat-msg-check--seen {
  color: #34c759;
  font-size: 1rem;
}
.subscription-chat-msg-check--seen svg {
  width: 1.1em;
  height: 1.1em;
}
.subscription-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.subscription-chat-attach,
.subscription-chat-emoji {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--dash-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  font-size: 1.5rem;
  line-height: 1;
}
.subscription-chat-attach:hover,
.subscription-chat-emoji:hover {
  background: #f0f0f2;
  color: var(--dash-text);
}
.subscription-chat-attach svg {
  display: block;
}
.subscription-chat-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.subscription-chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  background: #f0f0f2;
  color: var(--dash-text);
}
.subscription-chat-input::placeholder {
  color: var(--dash-text-muted);
}
.subscription-chat-send {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #ff0048;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.1s;
}
.subscription-chat-send--hidden {
  opacity: 0;
  pointer-events: none;
}
.subscription-chat-send:hover {
  opacity: 0.85;
}
.subscription-chat-send svg {
  display: block;
}
.subscription-chat-mic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--dash-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.subscription-chat-mic:hover {
  opacity: 0.9;
}
.subscription-chat-mic svg {
  display: block;
}
.subscription-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.subscription-countdown {
  padding: 0.75rem 1rem;
  background: var(--dash-search-bg);
  border-radius: 12px;
  font-size: 0.9375rem;
}
.subscription-countdown-label {
  display: block;
  color: var(--dash-text-muted);
  margin-bottom: 0.25rem;
}
.subscription-countdown-value {
  font-weight: 600;
  color: var(--dash-text);
}
.subscription-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--dash-text);
}
.subscription-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.subscription-toggle-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--dash-search-bg);
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: background 0.2s;
}
.subscription-toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--dash-text);
  border-radius: 50%;
  transition: transform 0.2s;
}
.subscription-toggle:checked + .subscription-toggle-slider {
  background: var(--dash-primary);
  border-color: var(--dash-primary);
}
.subscription-toggle:checked + .subscription-toggle-slider::after {
  transform: translateX(20px);
  background: #fff;
}
.subscription-cancel-confirm {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--dash-card-radius);
}
.subscription-cancel-warning {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--dash-text);
  line-height: 1.45;
}
.subscription-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.subscription-cancel-actions .subscription-btn--block {
  width: auto;
  flex: 1;
  min-width: 0;
}

/* Help page */
.help-page {
  padding: var(--dash-padding);
  max-width: 560px;
}
.help-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.help-faq {
  margin-bottom: 2rem;
}
.help-faq-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
}
.help-faq-list {
  margin: 0;
  padding-left: 1.25rem;
}
.help-faq-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--dash-text);
  line-height: 1.5;
}
.help-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: var(--dash-search-bg);
  border: 1px solid rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.help-btn:hover {
  background: var(--dash-primary);
  color: #fff;
  border-color: var(--dash-primary);
}
.help-btn--primary {
  background: var(--dash-primary);
  color: #fff;
  border-color: var(--dash-primary);
}
.help-btn--primary:hover {
  opacity: 0.9;
}

/* Inbox unread badge (navbar) – only show when there are unread messages */
.inbox-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.35rem;
}
.inbox-unread-badge[hidden] {
  display: none !important;
}
.sidebar-nav-item .inbox-unread-badge {
  margin-left: 0.25rem;
}
.bottom-nav-item .inbox-unread-badge {
  margin-left: 0.25rem;
}

/* Inbox page */
.inbox-page {
  padding: var(--dash-padding);
  max-width: 560px;
}
.inbox-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dash-text);
}
.inbox-hint {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--dash-text-muted);
}
.inbox-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inbox-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dash-card-bg);
  border-radius: var(--dash-card-radius);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.inbox-contact-card:hover {
  background: #f8f8f8;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
}
.inbox-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dash-search-bg);
  color: var(--dash-text);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.inbox-contact-avatar--img {
  padding: 0;
  background: transparent;
}
.inbox-contact-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inbox-contact-avatar--default {
  padding: 0;
  background: transparent;
}
.inbox-contact-avatar--default .inbox-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--circle-color, #e5e5e7);
  overflow: hidden;
  display: block;
}
.inbox-contact-avatar--default .inbox-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inbox-contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.inbox-contact-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text);
}
.inbox-contact-subscription {
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
}
.inbox-contact-chevron {
  font-size: 1.25rem;
  color: var(--dash-text-muted);
}
.inbox-contact-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.25rem;
}
.inbox-empty {
  margin: 0;
  padding: 2rem 0;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
}
.inbox-chat-view .subscription-back {
  margin-bottom: 1rem;
}
.inbox-chat-wrap {
  margin-top: 0;
}
.subscription-chat-msg--system {
  justify-content: center;
  margin: 0.5rem 0;
}
.subscription-chat-msg--system .subscription-chat-msg-content {
  max-width: 90%;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.subscription-chat-msg--system .subscription-chat-msg-text {
  font-size: 0.875rem;
  color: var(--dash-text);
  line-height: 1.45;
}
.inbox-chat-input-bar.inbox-chat-input-bar--locked {
  pointer-events: none;
  opacity: 0.6;
}
.inbox-chat-actions {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.inbox-chat-actions-hint {
  margin: 0 auto 0.75rem;
  max-width: 18rem;
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  line-height: 1.4;
  text-align: center;
}
.inbox-chat-actions-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.inbox-chat-action-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.inbox-chat-action-btn--primary {
  background: var(--dash-primary);
  color: #fff;
}
.inbox-chat-action-btn--primary:hover {
  background: #1d1d1f;
}
.inbox-chat-action-btn--secondary {
  background: #e5e5e5;
  color: var(--dash-text);
}
.inbox-chat-action-btn--secondary:hover {
  background: #d4d4d4;
}
.inbox-chat-action-btn--danger {
  background: #fecaca;
  color: #b91c1c;
}
.inbox-chat-action-btn--danger:hover {
  background: #fca5a5;
}

/* In-content loading placeholder – container with polish/shimmer (no overlay, no text) */
.app-loading-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.app-loading-placeholder[hidden],
#offer-loading-placeholder[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.app-loading-placeholder__container {
  border-radius: var(--dash-card-radius);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.app-loading-placeholder__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-loading-placeholder__row:last-child {
  border-bottom: none;
}
.app-loading-placeholder__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: app-loading-shimmer 1.4s ease-in-out infinite;
}
.app-loading-placeholder__bar {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: app-loading-shimmer 1.4s ease-in-out infinite;
}
.app-loading-placeholder__bar--short {
  width: 40%;
}
.app-loading-placeholder__bar--medium {
  width: 70%;
}
.app-loading-placeholder__bar--long {
  width: 100%;
}
.app-loading-placeholder__bars {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.app-loading-placeholder__bar:nth-of-type(1) { animation-delay: 0s; }
.app-loading-placeholder__bar:nth-of-type(2) { animation-delay: 0.15s; }
.app-loading-placeholder__bar:nth-of-type(3) { animation-delay: 0.3s; }
.app-loading-placeholder__circle:nth-of-type(1) { animation-delay: 0s; }
.app-loading-placeholder__circle:nth-of-type(2) { animation-delay: 0.2s; }
.app-loading-placeholder__circle:nth-of-type(3) { animation-delay: 0.4s; }
@keyframes app-loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton cards – grey card with polishing shimmer (avatar + 2 lines + chevron) */
.skeleton-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dash-card-bg);
  border-radius: var(--dash-card-radius);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  min-height: 72px;
}
.skeleton-card--offer {
  padding: 1.5rem 1.5rem;
  gap: 1.25rem;
  min-height: 88px;
}
.skeleton-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, #d1d5db 0%, #e5e7eb 35%, #f3f4f6 50%, #e5e7eb 65%, #d1d5db 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-card--offer .skeleton-card__avatar {
  width: 56px;
  height: 56px;
}
.skeleton-card__lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skeleton-card__line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #d1d5db 0%, #e5e7eb 35%, #f3f4f6 50%, #e5e7eb 65%, #d1d5db 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-card__line--name {
  width: 45%;
  max-width: 140px;
}
.skeleton-card__line--sub {
  width: 70%;
  max-width: 180px;
}
.skeleton-card__line:nth-of-type(1) { animation-delay: 0s; }
.skeleton-card__line:nth-of-type(2) { animation-delay: 0.08s; }
.skeleton-card__chevron {
  width: 12px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #d1d5db 0%, #e5e7eb 35%, #f3f4f6 50%, #e5e7eb 65%, #d1d5db 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  animation-delay: 0.15s;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-offers-list .skeleton-cards { gap: 1rem; }

/* ========== Sharing guides (listing) ========== */
.guides-page {
  padding: var(--dash-padding);
  max-width: 900px;
  margin: 0 auto;
}
.guides-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--dash-text);
}
.guides-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.guides-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dash-text-muted);
  pointer-events: none;
}
.guides-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  background: var(--dash-search-bg);
  color: var(--dash-text);
}
.guides-search::placeholder {
  color: var(--dash-text-muted);
}
.guides-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.guides-cat-pill {
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  border: none;
  border-radius: 999px;
  background: var(--dash-search-bg);
  color: var(--dash-text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.guides-cat-pill:hover {
  background: #e5e5e7;
  color: var(--dash-text);
}
.guides-cat-pill--active {
  background: var(--dash-pill-active-bg);
  color: #fff;
}
.guides-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 600px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--dash-card-bg);
  border-radius: var(--dash-card-radius);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  min-height: 160px;
}
.guide-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--dash-text);
  color: #fff;
  margin-bottom: 0.75rem;
}
.guide-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 auto;
  padding: 0;
  line-height: 1.35;
  color: var(--dash-text);
  flex: 1;
}
.guide-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--dash-text);
  color: #fff;
  transition: opacity 0.15s;
}
.guide-card-cta:hover {
  opacity: 0.9;
}
.guides-empty {
  margin: 1rem 0 0;
  color: var(--dash-text-muted);
  font-size: 0.95rem;
}

/* ========== Single guide (article) ========== */
.guide-article {
  padding: var(--dash-padding);
  max-width: 720px;
  margin: 0 auto;
}
.guide-article .subscription-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--dash-text-muted);
}
.guide-article .subscription-back:hover {
  color: var(--dash-text);
}
.guide-article-header {
  margin-bottom: 1.5rem;
}
.guide-article-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--dash-text);
  color: #fff;
  margin-bottom: 0.75rem;
}
.guide-article-tag[hidden] {
  display: none;
}
.guide-article-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: var(--dash-text);
}
.guide-article-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dash-text);
  min-height: 4rem;
}

/* Wallet top-up modal */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.wallet-modal[hidden] { display: none !important; }
.wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.wallet-modal-box {
  position: relative;
  background: var(--dash-bg);
  border-radius: var(--dash-card-radius);
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.wallet-modal-title { margin: 0 0 0.25rem; font-size: 1.25rem; }
.wallet-modal-desc { margin: 0 0 1rem; color: var(--dash-text-muted); font-size: 0.9rem; }
.wallet-modal-hint { margin: 0 0 0.5rem; color: var(--dash-text-muted); font-size: 0.8rem; }
.wallet-topup-amounts { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wallet-topup-amount-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--dash-text-muted);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}
.wallet-topup-amount-btn--active { background: var(--dash-primary); color: #fff; border-color: var(--dash-primary); }
.wallet-stripe-card-wrap {
  min-height: 44px;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}
.wallet-modal-error { color: #c00; font-size: 0.9rem; margin: 0 0 0.5rem; }
.wallet-modal-error.wallet-modal-success { color: #059669; }
.wallet-info-message { font-size: 0.9rem; color: var(--dash-text); margin: 0.75rem 0 0; padding: 0.75rem 1rem; background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; }
.wallet-info-message .wallet-info-message-dismiss { margin-left: 0.5rem; padding: 0.25rem 0.5rem; background: transparent; border: 1px solid #0ea5e9; border-radius: 6px; color: #0ea5e9; cursor: pointer; font-size: 0.85rem; }
.wallet-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }
.wallet-modal-cancel { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer; }
.wallet-modal-pay { padding: 0.5rem 1.25rem; border: none; border-radius: 8px; background: var(--dash-primary); color: #fff; cursor: pointer; font-weight: 500; }
.wallet-modal-pay:disabled { opacity: 0.6; cursor: not-allowed; }
.wallet-topup-step { display: block; }
.wallet-topup-step--hidden { display: none !important; }
.wallet-modal-next { padding: 0.5rem 1.25rem; border: none; border-radius: 8px; background: var(--dash-primary); color: #fff; cursor: pointer; font-weight: 500; }
.wallet-modal-next:hover { opacity: 0.9; }
.wallet-modal-next:disabled { opacity: 0.6; cursor: not-allowed; }
.wallet-modal-back { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 8px; background: #fff; cursor: pointer; }
.wallet-modal-actions--step1 { margin-top: 1rem; }
.wallet-card-fields { margin-bottom: 1rem; }
.wallet-card-field { margin-bottom: 0.75rem; }
.wallet-card-field-row { display: flex; gap: 0.75rem; }
.wallet-card-field-row .wallet-card-field { flex: 1; margin-bottom: 0; }
.wallet-card-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--dash-text); margin-bottom: 0.35rem; }
.wallet-stripe-input { min-height: 44px; padding: 0.5rem 0.75rem 0.5rem 12px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.wallet-stripe-input iframe { padding-left: 0; }
.wallet-history-list { list-style: none; margin: 0; padding: 0; }
.wallet-history-list--has-items + .wallet-history-empty { display: none; }
.wallet-history-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.wallet-history-item:last-child { border-bottom: none; }
.wallet-history-item-date { color: #666; flex: 0 0 5rem; }
.wallet-history-item-label { flex: 1; }
.wallet-history-item-amount { font-weight: 600; color: var(--dash-text); }
.wallet-history-item-amount:first-letter { font-weight: 600; }
.wallet-modal-actions--step2 { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.wallet-modal-actions--step2 .wallet-modal-back,
.wallet-modal-actions--step2 .wallet-modal-pay { flex: 1; width: 50%; min-height: 48px; padding: 0.75rem 1rem; font-size: 1rem; font-weight: 600; }

.join-offer-stripe-wrap { min-height: 44px; }
.join-offer-stripe-error { color: #b91c1c; font-size: 0.875rem; margin: 0.25rem 0 0; }
