/* ==========================================================================
   Chaturbate Modern Clone - Master Stylesheet
   Design System: Dark Glassmorphism, Neon Accents, Responsive Grid & Flex
   ========================================================================== */

:root {
  --bg-main: #0a0b10;
  --bg-surface: #12141d;
  --bg-card: #181a26;
  --bg-card-hover: #202334;
  --bg-glass: rgba(24, 26, 38, 0.75);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 51, 102, 0.3);

  --accent-primary: #ff3366;
  --accent-primary-hover: #ff4777;
  --accent-secondary: #8b5cf6;
  --accent-orange: #ff7849;
  --accent-gold: #ffb703;
  --accent-green: #10b981;

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

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(255, 51, 102, 0.25);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 51, 102, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Gender Nav Tabs */
.gender-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.nav-tab {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: var(--shadow-glow);
}

/* Search Bar */
.search-box {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-affiliate {
  padding: 0.45rem 1rem;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-affiliate:hover {
  background: rgba(255, 183, 3, 0.22);
  transform: translateY(-1px);
}

/* Tags Toolbar Bar */
.tags-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.tags-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-pill {
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tag-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.tag-pill.active {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  font-weight: 600;
}

/* Main Content Area */
.app-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

/* Sidebar Filters */
.sidebar-filters {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.checkbox-label:hover {
  color: var(--text-main);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
}

.select-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
}

.select-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Grid Header Controls */
.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.grid-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grid-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.stream-count-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Stream Cards Grid */
.cams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Cam Card Element */
.cam-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.card-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #000;
  overflow: hidden;
}

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

.cam-card:hover .card-thumbnail {
  transform: scale(1.05);
}

.card-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}

.badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
}

.badge-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.badge-item {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.badge-hd {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.badge-lang {
  background: rgba(0, 0, 0, 0.6);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-viewers {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: var(--transition);
}

.cam-card:hover .play-hover-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
  transform: scale(0.8);
  transition: var(--transition);
}

.cam-card:hover .play-btn-circle {
  transform: scale(1);
}

/* Card Body */
.card-content {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card-username-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-username {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-age-loc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-subject {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  height: 2.7em;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.card-tag-item {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

/* Card Actions */
.card-actions {
  padding: 0.6rem 0.85rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-watch {
  padding: 0.45rem 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-watch:hover {
  opacity: 0.9;
}

.btn-affiliate-link {
  padding: 0.45rem 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-affiliate-link:hover {
  background: rgba(255, 183, 3, 0.15);
  border-color: rgba(255, 183, 3, 0.4);
  color: var(--accent-gold);
}

/* Pornhub Style Compact Numeric Pagination Bar */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1rem 0;
}

.pagination-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  justify-content: center;
}

.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.pg-btn:hover:not(:disabled) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
}

.pg-btn.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  cursor: default;
}

.pg-btn.pg-nav {
  border-radius: var(--radius-full);
  padding: 0 14px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}

.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pg-ellipsis {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 0 4px;
}

/* Stream Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1280px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-username {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  flex: 1;
  overflow-y: auto;
}

.stream-player-container {
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
}

.stream-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.stream-sidebar-panel {
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.cta-box h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cta-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.btn-cta-large {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.5);
}

.btn-cta-secondary {
  display: block;
  width: 100%;
  padding: 0.6rem 0;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.btn-cta-secondary:hover {
  background: rgba(255, 183, 3, 0.25);
}

/* Chat Simulator */
.chat-simulator {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: 280px;
}

.chat-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
}

.chat-messages {
  flex: 1;
  padding: 0.5rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.chat-msg {
  line-height: 1.3;
}

.chat-user {
  font-weight: 700;
  color: var(--accent-secondary);
}

.chat-tip {
  color: var(--accent-gold);
  font-weight: 700;
  background: rgba(255, 183, 3, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Affiliate Config Modal */
.modal-sm {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Empty State / Loading */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 51, 102, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .stream-sidebar-panel {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

/* Hamburger Button - Hidden on Desktop */
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile Off-Canvas Drawer Menu */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  z-index: 2001;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.mobile-drawer-backdrop.open .mobile-drawer {
  transform: translateX(-320px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-item {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: var(--transition);
}

.drawer-nav-item:hover, .drawer-nav-item.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
}

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

  .gender-nav, .search-box, .tags-bar, .btn-affiliate {
    display: none !important; /* Hide desktop elements on mobile header */
  }

  .app-header {
    padding: 0.5rem 0.85rem;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .app-layout {
    padding: 0.6rem;
    gap: 0.6rem;
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    display: none;
  }

  .cams-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.6rem;
  }

  .card-content {
    padding: 0.45rem;
    gap: 0.2rem;
  }

  .card-username {
    font-size: 0.85rem;
  }

  .card-age-loc {
    font-size: 0.72rem;
  }

  .card-subject {
    font-size: 0.73rem;
    line-height: 1.25;
    height: 2.5em;
  }

  .card-actions {
    padding: 0.35rem 0.45rem 0.45rem;
    gap: 0.25rem;
    grid-template-columns: 1fr;
  }

  .btn-watch {
    padding: 0.4rem 0;
    font-size: 0.78rem;
  }

  .btn-affiliate-link {
    display: none;
  }

  /* Room Page Mobile Layout */
  .room-layout {
    margin: 0.5rem auto;
    padding: 0 0.5rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .player-header-bar {
    padding: 0.6rem 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .player-model-name {
    font-size: 1.1rem;
  }

  .room-action-buttons-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-cta-main-chat, .btn-cta-tip {
    width: 100%;
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
  }
}

/* Room Action Buttons Row & Alignment Fixes */
.room-action-buttons-row {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.btn-cta-main-chat {
  flex: 1 1 240px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-cta-main-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.5);
}

.btn-cta-tip {
  flex: 1 1 200px;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.4);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-cta-tip:hover {
  background: rgba(255, 183, 3, 0.25);
  transform: translateY(-2px);
}

.player-header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.player-subject-bar {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.room-subject-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.room-chat-section {
  margin-bottom: 1.5rem;
}
