/* ==========================================================================
   VELVET STREAM 18+ — EXCLUSIVE PAID ADULT STREAMING DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-main: #08070c;
  --bg-card: rgba(20, 17, 30, 0.85);
  --bg-card-hover: rgba(30, 25, 45, 0.9);
  --bg-header: rgba(12, 10, 18, 0.95);
  --bg-sidebar: rgba(10, 8, 15, 0.98);
  
  --primary-crimson: #ff1744;
  --primary-hover: #d50000;
  --accent-violet: #aa00ff;
  --gold-coin: #ffd700;
  --gold-hover: #ffab00;
  
  --text-main: #f5f5f9;
  --text-muted: #a1a1b5;
  --text-dark: #6e6e85;
  
  --border-color: rgba(255, 23, 68, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 215, 0, 0.3);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-glow: 0 0 20px rgba(255, 23, 68, 0.35);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-fast: 0.25s ease;
}

/* Reset & Global Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.dark-theme {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-crimson);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #ff5252;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 23, 68, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-crimson);
}

/* Top Navigation Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: var(--bg-header);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

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

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-logo span {
  color: var(--primary-crimson);
}

.glow-icon {
  color: var(--primary-crimson);
  filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.8));
}

.badge-18 {
  background: linear-gradient(135deg, var(--primary-crimson), var(--accent-violet));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

/* Search Bar */
.header-center {
  flex: 1;
  max-width: 450px;
  margin: 0 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 4px 14px;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--primary-crimson);
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 8px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
}

.search-submit {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.search-submit:hover {
  color: var(--primary-crimson);
}

/* Header Right Actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-btn-group {
  display: flex;
  gap: 8px;
}

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

/* Wallet Pill */
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 23, 68, 0.15));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.wallet-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.coin-icon {
  color: var(--gold-coin);
  font-size: 0.9rem;
}

#user-coin-balance {
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
}

.coin-unit {
  font-size: 0.7rem;
  color: var(--gold-coin);
}

.topup-plus-btn {
  background: var(--gold-coin);
  color: #000;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  margin-left: 2px;
}

/* Profile Dropdown Menu */
.profile-dropdown-wrapper {
  position: relative;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background var(--transition-fast);
}

.user-profile-menu:hover {
  background: rgba(255, 255, 255, 0.08);
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-crimson);
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.caret-icon {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.profile-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  width: 220px;
  background: #14111f;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  padding: 10px;
  z-index: 1100;
  animation: fadeIn 0.2s ease;
}

.dropdown-user-info {
  padding: 8px 10px;
}

.dropdown-user-info strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.profile-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.profile-dropdown-menu a:hover {
  background: rgba(255, 23, 68, 0.15);
  color: #fff;
}

.logout-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--primary-crimson);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.logout-btn:hover {
  background: rgba(255, 23, 68, 0.15);
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--primary-crimson);
  color: #fff;
}

/* Sidebar Drawer & Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 65px;
  bottom: 0;
  left: 0;
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav {
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 1px;
  margin: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 23, 68, 0.1);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 23, 68, 0.25), transparent);
  color: #fff;
  border-left: 3px solid var(--primary-crimson);
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.nav-badge.info { background: rgba(255, 255, 255, 0.15); color: #fff; }
.nav-badge.gold { background: var(--gold-coin); color: #000; }
.nav-badge.danger { background: var(--primary-crimson); color: #fff; }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-dark);
}

.admin-free-indicator {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-coin);
  color: var(--gold-coin);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App Body Layout */
.app-container {
  display: flex;
  padding-top: 65px;
  min-height: 100vh;
  padding-bottom: 70px;
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 24px;
  min-height: calc(100vh - 65px);
  width: 100%;
}

.view-page {
  display: none;
}

.view-page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.25), rgba(170, 0, 255, 0.2)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1200&auto=format&fit=crop&q=80') center/cover;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 12, 0.95) 40%, rgba(8, 7, 12, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
}

.hero-tag {
  background: var(--primary-crimson);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 1.8rem;
  margin: 10px 0 8px;
  line-height: 1.2;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip:hover, .chip.active {
  background: var(--primary-crimson);
  color: #fff;
  border-color: var(--primary-crimson);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header h2 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-crimson { color: var(--primary-crimson); }
.text-gold { color: var(--gold-coin); }
.grid-count { font-size: 0.8rem; color: var(--text-muted); }

/* Video Cards Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-crimson);
}

.thumbnail-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .thumbnail-img {
  transform: scale(1.04);
}

.price-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-coin);
  color: var(--gold-coin);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.price-badge.free {
  border-color: #00e676;
  color: #00e676;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.unlocked-tag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #00c853;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
}

.video-info-box {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.channel-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-mini-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stats-meta {
  font-size: 0.7rem;
  color: var(--text-dark);
  margin-top: 4px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-primary { background: var(--primary-crimson); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-crimson { background: linear-gradient(135deg, var(--primary-crimson), #c2185b); color: #fff; }
.btn-crimson:hover { background: linear-gradient(135deg, #d50000, #ad1457); box-shadow: var(--shadow-glow); }

.btn-gold { background: linear-gradient(135deg, var(--gold-coin), #ffab00); color: #000; font-weight: 700; }
.btn-gold:hover { background: linear-gradient(135deg, #ffc400, #ff8f00); box-shadow: var(--shadow-gold); }

.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-main); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--text-main); }

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-dark-sm { background: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid var(--border-light); padding: 6px 12px; font-size: 0.75rem; }
.btn-dark-sm:hover { background: rgba(255, 23, 68, 0.15); border-color: var(--primary-crimson); }

.btn-lg { padding: 12px 24px; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.glow-btn { box-shadow: var(--shadow-glow); }
.width-100 { width: 100%; }

/* Watch Video Page Layout */
.watch-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.player-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.player-screen-container {
  width: 100%;
  height: 100%;
}

.player-screen-container video,
.player-screen-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Paywall Locked Overlay */
.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-overlay.hidden { display: none; }

.paywall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 12, 0.85);
  backdrop-filter: blur(16px);
}

.paywall-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 420px;
  padding: 24px;
}

.lock-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-crimson), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-glow);
}

.locked-tag {
  background: var(--primary-crimson);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.paywall-content h3 {
  font-size: 1.2rem;
  margin: 10px 0 6px;
}

.paywall-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.paywall-price-box {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin: 16px 0 12px;
}

.price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-coin);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.balance-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Watch Details Card */
.watch-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.video-meta-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-18 { background: var(--primary-crimson); color: #fff; }
.tag-category { background: rgba(255, 255, 255, 0.1); color: var(--text-main); }
.tag-price { background: rgba(255, 215, 0, 0.15); border: 1px solid var(--gold-coin); color: var(--gold-coin); }

.watch-details-card h1 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.watch-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.views-date-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-action-buttons {
  display: flex;
  gap: 8px;
}

/* Channel Uploader Card */
.channel-uploader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.channel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-crimson);
}

.channel-info {
  flex: 1;
}

.channel-info h3 {
  font-size: 0.95rem;
}

.channel-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.video-description-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.source-type-indicator {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--accent-violet);
  font-weight: 600;
}

/* Comments */
.comments-section h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.add-comment-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.add-comment-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.add-comment-box input:focus {
  border-color: var(--primary-crimson);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 10px;
}

.comment-content h4 {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-time { font-size: 0.65rem; color: var(--text-dark); }
.comment-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Channels List Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast);
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-crimson);
}

.channel-card-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-crimson);
  margin-bottom: 10px;
}

.channel-card h3 { font-size: 1rem; }
.channel-card-handle { font-size: 0.75rem; color: var(--primary-crimson); margin-bottom: 6px; }
.channel-card-bio { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; height: 36px; overflow: hidden; }

/* Form Container Card */
.form-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 680px;
  margin: 0 auto;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2, .card-header h3 { margin-bottom: 4px; }
.card-header p { font-size: 0.8rem; color: var(--text-muted); }

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-crimson);
}

.form-row {
  display: flex;
  gap: 14px;
}

.col-half { flex: 1; }

.coin-input-wrapper {
  position: relative;
}

.input-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--gold-coin);
}

.form-hint {
  font-size: 0.7rem;
  color: var(--text-dark);
  margin-top: 4px;
  display: block;
}

.radio-tab-group {
  display: flex;
  gap: 10px;
}

.radio-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.radio-tab input { display: none; }
.radio-tab:has(input:checked) {
  border-color: var(--primary-crimson);
  background: rgba(255, 23, 68, 0.15);
  color: #fff;
}

/* Status Banners */
.status-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-banner.info { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-light); }
.status-banner.pending { background: rgba(255, 215, 0, 0.15); border: 1px solid var(--gold-coin); color: var(--gold-coin); }
.status-banner.approved { background: rgba(0, 230, 118, 0.15); border: 1px solid #00e676; color: #00e676; }

/* Creator Studio Grid */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.studio-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

tr:hover td {
  background: rgba(255, 23, 68, 0.05);
}

/* Withdrawal Hub Metrics & Progress Bar */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-card.gold-border { border: 1px solid var(--border-gold); }
.metric-card.crimson-border { border: 1px solid var(--border-color); }
.metric-card.green-border { border: 1px solid rgba(0, 230, 118, 0.3); }

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.gold-border .metric-icon { color: var(--gold-coin); }
.crimson-border .metric-icon { color: var(--primary-crimson); }
.green-border .metric-icon { color: #00e676; }

.metric-title { font-size: 0.7rem; color: var(--text-muted); }
.metric-info h3 { font-size: 1.2rem; }
.metric-sub { font-size: 0.65rem; color: var(--text-dark); }

.badge-threshold {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-coin);
  color: var(--gold-coin);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.threshold-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

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

.progress-badge {
  background: var(--gold-coin);
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-coin), var(--primary-crimson));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.withdraw-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* User Top-Up Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast);
}

.package-card:hover {
  transform: translateY(-4px);
}

.package-card.popular {
  border-color: var(--primary-crimson);
  background: linear-gradient(180deg, rgba(255, 23, 68, 0.15), var(--bg-card));
}

.package-card.gold-border {
  border-color: var(--gold-coin);
}

.package-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.popular-badge { color: var(--primary-crimson); }
.gold-bg { color: var(--gold-coin); }

.coin-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.bonus-tag {
  font-size: 0.7rem;
  color: var(--gold-coin);
  font-weight: 700;
  margin-bottom: 8px;
}

.package-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.package-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-crimson);
  margin-bottom: 14px;
}

.user-current-balance-badge {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold-coin);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gold-coin);
}

.margin-top-30 { margin-top: 24px; }
.margin-top-20 { margin-top: 16px; }

/* Modal Overlay System */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 8, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #120f1d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  max-height: 90vh;
  overflow-y: auto;
}

.age-gate-card {
  text-align: center;
  max-width: 480px;
}

.age-gate-header {
  margin-bottom: 16px;
}

.age-badge {
  background: var(--primary-crimson);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.brand-logo-large {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.brand-logo-large span { color: var(--primary-crimson); }

.age-gate-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.order-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.summary-line.total {
  border-top: 1px solid var(--border-light);
  padding-top: 6px;
  margin-top: 6px;
  font-size: 0.95rem;
}

.payment-methods-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
}

.payment-method-item:has(input:checked) {
  border-color: var(--primary-crimson);
  background: rgba(255, 23, 68, 0.1);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 90vw;
}

.toast {
  background: #181426;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-color: #00e676; }
.toast.info { border-color: var(--accent-violet); }
.toast.gold { border-color: var(--gold-coin); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dark);
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-link i {
  font-size: 1.1rem;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--primary-crimson);
}

.mobile-nav-link.gold-link {
  color: var(--gold-coin);
}

/* Helpers */
.hidden { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 16px; padding-bottom: 80px; }
  .mobile-bottom-nav { display: flex; }
  .watch-container { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 0; }
  .header-center { display: none; }
}

@media (max-width: 580px) {
  .main-header { padding: 0 12px; }
  .brand-logo { font-size: 1.1rem; }
  .role-label { display: none; }
  .wallet-pill { padding: 4px 8px; }
  .coin-unit { display: none; }
  .hero-banner { padding: 20px; }
  .hero-content h1 { font-size: 1.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 16px; }
}
