/* ==========================================================================
   Loreva PC Web Portal — Complete International Cyber-Luxe Dark System
   Dedicated for loreva.hk & www.loreva.hk
   ========================================================================== */

:root {
  --bg-deep: #0a0709;
  --bg-main: #0f0a0d;
  --bg-topbar: rgba(15, 10, 13, 0.94);
  --bg-card: #181116;
  --bg-card-hover: #221820;
  --bg-card-glass: rgba(24, 17, 22, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(236, 72, 153, 0.35);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-pink: #ec4899;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1680px;
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0709; }
::-webkit-scrollbar-thumb { background: #261921; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b2734; }

.portal-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.portal-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0 8px;
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-glow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 0 10px #f43f5e;
}

.brand-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.brand-social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.brand-social-btn svg { width: 16px; height: 16px; fill: currentColor; }

.channel-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.tab-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-block;
}
.tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.tab-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.search-box-wrap {
  position: relative;
  width: 200px;
  transition: width 0.3s ease;
}
.search-box-wrap:focus-within {
  width: 260px;
}

.search-input-field {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.search-input-field:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.08);
}
.search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-create {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-create:hover { background: rgba(255, 255, 255, 0.12); }
.btn-login {
  background: #fff;
  color: #0f0a0d;
}
.btn-login:hover { background: #f1f5f9; }

/* Language & Gender Dropdowns */
.gender-select-wrap { position: relative; }
.lang-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-toggle-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

.gender-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #191216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: none;
  min-width: 140px;
  overflow: hidden;
  z-index: 210;
}
.gender-dropdown-menu.show { display: block; }
.gender-item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.gender-item:hover, .gender-item.selected {
  background: rgba(236, 72, 153, 0.15);
  color: #fff;
}

/* User Profile Widget in Header */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gems-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gems-pill-badge:hover {
  background: rgba(236, 72, 153, 0.22);
  transform: translateY(-1px);
}
.gem-red-num { color: #f43f5e; font-size: 11px; }
.btn-quick-add {
  background: #f43f5e;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-left: 3px;
}

.user-avatar-wrap {
  position: relative;
  cursor: pointer;
}
.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(236, 72, 153, 0.5);
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #191216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0,0,0,0.8);
  min-width: 190px;
  display: none;
  padding: 6px 0;
  z-index: 220;
}
.user-dropdown-menu.show { display: block; }
.dropdown-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.dropdown-name { font-size: 14px; font-weight: 700; color: #fff; }
.dropdown-email { font-size: 11px; color: var(--text-dim); }
.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dropdown-item.text-danger { color: #f43f5e; }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 0; }

/* Sub row */
.header-sub-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 2px;
}
.limitless-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.limitless-text-box { text-align: right; line-height: 1.15; }
.limitless-label { font-size: 12px; font-weight: 700; color: #fff; display: block; }
.limitless-sub { font-size: 10px; color: var(--text-dim); display: block; }
.switch-toggle {
  width: 34px;
  height: 18px;
  background: #2b1f26;
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.25s ease;
}
.switch-knob {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s ease;
}
.switch-toggle.active { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.switch-toggle.active .switch-knob { transform: translateX(16px); }

/* ==========================================================================
   Mobile Navigation Drawer & Hamburger Trigger
   ========================================================================== */
.mobile-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.mobile-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 380px;
  height: 100%;
  background: #140d12;
  border-left: 1px solid rgba(236, 72, 153, 0.25);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.show .mobile-drawer-content {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-drawer-close:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--accent-pink);
}
.mobile-search-bar {
  position: relative;
  margin-bottom: 20px;
}
.mobile-search-bar .search-input-field {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  font-size: 14px;
}
.mobile-search-bar .search-icon-svg {
  left: 12px;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
  color: #fff;
}
.mobile-nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.mobile-badge-new {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.mobile-drawer-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mobile-lang-chip {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-lang-chip:hover, .mobile-lang-chip.active {
  background: rgba(236, 72, 153, 0.18);
  border-color: var(--accent-pink);
  color: #fff;
  font-weight: 600;
}
.mobile-limitless-btn {
  justify-content: space-between;
  width: 100%;
  padding: 6px 0;
}
.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-user-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-user-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-pink);
  object-fit: cover;
}
.mobile-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.mobile-email {
  font-size: 12px;
  color: var(--text-dim);
}
.mobile-gems-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 10px;
  font-size: 12px;
}
.btn-mobile-topup {
  background: var(--accent-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.btn-mobile-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f43f5e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-mobile-login {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.btn-mobile-signup {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Hero Spotlight Section (Official Portal Hero)
   ========================================================================== */
.portal-hero-strip {
  position: relative;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0d070b url('/assets/images/backgrounds/hero_ambient_bg.png') no-repeat center top;
  background-size: cover;
  overflow: hidden;
}
.portal-hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 13, 0.45) 0%, rgba(15, 10, 13, 0.82) 55%, #0f0a0d 100%);
  pointer-events: none;
}
.hero-dual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-dual-grid { grid-template-columns: 1fr; }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: #ec4899;
  margin-bottom: 18px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
}

.hero-h1-heading {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 18px;
}
.gradient-text {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-p-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-cta-button-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
  transition: all 0.25s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats-line {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.stat-value { font-size: 20px; font-weight: 800; color: #fff; }
.stat-label { font-size: 12px; color: var(--text-dim); }

/* Spotlight Story Card */
.spotlight-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.9), 0 0 35px rgba(236, 72, 153, 0.3);
}
.spotlight-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight-gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 13, 0.98) 0%, rgba(15, 10, 13, 0.6) 40%, transparent 100%);
}
.spotlight-badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(244, 63, 94, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}
.spotlight-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}
.spotlight-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.spotlight-hook {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spotlight-star-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d1d5db;
}
.spotlight-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-pink);
}
.btn-spotlight-enter {
  background: #fff;
  color: #0f0a0d;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Stories & Characters Filter & Grid
   ========================================================================== */
.stories-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Featured Header with More Link */
.featured-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.featured-title-wrap h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.featured-subtitle {
  font-size: 14px;
  color: var(--text-dim);
}
.btn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-more-link:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(236, 72, 153, 0.5);
  color: var(--accent-pink);
  transform: translateX(3px);
}
.btn-more-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s;
}
.btn-more-link:hover svg {
  transform: translateX(2px);
}

/* Explore All Stories Banner */
.view-all-stories-bar {
  margin-top: 36px;
  text-align: center;
}
.btn-view-all-stories {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.btn-view-all-stories:hover {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
  color: #fff;
}
.channel-pill-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.filter-tab:hover, .filter-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.stories-count-hint { font-size: 13px; color: var(--text-dim); }

.portal-main { padding: 32px 0 60px; }

.character-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
@media (max-width: 1599px) and (min-width: 1360px) {
  .character-card-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
}
@media (max-width: 1359px) and (min-width: 1080px) {
  .character-card-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 1079px) and (min-width: 768px) {
  .character-card-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 767px) {
  .character-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Tipsy Style Card */
.tipsy-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 14.5;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}
.tipsy-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(236, 72, 153, 0.2);
}
.tipsy-card-poster,
.tipsy-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tipsy-card:hover .tipsy-card-poster,
.tipsy-card:hover .tipsy-card-video {
  transform: scale(1.05);
}

.tipsy-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 9, 11, 0.98) 0%, rgba(14, 9, 11, 0.72) 35%, rgba(14, 9, 11, 0.2) 65%, transparent 100%);
}
.tipsy-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.tipsy-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tipsy-card-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.tipsy-card-video-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
}
.tipsy-card:hover .tipsy-card-video-indicator {
  background: rgba(244, 63, 94, 0.9);
  border-color: transparent;
  transform: scale(1.1);
}
.tipsy-card-video-indicator svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-left: 1px;
}
.tipsy-card-tagline {
  font-size: 11px;
  color: #d1d5db;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.tipsy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.creator-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.creator-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.creator-handle {
  color: #e5e7eb;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.play-count-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
  flex-shrink: 0;
}
.play-count-meta svg { width: 12px; height: 12px; fill: currentColor; }

/* Promotional Banner Card */
.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 14.8;
  background: linear-gradient(180deg, #c26922 0%, #4a210b 50%, #150a04 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-badge-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fed7aa; text-transform: uppercase; }
.promo-title-gold {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 12px 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
}
.promo-subtitle-text { font-size: 12px; color: #ffedd5; line-height: 1.4; margin-bottom: 16px; }
.promo-countdown {
  display: inline-flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fde047;
  margin: 0 auto 16px;
}
.promo-btn-action {
  background: #38bdf8;
  color: #032b43;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* ==========================================================================
   Official Features & FAQ Sections
   ========================================================================== */
.features-section {
  position: relative;
  padding: 88px 0;
  background: #090508 url('/assets/images/backgrounds/features_ambient_bg.png') no-repeat center center;
  background-size: cover;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 10, 13, 0.72) 0%, rgba(9, 5, 8, 0.94) 100%);
  pointer-events: none;
}
.features-section .portal-container {
  position: relative;
  z-index: 1;
}
.section-header-center { text-align: center; margin-bottom: 48px; }
.badge-pill-center {
  display: inline-block;
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent-pink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.section-h2-large { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.section-p-sub { font-size: 15px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.features-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .features-four-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-four-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.feat-icon-box { font-size: 36px; margin-bottom: 16px; }
.feat-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Download Banner Strip */
.download-cta-banner {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(244,63,94,0.15) 0%, rgba(168,85,247,0.1) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.download-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.banner-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.banner-sub { font-size: 14px; color: #cbd5e1; }
.banner-btn-group { display: flex; gap: 14px; }

/* FAQ */
.faq-section { padding: 64px 0; }
.faq-accordion-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-arrow { font-size: 12px; color: var(--text-dim); transition: transform 0.25s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   Roleplay Drawer Modal (Preview & Direct Play)
   ========================================================================== */
.roleplay-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.roleplay-drawer-backdrop.show { display: flex; }
.roleplay-drawer-box {
  background: #150d11;
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.15);
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  position: relative;
  max-height: 85vh;
}
@media (max-width: 768px) {
  .roleplay-drawer-box { grid-template-columns: 1fr; max-height: 90vh; }
  .drawer-poster-side { display: none; }
}
.drawer-poster-side { position: relative; background: #0f0a0c; overflow: hidden; }
.drawer-poster-img { width: 100%; height: 100%; object-fit: cover; }
.drawer-poster-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #150d11 0%, transparent 40%); }
.drawer-info-side { padding: 36px 32px; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.drawer-close-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.drawer-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.drawer-creator-line { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.drawer-tagline-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-pink);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.5;
  margin-bottom: 20px;
}
.drawer-section-h {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.drawer-opening-text { font-size: 13px; color: #9ca3af; line-height: 1.6; margin-bottom: 24px; }
.drawer-cta-action { margin-top: auto; display: flex; gap: 12px; }
.btn-drawer-chat {
  flex: 1;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

/* Character related scenes list inside drawer */
.char-related-scenes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.scene-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.scene-mini-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(236, 72, 153, 0.4); }
.scene-mini-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.scene-mini-info { flex: 1; overflow: hidden; }
.scene-mini-title { font-size: 13px; font-weight: 700; color: #fff; }
.scene-mini-hook { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-mini-btn { font-size: 12px; font-weight: 700; color: var(--accent-pink); }

/* ==========================================================================
   Native PC Play Terminal Page (play.php)
   ========================================================================== */
/* ==========================================================================
   Tipsy Parity: Cinematic Ambient Play Room & Translucent Terminal
   ========================================================================== */
.play-room-body {
  background: #0d060a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Ambient Blurred Backdrop - Tipsy Parity (Clearer & More Atmospheric) */
.play-ambient-backdrop {
  position: fixed;
  inset: -10px;
  background-image: url('/assets/images/backgrounds/play_ambient_bg.png');
  background-size: cover;
  background-position: center 30%;
  filter: blur(4px) brightness(0.96) saturate(118%);
  opacity: 0.96;
  z-index: 0;
  transform: scale(1.02);
  pointer-events: none;
}
.play-ambient-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(14, 8, 12, 0.12) 0%, rgba(9, 4, 8, 0.58) 90%);
  z-index: 0;
  pointer-events: none;
}

/* Standalone Play Terminal Minimal Topbar (No full site nav, clean modal/window experience) */
.play-standalone-topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(9, 4, 8, 0.75) 0%, rgba(9, 4, 8, 0) 100%);
  backdrop-filter: blur(8px);
}
.play-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-play-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-play-back:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.05);
}
.brand-play-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.play-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-play-close-window {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-play-close-window:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Main Stage Container */
.play-stage-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 28px;
}
.play-stage-container {
  width: 100%;
  max-width: 1320px;
  height: 84vh;
  max-height: 860px;
  min-height: 580px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
}
@media (max-width: 1080px) {
  .play-stage-container {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

/* Left: Big Visual Persona Card (Tipsy PC Parity) */
.stage-poster-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  background: #140b11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(236, 72, 153, 0.12);
}
@media (max-width: 1080px) {
  .stage-poster-card { height: 420px; }
}

.stage-media-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}
.stage-poster-img,
.stage-poster-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.poster-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.poster-cid-pill {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.04em;
}
.btn-toggle-profile {
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-toggle-profile:hover {
  background: rgba(236, 72, 153, 0.4);
  border-color: rgba(236, 72, 153, 0.6);
}

.poster-bottom-watermark {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Overlaid Profile Drawer on Poster */
.poster-profile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  z-index: 3;
  padding: 60px 24px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.poster-profile-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.profile-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overlay-char-name { font-size: 22px; font-weight: 850; color: #fff; }
.overlay-char-tagline { font-size: 13px; color: var(--accent-pink); line-height: 1.45; }
.overlay-section-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; margin-top: 6px; }
.overlay-section-text { font-size: 13px; color: #cbd5e1; line-height: 1.55; }
.overlay-section-text.highlight { color: #fde047; font-weight: 600; }

/* Right: Translucent Glass Chat Terminal */
.stage-chat-window {
  position: relative;
  border-radius: 20px;
  background: rgba(20, 11, 17, 0.72);
  backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.chat-window-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
}
.header-star-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(236, 72, 153, 0.4);
}
.chat-star-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* Tipsy Parity: Intimacy Relationship Level Badge */
.badge-rel-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.badge-rel-level:hover {
  background: rgba(37, 99, 235, 0.4);
  border-color: rgba(147, 197, 253, 0.8);
  transform: scale(1.04);
}
.badge-rel-level .level-icon {
  font-size: 11px;
}

.chat-status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.status-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Tipsy Parity Action Chips: White Noise, Like, Favorite */
.btn-chat-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-chat-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-chat-chip.active {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.6);
  color: #f472b6;
}
.btn-chat-chip .chip-svg {
  width: 14px;
  height: 14px;
}
.btn-chat-action-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-chat-action-circle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.chat-menu-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: #1a0f16;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  min-width: 170px;
  padding: 6px;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.chat-menu-dropdown.show { display: flex; }
.chat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s ease;
}
.chat-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Guest Warning Banner */
.chat-guest-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(244, 63, 94, 0.15));
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #fef3c7;
}
.guest-banner-icon { font-size: 16px; flex-shrink: 0; }
.guest-banner-text { flex: 1; line-height: 1.4; }
.guest-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-guest-login {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f59e0b;
  color: #000;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}
.btn-guest-signup {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
}

/* Scrollable Messages Viewport */
.chat-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.chat-messages-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

/* Opening Tagline Card */
.chat-tagline-card {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.4;
}
.tagline-badge {
  color: #f43f5e;
  font-weight: 700;
  margin-right: 6px;
}

/* Opening Atmospheric Narration */
.opening-narration-row {
  width: 100%;
}
.narration-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--accent-pink);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.narration-head-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sound-icon-btn { font-size: 12px; cursor: pointer; }
.narration-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-pink);
}
.narration-paragraphs {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.65;
}
.narration-stats-pill {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 4px;
}

/* Regular Chat Messages */
.message-row {
  display: flex;
  gap: 12px;
}
.bubble-avatar-box { flex-shrink: 0; }
.bubble-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.bubble-content-box {
  max-width: 78%;
  display: flex;
  flex-direction: column;
}
.bubble-sender {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.message-user {
  flex-direction: row-reverse;
}
.message-user .bubble-content-box {
  align-items: flex-end;
}
.message-user .bubble-text {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  padding: 10px 16px;
  border-radius: 16px 4px 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}

.message-assistant .bubble-text {
  background: rgba(30, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  padding: 12px 18px;
  border-radius: 4px 16px 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

/* 消息分段展示：画外音 / 旁白 (Narration) 与 台词 (Dialogue) */
.part-narration {
  color: #d1d5db;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 5px 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(236, 72, 153, 0.45);
}
.part-narration .narration-star {
  color: rgba(236, 72, 153, 0.6);
  font-weight: bold;
  margin: 0 1px;
}

.part-dialogue {
  color: #ffffff;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 6px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.part-dialogue .dialogue-quote {
  color: #f472b6;
  font-weight: 700;
  margin: 0 2px;
}

.part-thought {
  color: #94a3b8;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0;
}

.part-speaker {
  margin: 6px 0;
}
.part-speaker .speaker-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 6px;
}

/* AI 消息卡片底部操作条 (Voice / Image / Video / Copy) */
.bubble-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bubble-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.bubble-act-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.bubble-act-btn.active {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.6);
  background: rgba(244, 114, 182, 0.16);
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.25);
}
.bubble-act-btn .act-svg {
  width: 12px;
  height: 12px;
}

/* 消息流内嵌生成的场景图/视频卡片 */
.bubble-media-slot {
  margin-top: 8px;
}
.bubble-media-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  max-width: 320px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.bubble-media-card img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.bubble-media-card img:hover {
  transform: scale(1.03);
}
.bubble-media-card video {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.media-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.bubble-media-loading {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  margin-top: 8px;
  animation: pulseMediaLoading 1.8s infinite ease-in-out;
}
@keyframes pulseMediaLoading {
  0%, 100% { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.02); }
  50% { border-color: rgba(236, 72, 153, 0.4); background: rgba(236, 72, 153, 0.06); }
}

/* Typing Dots */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  margin-right: 4px;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Bottom Console */
.chat-bottom-console {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 5, 9, 0.65);
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tools Bar */
.chat-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tools-left, .tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.tool-sym { font-weight: 700; color: var(--accent-pink); }

.tool-btn-icon {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tool-btn-icon .tool-chip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tool-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.tool-btn-icon.active {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.55);
  color: #f472b6;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

/* Inspiration Choices Drop-bar */
.chat-inspiration-bar {
  background: rgba(26, 12, 22, 0.95);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inspiration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-pink);
}
.btn-close-choices {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
}
.inspiration-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inspiration-pill-btn {
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
  transition: all 0.2s ease;
}
.inspiration-pill-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
}

/* Lower Input Row */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 14, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 6px 10px 6px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-row:focus-within {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.15);
}
.btn-inspiration-bulb {
  background: transparent;
  border: none;
  color: #a855f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.btn-inspiration-bulb:hover {
  transform: scale(1.15);
  color: #c084fc;
}
.chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  line-height: 1.4;
}
.btn-chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-chat-send:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

/* Auth Modal Box */
.auth-prompt-modal-box {
  max-width: 480px;
  padding: 36px 30px;
  text-align: center;
}
.auth-prompt-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.auth-prompt-h2 {
  font-size: 24px;
  font-weight: 850;
  color: #fff;
  margin-bottom: 8px;
}
.auth-prompt-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.auth-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-prompt-login {
  display: block;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn-prompt-signup {
  display: block;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Minimal Footer for Play Room */
.play-room-footer {
  position: relative;
  z-index: 1;
  padding: 14px 0 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
.play-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.play-footer-nav a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.play-footer-nav a:hover { color: #fff; }
.play-footer-copy { margin-left: auto; }

/* ==========================================================================
   Shop & Pricing Page (shop.php)
   ========================================================================== */
.shop-hero-section {
  padding: 48px 0;
  background: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}
.shop-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.shop-main-title { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.shop-subtitle { font-size: 15px; color: var(--text-muted); }

.user-assets-box {
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
}
.asset-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; }
.asset-badges-row { display: flex; gap: 20px; }
.asset-badge { display: flex; align-items: center; gap: 8px; }
.asset-val { font-size: 18px; font-weight: 800; color: #fff; display: block; line-height: 1; }
.asset-lbl { font-size: 11px; color: var(--text-dim); }

.shop-section-heading { margin-bottom: 24px; }
.section-h2 { font-size: 24px; font-weight: 800; color: #fff; }
.section-desc { font-size: 13px; color: var(--text-dim); }

.gems-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .gems-pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gems-pack-grid { grid-template-columns: 1fr; }
}
.gem-sku-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.gem-sku-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
.sku-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.sku-gem-large { font-size: 42px; display: block; margin-bottom: 12px; }
.sku-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sku-amount-total { font-size: 22px; font-weight: 900; color: #38bdf8; margin-bottom: 4px; }
.sku-amount-split { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.highlight-bonus { color: #f43f5e; font-weight: 700; }
.sku-price-row { margin-bottom: 20px; }
.currency-sign { font-size: 16px; color: var(--text-muted); }
.sku-price-num { font-size: 28px; font-weight: 900; color: #fff; }
.currency-code { font-size: 12px; color: var(--text-dim); }

.btn-buy-sku {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-buy-sku:hover {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

/* Subscription Plans Grid */
.billing-cycle-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}
.cycle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cycle-btn.active {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.4);
}
.badge-save {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.pending-order-banner {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #fff;
}
.pending-order-banner a {
  color: #f43f5e;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 8px;
}

.subscription-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .subscription-plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .subscription-plans-grid { grid-template-columns: 1fr; }
}
.sub-plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.sub-plan-card.featured-plan {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}
.plan-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 24px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.plan-perks-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.plan-perks-list li { font-size: 13px; color: #cbd5e1; }
.btn-subscribe {
  margin-top: auto;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-subscribe.btn-featured {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

/* Checkout Modal */
.checkout-modal-box {
  background: #191216;
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 20px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
}
.checkout-modal-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 20px; }
.checkout-item-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.checkout-item-name { font-size: 15px; font-weight: 700; color: #fff; }
.checkout-item-desc { font-size: 12px; color: var(--text-dim); }
.checkout-item-price { font-size: 20px; font-weight: 900; color: var(--accent-pink); }

.pay-method-group { margin-bottom: 28px; }
.pay-method-label { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 10px; }
.pay-method-option {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
}
.pay-method-option.selected {
  border-color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.1);
}
.method-name { font-size: 14px; font-weight: 700; color: #fff; }
.method-sub { font-size: 11px; color: var(--text-dim); margin-left: 20px; }

.btn-submit-pay {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

/* ==========================================================================
   Auth Pages (login.php & register.php)
   ========================================================================== */
.auth-page-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0c080d url('/assets/images/backgrounds/auth_ambient_bg.png') no-repeat center center fixed;
  background-size: cover;
  padding: 24px;
  overflow-x: hidden;
}
.auth-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(12, 8, 13, 0.52) 0%, rgba(8, 5, 9, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}
.auth-card-container {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.auth-brand-logo { margin-bottom: 24px; display: inline-block; }
.auth-card-box {
  background: rgba(22, 14, 19, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(236, 72, 153, 0.15);
  text-align: left;
}
.auth-card-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.auth-card-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.auth-field-group { margin-bottom: 18px; }
.auth-label { font-size: 12px; font-weight: 700; color: #d1d5db; display: block; margin-bottom: 6px; }
.auth-input {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.auth-input:focus { border-color: var(--accent-pink); background: rgba(255, 255, 255, 0.08); }
.captcha-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.captcha-img-box {
  width: 120px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.captcha-img-box:hover {
  border-color: var(--accent-pink);
}
.captcha-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.btn-auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5);
}
.btn-auth-submit:active {
  transform: translateY(1px);
}

/* Password Input with Show/Hide Toggle */
.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password-wrapper .auth-input {
  width: 100%;
  padding-right: 42px;
}
.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.btn-toggle-password:hover {
  color: #fff;
}
.btn-toggle-password.active {
  color: var(--accent-pink);
}

/* Remember Me & Forgot Password Row */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  font-size: 13px;
}
.auth-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.auth-checkbox:checked {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
}
.auth-checkbox:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.auth-forgot-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-forgot-link:hover {
  color: var(--accent-pink);
}

/* ==========================================================================
   Third-party OAuth Section (Google, Apple, Discord, etc.)
   ========================================================================== */
.oauth-section-container {
  margin-top: 24px;
}
.auth-divider-line {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
}
.auth-divider-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.auth-divider-line span {
  position: relative;
  background: #111115;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.oauth-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-oauth-main {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-oauth-main:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-oauth-main:active {
  transform: translateY(1px);
}
.oauth-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.oauth-svg-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.oauth-btn-text {
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* Multiple Icon Providers Grid */
.oauth-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.btn-oauth-icon {
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-oauth-icon .oauth-svg-icon {
  width: 17px;
  height: 17px;
}
.oauth-icon-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.btn-oauth-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-oauth-icon:hover .oauth-icon-label {
  color: #fff;
}

/* Brand Distinctive Hover Highlights */
.btn-oauth-google:hover { border-color: rgba(66, 133, 244, 0.4); }
.btn-oauth-apple:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn-oauth-discord:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 4px 14px rgba(88, 101, 242, 0.2); }
.btn-oauth-twitter:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-oauth-facebook:hover { border-color: rgba(24, 119, 242, 0.5); }
.btn-oauth-microsoft:hover { border-color: rgba(0, 164, 239, 0.5); }
.btn-oauth-line:hover { border-color: rgba(6, 199, 85, 0.5); }

.auth-footer-switch { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-dim); }
.auth-link-highlight { color: var(--accent-pink); font-weight: 600; margin-left: 6px; }

/* ==========================================================================
   Download Center (download.php)
   ========================================================================== */
.download-hero-section {
  padding: 56px 0 80px;
  background: radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
}
.download-hero-inner { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.download-main-title { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.download-subtitle { font-size: 16px; color: var(--text-muted); }

.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .download-platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .download-platforms-grid { grid-template-columns: 1fr; }
}
.platform-download-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.platform-download-card.featured-download {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}
.platform-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: #fff;
}
.platform-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.platform-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.apk-meta-row { font-size: 11px; color: var(--text-dim); display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.btn-download-action {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-download-action.primary {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
}

/* ==========================================================================
   Characters Gallery Page (characters.php)
   ========================================================================== */
.gallery-hero-strip {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.gallery-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gallery-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.gallery-subtitle { font-size: 14px; color: var(--text-muted); }
.gender-pill-group { display: flex; gap: 8px; }
.gender-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}
.gender-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Stories Catalog Page Styles */
.stories-catalog-hero {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 15% 30%, rgba(244, 63, 94, 0.08), transparent 60%);
}
.catalog-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.catalog-main-title {
  font-size: 32px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.catalog-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 700px;
}
.gender-pill-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gender-tag-btn {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.gender-tag-btn:hover, .gender-tag-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Global Toast Notifications */
.loreva-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.loreva-toast-item {
  background: #1f141b;
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.loreva-toast-item.toast-success { border-color: #10b981; }
.loreva-toast-item.toast-warning { border-color: #f59e0b; }
.loreva-toast-item.toast-error { border-color: #f43f5e; }
.loreva-toast-item.fade-out { opacity: 0; transform: translateY(10px); }

/* Footer */
.portal-footer {
  border-top: 1px solid var(--border-subtle);
  background: #090608;
  padding: 28px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links-row a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-links-row a:hover { color: var(--text-main); }

/* ==========================================================================
   Header Quick Create Button & Create Character Workspace (Tipsy PC Parity)
   ========================================================================== */
.btn-create-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}
.btn-create-top-pill:hover {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}

/* Create Page Main Body */
.create-page-body {
  background: #0d060a;
  min-height: 100vh;
  position: relative;
}
.create-workspace-main {
  padding: 32px 0 80px;
}

/* Universal Auth Login Barrier Component */
.auth-barrier-wrapper,
.create-login-barrier,
.play-login-barrier {
  max-width: 600px;
  margin: 50px auto 80px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.play-barrier-card {
  padding: 44px 36px;
}
.barrier-character-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.barrier-avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  flex-shrink: 0;
}
.barrier-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.barrier-meta-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.barrier-scene-badge {
  font-size: 10px;
  font-weight: 800;
  color: #f472b6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.barrier-scene-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.barrier-scene-char {
  font-size: 13px;
  color: var(--text-muted);
}
.barrier-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin-bottom: 24px;
}
.barrier-card-box {
  background: rgba(22, 12, 19, 0.85);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}
.barrier-icon-badge {
  font-size: 38px;
  margin-bottom: 16px;
}
.barrier-title {
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.barrier-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.barrier-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.barrier-btn-group .btn-hero-primary,
.barrier-btn-group .btn-hero-secondary {
  padding: 12px 28px;
  font-size: 14px;
}
.barrier-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.perk-item {
  font-size: 13px;
  color: #cbd5e1;
}

/* Authenticated Studio Workspace */
.create-studio-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1080px) {
  .create-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* Studio Form */
.studio-form-card {
  background: rgba(20, 11, 18, 0.75);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Form Section Header */
.form-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title-label {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-top-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.counter-text {
  font-size: 12px;
  color: var(--text-dim);
}
.switch-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  cursor: pointer;
}
.hidden-chk { display: none; }
.custom-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.25s ease;
  cursor: pointer;
}
.custom-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-toggle.active {
  background: #f43f5e;
}
.custom-toggle.active::after {
  transform: translateX(16px);
}

/* Avatar Dropzone */
.avatar-drop-zone {
  width: 130px;
  height: 175px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s;
}
.avatar-drop-zone:hover {
  border-color: rgba(236, 72, 153, 0.6);
  background: rgba(236, 72, 153, 0.05);
}
.avatar-preview-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-align: center;
  padding: 12px;
}
.upload-camera-icon { font-size: 26px; }
.upload-prompt-text { font-size: 12px; font-weight: 600; color: #d1d5db; }
.avatar-uploaded-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.btn-studio-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-studio-action:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-studio-action.ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-studio-action.ghost:hover {
  color: #fff;
}

.form-row-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

/* Rules Warning Banner */
.studio-rules-banner {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid #f43f5e;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.warning-icon { color: #f43f5e; font-size: 11px; margin-top: 2px; }

/* Form Fields */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: #f3f4f6;
}
.char-count {
  font-size: 11px;
  color: var(--text-dim);
}
.studio-text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.studio-text-input:focus {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.studio-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.studio-textarea:focus {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.field-hint-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Capsule Pill Selector */
.capsule-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.capsule-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.capsule-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.capsule-pill.active {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

/* Adult Compliance Checkbox */
.compliance-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.compliance-checkbox {
  margin-top: 3px;
  cursor: pointer;
  accent-color: #f43f5e;
}
.compliance-label {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.45;
  cursor: pointer;
}

/* Studio Actions Footer */
.studio-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}
.actions-left-group, .actions-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-footer-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-footer-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.btn-footer-primary {
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
}
.btn-footer-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.5);
}
.btn-footer-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn-footer-guide:hover { color: #fff; }

/* Right Column: Live Mobile Preview */
.preview-sticky-wrap {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-title-bar {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Phone Mockup Frame */
.mobile-phone-frame {
  width: 320px;
  height: 600px;
  border-radius: 36px;
  background: #000;
  border: 8px solid #251a23;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(236, 72, 153, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 14px;
  background: #140d12;
  border-radius: 8px;
  z-index: 10;
}
.phone-model-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-backdrop-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-image 0.4s ease;
}
.phone-gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 8, 12, 0.96) 0%, rgba(14, 8, 12, 0.75) 50%, rgba(14, 8, 12, 0.3) 100%);
  z-index: 1;
}

/* Phone Live Feed */
.phone-chat-feed {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 46px 14px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-tagline-box {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 11px;
  color: #d1d5db;
  line-height: 1.35;
}
.preview-tagline-tag {
  color: #f43f5e;
  font-weight: 700;
  margin-right: 4px;
}
.preview-msg-bubble {
  background: rgba(26, 16, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prev-sender-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-pink);
}
.prev-msg-text {
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Bottom Mockup Message Input Bar */
.phone-bottom-input-bar {
  position: relative;
  z-index: 2;
  margin: 0 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-fake-input {
  font-size: 12px;
  color: #9ca3af;
}
.phone-fake-send-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ==========================================================================
   Creator Studio Section (index.php)
   ========================================================================== */
.creator-studio-section {
  position: relative;
  padding: 88px 0;
  background: #09060b url('/assets/images/backgrounds/creator_ambient_bg.png') no-repeat center center;
  background-size: cover;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.creator-studio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 6, 11, 0.9) 0%, rgba(14, 8, 15, 0.84) 50%, rgba(10, 6, 11, 0.95) 100%);
  pointer-events: none;
}
.creator-studio-section .portal-container {
  position: relative;
  z-index: 1;
}
.creator-studio-dual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.creator-p-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.creator-perks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.creator-perk-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.perk-icon {
  font-size: 20px;
  color: var(--accent-pink);
  line-height: 1.2;
}
.creator-perk-row strong {
  font-size: 15px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.creator-perk-row p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.creator-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.creator-glass-card {
  background: rgba(22, 14, 20, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
.glass-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-pink);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.glow-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.glass-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
}
.glass-preview-character {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.preview-mini-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 6px;
}
.preview-mini-body {
  font-size: 13px;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.5;
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Overrides (< 992px, < 768px, < 480px)
   ========================================================================== */

@media (max-width: 992px) {
  /* Header in Tablet / Mobile */
  .portal-header {
    padding: 10px 0 10px;
  }
  .portal-container {
    padding: 0 16px;
  }
  .header-top-row nav,
  .channel-tabs {
    display: none !important;
  }
  .header-actions .search-box-wrap {
    display: none !important;
  }
  .header-sub-row {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
  .btn-create-top-pill span {
    display: none;
  }
  .btn-create-top-pill {
    padding: 7px 10px;
  }
  .hero-dual-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .creator-studio-dual {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* Category Filter Bar Horizontal Smooth Scrolling */
  .filter-bar-row {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
  }
  .filter-bar-row::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
  }

  /* Story & Character Grid: Elegant 2 Columns on Mobile */
  .character-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .tipsy-card-content {
    padding: 10px 8px 8px !important;
  }
  .tipsy-card-name {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }
  .tipsy-card-hook {
    font-size: 11px !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 4px !important;
  }
  .tipsy-card-badge {
    padding: 1px 4px !important;
    font-size: 9px !important;
  }

  /* Hero Typography & CTAs */
  .portal-hero-strip {
    padding: 36px 0 28px;
  }
  .hero-h1-heading {
    font-size: 28px !important;
    line-height: 1.18 !important;
  }
  .hero-p-subtitle {
    font-size: 14px !important;
    margin-bottom: 22px !important;
  }
  .hero-cta-button-row {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }
  .hero-cta-button-row .btn-hero-primary,
  .hero-cta-button-row .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .hero-spotlight-card {
    height: 380px !important;
  }

  /* Sceneplay Drawer Modal on Mobile */
  .roleplay-drawer-box {
    grid-template-columns: 1fr !important;
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
  }
  .drawer-poster-side {
    height: 200px !important;
    flex-shrink: 0;
  }
  .drawer-info-side {
    padding: 18px 16px 22px !important;
  }
  .drawer-title {
    font-size: 20px !important;
  }
  .drawer-close-btn {
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
  }

  /* Play Page Stage on Mobile */
  .play-stage-wrapper {
    padding: 8px 8px 16px !important;
    align-items: flex-start !important;
  }
  .play-stage-container {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
    gap: 12px !important;
  }
  .stage-poster-card {
    height: 180px !important;
    border-radius: 14px !important;
  }
  .poster-bottom-watermark {
    display: none !important;
  }
  .stage-chat-window {
    height: 72vh !important;
    border-radius: 14px !important;
  }
  .chat-messages-viewport {
    padding: 12px 10px !important;
  }
  .chat-bubble-card {
    max-width: 94% !important;
  }
  .chat-quick-choices-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
  }
  .btn-quick-choice-pill {
    flex-shrink: 0 !important;
    max-width: 85% !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
  .chat-input-bar-area {
    padding: 10px 10px !important;
  }

  /* Create Character Studio on Mobile */
  .create-studio-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .studio-form-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .form-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .studio-actions-footer {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .btn-studio-primary {
    width: 100% !important;
    order: -1;
  }

  /* Shop & Economy on Mobile */
  .shop-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .user-assets-box {
    width: 100%;
  }
  .gems-pack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .gem-sku-card {
    padding: 20px 12px !important;
  }
  .sku-amount-total {
    font-size: 18px !important;
  }
  .sku-price-num {
    font-size: 22px !important;
  }

  /* Auth / Login / Register Cards on Mobile */
  .auth-card-box {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }
  .auth-options-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .auth-barrier-wrapper .barrier-card-box {
    padding: 24px 16px !important;
    margin: 14px !important;
    border-radius: 16px !important;
  }
  .barrier-btn-group {
    flex-direction: column !important;
  }
}

@media (max-width: 480px) {
  .brand-logo-text {
    font-size: 20px !important;
  }
  .gems-pack-grid {
    grid-template-columns: 1fr !important;
  }
  .mobile-drawer-content {
    width: 92% !important;
  }
  .features-section,
  .creator-studio-section {
    padding: 56px 0 !important;
  }
  .section-h2-large {
    font-size: 24px !important;
  }
}

/* ========================================================
 * Tipsy Parity: Real Modal Styles (Gifts & Pinned Memories)
 * ======================================================== */
.modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.modal-head-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.modal-sub-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}
.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Gift Picker Modal */
.gift-picker-modal-box {
  width: 90%;
  max-width: 520px;
  background: #140b12;
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(236, 72, 153, 0.15);
}
.gift-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 18px;
}
.gift-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}
.gift-item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}
.gift-item-card.selected {
  background: rgba(236, 72, 153, 0.18);
  border-color: #ec4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
}
.gift-item-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.gift-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.gift-item-gems {
  font-size: 11px;
  color: #f472b6;
  font-weight: 600;
}
.gift-item-xp {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.gift-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}
.gift-user-balance {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.btn-gift-send-action {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}
.btn-gift-send-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Pinned Memories Modal */
.memory-modal-box {
  width: 90%;
  max-width: 560px;
  background: #120914;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(168, 85, 247, 0.15);
}
.memory-items-container {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.memory-item-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border-left: 3px solid #a855f7;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.6;
}
.memory-item-card .memory-tag {
  font-size: 10px;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.memory-empty-state {
  text-align: center;
  padding: 36px 0;
  color: #64748b;
  font-size: 13px;
}

/* 消息流内赠送礼物互动卡片 */
.message-gift-row {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}
.gift-bubble-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.2);
  color: #fce7f3;
  font-size: 13px;
}
.gift-bubble-card .gift-icon-anim {
  font-size: 20px;
  animation: giftBounce 1.5s infinite ease-in-out;
}
@keyframes giftBounce {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(6deg); }
}



/* =========================================================
   App-parity pages: My Chats / Leaderboard / Character / Me
   ========================================================= */

/* ---- shared ---- */
.history-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 40px 0; color: var(--text-dim); font-size: 13px; grid-column: 1 / -1;
}
.history-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  background: var(--bg-card); border: 1px dashed var(--border-subtle); border-radius: 18px;
}
.history-empty.small { padding: 28px 16px; }
.history-empty-icon { font-size: 40px; margin-bottom: 10px; }
.history-empty-title { font-size: 17px; font-weight: 800; color: #fff; }
.history-empty-sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.btn-hero-primary.small { padding: 9px 18px; font-size: 13px; display: inline-flex; }
.btn-me-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s ease;
}
.btn-me-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.btn-me-ghost.danger { color: #fda4af; border-color: rgba(244,63,94,0.35); }
.btn-me-ghost.danger:hover { background: rgba(244,63,94,0.15); color: #fff; }
.dd-unread, .me-side-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent-rose); color: #fff; font-size: 10px; font-weight: 800; margin-left: 6px;
}
.me-side-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-rose); margin-left: 6px; }
.gem-orb { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.25) inset; }
.gem-orb.red { background: radial-gradient(circle at 30% 30%, #fda4af, #e11d48); }
.gem-orb.blue { background: radial-gradient(circle at 30% 30%, #bae6fd, #0284c7); }
.gem-orb.coin { background: radial-gradient(circle at 30% 30%, #fde68a, #d97706); }
.lb-official {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; background: rgba(56,189,248,0.15); color: #7dd3fc; margin-left: 6px; vertical-align: middle;
}
.tag-chip {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); text-decoration: none;
}
.tag-chip:hover { color: #fff; border-color: var(--accent-pink); }

/* ---- History (My Chats) ---- */
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 14px; flex-wrap: wrap; }
.history-search-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
}
.history-search-wrap svg { width: 16px; height: 16px; color: var(--text-dim); }
.history-search-wrap input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 13px; }
.history-meta { font-size: 12px; color: var(--text-dim); }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.history-card {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 18px;
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.history-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.history-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.history-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,7,9,0.85) 100%); }
.history-rel-badge {
  position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 800; color: #fff; padding: 4px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(236,72,153,0.85), rgba(168,85,247,0.85));
}
.history-kind-badge {
  position: absolute; right: 10px; top: 10px; font-size: 10px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2);
}
.history-kind-badge.free { background: rgba(56,189,248,0.35); }
.history-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.history-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.history-name { font-size: 16px; font-weight: 800; color: #fff; }
.history-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.history-scene { font-size: 12px; color: var(--accent-pink); font-weight: 600; }
.history-scene.muted { color: var(--text-dim); font-weight: 500; }
.history-last { font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history-last-role { color: var(--text-dim); font-weight: 600; }
.history-threads { display: flex; gap: 6px; flex-wrap: wrap; }
.history-thread-chip { font-size: 11px; color: #fcd34d; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); padding: 2px 8px; border-radius: 6px; }
.history-xp { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.history-xp-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.history-xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple)); border-radius: 3px; transition: width .4s ease; }
.history-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-history-continue {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple)); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none;
}
.btn-history-continue.disabled { opacity: .45; pointer-events: none; }
.btn-history-ghost {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; border-radius: 12px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle); color: var(--text-muted); cursor: pointer; text-decoration: none; font-size: 14px;
}
.btn-history-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-history-ghost.danger:hover { background: rgba(244,63,94,0.2); border-color: var(--accent-rose); }

/* ---- Leaderboard ---- */
.lb-range-row { display: flex; gap: 8px; padding: 22px 0 18px; flex-wrap: wrap; }
.lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.lb-podium-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px 18px;
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 20px; text-decoration: none; color: inherit; transition: transform .2s ease;
}
.lb-podium-card:hover { transform: translateY(-4px); }
.lb-podium-card.rank-1 { order: 2; border-color: rgba(245,158,11,0.5); box-shadow: 0 0 40px rgba(245,158,11,0.12); }
.lb-podium-card.rank-2 { order: 1; }
.lb-podium-card.rank-3 { order: 3; }
.lb-podium-medal { font-size: 26px; }
.lb-podium-card img { width: 120px; height: 160px; object-fit: cover; border-radius: 14px; }
.lb-podium-card img.round { width: 96px; height: 96px; border-radius: 50%; }
.lb-podium-name { font-size: 17px; font-weight: 800; color: #fff; }
.lb-podium-sub { font-size: 12px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-podium-stats { font-size: 12px; color: var(--text-muted); }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .2s ease, background .2s ease;
}
.lb-row:hover { border-color: var(--border-glow); background: var(--bg-card-hover); }
.lb-rank { width: 40px; text-align: center; font-weight: 800; color: var(--text-muted); font-size: 14px; }
.lb-thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.lb-thumb.round { width: 48px; height: 48px; border-radius: 50%; }
.lb-main { flex: 1; min-width: 0; }
.lb-name { font-size: 15px; font-weight: 700; color: #fff; }
.lb-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.lb-cta { font-size: 12px; font-weight: 800; color: var(--accent-pink); }
.lb-covers { display: flex; gap: 4px; }
.lb-covers img { width: 28px; height: 38px; object-fit: cover; border-radius: 6px; }
.btn-lb-follow {
  padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--accent-pink); background: transparent; color: var(--accent-pink);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
.btn-lb-follow.on { background: var(--accent-pink); color: #fff; }
.btn-lb-follow:disabled { opacity: .5; }

/* ---- Character detail ---- */
.char-detail-page { padding: 28px 0 80px; }
.char-detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.char-detail-media { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.char-detail-cover-wrap { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-card); }
.char-detail-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-detail-rating {
  position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2);
}
.char-detail-rating.limitless { background: rgba(244,63,94,0.75); }
.char-detail-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.char-social-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--bg-card);
  border: 1px solid var(--border-subtle); color: var(--text-muted); cursor: pointer; transition: all .2s ease;
}
.char-social-btn.static { cursor: default; }
.char-social-btn:not(.static):hover { border-color: var(--border-glow); }
.char-social-btn.on { border-color: var(--accent-pink); background: rgba(236,72,153,0.12); color: #fff; }
.char-social-btn .ico { font-size: 16px; }
.char-social-btn .num { font-size: 15px; font-weight: 800; color: #fff; }
.char-social-btn .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.char-detail-cta { justify-content: center; width: 100%; }
.char-detail-rel { padding: 12px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.char-rel-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.char-rel-top span:last-child { color: var(--accent-pink); }
.char-rel-sub { font-size: 11px; color: var(--text-dim); margin-top: 6px; text-align: right; }
.char-detail-name { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.char-detail-tagline { font-size: 16px; color: var(--accent-pink); margin: 8px 0 14px; line-height: 1.5; }
.char-detail-creator { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.char-detail-creator .creator-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.char-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.char-detail-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 18px; }
.char-tab {
  padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 14px; font-weight: 700; cursor: pointer;
}
.char-tab.active { color: #fff; border-bottom-color: var(--accent-pink); }
.char-tab-n { font-size: 11px; color: var(--text-dim); margin-left: 4px; }
.char-tab-panel { display: none; }
.char-tab-panel.active { display: block; }
.char-detail-opening {
  font-size: 15px; line-height: 1.75; color: var(--text-main); padding: 16px 18px; border-radius: 14px; background: var(--bg-card);
  border-left: 3px solid var(--accent-pink); margin-bottom: 18px; white-space: pre-wrap;
}
.char-detail-desc { font-size: 14px; line-height: 1.75; color: var(--text-muted); white-space: pre-wrap; }
.char-scenes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.char-scene-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease; }
.char-scene-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.char-scene-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.char-scene-body { padding: 12px 14px; }
.char-scene-title { font-size: 14px; font-weight: 800; color: #fff; }
.char-scene-hook { font-size: 12px; color: var(--text-dim); margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-scene-meta { font-size: 11px; color: var(--accent-pink); font-weight: 700; }
.char-comment-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.char-comment-form textarea {
  flex: 1; resize: vertical; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 13px; outline: none;
}
.char-comment-form textarea:focus { border-color: var(--accent-pink); }
.char-comments-list { display: flex; flex-direction: column; gap: 12px; }
.char-comment { display: flex; gap: 12px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; }
.char-comment-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.char-comment-body { flex: 1; min-width: 0; }
.char-comment-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.char-comment-name { font-weight: 800; color: #fff; font-size: 13px; }
.char-comment-pending { color: #fcd34d; }
.char-comment-text { font-size: 14px; color: var(--text-main); line-height: 1.6; margin: 4px 0 6px; white-space: pre-wrap; }
.char-comment-acts { display: flex; gap: 12px; }
.char-comment-like, .char-comment-del { background: none; border: none; color: var(--text-dim); font-size: 12px; cursor: pointer; padding: 0; }
.char-comment-like.on { color: var(--accent-rose); }
.char-comment-del:hover { color: #fda4af; }
.char-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.char-related-card { display: block; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; }
.char-related-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.char-related-body { padding: 10px 12px; }
.char-related-name { font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-related-tag { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-related-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.btn-drawer-profile {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.btn-drawer-profile:hover { border-color: var(--accent-pink); }

/* ---- Me ---- */
.me-page { padding-top: 24px; }
.me-hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.me-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: blur(2px) saturate(1.2); }
.me-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,9,0.2), rgba(10,7,9,0.92)); }
.me-hero-inner { position: relative; z-index: 1; display: flex; gap: 26px; padding: 34px 32px 28px; align-items: flex-start; }
.me-avatar-wrap { position: relative; width: 112px; height: 112px; flex-shrink: 0; cursor: pointer; }
.me-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.15); background: var(--bg-card); }
.me-avatar-plus {
  position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-pink); color: #fff; font-weight: 900; border: 2px solid var(--bg-main);
}
.me-hero-main { flex: 1; min-width: 0; }
.me-name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.me-name { font-size: 28px; font-weight: 900; color: #fff; }
.me-uid-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); margin: 6px 0 10px; }
.btn-copy-uid { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; }
.btn-copy-uid:hover { color: #fff; }
.me-plan-badge { display: inline-flex; padding: 2px 10px; border-radius: 8px; background: rgba(245,158,11,0.15); color: #fcd34d; font-weight: 800; font-size: 11px; }
.me-bio { font-size: 14px; color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.me-stats { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.me-stat { display: flex; flex-direction: column; align-items: flex-start; background: none; border: none; color: inherit; cursor: default; padding: 0; }
.me-stat[data-shelf] { cursor: pointer; }
.me-stat b { font-size: 20px; font-weight: 900; color: #fff; }
.me-stat span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.me-bind-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.35); font-size: 13px; color: #fde68a;
}
.me-gems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 22px; }
.me-gem-col {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--bg-card);
  border: 1px solid var(--border-subtle); text-decoration: none; color: inherit; cursor: pointer; text-align: left; transition: border-color .2s ease;
}
.me-gem-col:hover { border-color: var(--border-glow); }
.me-gem-col.mid { background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(168,85,247,0.08)); }
.me-gem-top { display: flex; align-items: center; gap: 10px; }
.me-gem-top b { font-size: 24px; font-weight: 900; color: #fff; }
.me-gem-top .gem-orb { width: 22px; height: 22px; }
.me-gem-label { font-size: 12px; color: var(--text-dim); }
.me-gem-act {
  position: absolute; right: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff; font-weight: 800; font-size: 14px;
}
.me-gem-act.up { width: auto; padding: 0 10px; border-radius: 8px; font-size: 11px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); }
.me-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.me-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.me-side-item {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: none; border: none; text-align: left; color: var(--text-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s ease;
}
.me-side-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.me-side-item.active { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(168,85,247,0.2)); color: #fff; }
.me-panels { min-width: 0; }
.me-panel { display: none; flex-direction: column; gap: 16px; }
.me-panel.active { display: flex; }
.me-card { padding: 20px 22px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.me-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.me-card-head h3 { font-size: 16px; font-weight: 800; color: #fff; }
.me-card-sub { font-size: 12px; color: var(--text-dim); }
.me-shelf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.me-shelf-tab { padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.me-shelf-tab.active { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shelf-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-subtle); text-decoration: none; color: inherit; transition: transform .2s ease; }
.shelf-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.shelf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,7,9,0.92) 100%); }
.shelf-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.shelf-card-title { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-status { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.shelf-status.public { background: rgba(34,197,94,0.6); }
.shelf-status.pending { background: rgba(245,158,11,0.7); }
.shelf-status.rejected { background: rgba(244,63,94,0.75); }
.shelf-list { display: flex; flex-direction: column; gap: 8px; }
.checkin-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.checkin-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); }
.checkin-day.on { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.45); }
.checkin-day.today { border-color: rgba(255,255,255,0.4); }
.cd-wd { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.cd-gem { font-size: 18px; }
.cd-date { font-size: 10px; color: var(--text-dim); }
.tasks-list { display: flex; flex-direction: column; gap: 10px; }
.task-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); }
.task-row.done { opacity: .6; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 700; color: #fff; }
.task-kind { font-size: 10px; color: var(--text-dim); text-transform: uppercase; margin-left: 6px; }
.task-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 6px 0 4px; }
.task-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-amber), var(--accent-rose)); }
.task-prog { font-size: 11px; color: var(--text-dim); }
.task-done { font-size: 12px; color: #86efac; font-weight: 700; }
.invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-row code { padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #fcd34d; font-weight: 800; letter-spacing: .1em; font-size: 15px; }
.invite-redeem { display: flex; gap: 10px; margin-top: 12px; }
.invite-redeem input { flex: 1; padding: 9px 14px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 13px; outline: none; }
.wallet-balances { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wb { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-muted); }
.wb b { font-size: 18px; font-weight: 900; color: #fff; min-width: 60px; }
.wb .gem-orb { width: 18px; height: 18px; }
.wb.warn { border-color: rgba(245,158,11,0.4); color: #fde68a; }
.wallet-plan { display: flex; flex-direction: column; gap: 6px; }
.wp-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px dashed var(--border-subtle); }
.wp-row b { color: #fff; }
.ledger-list { display: flex; flex-direction: column; gap: 6px; }
.ledger-row { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.ledger-main { display: flex; flex-direction: column; min-width: 0; }
.ledger-main b { font-size: 13px; color: #fff; }
.ledger-main span { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-delta { font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.ledger-delta.plus { color: #86efac; }
.ledger-delta.minus { color: #fda4af; }
.ledger-delta .gem-orb { width: 12px; height: 12px; }
.ledger-after { font-size: 12px; color: var(--text-dim); text-align: right; }
.notices-list, .inbox-list { display: flex; flex-direction: column; gap: 8px; }
.notice-row { padding: 12px 14px; border-radius: 12px; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.25); }
.notice-title { font-size: 14px; font-weight: 800; color: #fde68a; }
.notice-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.55; white-space: pre-wrap; }
.notice-time { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.inbox-row.unread { border-color: rgba(236,72,153,0.4); background: rgba(236,72,153,0.06); }
.inbox-ico { font-size: 20px; }
.inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox-main b { font-size: 13px; color: #fff; }
.inbox-main span { font-size: 12px; color: var(--text-muted); }
.inbox-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dim); }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea {
  padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 13px; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent-pink); }
.form-field select option { background: #181116; }
.toggle-list { display: flex; flex-direction: column; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); cursor: pointer; }
.toggle-row div { display: flex; flex-direction: column; }
.toggle-row b { font-size: 14px; color: #fff; }
.toggle-row span { font-size: 12px; color: var(--text-dim); }
.toggle-row input[type="checkbox"] { width: 40px; height: 22px; appearance: none; border-radius: 11px; background: rgba(255,255,255,0.15); position: relative; cursor: pointer; transition: background .2s ease; flex-shrink: 0; }
.toggle-row input[type="checkbox"]::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.toggle-row input[type="checkbox"]:checked { background: var(--accent-pink); }
.toggle-row input[type="checkbox"]:checked::after { transform: translateX(18px); }
.account-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 13px; color: var(--text-dim); }
.acc-row b { color: #fff; flex: 1; font-weight: 600; }
.acc-row b i { color: var(--text-dim); font-style: normal; }
.acc-sub { font-size: 11px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mobile-quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0; }
.mobile-quick-links a { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #fff; font-size: 12px; text-decoration: none; text-align: center; }

@media (max-width: 992px) {
  .char-detail-grid { grid-template-columns: 1fr; }
  .char-detail-media { position: static; }
  .me-layout { grid-template-columns: 1fr; }
  .me-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .lb-podium { grid-template-columns: 1fr; }
  .lb-podium-card.rank-1, .lb-podium-card.rank-2, .lb-podium-card.rank-3 { order: initial; }
  .lb-stats { display: none; }
  .me-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .me-stat { align-items: center; }
  .me-stats { justify-content: center; }
  .me-gems { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checkin-days { grid-template-columns: repeat(4, 1fr); }
}
