/* ============================================
   TAKAENDA — Mobile-First PWA Styles
   Theme: Navy & orange dark mode (logo-matched)
   ============================================ */

:root {
  --primary: #FF5500;
  --primary-dark: #E64D00;
  --primary-light: #FF7A33;
  --accent: #FF8C42;
  --danger: #E74C3C;
  --success: #2ECC71;
  --warning: #F39C12;
  --bg-primary: #061734;
  --bg-secondary: #0a2247;
  --bg-card: #0d2a57;
  --bg-elevated: #113267;
  --text-primary: #FFFFFF;
  --text-secondary: #A9B6CE;
  --text-muted: #6B7A99;
  --border: #1d3a6b;
  --shadow: rgba(0, 0, 0, 0.4);
  --nav-height: 64px;
  --header-height: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
/* iOS dynamic viewport — keeps layout stable as Safari toolbar shows/hides */
@supports (height: 100dvh) {
  html, body { height: 100dvh; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  #app { height: 100dvh; }
}

/* ── Typography ── */
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.375rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { line-height: 1.5; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) 16px 0;
  height: calc(var(--header-height) + var(--safe-top));
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.header-back {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  /* Force GPU compositing layer — fixes iOS fixed-position rendering bugs */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Ensure it's never covered by browser chrome */
  -webkit-backface-visibility: hidden;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  transition: color 0.2s;
  min-width: 56px;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active { color: var(--primary); }
.nav-item .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}
.nav-item .nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: white;
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 8px;
  min-width: 14px;
  text-align: center;
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

.page-content { padding: 16px; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  color: inherit;
}

.card:active { transform: scale(0.97); }
.card-image { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg-elevated); display: block; }
.card-body { padding: 12px; }
.card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.card-subtitle { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.card-price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card-rating { display: flex; align-items: center; gap: 3px; font-size: 0.75rem; color: var(--accent); }
.card-badge {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--primary); color: white;
  padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 600;
}

/* Card image overlay system */
.card-image-wrap {
  position: relative;
  overflow: hidden;
}
.card-image-wrap .card-image {
  transition: transform 0.3s ease;
}
.card:active .card-image-wrap .card-image {
  transform: scale(1.02);
}
.card-cat-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  line-height: 1;
}
.card-featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #000;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.card-overlay-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.card-overlay-rating {
  font-size: 0.72rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:active { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
.btn-accent { background: var(--accent); color: #000; }
.btn-icon-only { min-width: 44px; padding-left: 12px; padding-right: 12px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover, .btn-ghost:active { color: var(--text-primary); background: var(--bg-elevated); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover, .btn-outline:active { border-color: rgba(255,255,255,0.7); color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ── Guest divider ── */
.guest-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--text-muted); font-size: 0.8rem; }
.guest-divider::before, .guest-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Guest Prompt Modal ── */
.guest-prompt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9999; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.15s ease; }
.guest-prompt-card { background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 28px 20px 40px; width: 100%; max-width: 480px; text-align: center; }
.guest-prompt-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.guest-prompt-icon .icon-svg { width: 40px; height: 40px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.guest-prompt-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.guest-prompt-body { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }

/* ── "Add" chooser (Listing vs Travel Package) ── */
.add-choice-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9999; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.15s ease; }
.add-choice-card { background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 20px 16px calc(24px + var(--safe-bottom)); width: 100%; max-width: 480px; }
.add-choice-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; text-align: center; }
.add-choice-subtitle { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-bottom: 18px; }
.add-choice-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.add-choice-option:active { transform: scale(0.98); }
.add-choice-option + .add-choice-option { margin-top: 10px; }
.add-choice-option:hover { border-color: var(--primary); }
.add-choice-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,85,0,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.add-choice-icon .icon-svg { width: 20px; height: 20px; stroke: var(--primary); }
.add-choice-body { flex: 1; min-width: 0; }
.add-choice-option-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.add-choice-option-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.add-choice-cancel { width: 100%; margin-top: 16px; padding: 12px; background: transparent; border: none; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; }

/* ── Form Elements ── */
.input-group { margin-bottom: 16px; }
.input-label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.input-label-hint { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus { border-color: var(--primary); }
.input::placeholder { color: var(--text-muted); }

textarea.input { resize: vertical; min-height: 80px; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0A0A0'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ── Sections ── */
.section { margin-bottom: 24px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title { font-size: 1.125rem; font-weight: 600; }
.section-link { font-size: 0.85rem; color: var(--primary); text-decoration: none; }

.inline-icon-label,
.meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-inline {
  gap: 6px;
}

.meta-inline .icon-svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.brand-title .icon-svg {
  width: 22px;
  height: 22px;
}

.quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  color: var(--primary-light);
}

.quick-action-icon .icon-svg {
  width: 24px;
  height: 24px;
}

/* ── Horizontal Scroll ── */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
  margin: 0 -16px;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── Grid ── */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }

/* ── Swipe Card ── */
.swipe-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 3/4;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  touch-action: none;
  cursor: grab;
  transition: transform 0.1s ease-out;
}

.swipe-card:active { cursor: grabbing; }

.swipe-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swipe-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.swipe-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.swipe-btn:active { transform: scale(0.9); }
.swipe-btn.skip { border-color: var(--danger); color: var(--danger); }
.swipe-btn.like { border-color: var(--primary); color: var(--primary); }
.swipe-btn.info { border-color: var(--accent); color: var(--accent); width: 44px; height: 44px; font-size: 1.1rem; }

/* ── Chat ── */
.chat-list { list-style: none; }

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:active { background: var(--bg-elevated); }

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chat-info { flex: 1; min-width: 0; }
.chat-name { font-size: 0.95rem; font-weight: 600; }
.chat-preview { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

.chat-unread {
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* ── Messages ── */
.messages-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.sent {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.received {
  align-self: flex-start;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.message.system {
  align-self: center;
  background: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
}

.message-time { font-size: 0.65rem; opacity: 0.7; margin-top: 4px; text-align: right; }

.message-offer {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 4px 0;
}

.message-offer-amount { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

.message-input-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  padding-bottom: calc(8px + var(--safe-bottom));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.message-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.message-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Provider Profile ── */
.profile-header {
  text-align: center;
  padding: 24px 16px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 12px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.profile-name { font-size: 1.375rem; font-weight: 700; }

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 6px;
}

.profile-location { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.profile-bio { font-size: 0.9rem; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
}

.stat { text-align: center; }
.stat-value { font-size: 1.25rem; font-weight: 700; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.rating-breakdown {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.rating-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}

.profile-actions {
  display: flex;
  gap: 8px;
  padding: 16px;
}

.profile-actions .btn { flex: 1; }

/* ── Provider Hero Profile (public) ── */
.provider-hero { position: relative; }

.provider-hero-cover {
  height: 200px;
  background-color: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.provider-hero-cover.no-cover {
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

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

.provider-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,23,52,0) 35%, rgba(6,23,52,0.92) 100%);
}

.provider-hero-featured-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6,23,52,0.6);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(251,191,36,0.4);
}

.provider-hero-featured-ribbon .icon-svg { width: 13px; height: 13px; stroke: #fbbf24; }

.provider-hero-body {
  text-align: center;
  padding: 0 16px 20px;
  margin-top: -44px;
  position: relative;
}

.provider-hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 4px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.provider-hero-name { font-size: 1.375rem; font-weight: 700; }

.provider-hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.provider-hero-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.provider-hero-type-chip .icon-svg { width: 13px; height: 13px; }

/* ── Onboarding ── */
.onboarding-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 24px 56px;
  text-align: center;
}

.onboarding-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.onboarding-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(255, 85, 0, 0.18), rgba(255, 140, 66, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.brand-icon {
  width: 36px;
  height: 36px;
  color: var(--primary-light);
}

.brand-mark--logo {
  display: block;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  min-height: 88px;
  border-radius: 24px;
  background: none;
  border: none;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.auth-panel {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.94), rgba(20, 20, 20, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.auth-panel-wide { max-width: 760px; }

@media (max-width: 640px) {
  .auth-panel-wide {
    padding: 20px 16px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
  .registration-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.auth-note { line-height: 1.6; }

.auth-code-input {
  text-align: center;
  font-size: 1.45rem;
  letter-spacing: 0.4em;
}

.role-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 340px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.role-card:active, .role-card.selected {
  border-color: var(--primary);
  background: rgba(255, 85, 0, 0.1);
}

.role-card-icon { font-size: 2rem; }
.role-card-title { font-size: 1.05rem; font-weight: 600; }
.role-card-desc { font-size: 0.8rem; color: var(--text-secondary); }

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.registration-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.registration-card:hover,
.registration-card.selected {
  border-color: rgba(255, 85, 0, 0.8);
  background: rgba(255, 85, 0, 0.08);
}

.registration-card:active { transform: scale(0.99); }

.registration-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary-light);
}

.registration-card-icon .icon-svg {
  width: 18px;
  height: 18px;
}

.registration-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.registration-card-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.registration-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ── Toast / Notifications ── */
.toast {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 16px;
  right: 16px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease-out, fadeOut 0.3s 2.7s ease-in;
}

.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }
.toast.info { background: var(--primary); color: white; }

@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-card { aspect-ratio: 16/10; border-radius: var(--radius-md); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--primary-light);
}

.empty-state-icon .icon-svg {
  width: 32px;
  height: 32px;
}

.empty-state-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.empty-state-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

/* ── Tags / Chips ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Filters ── */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

/* ── Admin Dashboard ── */
.admin-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.admin-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.admin-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* ── Admin edit panel ── */
.admin-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 12px;
}
.admin-edit-body {
  padding: 16px;
}

/* ── Admin filter bar ── */
.admin-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

/* ── Admin alert banners ── */
.admin-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}
.admin-alert span { flex: 1; }
.admin-alert-warn {
  background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent);
  border-color: color-mix(in srgb, var(--warning, #f59e0b) 30%, transparent);
}

/* ── Chip colour variants ── */
.chip-success { background: color-mix(in srgb, #22c55e 18%, transparent); color: #4ade80; }
.chip-warn    { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #fbbf24; }
.chip-danger  { background: color-mix(in srgb, #ef4444 18%, transparent); color: #f87171; }
.chip-gold    { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #fbbf24; }
.chip-sm      { font-size: 0.7rem; padding: 2px 7px; }

/* ── Dev OTP notice (shown when email is not configured) ── */
.dev-otp-notice {
  background: color-mix(in srgb, var(--warning, #f59e0b) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 35%, transparent);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── Scrollable tabs ── */
.tabs-scroll {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.tabs-scroll::-webkit-scrollbar { display: none; }

/* ── Admin photo grid ── */
.admin-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; min-height: 40px; }
.admin-photo-thumb { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg-elevated); flex-shrink: 0; }
.admin-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-photo-remove { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,0.75); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }

/* ── Scrollbar (WebKit) ── */
::-webkit-scrollbar { width: 0; background: transparent; }

/* ── Dark mode input autofill ── */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 50px var(--bg-elevated) inset;
  -webkit-text-fill-color: var(--text-primary);
}

/* ── Utility ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-secondary); }
.text-primary-color { color: var(--primary); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Home Hero ── */
.home-hero {
  padding: calc(var(--safe-top) + 16px) 16px 12px;
  background: linear-gradient(180deg, rgba(255, 85, 0, 0.12) 0%, var(--bg-primary) 100%);
}
.home-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.home-greeting {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.home-username {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.brand-inline { width: 18px; height: 18px; vertical-align: middle; }
.home-discover-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--primary);
  background: rgba(255, 85, 0, 0.1);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.home-discover-btn .icon-svg { width: 16px; height: 16px; }
.home-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}
.home-search-bar .icon-svg { width: 18px; height: 18px; color: var(--text-muted); }

/* ── Home Category Chips ── */
.home-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.home-categories::-webkit-scrollbar { display: none; }
.home-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.home-cat-chip .cat-chip-icon { width: 14px; height: 14px; }
.home-cat-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.home-loading { padding: 8px 0; }
.home-loading .h-scroll { padding-bottom: 8px; }

/* ── Section Icon Wrap ── */
.section-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 85, 0, 0.12);
  color: var(--primary-light);
  margin-right: 6px;
  vertical-align: middle;
}
.section-icon-wrap .icon-svg { width: 14px; height: 14px; }
.section-icon-wrap.accent {
  background: rgba(255, 140, 66, 0.15);
  color: var(--accent);
}

/* ── Featured Cards ── */
.home-featured-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 16px;
  margin: 0 -16px;
}
.home-featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
  position: relative;
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
}
.featured-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.featured-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 140, 66, 0.9);
  color: #000;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
  margin-bottom: 8px;
}
.featured-card-badge .icon-svg { width: 12px; height: 12px; }
.featured-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.featured-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.featured-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
}
.featured-card-rating {
  font-size: 0.75rem;
  color: var(--accent);
}

/* ── Horizontal Card (h-scroll) ── */
.hcard {
  flex-shrink: 0;
  width: 260px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  scroll-snap-align: start;
}
.hcard:active { transform: scale(0.97); }
.hcard-img-wrap {
  position: relative;
  overflow: hidden;
}
.hcard-img-wrap.no-img {
  background: var(--bg-elevated);
  aspect-ratio: 16/10;
}
.hcard-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
  transition: transform 0.3s;
}
.hcard:active .hcard-img { transform: scale(1.03); }
.hcard-body { padding: 10px 12px; }
.hcard-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hcard-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.hcard-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.hcard-rating {
  font-size: 0.7rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 2px;
}
.hcard-loc {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}
.hcard-loc .icon-svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ── Vertical Card (grid) ── */
.vcard {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.vcard:active { transform: scale(0.97); }
.vcard-img-wrap {
  position: relative;
  overflow: hidden;
}
.vcard-img-wrap.no-img {
  background: var(--bg-elevated);
  aspect-ratio: 1;
}
.vcard-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
  transition: transform 0.3s;
}
.vcard:active .vcard-img { transform: scale(1.03); }
.vcard-body { padding: 10px 12px; }
.vcard-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}
.vcard-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}
.vcard-rating {
  font-size: 0.68rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 2px;
}
.vcard-loc {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vcard-loc .icon-svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ── Card Image Placeholder ── */
.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100px;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
}
.card-placeholder.hidden { display: none; }
.card-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.4;
}
.hcard-img-wrap.no-img .card-placeholder,
.vcard-img-wrap.no-img .card-placeholder {
  aspect-ratio: unset;
}
.hcard-img-wrap.no-img { aspect-ratio: 16/10; }
.vcard-img-wrap.no-img { aspect-ratio: 1; }
.featured-card-overlay.has-placeholder {
  background: linear-gradient(135deg, rgba(255, 85, 0,0.15) 0%, rgba(0,0,0,0.85) 100%);
}
.featured-card-overlay .card-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  min-height: auto;
  background: none;
  opacity: 0.2;
  pointer-events: none;
}
.featured-card-overlay .card-placeholder-icon {
  width: 64px;
  height: 64px;
}

/* ── Featured Star Glow Animation ── */
.featured-star-glow {
  color: var(--accent);
  animation: starPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px var(--accent));
}
@keyframes starPulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--accent)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 20px rgba(255, 140, 66,0.3)); transform: scale(1.15); }
}
.featured-active {
  box-shadow: 0 0 12px rgba(255, 140, 66, 0.3);
}
.card-featured-badge .featured-star-glow {
  width: 11px;
  height: 11px;
  animation: starPulse 1.5s ease-in-out infinite;
}

/* ── Media Queries ── */
@media (min-width: 768px) {
  .main-content { max-width: 640px; margin: 0 auto; }
  .grid-2 { grid-template-columns: 1fr 1fr 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .registration-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .bottom-nav {
    top: 0;
    bottom: auto;
    height: var(--header-height);
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    max-width: 640px;
    margin: 0 auto;
    position: sticky;
  }
  .main-content {
    padding-bottom: 16px;
  }
}

/* ══════════════════════════════════════════════
   REVIEWS & RATINGS
   ══════════════════════════════════════════════ */

/* Review form — category rows */
.review-category {
  padding: 12px 0;
}
.review-category-label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.review-category-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.review-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Star picker (review form) */
.star-picker {
  display: flex;
  gap: 6px;
}
.star-pick {
  font-size: 2rem;
  cursor: pointer;
  color: var(--bg-elevated);
  transition: color 0.15s, transform 0.1s;
  user-select: none;
  line-height: 1;
}
.star-pick.active { color: var(--accent); }
.star-pick.hover  { color: rgba(255, 140, 66, 0.55); }
.star-pick:active { transform: scale(0.9); }

/* Provider profile — rating breakdown */
.review-breakdown {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 12px;
}
.review-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}
.review-score-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Rating bar rows */
.review-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.review-bar-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.review-bar-track {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}
.review-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.4s ease;
}
.review-bar-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

/* Individual review cards */
.review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.review-card:last-child { border-bottom: none; }

.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
}
.review-reviewer {
  font-size: 0.9rem;
  font-weight: 600;
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-stars { margin-left: auto; }

.review-sub-ratings {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.review-comment {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Utility */
.ml-auto { margin-left: auto; }

/* Offer panel — service context */
.offer-ctx-card {
  background: rgba(255, 85, 0, 0.08);
  border: 1px solid rgba(255, 85, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.offer-ctx-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.offer-ctx-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.offer-ctx-price { font-size: 0.8rem; color: var(--primary-light); }

/* ══════════════════════════════════════════════
   PWA INSTALL PROMPTS
   ══════════════════════════════════════════════ */

/* Profile page install card */
.pwa-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.1), rgba(255, 140, 66, 0.06));
  border: 1px solid rgba(255, 85, 0, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}
.pwa-profile-card:active { background: rgba(255, 85, 0, 0.18); }
.pwa-profile-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.pwa-profile-card-body { flex: 1; }
.pwa-profile-card-title { font-size: 0.9rem; font-weight: 700; }
.pwa-profile-card-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Android install banner — slides up above bottom nav */
.pwa-install-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px);
  left: 12px;
  right: 12px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 85, 0, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.pwa-banner-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.pwa-banner-text { flex: 1; overflow: hidden; }
.pwa-banner-title { font-size: 0.9rem; font-weight: 700; }
.pwa-banner-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.pwa-banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px 6px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

/* iOS install sheet — bottom sheet with overlay */
.pwa-ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pwa-ios-sheet {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 0 24px calc(24px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pwa-ios-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 24px;
}

.pwa-ios-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.35);
}

.pwa-ios-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.pwa-ios-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.55;
}

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pwa-ios-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-ios-step > div:last-child {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 3px;
}

.pwa-share-icon {
  display: inline-flex;
  vertical-align: middle;
  color: var(--primary-light);
  margin: 0 2px;
}

.pwa-ios-arrow-wrap {
  text-align: center;
  margin-top: 14px;
  color: var(--primary);
  font-size: 1.1rem;
  animation: pwaArrowBounce 1.6s ease-in-out infinite;
}

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pwaArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ══════════════════════════════════════════════
   ROLE-SPECIFIC UI: ADMIN
══════════════════════════════════════════════ */

/* Admin header — dark branded bar */
.admin-header {
  background: linear-gradient(135deg, #0f1923 0%, #1a2a1e 100%);
  border-bottom: 1px solid rgba(255, 85, 0, 0.25);
}

.admin-header .header-title {
  color: #fff;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  line-height: 1;
  text-transform: uppercase;
}

/* Admin bottom nav — teal accent on dark */
.nav-admin {
  background: #0f1923;
  border-top: 1px solid rgba(255, 85, 0, 0.2);
}

.nav-admin .nav-item {
  color: rgba(255, 255, 255, 0.5);
}

.nav-admin .nav-item.active {
  color: var(--primary);
}

.nav-admin .nav-item.active .nav-icon svg {
  filter: drop-shadow(0 0 6px rgba(255, 85, 0, 0.5));
}

/* ══════════════════════════════════════════════
   ROLE-SPECIFIC UI: PROVIDER
══════════════════════════════════════════════ */

/* Provider dashboard header */
.provider-header {
  background: linear-gradient(135deg, #0d1f18 0%, #0f2a1e 100%);
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
}

.provider-header .header-title {
  color: #fff;
}

.provider-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(255, 85, 0, 0.25);
  border: 1px solid rgba(255, 85, 0, 0.4);
  color: #4ddd9a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  line-height: 1;
  text-transform: uppercase;
}

/* Provider bottom nav — top indicator bar */
.nav-provider .nav-item.active {
  color: var(--primary);
}

.nav-provider .nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

.nav-provider .nav-item {
  position: relative;
}

/* ══════════════════════════════════════════════
   ADMIN: COMPACT ACTION BUTTONS
══════════════════════════════════════════════ */

.admin-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.admin-actions .btn-sm {
  width: 32px;
  height: 32px;
  padding: 0;
  min-width: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.admin-actions .btn-sm svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   AI TRAVEL PLANNER
   ══════════════════════════════════════════════ */

/* Chat bubbles */
.planner-chat-area { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-bubble { display: flex; gap: 12px; align-items: flex-start; }
.ai-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.ai-avatar .icon-svg { width: 18px; height: 18px; }
.ai-hint-icon { background: linear-gradient(135deg, var(--accent), #e09000); }
.ai-msg { background: var(--bg-card); border-radius: var(--radius-md); padding: 12px 14px; flex: 1; }
.ai-name { font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.ai-msg p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* Example chips */
.example-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.example-chip { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.82rem; color: var(--text-primary); cursor: pointer; text-align: left; transition: background 0.15s; }
.example-chip:active, .example-chip:hover { background: rgba(255, 85, 0,0.12); border-color: var(--primary); }

/* Planner input section */
.planner-input-section { border: 1px solid var(--border); }

/* Filter chips */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 0.78rem; color: var(--text-muted); min-width: 52px; font-weight: 500; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.flex-wrap { flex-wrap: wrap; }
.filter-chip { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary); font-size: 0.8rem; cursor: pointer; transition: all 0.15s; }
.filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-chip:active { transform: scale(0.95); }

/* Guest counter */
.counter-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.counter-btn:active { background: var(--primary); border-color: var(--primary); }

/* Loading spinner */
.ai-spinner { width: 48px; height: 48px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Plan detail — meta grid */
.plan-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.plan-meta-item .icon-svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

/* Section headers */
.section-head { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; padding: 16px 16px 8px; }

/* Budget breakdown bars */
.budget-bar-grid { display: flex; flex-direction: column; gap: 10px; }
.budget-bar-item { display: flex; align-items: center; gap: 10px; }
.budget-bar-label { font-size: 0.78rem; color: var(--text-muted); min-width: 100px; }
.budget-bar-track { flex: 1; height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.budget-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.budget-bar-amount { font-size: 0.82rem; font-weight: 600; min-width: 36px; text-align: right; }
.budget-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--border); }

/* Itinerary timeline */
.day-block { margin-bottom: 20px; }
.day-header-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.day-num-badge { background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.day-theme-text { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

/* Activity cards */
.activity-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; position: relative; }
.activity-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.activity-slot { font-size: 0.72rem; color: var(--text-muted); }
.activity-cost { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.activity-title { font-size: 0.95rem; font-weight: 600; }
.activity-provider { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--primary); margin-top: 3px; }
.activity-provider .icon-svg { width: 12px; height: 12px; }
.activity-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.activity-location { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.activity-location .icon-svg { width: 11px; height: 11px; }
.edit-act-btn { display: flex; align-items: center; gap: 4px; }
.edit-act-btn .icon-svg { width: 11px; height: 11px; }

/* Trip readiness */
.trip-readiness-row { display: flex; justify-content: space-between; align-items: center; }
.readiness-track { height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.readiness-fill { height: 100%; background: linear-gradient(to right, var(--primary), var(--primary-light)); border-radius: 3px; transition: width 0.5s ease; }

/* Provider status rows */
.provider-status-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.provider-status-row:last-child { border-bottom: none; }

/* Tips */
.tip-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-secondary); }
.tip-row:last-child { border-bottom: none; }
.tip-row .icon-svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* Plan actions bar */
.plan-actions { position: sticky; bottom: calc(var(--nav-height) + var(--safe-bottom)); background: var(--bg-primary); border-top: 1px solid var(--border); padding: 12px 16px; }

/* Chip variants */
.chip-primary { background: var(--primary); color: white; border-color: var(--primary); }
.chip-success { background: var(--success); color: white; border-color: var(--success); }

/* Header action button (e.g. PDF download in header) */
.header-action-btn { background: none; border: none; color: var(--primary); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: background 0.15s; }
.header-action-btn:active { background: rgba(255, 85, 0,0.12); }
.header-action-btn .icon-svg { width: 20px; height: 20px; }

/* Example prompt cards — horizontal scroll */
.example-prompts-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; padding: 10px 16px 0; }
.example-prompts-scroll { display: flex; gap: 0; overflow-x: auto; padding: 10px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.example-prompts-scroll::-webkit-scrollbar { display: none; }
.example-prompt-card {
  flex-shrink: 0;
  width: 128px;
  min-height: 110px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 0;
  padding: 14px 12px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  transition: background 0.13s, border-color 0.13s;
  scroll-snap-align: start;
}
.example-prompt-card:last-child { border-right: 1px solid rgba(255,255,255,0.1); }
.epc-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0 4px; }
.epc-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); border: none; padding: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.epc-dot.active { background: var(--primary); transform: scale(1.3); }
.example-prompt-card:hover { background: rgba(255, 85, 0,0.06); }
.example-prompt-card:active { background: rgba(255, 85, 0,0.1); }
.example-prompt-card.active,
.example-prompt-card:focus-visible { outline: none; border-color: var(--primary); background: rgba(255, 85, 0,0.08); }
.epc-emoji { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 10px; }
.epc-destination { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); line-height: 1.25; margin-bottom: 5px; }
.epc-theme { font-size: 0.6rem; font-weight: 600; color: var(--primary); letter-spacing: 0.2px; line-height: 1.4; text-transform: uppercase; }

/* Budget warning banner */
.budget-warning-card { background: color-mix(in srgb, var(--danger, #ef4444) 10%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 35%, transparent); border-radius: var(--radius-md); padding: 14px; }
.budget-warning-top { display: flex; align-items: flex-start; gap: 10px; }
.budget-warning-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.budget-warning-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.budget-warning-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.budget-recommendation-note { font-size: 0.8rem; color: var(--text-secondary); background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 8px 10px; margin-top: 10px; line-height: 1.4; }
.budget-warning-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-warning-outline { background: transparent; border: 1px solid var(--danger, #ef4444); color: var(--danger, #ef4444); font-weight: 600; }
.btn-warning-outline:active { background: color-mix(in srgb, var(--danger, #ef4444) 15%, transparent); }

/* Export PDF button */
.btn-export-pdf { display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-export-pdf .icon-svg { width: 16px; height: 16px; }

/* Small button variant */
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* Service toggle cards (Accommodation / Transport / Guide) */
.service-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
}
.service-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 18px 8px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.13s;
  text-align: center;
}
.service-toggle:last-child { border-right: none; }
.service-toggle:active { background: rgba(255, 85, 0,0.08); }
.service-toggle.active { background: rgba(255, 85, 0,0.1); }
/* Active bottom accent line */
.service-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.13s;
}
.service-toggle.active::after { opacity: 1; }
.stc-icon { font-size: 1.45rem; line-height: 1; }
.stc-name { font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); line-height: 1; letter-spacing: 0.2px; text-transform: uppercase; }
.stc-desc { display: none; }
.service-toggle.active .stc-name { color: var(--primary); }

/* Guide highlight card (shown in plan detail when guide is assigned) */
.guide-highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, #a78bfa 10%, var(--bg-card));
  border: 1px solid color-mix(in srgb, #a78bfa 30%, transparent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 4px;
}
.ghc-left { display: flex; align-items: center; gap: 10px; }
.ghc-emoji { font-size: 1.6rem; line-height: 1; }
.ghc-title { font-size: 0.72rem; font-weight: 700; color: #a78bfa; text-transform: uppercase; letter-spacing: 0.5px; }
.ghc-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-top: 2px; }

/* ── Subscription / Plans Page ── */
.sub-page { padding-bottom: 80px; }
.sub-role-switch { display: flex; margin: 0 16px 20px; border: 1px solid rgba(255,255,255,0.1); }
.sub-role-btn { flex: 1; padding: 10px; background: transparent; border: none; border-radius: 0; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: color 0.2s, background 0.2s; }
.sub-role-btn.active { color: var(--primary); background: rgba(255, 85, 0,0.1); border-bottom: 2px solid var(--primary); }
.sub-plans-wrap { padding: 0 16px; }
.sub-current-badge { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 85, 0,0.08); border: 1px solid rgba(255, 85, 0,0.2); margin-bottom: 16px; font-size: 0.82rem; color: var(--text-secondary); }
.sub-check-icon { color: var(--primary); width: 16px; height: 16px; }
.sub-plans-grid { display: flex; flex-direction: column; gap: 0; }
.sub-plan-card { border: 1px solid rgba(255,255,255,0.1); border-bottom: none; padding: 20px; background: transparent; position: relative; transition: background 0.2s; }
.sub-plan-card:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.sub-plan-card.sub-plan-featured { background: rgba(255, 85, 0,0.05); border-color: rgba(255, 85, 0,0.3); }
.sub-plan-card.sub-plan-current { background: rgba(255, 85, 0,0.08); }
.sub-featured-badge { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; }
.sub-plan-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sub-plan-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.sub-plan-price { text-align: right; }
.sub-price-free { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.sub-price-amount { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.sub-price-cycle { font-size: 0.75rem; color: var(--text-muted); }
.sub-features-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.sub-features-list li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); }
.sub-feat-icon { color: var(--primary); width: 14px; height: 14px; flex-shrink: 0; }
.sub-plan-btn { width: 100%; padding: 11px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font-size: 0.85rem; font-weight: 600; border-radius: 0; cursor: pointer; transition: background 0.2s, color 0.2s; }
.sub-plan-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.sub-plan-btn.sub-plan-btn-current { border-color: rgba(255,255,255,0.15); color: var(--text-muted); cursor: default; }
.sub-plan-btn:disabled { opacity: 0.6; cursor: default; }

/* Upgrade banner in profile */
.sub-upgrade-banner { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255, 85, 0,0.07); border: 1px solid rgba(255, 85, 0,0.2); border-radius: 0; cursor: pointer; text-align: left; transition: background 0.2s; }
.sub-upgrade-banner:hover { background: rgba(255, 85, 0,0.12); }
.sub-upgrade-icon { color: var(--primary); flex-shrink: 0; }
.sub-upgrade-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sub-upgrade-text strong { font-size: 0.88rem; color: var(--text-primary); }
.sub-upgrade-text span { font-size: 0.75rem; color: var(--text-muted); }
.sub-upgrade-arrow { color: var(--text-muted); flex-shrink: 0; }

/* Payment modal */
.sub-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: flex-end; }
.sub-modal { background: var(--bg-card); width: 100%; max-height: 85vh; overflow-y: auto; border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 16px 32px; }
.sub-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sub-modal-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.sub-modal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.sub-modal-amount { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.sub-modal-amount span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.sub-modal-methods-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; }
.sub-modal-methods { display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.sub-method-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: transparent; border: none; border-right: 1px solid rgba(255,255,255,0.1); cursor: pointer; font-size: 0.72rem; color: var(--text-muted); transition: background 0.2s; position: relative; }
.sub-method-btn:last-child { border-right: none; }
.sub-method-btn.active { color: var(--primary); background: rgba(255, 85, 0,0.08); }
.sub-method-btn.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--primary); }
.sub-method-logo { width: 36px; height: 24px; object-fit: contain; }
.sub-phone-form { display: flex; flex-direction: column; gap: 10px; }
.sub-phone-label { font-size: 0.78rem; color: var(--text-muted); }
.sub-phone-input { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0; color: var(--text-primary); font-size: 1rem; }
.sub-phone-input:focus { outline: none; border-color: var(--primary); }
.sub-redirect-note { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.sub-pay-btn { width: 100%; padding: 13px; background: var(--primary); border: none; border-radius: 0; color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s; }
.sub-pay-btn:hover { opacity: 0.9; }
.sub-pay-btn:disabled { opacity: 0.5; cursor: default; }
.sub-status-success { display: flex; align-items: center; gap: 8px; padding: 12px; background: rgba(255, 85, 0,0.1); border: 1px solid rgba(255, 85, 0,0.2); color: var(--primary); font-size: 0.85rem; margin-top: 12px; }
.sub-status-error { padding: 12px; background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2); color: #f87171; font-size: 0.82rem; margin-top: 12px; }
.sub-status-polling { display: flex; align-items: center; gap: 10px; padding: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: var(--text-secondary); margin-top: 12px; }
.sub-poll-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.15); border-top-color: var(--primary); border-radius: 50%; animation: sub-spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes sub-spin { to { transform: rotate(360deg); } }

/* ── Admin: Payments & Plans tab ── */
.admin-settings-list { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(255,255,255,0.1); }
.admin-setting-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-setting-row:last-child { border-bottom: none; }
.admin-setting-key { font-size: 0.85rem; color: var(--text-secondary); text-transform: capitalize; }
.admin-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.admin-toggle input { opacity: 0; width: 0; height: 0; }
.admin-toggle-track { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.admin-toggle-track::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.admin-toggle input:checked + .admin-toggle-track { background: var(--primary); }
.admin-toggle input:checked + .admin-toggle-track::before { transform: translateX(18px); }
.admin-plans-list { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(255,255,255,0.1); }
.admin-plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-plan-row:last-child { border-bottom: none; }
.admin-plan-meta { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-plan-role-badge { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; }
.admin-plan-role-badge.provider { background: rgba(99,102,241,0.15); color: #818cf8; }
.admin-plan-role-badge.tourist { background: rgba(255, 85, 0,0.15); color: var(--primary); }
.admin-plan-name { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.admin-plan-price-edit { display: flex; align-items: center; gap: 4px; }
.admin-price-label { color: var(--text-muted); font-size: 0.9rem; }
.admin-plan-price-input { width: 64px; padding: 6px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0; color: var(--text-primary); font-size: 0.85rem; text-align: center; }
.admin-plan-save-btn { padding: 6px 10px; background: transparent; border: 1px solid var(--primary); color: var(--primary); font-size: 0.75rem; font-weight: 600; cursor: pointer; border-radius: 0; transition: background 0.2s; }
.admin-plan-save-btn:hover { background: var(--primary); color: #fff; }
.admin-plan-save-btn:disabled { opacity: 0.5; cursor: default; }
.admin-subs-list { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(255,255,255,0.1); }
.admin-sub-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 8px; }
.admin-sub-row:last-child { border-bottom: none; }
.admin-sub-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-sub-user { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sub-plan { font-size: 0.72rem; color: var(--text-muted); }
.admin-sub-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.admin-sub-status { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 2px 6px; }
.admin-sub-status.active { background: rgba(255, 85, 0,0.15); color: var(--primary); }
.admin-sub-status.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.admin-sub-status.failed { background: rgba(220,38,38,0.12); color: #f87171; }
.admin-sub-amount { font-size: 0.78rem; color: var(--text-muted); }

/* ── Admin: plan chip on user cards ── */
.chip-plan { background: rgba(99,102,241,0.15); color: #818cf8; }

/* ── Admin: ranked list (top pages / top referrers) ── */
.admin-rank-list { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.1); }
.admin-rank-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 8px; }
.admin-rank-row:last-child { border-bottom: none; }
.admin-rank-label { font-size: 0.82rem; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.admin-rank-value { font-size: 0.82rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }

/* ── Admin: lightweight bar chart (traffic / trends) ── */
.admin-chart { position: relative; padding: 8px 0 0; }
.admin-chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.admin-chart-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.admin-chart-bar { width: 100%; min-height: 2px; background: var(--primary); border-radius: 3px 3px 0 0; opacity: 0.8; transition: opacity 0.15s; }
.admin-chart-bar-wrap:hover .admin-chart-bar { opacity: 1; }
.admin-chart-axis { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); margin-top: 6px; }
.admin-chart-tooltip { position: absolute; pointer-events: none; background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.15); padding: 6px 10px; font-size: 0.72rem; color: var(--text-primary); white-space: nowrap; transform: translate(-50%, -100%); margin-top: -8px; z-index: 10; display: none; border-radius: 2px; }
.admin-chart-empty { text-align: center; color: var(--text-muted); font-size: 0.82rem; padding: 24px 0; }

/* ── Profile: Active subscription card ── */
.profile-sub-active-card { width: 100%; padding: 16px; background: rgba(255, 85, 0,0.06); border: 1px solid rgba(255, 85, 0,0.25); cursor: pointer; transition: background 0.2s; text-align: left; }
.profile-sub-active-card:hover { background: rgba(255, 85, 0,0.10); }
.profile-sub-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.profile-sub-badge { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid; padding: 3px 10px; }
.profile-sub-featured-tag { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; background: rgba(255, 85, 0,0.15); color: var(--primary); padding: 2px 7px; letter-spacing: 0.5px; }
.profile-sub-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; }
.profile-sub-actions { display: flex; }
.profile-sub-manage-btn { padding: 8px 16px; background: transparent; border: 1px solid var(--primary); color: var(--primary); font-size: 0.78rem; font-weight: 600; cursor: pointer; border-radius: 0; transition: background 0.2s; }
.profile-sub-manage-btn:hover { background: var(--primary); color: #fff; }

/* ── Subscription plan-change confirmation dialog ── */
.sub-confirm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sub-confirm-box { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1); padding: 24px; width: 100%; max-width: 360px; }
.sub-confirm-title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.sub-confirm-msg { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.sub-confirm-actions { display: flex; gap: 10px; }
.sub-confirm-cancel { flex: 1; padding: 10px; background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; border-radius: 0; }
.sub-confirm-ok { flex: 1; padding: 10px; background: var(--primary); border: none; color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; border-radius: 0; transition: opacity 0.2s; }
.sub-confirm-ok:hover { opacity: 0.88; }

/* ── Plan delete button (in list cards) ── */
.plan-delete-btn { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-muted); display: flex; align-items: center; transition: color 0.15s; }
.plan-delete-btn:hover { color: #f87171; }
.plan-delete-btn .icon-svg { width: 15px; height: 15px; }

/* ── Provider Dashboard ── */
.dash-stats-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dash-stat-row { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); padding: 13px 14px; cursor: pointer; transition: background 0.15s; }
.dash-stat-row:hover { background: var(--bg-elevated); }
.dash-stat-row-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 0; flex-shrink: 0; }
.dash-stat-row-icon .icon-svg { width: 16px; height: 16px; }
.dash-stat-row-label { flex: 1; font-size: 0.82rem; color: var(--text-secondary); }
.dash-stat-row-value { font-size: 1.15rem; font-weight: 700; }
.dash-stat-row-arrow { font-size: 1.1rem; color: var(--text-muted); margin-left: 4px; }

.dash-plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); padding: 12px 14px; margin-bottom: 4px; }
.dash-plan-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-plan-name { font-size: 0.88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-plan-sub { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-plan-btn { flex-shrink: 0; padding: 7px 14px; background: transparent; border: 1px solid var(--primary); color: var(--primary); font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.dash-plan-btn:hover { background: var(--primary); color: #fff; }

.dash-analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-analytics-card { background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.2); padding: 14px 10px; text-align: center; }
.dash-analytics-value { font-size: 1.25rem; font-weight: 700; color: #818cf8; line-height: 1; }
.dash-analytics-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 5px; }

/* ── Profile plan features list ── */
.profile-sub-features { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.profile-sub-features li { list-style: none; display: flex; align-items: center; gap: 7px; font-size: 0.73rem; color: var(--text-secondary); line-height: 1.4; }
.profile-sub-features li .icon-svg { width: 11px; height: 11px; color: var(--primary); flex-shrink: 0; }

/* ══════════════════════════════════════
   AI PLANNER v2 — Redesigned UI
   ══════════════════════════════════════ */

/* Page wrapper */
.planner-page { padding-bottom: 160px; }

/* ── Hero ── */
.planner-hero {
  background: linear-gradient(160deg, #0d2b1f 0%, #091a12 55%, var(--bg-primary) 100%);
  padding: 28px 20px 26px;
  border-bottom: 1px solid var(--border);
}
.planner-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 85, 0,0.15); border: 1px solid rgba(255, 85, 0,0.3);
  border-radius: 20px; padding: 4px 12px;
  font-size: 0.7rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px;
}
.planner-hero-badge .icon-svg { width: 12px; height: 12px; }
.planner-hero-title {
  font-size: 1.9rem; font-weight: 800; line-height: 1.12; margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 55%, var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.planner-hero-sub { font-size: 0.87rem; color: var(--text-muted); line-height: 1.45; }

/* ── Plan sections ── */
.plan-section { padding: 20px 16px; border-bottom: 1px solid var(--border); }
.plan-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.plan-step-badge {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-step-opt { background: var(--bg-elevated); color: var(--text-muted); }
.plan-section-title { font-size: 0.95rem; font-weight: 700; }
.plan-optional { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.plan-custom-input { font-size: 0.88rem; width: 100%; }

/* ── Destination grid ── */
.destination-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.dest-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px 4px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.15s; text-align: center;
}
.dest-card:active { transform: scale(0.95); }
.dest-card.active { border-color: var(--primary); background: rgba(255, 85, 0,0.1); }
.dest-emoji { font-size: 1.5rem; line-height: 1; }
.dest-name { font-size: 0.7rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; margin-top: 2px; }
.dest-desc { font-size: 0.58rem; color: var(--text-muted); line-height: 1.3; }

/* ── Two-column row (duration + guests) ── */
.plan-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.plan-sub { display: flex; flex-direction: column; gap: 10px; }
.plan-sub-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Budget tiers ── */
.budget-tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 0; }
.budget-tier {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 4px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s;
}
.budget-tier:active { transform: scale(0.95); }
.budget-tier.active { border-color: var(--primary); background: rgba(255, 85, 0,0.1); }
.bt-amount { font-size: 0.9rem; font-weight: 800; color: var(--text-primary); }
.bt-label { font-size: 0.56rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.budget-tier.active .bt-amount { color: var(--primary); }
.budget-tier.active .bt-label { color: var(--primary-light); }

/* ── Interest grid ── */
.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.interest-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s; text-align: center;
}
.interest-card:active { transform: scale(0.95); }
.interest-card.active { border-color: var(--primary); background: rgba(255, 85, 0,0.1); }
.ic-emoji { font-size: 1.4rem; line-height: 1; }
.ic-label { font-size: 0.6rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.2px; }
.interest-card.active .ic-label { color: var(--primary); }

/* ── Service cards (v2) ── */
.service-cards { display: flex; flex-direction: column; gap: 8px; }
.service-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; width: 100%; text-align: left;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s;
}
.service-card:active { background: rgba(255, 85, 0,0.05); }
.service-card.active { border-color: var(--primary); background: rgba(255, 85, 0,0.08); }
.sc-left { display: flex; align-items: center; gap: 12px; }
.sc-emoji { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.sc-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.sc-desc { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.sc-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.15s;
}
.sc-check .icon-svg { width: 12px; height: 12px; color: transparent; transition: color 0.15s; }
.service-card.active .sc-check { background: var(--primary); border-color: var(--primary); }
.service-card.active .sc-check .icon-svg { color: white; }

/* ── Inspire toggle ── */
.inspire-toggle {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: none; border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 11px 14px;
  color: var(--text-muted); font-size: 0.82rem; cursor: pointer; transition: all 0.15s;
}
.inspire-toggle:active, .inspire-toggle.active { background: var(--bg-elevated); border-color: var(--primary); color: var(--text-primary); }
.inspire-toggle .icon-svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

/* ── Planner sticky footer ── */
.planner-footer {
  position: fixed; bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 0; right: 0;
  background: var(--bg-primary); border-top: 1px solid var(--border);
  padding: 10px 16px 12px; z-index: 50;
}

/* ── Live trip summary bar ── */
.trip-summary-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 8px 12px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); min-height: 36px;
}
.tsb-item { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; transition: color 0.2s; }
.tsb-item.set { color: var(--primary); font-weight: 600; }
.tsb-sep { font-size: 0.65rem; color: var(--border); }

/* ── Generate button ── */
.planner-gen-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 85, 0,0.28); transition: opacity 0.2s, transform 0.1s;
}
.planner-gen-btn:active { transform: scale(0.98); }
.planner-gen-btn:disabled { opacity: 0.55; box-shadow: none; cursor: not-allowed; }
.planner-gen-btn .icon-svg { width: 18px; height: 18px; }

/* ── Full-screen loading overlay ── */
.planner-loading-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8,8,8,0.96);
  display: flex; align-items: center; justify-content: center;
}
.plo-inner { text-align: center; padding: 32px 28px; max-width: 320px; width: 100%; }
.plo-ring {
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.85s linear infinite; margin: 0 auto 28px;
}
.plo-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.plo-step {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color 0.35s, transform 0.35s;
  transform: scale(0.94); line-height: 1.4;
}
.plo-step.active { color: var(--text-primary); font-weight: 600; transform: scale(1); }
.plo-hint { font-size: 0.73rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════
   TRAVEL PACKAGES
══════════════════════════════════════════════ */

/* Browse list page */
.pkg-page { display: flex; flex-direction: column; height: 100%; }
.pkg-list-scroll { display: flex; flex-direction: column; gap: 0; padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 8px); }

/* Package list card — full-width flyer style */
.pkg-card-list { display: flex; flex-direction: column; }
.pkg-list-card {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s; overflow: hidden;
}
.pkg-list-card:active { background: var(--bg-elevated); }
.pkg-list-cover {
  width: 100%; height: 180px; position: relative;
}
.pkg-list-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 12px;
}
.pkg-list-cover-top { display: flex; align-items: flex-start; gap: 8px; }
.pkg-list-cover-bottom { display: flex; flex-direction: column; gap: 4px; }
.pkg-list-title { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.pkg-list-dests { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.pkg-list-body { padding: 12px 14px 14px; }
.pkg-list-meta-row { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.pkg-list-rating { color: var(--accent); font-weight: 600; }
.pkg-list-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pkg-list-footer { display: flex; align-items: center; justify-content: space-between; }
.pkg-list-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.pkg-list-per { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.pkg-list-by { font-size: 0.75rem; color: var(--text-muted); }
.pkg-list-days { white-space: nowrap; }
.pkg-list-guests { white-space: nowrap; }

/* Skeleton for list */
.pkg-skeleton-list { display: flex; flex-direction: column; gap: 1px; }
.pkg-skeleton-item { height: 260px; background: var(--bg-card); animation: shimmer 1.5s infinite; background-size: 200% 100%; background-image: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%); }

/* Type + featured pills */
.pkg-type-pill {
  display: inline-block; font-size: 0.65rem; font-weight: 800; color: #fff;
  padding: 3px 9px; border-radius: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px);
}
.pkg-featured-pill {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  color: #000; background: var(--accent);
  padding: 3px 9px; border-radius: 10px;
}
.pkg-badge {
  font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: 8px;
  background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border);
  white-space: nowrap;
}

/* Detail page — gradient cover */
.pkg-detail-cover {
  width: 100%; height: 240px; position: relative; flex-shrink: 0;
}
.pkg-detail-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
}
.pkg-detail-cover-top { display: flex; align-items: flex-start; gap: 8px; }
.pkg-detail-cover-info { display: flex; flex-direction: column; gap: 6px; }
.pkg-detail-cover-title { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.2; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.pkg-detail-cover-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.82); line-height: 1.4; }
.pkg-detail-cover-meta { display: flex; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.75); flex-wrap: wrap; }

/* Sticky CTA bar — stacks below the sticky header */
.pkg-cta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-height) + var(--safe-top));
  z-index: 9;
}
.pkg-cta-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.pkg-cta-per { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
.pkg-cta-dest { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.pkg-book-btn { flex-shrink: 0; }

/* Detail body sections */
.pkg-detail-body { padding-bottom: 32px; }
.pkg-section { padding: 16px; border-bottom: 1px solid var(--border); }
.pkg-section:last-child { border-bottom: none; }

/* Inclusions */
.pkg-inc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.88rem; color: var(--text-secondary); }
.pkg-inc-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--primary-light); }

/* Highlights list */
.pkg-highlights { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.pkg-highlights li {
  padding-left: 16px; position: relative; font-size: 0.88rem;
  color: var(--text-secondary); line-height: 1.55;
}
.pkg-highlights li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* Destinations */
.pkg-dest-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* Day-by-day */
.pkg-day-block { background: var(--bg-elevated); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; }
.pkg-day-block:last-child { margin-bottom: 0; }
.pkg-day-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.pkg-day-num { font-size: 0.68rem; font-weight: 800; color: #fff; padding: 3px 9px; border-radius: 10px; flex-shrink: 0; }
.pkg-day-theme { font-size: 0.88rem; font-weight: 700; }
.pkg-day-acts { list-style: none; margin: 0; padding: 0 12px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.pkg-day-acts li { font-size: 0.82rem; color: var(--text-secondary); padding-left: 14px; position: relative; line-height: 1.4; }
.pkg-day-acts li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }

/* Travel dates */
.pkg-dates { display: flex; flex-direction: column; gap: 8px; }
.pkg-date-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.pkg-date-range { font-size: 0.85rem; color: var(--text-secondary); }

/* Booking modal — bottom sheet */
.modal-overlay { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,0.7); display: flex; align-items: flex-end; justify-content: center; }
.modal-sheet {
  background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; overflow-x: hidden;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
}
.modal-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 10px auto 4px; flex-shrink: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:active { background: var(--bg-elevated); }
.modal-body {
  padding: 16px 16px calc(16px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 14px;
  box-sizing: border-box; width: 100%;
}
.modal-body .input-group { margin-bottom: 0; }
.modal-body .input { box-sizing: border-box; }

/* Booking modal — package info banner */
.pkg-modal-pkginfo {
  background: var(--bg-elevated); border-radius: var(--radius-md);
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
}
.pkg-modal-pkgtitle { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); line-height: 1.3; }
.pkg-modal-pkgmeta { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.pkg-modal-optional { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }

/* Date input — readable on dark theme + proper sizing on mobile */
.modal-body .input[type="date"] {
  color: var(--text-primary); font-size: 0.95rem;
  color-scheme: dark;
  min-height: 46px;
}
.modal-body .input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.modal-body textarea.input { resize: none; min-height: 72px; font-family: inherit; line-height: 1.45; width: 100%; }

/* Guests stepper */
.pkg-guests-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 6px 0;
}
.pkg-guests-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated); color: var(--text-primary);
  font-size: 1.4rem; font-weight: 600; line-height: 1;
  cursor: pointer; user-select: none; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s, border-color 0.15s, color 0.15s;
}
.pkg-guests-btn:not(:disabled):active { transform: scale(0.92); }
.pkg-guests-btn:not(:disabled):hover { border-color: var(--primary); color: var(--primary); }
.pkg-guests-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pkg-guests-val { font-size: 1.45rem; font-weight: 800; min-width: 36px; text-align: center; color: var(--text-primary); }
.pkg-guests-range { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* Total row — contained inside body, no negative margins */
.pkg-modal-total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  gap: 12px;
}
.pkg-modal-total-label { font-size: 0.88rem; color: var(--text-secondary); font-weight: 600; }
.pkg-modal-total { font-size: 1.45rem; font-weight: 800; color: var(--primary); letter-spacing: -0.01em; line-height: 1; }

.pkg-modal-err {
  background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35);
  color: #e88; font-size: 0.82rem; padding: 10px 12px; border-radius: var(--radius-sm);
}
.modal-body .btn-block { width: 100%; min-height: 48px; font-size: 0.95rem; font-weight: 700; }
.pkg-modal-foot { font-size: 0.74rem; color: var(--text-muted); text-align: center; margin: 4px 0 0; }

/* Package photo manager (create/edit form) */
.pkg-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
@media (max-width: 380px) {
  .pkg-photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.pkg-photo-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-elevated); border: 1px solid var(--border);
}
.pkg-photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-photo-cover-badge {
  position: absolute; bottom: 6px; left: 6px;
  background: var(--primary); color: #fff;
  font-size: 0.62rem; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.pkg-photo-remove {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.7); border: none; color: #fff;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pkg-photo-remove:hover { background: var(--danger); }
.pkg-photo-empty {
  grid-column: 1 / -1; padding: 18px 12px; text-align: center;
  font-size: 0.82rem; color: var(--text-muted);
  border: 1px dashed var(--border); border-radius: var(--radius-md);
}
.pkg-photo-upload { display: flex; flex-direction: column; gap: 8px; }
.pkg-photo-status { font-size: 0.78rem; min-height: 16px; }
.pkg-photo-status-ok { color: var(--primary-light); }
.pkg-photo-status-err { color: var(--danger); }

/* Detail page — additional photo gallery strip below hero */
.pkg-gallery-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 16px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pkg-gallery-strip::-webkit-scrollbar { display: none; }
.pkg-gallery-tile {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-elevated); cursor: pointer;
  transition: transform 0.15s;
}
.pkg-gallery-tile:active { transform: scale(0.95); }
.pkg-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox — fullscreen image viewer */
.pkg-lightbox {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 12px) 12px env(safe-area-inset-bottom, 12px);
  animation: fadeIn 0.2s ease;
}
.pkg-lightbox-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.pkg-lightbox-close {
  position: absolute; top: calc(env(safe-area-inset-top, 12px) + 12px); right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pkg-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pkg-lightbox-prev { left: 12px; }
.pkg-lightbox-next { right: 12px; }
.pkg-lightbox-counter {
  position: absolute; bottom: calc(env(safe-area-inset-bottom, 12px) + 14px); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.85);
  padding: 6px 14px; border-radius: 12px;
  font-size: 0.78rem; font-weight: 600;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Create / Edit Package form — sits inside .page-content (16px padding) */
.pkg-form { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px); }
.pkg-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-sizing: border-box;
}
.pkg-form-section-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.pkg-form-section-sub { font-size: 0.78rem; color: var(--text-muted); margin: -10px 0 2px; line-height: 1.4; }
.pkg-form-req { color: var(--danger); font-weight: 700; margin-left: 2px; }
.pkg-form-hint { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; margin-left: 4px; }
.pkg-form .input-group { margin-bottom: 0; }
.pkg-form .input { box-sizing: border-box; color-scheme: dark; }
.pkg-form textarea.input { resize: vertical; min-height: 70px; font-family: inherit; line-height: 1.5; }
.pkg-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) {
  .pkg-form-grid-2 { grid-template-columns: 1fr; }
}

/* Inclusion checkboxes — custom themed */
.pkg-form-checks { display: flex; flex-direction: column; gap: 8px; }
.pkg-form-check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.pkg-form-check input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.pkg-form-check-box {
  width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--border); background: var(--bg-card);
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.pkg-form-check-box::after {
  content: ''; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s;
}
.pkg-form-check input:checked + .pkg-form-check-box {
  background: var(--primary); border-color: var(--primary);
}
.pkg-form-check input:checked + .pkg-form-check-box::after { opacity: 1; transform: scale(1); }
.pkg-form-check:has(input:checked) { border-color: var(--primary); background: rgba(255, 85, 0,0.08); }
.pkg-form-check-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkg-form-check-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.pkg-form-check-hint { font-size: 0.74rem; color: var(--text-muted); line-height: 1.35; }

/* Form actions */
.pkg-form-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.pkg-form-actions .btn-block { min-height: 48px; font-weight: 700; }
.pkg-form-delete {
  background: transparent; border: 1.5px solid var(--danger); color: var(--danger);
}
.pkg-form-delete:active { background: rgba(231,76,60,0.1); }

/* Provider dashboard — Travel Packages promo card */
.dash-pkg-promo {
  margin: 12px 16px 4px;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(255, 85, 0,0.10) 0%, rgba(255, 140, 66,0.08) 100%);
  border: 1px solid rgba(255, 85, 0,0.25);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.dash-pkg-promo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-pkg-promo-badge {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em;
  background: var(--accent); color: #000; padding: 3px 8px; border-radius: 6px;
}
.dash-pkg-promo-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.dash-pkg-promo-sub { font-size: 0.78rem; color: var(--text-muted); margin-left: 4px; }
.dash-pkg-promo-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.dash-pkg-promo-types { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-pkg-promo-chip {
  font-size: 0.72rem; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 4px 10px; border-radius: 12px;
  white-space: nowrap;
}
.dash-pkg-promo-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dash-pkg-promo-secondary { font-size: 0.85rem; }

/* My Packages — rich empty state */
.mypkg-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px 24px; gap: 12px;
}
.mypkg-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 85, 0,0.18), rgba(255, 140, 66,0.18));
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.mypkg-empty-icon .icon-svg { width: 30px; height: 30px; }
.mypkg-empty-title { font-size: 1.15rem; font-weight: 700; margin: 4px 0 0; color: var(--text-primary); }
.mypkg-empty-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; max-width: 340px; margin: 0; }
.mypkg-empty-types { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.mypkg-empty-secondary { margin-top: 2px; }

/* My Packages provider card cover strip */
.my-pkg-cover { height: 56px; position: relative; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.my-pkg-status-pill {
  font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: 0.05em; margin-left: auto;
}
.my-pkg-status-pill.draft { background: rgba(160,160,160,0.25); color: var(--text-muted); }
.my-pkg-status-pill.published { background: rgba(255, 85, 0,0.25); color: var(--primary-light); }
.my-pkg-status-pill.archived { background: rgba(231,76,60,0.18); color: #e88; }

/* Home page — package hcard variant */
.pkg-hcard { width: 260px; scroll-snap-align: start; }
