/* ── Katya App — Component Styles ── */
/* Forms, toasts, auth, feed, profile, upload, modals, explore, responsive */

/* ── Forms ── */

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(196, 162, 78, 0.2);
}

.form-input::placeholder {
  color: var(--gray);
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5a5a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── Toast Notifications ── */

#toast-container {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--info {
  background: var(--card);
  border: 1px solid var(--gray);
  color: var(--white);
}

.toast--success {
  background: rgba(78, 196, 110, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.toast--error {
  background: rgba(196, 78, 78, 0.15);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* ── Page Layouts ── */

.page-header {
  padding: 20px 16px 12px;
}

.page-header h1 {
  font-size: 1.75rem;
}

.page-content {
  padding: 0 0 16px;
}

/* ── Auth Page ── */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.auth-logo {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.auth-tagline {
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.auth-form {
  width: 100%;
  max-width: 360px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray);
}

.auth-switch a {
  color: var(--gold);
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(90, 90, 90, 0.3);
}

/* ── Feed Specific ── */

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.feed-filter {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--deep);
  color: var(--gray);
  border: 1px solid rgba(90, 90, 90, 0.2);
  transition: all 0.2s;
}

.feed-filter--active {
  background: rgba(196, 162, 78, 0.15);
  color: var(--gold);
  border-color: var(--gold-dim);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
}

/* ── Profile / Tier Cards ── */

.profile-header {
  text-align: center;
  padding: 32px 16px 24px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--gold-dim);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
}

.tier-cards {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-card {
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.15);
  border-radius: var(--radius);
  padding: 20px;
}

.tier-card--active {
  border-color: var(--gold);
}

.tier-card-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tier-card-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.tier-card-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray);
}

.tier-card-features {
  list-style: none;
  margin-bottom: 16px;
}

.tier-card-features li {
  font-size: 0.85rem;
  color: var(--silver);
  padding: 4px 0;
}

.tier-card-features li::before {
  content: '\2713 ';
  color: var(--gold);
  margin-right: 6px;
}

/* ── Upload Form ── */

.upload-page {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.upload-preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--deep);
  border: 2px dashed rgba(90, 90, 90, 0.3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.upload-preview img,
.upload-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.upload-preview svg {
  width: 40px;
  height: 40px;
  color: var(--gold-dim);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--deep);
  border-radius: 2px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}

/* ── Modal ── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.2s ease;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 162, 78, 0.1);
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Pull to refresh ── */

.pull-indicator {
  text-align: center;
  padding: 12px;
  color: var(--gold-dim);
  font-size: 0.8rem;
  display: none;
}

.pull-indicator--visible {
  display: block;
}

/* ── Explore grid ── */

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.explore-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--deep);
  cursor: pointer;
}

.explore-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-thumb-locked {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.explore-thumb-locked svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.explore-thumb-badge {
  position: absolute;
  top: 4px;
  right: 4px;
}

/* ── Desktop: wider layout ── */

@media (min-width: 768px) {
  .app-view {
    max-width: 600px;
    margin: 0 auto;
  }

  .bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px 12px 0 0;
  }

  .explore-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .explore-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ── Credits & Micro-payments ── */

.credit-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(196, 162, 78, 0.1);
  border: 1px solid rgba(196, 162, 78, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.credit-badge:hover {
  background: rgba(196, 162, 78, 0.2);
}

/* ── Modal ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s;
}

.modal-content {
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(90, 90, 90, 0.2);
}

.modal-header h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
}

.modal-section {
  padding: 16px;
}

.modal-divider {
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 16px;
  position: relative;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(90, 90, 90, 0.3);
}

.modal-divider::before { left: 16px; }
.modal-divider::after { right: 16px; }

/* ── Credit Packs ── */

.credit-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.credit-pack-btn {
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  color: var(--white);
}

.credit-pack-btn:hover {
  border-color: var(--gold);
  background: rgba(196, 162, 78, 0.05);
}

.credit-pack-credits {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.credit-pack-price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 4px;
}

.credit-pack-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.credit-pack-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
}

/* ── Crypto Address ── */

.crypto-address-box {
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crypto-address-box code {
  font-size: 0.65rem;
  color: var(--silver);
  word-break: break-all;
  flex: 1;
}

/* ── Unlock Buttons ── */

.unlock-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 80%;
  max-width: 240px;
}

.unlock-label {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.unlock-label--own {
  background: rgba(78, 196, 110, 0.15);
  color: var(--success);
}

.unlock-label--rent {
  background: rgba(196, 162, 78, 0.15);
  color: var(--gold);
}

/* ── Tip ── */

.tip-amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(90, 90, 90, 0.3);
  background: var(--deep);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tip-btn:hover,
.tip-btn--active {
  border-color: var(--gold);
  background: rgba(196, 162, 78, 0.15);
}

/* ── Fade In ── */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Wallet ── */

.wallet-section {
  margin-bottom: 4px;
}

.wallet-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(78, 196, 110, 0.1);
  border: 1px solid rgba(78, 196, 110, 0.3);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.wallet-address {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

.wallet-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wallet-pay-btn {
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: var(--radius);
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: var(--white);
}

.wallet-pay-btn:hover {
  border-color: var(--gold);
  background: rgba(196, 162, 78, 0.05);
}

.wallet-pay-credits {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.wallet-pay-price {
  font-size: 0.7rem;
  color: var(--gray);
  display: block;
  margin-top: 2px;
}

/* ── Google Auth Button ── */

.btn--google {
  background: var(--deep);
  color: var(--silver);
  border: 1px solid rgba(90, 90, 90, 0.3);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.btn--google:hover {
  background: var(--card);
  border-color: rgba(196, 162, 78, 0.4);
}

.auth-divider {
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 16px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: rgba(90, 90, 90, 0.3);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Chat ── */

.chat-list {
  padding: 0;
}

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

.chat-list-item:hover {
  background: var(--deep);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-item-info {
  flex: 1;
  min-width: 0;
}

.chat-item-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.chat-item-preview {
  color: var(--gray);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-item-meta {
  text-align: right;
  flex-shrink: 0;
}

.chat-item-time {
  color: var(--gray);
  font-size: 0.7rem;
}

.chat-unread {
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* ── Chat Messages ── */

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-bubble--subscriber {
  align-self: flex-end;
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.2);
  border-bottom-right-radius: 4px;
}

.chat-bubble--katya {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid rgba(196, 162, 78, 0.2);
  border-bottom-left-radius: 4px;
}

.chat-bubble--system {
  align-self: center;
  background: none;
  color: var(--gray);
  font-size: 0.75rem;
  text-align: center;
  padding: 4px 8px;
}

.chat-bubble-time {
  font-size: 0.65rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Chat PPV Card ── */

.chat-ppv-card {
  background: var(--deep);
  border: 1px solid rgba(196, 162, 78, 0.3);
  border-radius: 8px;
  padding: 12px;
  max-width: 240px;
}

.chat-ppv-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--card);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.chat-ppv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  transform: scale(1.1);
}

.chat-ppv-thumb.unlocked img {
  filter: none;
  transform: none;
}

.chat-ppv-caption {
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 8px;
}

/* ── Chat Input ── */

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid rgba(90, 90, 90, 0.2);
  background: var(--black);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: 20px;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--gold);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chat-send-btn:hover {
  background: var(--gold-light);
}

/* ── Smart Reply Buttons ── */

.smart-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  border-top: 1px solid rgba(90, 90, 90, 0.1);
}

.smart-reply-btn {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid rgba(90, 90, 90, 0.3);
  background: var(--deep);
  color: var(--silver);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-reply-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.smart-reply-btn--warm { border-color: rgba(78, 196, 110, 0.3); }
.smart-reply-btn--flirty { border-color: rgba(196, 78, 156, 0.3); }
.smart-reply-btn--ppv { border-color: rgba(196, 162, 78, 0.3); }
.smart-reply-btn--deflect { border-color: rgba(90, 90, 90, 0.4); }

/* ── Chat Dashboard ── */

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

.chat-dash-item:hover {
  background: var(--deep);
}

.chat-dash-stats {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-auto-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--gray);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.chat-auto-toggle.active {
  background: var(--success);
}

.chat-auto-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s;
}

.chat-auto-toggle.active::after {
  transform: translateX(18px);
}

/* ── Nav Badge ── */

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Chat View Layout ── */

.chat-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height) - var(--safe-bottom));
  height: calc(100dvh - var(--nav-height) - var(--safe-bottom));
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(90, 90, 90, 0.2);
}

.chat-header-back {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 4px;
}

.chat-typing {
  font-size: 0.75rem;
  color: var(--gold-dim);
  font-style: italic;
  padding: 0 16px;
  height: 20px;
}

/* ── Chat Action Buttons ── */

.chat-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(90, 90, 90, 0.3);
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Tip Menu ── */

.tip-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: 8px;
  cursor: pointer;
  color: var(--white);
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.tip-menu-item:hover {
  border-color: var(--gold);
  background: var(--card);
}

.tip-menu-emoji { font-size: 1.3rem; }
.tip-menu-name { flex: 1; font-size: 0.9rem; }

.tip-menu-price {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Fan Score Badges ── */

.fan-score-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-left: 4px;
}

.fan-score--low {
  background: rgba(90, 90, 90, 0.3);
  color: var(--gray);
}

.fan-score--mid {
  background: rgba(196, 162, 78, 0.2);
  color: var(--gold);
}

.fan-score--high {
  background: rgba(78, 196, 110, 0.2);
  color: var(--success);
}

/* ── Dashboard Sort Bar ── */

.dash-sort-bar {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(90, 90, 90, 0.15);
}

/* ── Campaigns ── */

.campaign-card {
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
}

.campaign-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.campaign-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.campaign-type-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.campaign-type--welcome { background: rgba(78, 196, 110, 0.15); color: var(--success); }
.campaign-type--re_engagement { background: rgba(196, 162, 78, 0.15); color: var(--gold); }
.campaign-type--tier_upsell { background: rgba(78, 130, 196, 0.15); color: #4e82c4; }
.campaign-type--whale_nurture { background: rgba(156, 78, 196, 0.15); color: #9c4ec4; }
.campaign-type--win_back { background: rgba(196, 78, 78, 0.15); color: var(--danger); }
.campaign-type--custom { background: rgba(90, 90, 90, 0.15); color: var(--gray); }

.campaign-goal {
  font-size: 0.85rem;
  color: var(--silver);
  margin-bottom: 8px;
}

.campaign-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 12px;
}

.campaign-steps-preview {
  background: var(--deep);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

.campaign-step {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(90, 90, 90, 0.1);
  font-size: 0.8rem;
}

.campaign-step:last-child {
  border-bottom: none;
}

.campaign-step-delay {
  color: var(--gold-dim);
  white-space: nowrap;
  min-width: 60px;
}

.campaign-step-text {
  color: var(--silver);
  flex: 1;
}

.campaign-step-type {
  color: var(--gold);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.campaign-actions {
  display: flex;
  gap: 8px;
}

.campaign-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.campaign-analysis {
  background: var(--deep);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.5;
}

.campaigns-loading {
  text-align: center;
  padding: 48px 16px;
  color: var(--gray);
}

.campaigns-loading .spinner {
  margin: 0 auto 12px;
}

/* ── Language Toggle ── */

.lang-toggle {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
  right: 1.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  z-index: 100;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.lang-toggle:hover { opacity: 0.7; }

.lang-toggle button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-toggle button.active { color: var(--gold); }
.lang-toggle button:not(.active):hover { color: var(--white); }

.lang-toggle .sep { color: #333; margin: 0 0.3rem; }

/* ── Card Action Buttons (like, tip) ── */

.card-action-btn {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  transition: color 0.2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.card-action-btn:hover {
  color: var(--gold);
}

.card-action-btn:focus {
  outline: none;
}

.card-action-btn--active {
  color: var(--gold);
}

.card-action-btn.card-tip-btn {
  color: var(--gold-dim);
}

.card-action-btn.card-tip-btn:hover {
  color: var(--gold);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Admin Hub (Story Mode) ── */

.hub-layout {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 0 100px;
}

/* Header: avatar | name+date | revenue pill */
.hub-header {
  padding: 8px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hub-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--black);
  font-size: 1.1rem;
}

.hub-header-center {
  text-align: center;
}

.hub-header-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.hub-header-date {
  font-size: 0.7rem;
  color: var(--gray);
}

.hub-revenue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 162, 78, 0.1);
  border: 1px solid rgba(196, 162, 78, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.hub-revenue-pill small {
  font-weight: 400;
  color: var(--gray);
  font-size: 0.7rem;
}

/* Horizontal scroll cards */
.hub-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

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

.hub-scroll-card {
  min-width: 280px;
  max-width: 300px;
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.15);
  border-radius: 12px;
  padding: 20px;
  scroll-snap-align: start;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  animation: hubFadeUp 0.4s ease-out both;
}

.hub-scroll-card:hover { transform: scale(1.02); }

.hub-scroll-card--featured {
  background: linear-gradient(160deg, rgba(196, 162, 78, 0.15) 0%, var(--card) 50%);
  border-color: rgba(196, 162, 78, 0.3);
}

.hub-card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 162, 78, 0.08), transparent 70%);
  pointer-events: none;
}

.hub-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.hub-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.hub-card-desc { font-size: 0.78rem; color: var(--gray); margin-bottom: 14px; line-height: 1.4; }

.hub-card-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.hub-card-btn:hover { background: var(--gold-light); }

.hub-card-btn--outline {
  background: transparent;
  border: 1px solid rgba(196, 162, 78, 0.3);
  color: var(--gold);
}

.hub-card-btn--outline:hover {
  background: rgba(196, 162, 78, 0.1);
}

/* Section label */
.hub-section-label {
  font-size: 0.7rem;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 20px 8px;
}

/* Quick stats row */
.hub-quick-stats {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
}

.hub-stat-box {
  flex: 1;
  background: var(--card);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.hub-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.hub-stat-label {
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Tools list */
.hub-tools-list {
  padding: 0 20px;
}

.hub-tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(90, 90, 90, 0.1);
  cursor: pointer;
  transition: padding-left 0.15s;
  animation: hubFadeUp 0.4s ease-out both;
}

.hub-tool-item:hover { padding-left: 6px; }

.hub-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--deep);
  border: 1px solid rgba(90, 90, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hub-tool-info { flex: 1; }
.hub-tool-name { font-size: 0.9rem; font-weight: 500; }
.hub-tool-sub { font-size: 0.72rem; color: var(--gray); margin-top: 1px; }

.hub-tool-arrow {
  color: var(--gray);
  font-size: 0.8rem;
}

.hub-tool-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Activity section */
.hub-activity {
  padding: 0 20px;
}

.hub-activity-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(90, 90, 90, 0.1);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
}

.hub-activity-item:last-child { border-bottom: none; }
.hub-activity-emoji { flex-shrink: 0; font-size: 1rem; }
.hub-activity-text { flex: 1; color: var(--silver); line-height: 1.3; }
.hub-activity-time { color: var(--gray); font-size: 0.7rem; flex-shrink: 0; }

.hub-caught-up {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
  padding: 16px;
}

/* Animation */
@keyframes hubFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-scroll-card:nth-child(1) { animation-delay: 0.05s; }
.hub-scroll-card:nth-child(2) { animation-delay: 0.1s; }
.hub-scroll-card:nth-child(3) { animation-delay: 0.15s; }
.hub-scroll-card:nth-child(4) { animation-delay: 0.2s; }
.hub-tool-item:nth-child(1) { animation-delay: 0.05s; }
.hub-tool-item:nth-child(2) { animation-delay: 0.1s; }
.hub-tool-item:nth-child(3) { animation-delay: 0.15s; }
.hub-tool-item:nth-child(4) { animation-delay: 0.2s; }

/* ── Media Vault ── */

.vault-counts {
  padding: 0 16px 8px;
  font-size: 0.85rem;
  color: var(--gray);
}

.vault-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

.vault-item {
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.vault-item:hover {
  border-color: var(--gold-dim);
}

.vault-item-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--deep);
}

.vault-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vault-item-video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.vault-item-info {
  padding: 8px 10px;
}

.vault-item-caption {
  font-size: 0.75rem;
  color: var(--silver);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-item-prices {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 4px;
}

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

@media (min-width: 1024px) {
  .vault-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Smart Fan Lists ── */

.fans-segment {
  margin: 0 16px 10px;
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.fans-segment--empty {
  opacity: 0.5;
}

.fans-segment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.fans-segment-header:hover {
  background: var(--deep);
}

.fans-segment-icon {
  font-size: 1.1rem;
}

.fans-segment-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.fans-segment-count {
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.fans-segment-arrow {
  font-size: 0.6rem;
  color: var(--gray);
  transition: transform 0.2s;
}

.fans-segment-body {
  border-top: 1px solid rgba(90, 90, 90, 0.15);
}

.fans-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(90, 90, 90, 0.1);
  cursor: pointer;
  transition: background 0.2s;
}

.fans-item:last-child {
  border-bottom: none;
}

.fans-item:hover {
  background: var(--deep);
}

.fans-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.fans-item-info {
  flex: 1;
  min-width: 0;
}

.fans-item-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.fans-item-meta {
  font-size: 0.75rem;
  color: var(--gray);
  flex-shrink: 0;
}

/* ── Photo Review ── */

.review-card {
  margin: 0 16px 16px;
  background: var(--card);
  border: 1px solid rgba(90, 90, 90, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(90, 90, 90, 0.2);
}

.review-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
}

.review-counter {
  font-size: 0.75rem;
  color: var(--gray);
}

.review-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--black);
}

.review-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.review-image-wrap img.slide-left {
  transform: translateX(-100%);
  opacity: 0;
}

.review-image-wrap img.slide-right {
  transform: translateX(100%);
  opacity: 0;
}

.review-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.review-btn {
  padding: 16px;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.review-btn--reject {
  background: rgba(196, 78, 78, 0.15);
  color: var(--danger);
}

.review-btn--reject:hover {
  background: rgba(196, 78, 78, 0.3);
}

.review-btn--approve {
  background: rgba(78, 196, 110, 0.15);
  color: var(--success);
}

.review-btn--approve:hover {
  background: rgba(78, 196, 110, 0.3);
}

.review-btn-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-done {
  padding: 32px 16px;
  text-align: center;
  color: var(--gray);
}

.review-done-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.review-done-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  font-size: 0.85rem;
}

.review-done-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}
