:root {
  /* Core colors */
  --bg: #020617;
  --bg-soft: #0b1020;
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.16);
  --accent-light: #f97316;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.28);
  --success: #22c55e;
  --gold: #facc15;
  --primary: #6366f1;

  /* Extra accents */
  --accent-cyan: #22d3ee;
  --danger: #f97373;

  /* Radii & shadows */
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.9);
  --shadow-button: 0 14px 30px rgba(79, 70, 229, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 90%);
  color: var(--text);
  min-height: 100vh;
}

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 100vh;
}

/* HEADER (shared) */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #fde68a, #f97316 40%, #db2777 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #111827;
  box-shadow: 0 0 18px rgba(248, 250, 252, 0.25);
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page {
    padding: 12px 12px 24px;
  }
}

/* Host page layout tweaks */
.host-page .page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.host-page #live-section {
  flex: 1;
  display: flex;
}

.host-page .host-hero-card {
  flex: 1;
}

.pill {
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: pulse-dot 1.6s infinite;
}

.btn,
.btn-outline {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease;
}

.btn {
  background: radial-gradient(circle at 0 0, #22d3ee, transparent 40%),
    linear-gradient(135deg, #4f46e5, #ec4899);
  color: white;
  box-shadow: var(--shadow-button);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
}

.btn-outline.small {
  padding: 4px 10px;
  font-size: 11px;
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:active,
.btn-outline:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.9);
}

/* HOME PAGE HOSTS COLLECTION */

.title-section {
  margin-bottom: 18px;
  text-align: left;
}

.title-section h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .title-section h1 {
    font-size: 24px;
  }
}

.subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.hosts-refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
}

.hosts-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hosts-refresh-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.hosts-refresh-status {
  font-size: 10px;
  color: var(--muted);
}

.search-bar {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
  width: 180px;
  font-size: 12px;
}

.search-bar::placeholder {
  color: #6b7280;
}

.hosts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

@media (max-width: 640px) {
  .hosts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.host-card {
  display: block;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.24),
      transparent 52%
    ),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.94), #020617);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.host-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.95);
}

.host-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.host-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
  transition: transform 0.3s ease;
}

.host-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.host-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.host-status.live .dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.32);
}

.host-status.offline .dot {
  background: #facc15;
}

.host-status.prelive .dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.32);
}

.host-info {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.host-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.host-name {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
}

.host-tags span {
  font-size: 10px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-right: 4px;
  color: var(--muted);
}

.host-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.host-card-actions {
  display: flex;
  gap: 6px;
}

.host-card-chip {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 10px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.96);
}

.host-card-btn {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.host-card-btn.primary {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* HOST PAGE LAYOUT */

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

/* LIVE PLAYER CARD */

.host-hero-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.live-room-frame,
.live-room-frame .video-shell,
#live-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
}

#live-preview video,
#live-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-float-messages {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 84px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  pointer-events: none;
  z-index: 4;
}

.live-float-bubble {
  align-self: flex-start;
  max-width: 70%;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.3;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(10px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.live-float-bubble.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.live-gift-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.live-inline-chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.5);
  flex: 1;
  max-width: 100%;
}

.live-inline-chat-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  min-width: 0;
  flex: 1;
}

.live-inline-chat-input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.live-inline-chat-send {
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #111827;
  cursor: pointer;
}

.live-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
}

.live-overlay-top-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.live-overlay-top-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(
      circle at top left,
      rgba(248, 250, 252, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.live-circle-btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

.live-circle-btn:active {
  transform: scale(0.95);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.9);
}

.live-ribbon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.7);
  z-index: 3;
}

.live-actions-stack {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.live-badge-new {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.7);
}

.live-bottom-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  padding: 10px 10px 12px;
  z-index: 3;
}

.live-bottom-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  pointer-events: none;
}

.live-bottom-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.live-bottom-left {
  flex: 1.5;
}

.live-bottom-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.live-chat-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
  padding: 8px 10px 9px;
}

.live-chat-card .chat-body {
  max-height: 120px;
}

.live-chat-input-row {
  margin-top: 6px;
}

.live-hero-pricing {
  align-items: flex-end;
  gap: 8px;
}

.live-cta-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.live-gift-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 14px 32px rgba(251, 191, 36, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #111827;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.12s ease;
}

.live-gift-circle:active {
  transform: scale(0.94);
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.75);
}

.live-cta-btn {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.75);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.live-cta-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.7);
}

.live-secondary-actions {
  display: flex;
  gap: 6px;
}

.btn-call.secondary {
  padding-inline: 8px;
  font-size: 10px;
}

.host-busy-hero {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  z-index: 4;
}

.host-busy-inner {
  width: 100%;
  max-width: 480px;
  padding: 20px 18px 26px;
  text-align: center;
  color: var(--text);
}

.host-busy-title {
  font-size: 22px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
}

.host-busy-subtitle {
  font-size: 13px;
  color: rgba(249, 250, 251, 0.9);
  margin-bottom: 10px;
}

.host-busy-btn {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 6px;
  border-radius: 999px;
  padding: 8px 18px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 18px 40px rgba(251, 191, 36, 0.65);
  opacity: 0.9;
}

.host-busy-btn:disabled {
  cursor: default;
}

.host-busy-note {
  font-size: 11px;
  color: rgba(252, 211, 77, 0.95);
  margin-top: 4px;
}

@media (min-width: 768px) {
  .host-busy-title {
    font-size: 24px;
  }
}

.hero-header-row {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 3;
  pointer-events: none;
}

.hero-header-row .live-pill,
.hero-header-row .viewer-count {
  pointer-events: auto;
}

/* MOBILE REEL LAYOUT (HOST PAGE) */

.reel-wrapper {
  display: none;
}

.reel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.reel-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.reel-video video,
.reel-video canvas,
.reel-video iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.reel-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    transparent 40%
  );
}

.reel-host-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.reel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.reel-host-meta {
  flex: 1;
}

.reel-host-name {
  font-weight: 600;
  font-size: 15px;
}

.reel-host-tags {
  font-size: 11px;
  color: var(--muted);
}

.reel-live-badge {
  font-size: 10px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.95);
  color: #111827;
}

.reel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.reel-footer-main {
  display: flex;
  flex: 1;
  gap: 8px;
}

.reel-btn {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
}

.reel-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
}

.reel-footer-extra {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.reel-extra-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 10px;
  padding: 4px 8px;
}

/* Call overlay basics reuse modal styles */
#call-overlay-body {
  margin-top: 12px;
  min-height: 80px;
  font-size: 12px;
}

/* HOST STUDIO: CAMERA PREVIEW */

.studio-video-shell {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px dashed var(--border-soft);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-video-placeholder {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-video-placeholder video,
.studio-video-placeholder canvas,
.studio-video-placeholder iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.studio-call-shell {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-call-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.studio-call-video {
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
}

.studio-call-remote {
  position: absolute;
  inset: 0;
}

.studio-call-remote video,
.studio-call-remote canvas,
.studio-call-remote iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-call-self {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 90px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.85);
  background: rgba(15, 23, 42, 0.95);
}

.studio-call-self video,
.studio-call-self canvas,
.studio-call-self iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-call-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.studio-video-placeholder.has-video .studio-video-label,
.studio-video-placeholder.has-video .studio-video-icon,
.studio-video-placeholder.has-video .studio-video-help {
  display: none;
}

/* Viewer: simple tap-to-unmute banner when autoplay is blocked */
.autoplay-banner {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(10px);
  z-index: 5;
}

/* Private call UI (viewer overlay) */
.call-active-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

/* Host swipe transition effect */
.host-swipe-left {
  animation: hostSwipeLeft 0.18s ease-out forwards;
}

.host-swipe-right {
  animation: hostSwipeRight 0.18s ease-out forwards;
}

@keyframes hostSwipeLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-40px);
    opacity: 0;
  }
}

@keyframes hostSwipeRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(40px);
    opacity: 0;
  }
}

.gift-fx {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.9));
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.85), 0 18px 40px rgba(15, 23, 42, 0.98);
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  animation: giftFloatUp 1.7s ease-out forwards;
}

.live-gift-fx {
  bottom: 86px; /* just above CTA row */
  right: 36px;
}

.call-gift-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.call-gift-fx {
  bottom: 16px;
  right: 16px;
}

.gift-fx img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.gift-fx-fallback {
  font-size: 24px;
}

@keyframes giftFloatUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(-40px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
  }
}

.call-wait-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.call-wait-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.8), 0 12px 28px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

.call-wait-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.call-wait-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.98));
}

.call-wait-text {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.call-video-area {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 160px;
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
}

.call-remote-video {
  position: absolute;
  inset: 0;
}

.call-remote-video video,
.call-remote-video canvas,
.call-remote-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.call-self-preview {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 80px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

.call-self-preview video,
.call-self-preview canvas,
.call-self-preview iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.call-active-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.call-active-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.call-active-main {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 10px;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.98);
}

.call-active-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.call-active-footer button {
  flex: 1;
}

.call-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
}

.call-host-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-host-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #22d3ee, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.call-host-title {
  font-size: 12px;
  font-weight: 600;
}

.call-host-status {
  font-size: 11px;
  color: var(--muted);
}

.call-balance-pill {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
}

.call-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.call-controls-main {
  display: flex;
  gap: 8px;
}

.call-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.call-icon-btn.is-active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.18);
}

.call-end-btn {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97373, #dc2626);
  color: #f9fafb;
  border: none;
  padding: 10px 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  #call-overlay {
    align-items: stretch;
    inset: 0 0 64px 0; /* leave room for bottom nav */
  }
  #call-overlay .modal-card {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  #call-overlay-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

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

@keyframes modal-zoom-in {
  from {
    transform: translateY(12px) scale(0.96);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Host studio call overlay reuses modal styles */

/* ADMIN LAYOUT */

.admin-shell {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .admin-shell {
    flex-direction: column;
  }
}

.admin-sidebar {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 12px;
  font-size: 12px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  min-width: 220px;
  max-width: 260px;
}

.admin-sidebar-section + .admin-sidebar-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-sidebar-section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}

.admin-sidebar-link {
  width: 100%;
  text-align: left;
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  display: block;
}

.admin-sidebar-link:hover {
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.admin-sidebar-link.is-active {
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 10px 12px;
}

.admin-card h2 {
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-card-body {
  font-size: 12px;
  color: var(--muted);
}

.admin-list {
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
}

.admin-list li {
  margin-bottom: 3px;
}

.admin-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.admin-chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 11px;
  padding: 4px 10px;
  cursor: default;
}

.admin-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-footer {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* Admin hosts list */

.admin-host-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 6px;
}

.admin-host-main {
  flex: 1;
}

.admin-host-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-host-meta,
.admin-host-rates {
  font-size: 11px;
  color: var(--muted);
}

.admin-host-rates {
  margin-top: 2px;
}

.admin-host-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.admin-host-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border-soft);
}

.admin-host-status-pill.pending {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-host-status-pill.approved {
  border-color: var(--success);
  color: var(--success);
}

.admin-host-status-pill.suspended,
.admin-host-status-pill.denied {
  border-color: #f97373;
  color: #f97373;
}

.admin-host-actions button {
  font-size: 10px;
  padding: 3px 8px;
}

/* Admin users list */

.admin-user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 6px;
}

.admin-user-main {
  flex: 1;
}

.admin-user-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-user-meta {
  font-size: 11px;
  color: var(--muted);
}

.admin-user-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border-soft);
}

.admin-user-badge.banned {
  border-color: #f97373;
  color: #f97373;
}

/* Admin coin plans */

.admin-plan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 6px;
}

.admin-plan-main {
  flex: 1;
}

.admin-plan-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-plan-meta {
  font-size: 11px;
  color: var(--muted);
}

.admin-plan-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.admin-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border-soft);
}

.admin-plan-badge.active {
  border-color: var(--success);
  color: var(--success);
}

.admin-plan-badge.inactive {
  border-color: #9ca3af;
  color: #9ca3af;
}

/* Admin payouts */

.admin-payout-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 6px;
}

.admin-payout-main {
  flex: 1;
}

.admin-payout-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-payout-meta {
  font-size: 11px;
  color: var(--muted);
}

.admin-payout-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.admin-payout-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border-soft);
}

.admin-payout-status.pending {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-payout-status.paid {
  border-color: var(--success);
  color: var(--success);
}

.admin-payout-status.rejected {
  border-color: #f97373;
  color: #f97373;
}

/* Admin live streams */

.admin-live-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 6px;
}

.admin-live-main {
  flex: 1;
}

.admin-live-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-live-meta {
  font-size: 11px;
  color: var(--muted);
}

.admin-live-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.admin-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid var(--border-soft);
  color: var(--success);
}

.card {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 52%
    ),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.99));
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 10px 10px 12px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #fb923c);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: white;
}

.viewer-count {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.viewer-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
}

.tag-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.tag-pill {
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.video-shell {
  border-radius: 16px;
  background: #020617;
}

.live-video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-overlay-bottom {
  position: absolute;
  inset: auto 0 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.host-inline-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.host-thumb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(248, 250, 252, 0.85);
  box-shadow: 0 0 12px rgba(248, 250, 252, 0.5);
}

.host-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.host-meta-rating {
  font-size: 11px;
  color: var(--muted);
}

.hero-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.host-tagline {
  font-size: 11px;
  color: var(--muted);
}

.call-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-call {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(16px);
}

.btn-call.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-call.primary {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border: none;
  color: #052e16;
}

.btn-call .icon {
  font-size: 13px;
}

.price-text {
  display: none;
}

/* RIGHT SIDE PANEL */

.side-panel {
  display: none;
}

.host-profile-card {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), #020617);
}

.host-profile-card .host-header-row {
  margin-bottom: 8px;
}

.host-profile-card .host-badges-row {
  margin: 6px 0 8px;
}

/* HOST CARD ON HOST PAGE */

.host-card {
  background: radial-gradient(circle at top right, rgba(248, 250, 252, 0.18), transparent 55%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
}

.host-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.host-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(248, 250, 252, 0.85);
}

.host-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.host-label-name {
  font-size: 13px;
  font-weight: 600;
}

.host-label-line {
  font-size: 11px;
  color: var(--muted);
}

.host-rating {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: var(--gold);
}

.host-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 10px;
}

.host-badge {
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.about-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.coins-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.coins-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fef9c3, #f59e0b 58%, #b45309 90%);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
}

.coins-sub {
  font-size: 10px;
  color: var(--muted);
}

.btn-small {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #f9fafb;
}

.gift-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.gift-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: all 0.16s ease;
  font-size: 10px;
  color: var(--text);
}

.gift-item:hover {
  border-color: var(--accent-light);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.3);
  transform: translateY(-1px);
}

.gift-emoji {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

.gift-coins {
  color: var(--accent-light);
  font-size: 10px;
}

/* CHAT CARD */

.chat-card {
  flex: 1;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.chat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-rules {
  font-size: 10px;
  color: var(--muted);
}

.chat-body {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
  overflow-y: auto;
  max-height: 180px;
}

.msg {
  margin-bottom: 6px;
  max-width: 85%;
}

.msg.me {
  margin-left: auto;
  text-align: right;
}

.msg-bubble {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 10px;
  line-height: 1.3;
}

.msg.host .msg-bubble {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.msg.me .msg-bubble {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.msg-meta {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.chat-input-row {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.chat-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  padding: 7px 10px;
  color: var(--text);
  font-size: 11px;
  outline: none;
}

.chat-input::placeholder {
  color: #6b7280;
}

.btn-send {
  border-radius: 999px;
  padding: 7px 10px;
  border: none;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: #111827;
  cursor: pointer;
}

.btn-send.gift {
  padding-inline: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text);
}

/* MORE HOSTS SECTION ON HOST PAGE */

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 8px;
  font-size: 13px;
}

.section-sub {
  font-size: 11px;
  color: var(--muted);
}

.hosts-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.host-card-small {
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.28), transparent 58%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.host-card-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.95);
  border-color: var(--accent-light);
}

.host-card-img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.host-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.host-card-status {
  display: none;
}

.host-card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

.host-card-status.intro .host-card-status-badge {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.host-card-body {
  padding: 7px 9px 8px;
  font-size: 11px;
}

.host-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.host-card-name {
  font-weight: 600;
}

.host-card-tagline {
  font-size: 10px;
  color: var(--muted);
}

.host-card-tags-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}

.host-card-tag-pill {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* ===================== */
/* HOST STUDIO LAYOUT    */
/* ===================== */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 16px;
  }
}

.studio-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}

.studio-sub-line {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.studio-status-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.9);
}

.studio-status-chip .status-offline {
  color: #f97316;
}

.studio-status-chip .status-live {
  color: #22c55e;
}

.studio-video-shell {
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), #020617 70%);
  padding: 10px;
  min-height: 250px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.studio-video-placeholder {
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
}

.studio-video-label {
  font-size: 12px;
  color: var(--muted);
}

.studio-video-icon {
  font-size: 40px;
}

.studio-video-help {
  font-size: 11px;
  color: var(--muted);
}

.studio-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.primary-wide {
  min-width: 140px;
  justify-content: center;
  font-size: 14px;
  padding: 10px 18px;
}

.studio-toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.studio-toggle input {
  display: none;
}

.studio-toggle-slider {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
  position: relative;
  transition: background 0.15s ease;
}

.studio-toggle-slider::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0f172a;
  top: 2px;
  left: 2px;
  transition: transform 0.15s ease;
}

.studio-toggle input:checked + .studio-toggle-slider {
  background: #22c55e;
}

.studio-toggle input:checked + .studio-toggle-slider::before {
  transform: translateX(12px);
}

.studio-toggle-label {
  cursor: pointer;
}

/* Host studio controls – mobile layout */
@media (max-width: 640px) {
  .studio-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-controls-row .primary-wide {
    width: 100%;
    justify-content: center;
  }

  .studio-toggle-group {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* FORM */

.studio-form {
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.96);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-form-row label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.studio-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
}

.studio-input::placeholder {
  color: #6b7280;
}

.studio-input.tiny {
  width: 70px;
  text-align: center;
}

.studio-checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.studio-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
}

/* RIGHT SIDE */

.studio-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-card {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
}

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

.studio-card-title {
  font-size: 13px;
  font-weight: 600;
}

.studio-card-sub {
  font-size: 11px;
  color: var(--muted);
}

.studio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 900px) {
  .studio-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.studio-metric {
  padding: 8px 8px;
  border-radius: 12px;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.26), transparent 70%);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.studio-metric-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.studio-metric-value {
  font-size: 18px;
  font-weight: 700;
}

.studio-metric-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.studio-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.studio-rate-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.studio-card-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.studio-log {
  margin-top: 6px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.studio-log-line {
  margin-bottom: 4px;
  color: var(--muted);
}

/* FOOTER */

footer {
  margin-top: 20px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* WALLET PAGE */
.wallet-title-section {
  margin-bottom: 10px;
}

.wallet-page-main {
  max-width: 420px;
  margin: 0 auto 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-page-card {
  margin-top: 0;
}

.wallet-plans-section {
  font-size: 12px;
}

.wallet-plans-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* PROFILE PAGE */
.profile-title-section {
  margin-bottom: 10px;
}

.profile-page-main {
  max-width: 420px;
  margin: 0 auto 16px;
  width: 100%;
}

.profile-card {
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
}

.profile-page-avatar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-page-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.profile-page-avatar-img,
.profile-page-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
}

.profile-page-avatar-img {
  object-fit: cover;
}

.profile-page-avatar-fallback {
  border: 1px solid currentColor;
}

.profile-page-avatar-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-page-fields {
  margin-top: 6px;
}

/* MOBILE BOTTOM NAV */

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid var(--border-soft);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px 8px;
  z-index: 40;
  backdrop-filter: blur(18px);
}

.mobile-nav-item {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mobile-nav-icon {
  font-size: 18px;
}

.mobile-nav-label {
  font-size: 10px;
}

.mobile-nav-item.is-active {
  color: var(--text);
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
  }

  .page {
    padding-bottom: 80px;
  }
}

/* HOST STUDIO: MOBILE BOTTOM NAV */

.host-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 10px 10px;
  z-index: 60;
}

.host-mobile-nav-item {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.host-mobile-nav-icon {
  font-size: 18px;
}

.host-mobile-nav-label {
  font-size: 10px;
}

.host-mobile-nav-item.is-active {
  color: var(--text);
}

@media (max-width: 768px) {
  .host-top-nav {
    display: none;
  }
}

/* GIFT PICKER */

.gift-picker-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
  background: transparent;
}

.gift-picker-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 76px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.24), transparent 60%),
    rgba(15, 23, 42, 0.97);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.98);
  padding: 8px 10px 10px;
  animation: modal-zoom-in 0.2s ease-out;
}

.gift-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.gift-picker-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.gift-picker-warning {
  font-size: 11px;
  color: #f97373;
  margin-bottom: 4px;
}

.gift-picker-body {
  max-height: 240px;
  overflow-y: auto;
}

.gift-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .gift-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gift-picker-item {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  padding: 6px 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-size: 11px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.gift-picker-item:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.95);
}

.gift-picker-emoji {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  font-size: 20px;
}

.gift-picker-emoji img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.gift-picker-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

.gift-picker-cost {
  font-size: 10px;
  color: var(--muted);
}

/* SIMPLE MODALS */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: modal-fade-in 0.2s ease-out;
}

.modal-card {
  max-width: 360px;
  width: 100%;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 52%
    ),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 12px 14px 14px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.95);
  animation: modal-zoom-in 0.22s ease-out;
}

/* Profile / wallet "page" modal */
#profile-modal {
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
}

@media (max-width: 768px) {
  #profile-modal {
    align-items: flex-start;
    justify-content: stretch;
    inset: 0 0 64px 0; /* leave space for bottom nav */
  }
  #profile-modal .modal-card {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 16px 24px;
    overflow-y: auto;
  }
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  margin-bottom: 8px;
}

.modal-field span {
  color: var(--muted);
}

.modal-switch {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.modal-history {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}

.modal-history button {
  margin-top: 4px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.profile-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.profile-hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-hero-name {
  font-size: 14px;
  font-weight: 600;
}

.profile-hero-username {
  font-size: 11px;
}

.profile-hero-meta {
  font-size: 11px;
}

.wallet-card {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
}

.wallet-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.wallet-balance {
  font-size: 18px;
  font-weight: 600;
}

.wallet-get-coins-btn {
  padding-inline: 14px;
}

.wallet-history {
  margin-top: 4px;
}

.wallet-history-title {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.wallet-history-item {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
