/* ==========================================================================
   FlirtVibe - High Engagement Mainstream Dating & Chat Platform Styles
   Modern Dark Glassmorphism, Vivid Gradients & Micro-interactions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #0b0d14;
  --bg-surface: #121524;
  --bg-card: rgba(22, 27, 46, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 42, 112, 0.35);

  --primary: #ff2a70;
  --primary-hover: #ff4785;
  --primary-gradient: linear-gradient(135deg, #ff2a70 0%, #ff5e62 100%);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --neon-glow: 0 0 25px rgba(255, 42, 112, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-floating: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

/* --------------------------------------------------------------------------
   ADSTERRA MONETIZATION BANNER CONTAINERS
   -------------------------------------------------------------------------- */
.ad-slot-leaderboard {
  max-width: 1360px;
  margin: 12px auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ad-slot-card {
  background: rgba(22, 27, 46, 0.5);
  border: 1px dashed rgba(255, 42, 112, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 350px;
  overflow: hidden;
}

.ad-slot-native {
  max-width: 1360px;
  margin: 30px auto;
  padding: 0 20px;
}

.ad-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-align: center;
}

.sticky-mobile-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 13, 20, 0.95);
  border-top: 1px solid var(--border-glow);
  padding: 4px 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 998;
  backdrop-filter: blur(10px);
}

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

/* --------------------------------------------------------------------------
   NAVBAR & HEADER
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 20%, #ff2a70 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo svg {
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(255, 42, 112, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  background: var(--bg-glass);
}

.nav-badge-live {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  animation: pulse 1.8s infinite;
}

.btn-vip-upgrade {
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(255, 42, 112, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-vip-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-glow);
}

/* --------------------------------------------------------------------------
   HERO / PROMO BANNER
   -------------------------------------------------------------------------- */
.hero-banner {
  max-width: 1360px;
  margin: 14px auto 10px;
  padding: 0 20px;
}

.hero-box {
  background: linear-gradient(135deg, rgba(255, 42, 112, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 42, 112, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text h1 {
  font-size: 28px;
  margin-bottom: 6px;
  background: linear-gradient(to right, #ffffff, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: block;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   STORIES / LIVE GIRLS CAROUSEL
   -------------------------------------------------------------------------- */
.stories-section {
  max-width: 1360px;
  margin: 16px auto;
  padding: 0 20px;
}

.stories-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 4px 16px;
  scrollbar-width: none;
}

.stories-slider::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.story-item:hover {
  transform: translateY(-4px);
}

.story-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #ff2a70, #8b5cf6, #06b6d4);
  position: relative;
}

.story-avatar-wrap.live::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff2a70, #ff5e62);
  animation: pulse-ring 2s infinite;
  z-index: -1;
}

.story-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-main);
}

.story-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* --------------------------------------------------------------------------
   FILTERS & CONTROLS
   -------------------------------------------------------------------------- */
.filter-bar {
  max-width: 1360px;
  margin: 10px auto 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 42, 112, 0.3);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 42, 112, 0.25);
}

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

/* --------------------------------------------------------------------------
   MODELS FEED GRID
   -------------------------------------------------------------------------- */
.models-grid-section {
  max-width: 1360px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 112, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 112, 0.2);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  cursor: pointer;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.model-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 40%, rgba(11,13,20,0.95) 100%);
}

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-status {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.5s infinite;
}

.badge-match {
  background: rgba(255, 42, 112, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.card-like-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  transition: var(--transition);
}

.card-like-btn:hover, .card-like-btn.liked {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.15);
  color: #fff;
}

.card-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.model-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-verified {
  color: #38bdf8;
  font-size: 16px;
}

.model-age {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 18px;
}

.model-location {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.model-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: auto;
}

.btn-view-profile {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

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

.btn-start-chat {
  background: var(--primary-gradient);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 42, 112, 0.3);
}

.btn-start-chat:hover {
  box-shadow: var(--neon-glow);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   FLOATING CHAT DRAWER / WIDGET
   -------------------------------------------------------------------------- */
.chat-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 540px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 100px);
  background: #121524;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.chat-drawer.open {
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  background: rgba(18, 21, 36, 0.95);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.chat-header-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.chat-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
}

.chat-header-info h4 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header-info p {
  font-size: 12px;
  color: #10b981;
}

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

.chat-ctrl-btn {
  background: var(--bg-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.chat-messages-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(11, 13, 20, 0.6);
}

.message-bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.message-bubble-row.user {
  align-self: flex-end;
}

.message-bubble-row.model {
  align-self: flex-start;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.message-bubble-row.user .message-bubble {
  background: var(--primary-gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-bubble-row.model .message-bubble {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  padding: 0 4px;
}

.message-bubble-row.user .message-time {
  text-align: right;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-radius: 16px;
  width: fit-content;
  border: 1px solid var(--border-glass);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Media teasers & unlockables */
.media-unlock-card {
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
}

.media-blur-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.media-blur-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.7);
  transform: scale(1.1);
}

.media-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  text-align: center;
}

.btn-unlock-media {
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(255, 42, 112, 0.4);
}

.icebreakers-tray {
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.icebreakers-tray::-webkit-scrollbar {
  display: none;
}

.icebreaker-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

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

.chat-input-form {
  padding: 12px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 14px;
  outline: none;
}

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

.btn-send-chat {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255, 42, 112, 0.3);
  flex-shrink: 0;
}

.btn-send-chat:hover {
  transform: scale(1.08);
}

/* Floating Chat Trigger Button (when drawer is closed) */
.floating-chat-bubble-btn {
  position: fixed;
  bottom: 60px;
  right: 24px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--neon-glow), 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: float 3s ease-in-out infinite;
}

.floating-chat-bubble-btn .badge-count {
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   PROFILE PREVIEW MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

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

.profile-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-floating);
  position: relative;
}

.btn-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.modal-gallery-main {
  width: 100%;
  height: 380px;
  position: relative;
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3);
}

.modal-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.modal-thumb.active, .modal-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.modal-content-details {
  padding: 24px;
}

.modal-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-cta-row button {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   FULL CHAT PAGE (chat.php)
   -------------------------------------------------------------------------- */
.chat-app-wrapper {
  max-width: 1360px;
  height: calc(100vh - 110px);
  margin: 16px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

.chat-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-search {
  padding: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.sidebar-models-list {
  flex: 1;
  overflow-y: auto;
}

.sidebar-model-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-model-item:hover, .sidebar-model-item.active {
  background: rgba(255, 42, 112, 0.12);
  border-left: 3px solid var(--primary);
}

.sidebar-avatar-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-model-info {
  flex: 1;
  min-width: 0;
}

.sidebar-model-info h5 {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-model-info p {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.chat-main-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   INTERACTIVE ENGAGEMENT POPUPS & NOTIFICATIONS
   -------------------------------------------------------------------------- */
.incoming-call-card {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #161a2d;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--neon-glow), 0 20px 40px rgba(0, 0, 0, 0.8);
  z-index: 3000;
  max-width: 380px;
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.call-avatar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
}

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

.call-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulse-ring 1.5s infinite;
}

.call-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.call-info p {
  font-size: 12px;
  color: #10b981;
}

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

.btn-call-decline {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-call-accept {
  background: #10b981;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.quick-toast-notif {
  position: fixed;
  bottom: 80px;
  left: 24px;
  background: rgba(18, 21, 36, 0.95);
  border: 1px solid var(--border-glow);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-floating);
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: slideUp 0.4s ease;
}

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

.toast-text {
  font-size: 13px;
}

.toast-text small {
  display: block;
  color: var(--text-muted);
}

.toast-chat-btn {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   FOOTER & MONETIZATION SLOTS
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 20px 80px;
  background: var(--bg-main);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes bounceIn {
  0% { transform: translateY(-40px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .chat-app-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chat-sidebar {
    max-height: 250px;
  }

  .chat-main-panel {
    height: 550px;
  }

  .hero-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .models-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  .nav-links .nav-item {
    display: none;
  }

  .models-grid {
    grid-template-columns: 1fr;
  }

  .chat-drawer {
    width: 100%;
    right: 0;
    bottom: 50px;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
  }

  .incoming-call-card {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
