/* ==========================================================================
   CARRYME GAMER DATING APP - COMPONENTS AND MODULES
   ========================================================================== */

/* HUD Panels & General Cards */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.panel-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-shadow: var(--border-glow);
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ==========================================================================
   1. SWIPE DECK COMPONENT
   ========================================================================== */
.deck-section-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  gap: 2rem;
  padding: 1rem;
}

.card-stack-container {
  width: 380px;
  height: 560px;
  position: relative;
  perspective: 1000px;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-panel);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  cursor: grab;
  transform-origin: 50% 100%;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.swipe-card:active {
  cursor: grabbing;
}

/* 3D Stack Offset Styling */
.swipe-card:nth-last-child(2) {
  transform: scale(0.95) translateY(12px) translateZ(-10px);
  opacity: 0.85;
  pointer-events: none;
}

.swipe-card:nth-last-child(3) {
  transform: scale(0.9) translateY(24px) translateZ(-20px);
  opacity: 0.6;
  pointer-events: none;
}

.swipe-card.top-card {
  border-color: rgba(255, 255, 255, 0.15);
  pointer-events: auto;
}

.swipe-card.top-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.12);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
}

/* Card Visual Frame (Avatar & Synergy Badge) */
.card-visual-frame {
  height: 250px;
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--border-color);
}

.avatar-box {
  font-size: 6rem;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(255,255,255,0.03) 100%);
  border: 3px dashed var(--accent-secondary);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-synergy-badge {
  position: absolute;
  bottom: -22px;
  right: 20px;
  width: 65px;
  height: 65px;
  border-radius: var(--border-radius-circle);
  background: var(--bg-secondary);
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.synergy-num {
  font-family: var(--font-gaming);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
}

.synergy-lbl {
  font-size: 0.55rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Meta Details */
.card-meta {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 1;
}

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

.meta-row h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.gamer-lvl {
  font-family: var(--font-gaming);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.card-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-platforms {
  display: flex;
  gap: 0.5rem;
}

.platform-chip {
  font-family: var(--font-gaming);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}
.platform-chip.pc { background: rgba(0, 240, 255, 0.1); color: #00f0ff; border-color: rgba(0, 240, 255, 0.2); }
.platform-chip.playstation { background: rgba(0, 102, 255, 0.1); color: #0088ff; border-color: rgba(0, 102, 255, 0.2); }
.platform-chip.xbox { background: rgba(16, 124, 16, 0.1); color: #107c10; border-color: rgba(16, 124, 16, 0.2); }
.platform-chip.switch { background: rgba(228, 0, 15, 0.1); color: #e4000f; border-color: rgba(228, 0, 15, 0.2); }

.card-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
}

.card-game-tags {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.game-tag {
  display: inline-block;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  margin-top: 4px;
  border: 1px solid var(--border-color);
}

.card-categories {
  font-family: var(--font-gaming);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* Action controls at bottom of deck */
.deck-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.control-btn {
  width: 55px;
  height: 55px;
  border-radius: var(--border-radius-circle);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
}

.control-btn:hover {
  transform: scale(1.1);
}

.control-btn i {
  width: 24px;
  height: 24px;
  transition: stroke var(--transition-fast);
}

#action-pass:hover { border-color: var(--accent-secondary); box-shadow: 0 0 15px var(--accent-glow-secondary); }
#action-pass:hover i { stroke: var(--accent-secondary); }

#action-like:hover { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
#action-like:hover i { stroke: var(--accent); }

#action-super {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 215, 0, 0.05) 100%);
}
#action-super i { width: 28px; height: 28px; color: #ffd700; }
#action-super:hover { border-color: #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }

/* Empty deck state */
.empty-deck-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  background: rgba(0, 0, 0, 0.2);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.empty-deck-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-deck-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 280px;
}

/* ==========================================================================
   2. MATCHES & CHAT PANEL COMPONENTS
   ========================================================================== */
.chat-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  height: 75vh;
}

/* Sidebar Matches List */
.matches-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.matches-sidebar-title {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.matches-sidebar-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.5rem;
}

.match-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.match-sidebar-item:hover,
.match-sidebar-item.active {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  box-shadow: var(--border-glow);
}

.match-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-circle);
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.match-meta {
  flex: 1;
  min-width: 0;
}

.match-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
}

.match-tagname {
  font-family: var(--font-gaming);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-love-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-secondary);
}

.match-last-msg {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-sidebar-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Chat Terminal Panel */
.chat-terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chat-header-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-circle);
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.header-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.header-affection-container {
  width: 160px;
}

.header-affection-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.affection-lbl {
  color: var(--text-secondary);
  font-family: var(--font-gaming);
}

.affection-pct {
  font-weight: 700;
  color: var(--accent-secondary);
  font-family: var(--font-gaming);
}

.affection-progress-bar {
  height: 6px;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.affection-fill {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Message Scroll list */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.chat-msg-header {
  display: flex;
  gap: 0.5rem;
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
  padding: 0 4px;
}

.chat-username {
  font-family: var(--font-gaming);
  font-weight: 700;
}

.chat-time {
  color: var(--text-muted);
}

.chat-text {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
}

/* User Message vs Match Message layouts */
.user-msg {
  align-self: flex-end;
}
.user-msg .chat-username { color: var(--accent-secondary); }
.user-msg .chat-text {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-secondary);
  color: var(--text-primary);
  border-top-right-radius: 0;
  box-shadow: 0 2px 10px rgba(255, 0, 127, 0.05);
}

.match-msg {
  align-self: flex-start;
}
.match-msg .chat-username { color: var(--accent); }
.match-msg .chat-text {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 0;
}

.empty-chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
}

/* Chat Terminal Input Form */
.chat-input-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.quick-replies-wrap {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.quick-reply-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-align: left;
  white-space: nowrap;
  min-width: 140px;
}

.quick-reply-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-secondary);
}

.btn-tag {
  font-family: var(--font-gaming);
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.btn-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.chat-input-row {
  display: flex;
  gap: 1rem;
}

.chat-field {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.chat-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--border-glow);
}

/* Dynamic Typing Indicator Loading Dots */
.typing-dots {
  display: flex;
  gap: 3px;
  padding: 0.25rem 0.5rem;
}

.typing-dots span {
  font-size: 1.5rem;
  line-height: 0.2;
  color: var(--text-muted);
  animation: bounce 1.4s infinite ease-in-out both;
}

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

/* ==========================================================================
   3. MY LOADOUT PROFILE CONFIG COMPONENT
   ========================================================================== */
.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.profile-form-group label {
  font-family: var(--font-gaming);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.profile-form-group input[type="text"],
.profile-form-group select,
.profile-form-group textarea {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.profile-form-group input[type="text"]:focus,
.profile-form-group select:focus,
.profile-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--border-glow);
}

/* Checkbox visual grids */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
}

.profile-actions {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* ==========================================================================
   4. BUTTONS & UI ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-gaming);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-secondary);
  color: #fff;
  border: 1px solid var(--accent-secondary);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.btn-primary:hover {
  background: #ff3399;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.05);
}

/* ==========================================================================
   5. OVERLAY MODALS & NOTIFICATIONS
   ========================================================================== */
.hud-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease forwards;
}

.match-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.match-modal-container {
  position: relative;
  background: rgba(15, 17, 26, 0.9);
  border: 2px solid var(--accent-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 35px var(--accent-glow-secondary);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  z-index: 10;
  transform: scale(0.9);
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.match-title-hologram {
  font-family: var(--font-gaming);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.match-avatars-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.user-avatar-side,
.match-avatar-side {
  width: 90px;
  height: 90px;
  border-radius: var(--border-radius-circle);
  background: rgba(0,0,0,0.5);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.match-avatar-side {
  border-color: var(--accent-secondary);
}

.heart-split-icon {
  font-size: 2rem;
  animation: pulse 1.2s infinite;
}

.match-lightning {
  color: #ffd700;
  width: 32px;
  height: 32px;
  fill: #ffd700;
}

.match-modal-container h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.match-modal-container p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.match-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Privacy compliance modal */
.privacy-modal-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.privacy-modal-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.privacy-content-scroll {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.privacy-content-scroll h3 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.privacy-modal-card button {
  float: right;
}

/* Floating Toast notifications */
.notification-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hud-notification {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
  overflow: hidden;
  align-items: center;
}

.hud-notification.active {
  transform: translateX(0);
}

.notif-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.notif-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Love milestones overlay */
.love-confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2500;
  overflow: hidden;
}

.love-particle {
  position: absolute;
  user-select: none;
  animation: floatUp 3s linear forwards;
}

.love-milestone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2600;
  animation: fadeIn 0.3s ease forwards;
}

.love-milestone-card {
  background: var(--bg-panel);
  border: 2px solid var(--accent-secondary);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 450px;
  width: 100%;
  animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

.milestone-hearts {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 1s infinite;
}

.love-milestone-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.love-milestone-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

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

@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.fade-out {
  opacity: 0 !important;
  transform: scale(0.9) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

@media (max-width: 768px) {
  .chat-layout-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .matches-sidebar {
    max-height: 200px;
  }
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
  .profile-actions {
    grid-column: 1;
  }
}

/* ==========================================================================
   6. MATTYJACKS.COM HIRE PROMO SECTION
   ========================================================================== */
.mattyjacks-promo-section {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: #050508;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-accent);
  text-align: center;
}

.mattyjacks-promo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(255, 0, 127, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.mattyjacks-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  background: #000;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  font-family: var(--font-gaming);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
  position: relative;
  z-index: 1;
}

.mattyjacks-heading {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: var(--font-gaming);
  position: relative;
  z-index: 1;
}

.mattyjacks-heading span {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.mattyjacks-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.mattyjacks-pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.mattyjacks-pitch-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  text-align: left;
  transition: all var(--transition-normal);
}

.mattyjacks-pitch-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.02);
  transform: translateY(-2px);
}

.mattyjacks-pitch-icon {
  color: #10b981;
  margin-bottom: 0.75rem;
}

.mattyjacks-pitch-title {
  font-family: var(--font-gaming);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.mattyjacks-pitch-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mattyjacks-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.mattyjacks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius-md);
  background: #10b981;
  color: #000;
  font-family: var(--font-gaming);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.mattyjacks-btn:hover {
  background: transparent;
  color: #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.mattyjacks-die-trying {
  font-family: var(--font-gaming);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
  animation: pulse 2s infinite;
}

@media (max-width: 600px) {
  .mattyjacks-pitch-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AI VISION & DYNAMIC VOICE DATE LAB STYLES
   ========================================================================== */

.header-emotion-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  font-family: var(--font-primary);
  vertical-align: middle;
  margin-left: 0.5rem;
}

.header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.mic-active {
  background: var(--accent-secondary) !important;
  color: #fff !important;
  border-color: var(--accent-secondary) !important;
  animation: pulse 1s infinite;
  box-shadow: 0 0 15px var(--accent-secondary) !important;
}

/* Vision Date Lab HUD Modal */
.vision-date-modal .vision-date-card {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: rgba(10, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--accent);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 1001;
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.vision-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-gaming);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.vision-header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auto-voice-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-icon-close:hover {
  color: var(--accent-secondary);
}

/* Split Screen Grid */
.vision-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .vision-date-grid {
    grid-template-columns: 1fr;
  }
}

.vision-feed-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.feed-badge {
  font-family: var(--font-gaming);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Webcam Container & Canvas Layer */
.cam-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #05070a;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.cam-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-wrapper canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cam-fallback-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 25, 0.9);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

.emotion-telemetry-card {
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed var(--accent);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.telemetry-label {
  color: var(--text-muted);
}

.telemetry-val {
  font-weight: 700;
  color: var(--accent-secondary);
  font-family: var(--font-gaming);
}

.telemetry-desc {
  color: var(--text-primary);
  font-style: italic;
}

/* Match Hologram Box */
.match-holo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, rgba(255, 0, 127, 0.15) 0%, rgba(5, 7, 10, 0.9) 70%);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 0, 127, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.match-holo-avatar {
  font-size: 4rem;
  filter: drop-shadow(0 0 20px var(--accent-secondary));
  animation: float 3s ease-in-out infinite;
}

.match-emotion-ring {
  margin-top: 0.5rem;
}

.match-mood-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: var(--accent-secondary);
  color: #fff;
  font-family: var(--font-gaming);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 15px var(--accent-secondary);
}

/* Particle layer */
.emotion-particles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.emotion-particle {
  position: absolute;
  font-size: 1.2rem;
  animation: floatParticle 1.5s ease-out forwards;
}

@keyframes floatParticle {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.4);
  }
}

/* Voice Card & Spectrum */
.match-voice-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.match-reaction-box {
  background: rgba(0, 0, 0, 0.5);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.voice-spectrum-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spectrum-lbl {
  font-size: 0.6rem;
  font-family: var(--font-gaming);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.voice-spectrum-wrap canvas {
  width: 100%;
  height: 35px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Vision Action Controls */
.vision-date-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.btn-accent {
  background: linear-gradient(135deg, #00f0ff 0%, #ff007f 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-accent:hover {
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.6);
  transform: translateY(-2px);
}

.btn-skip-good-part {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-family: var(--font-gaming);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
  animation: pulse 2.5s infinite;
  transition: all var(--transition-normal);
}

.btn-skip-good-part:hover {
  box-shadow: 0 0 30px #ff007f, 0 0 10px #00f0ff;
  transform: scale(1.05);
}

.auto-date-active {
  background: #ff007f !important;
  box-shadow: 0 0 20px #ff007f !important;
  animation: pulse 1.2s infinite;
}

.auto-session-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: var(--font-gaming);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.waifu-3d-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.waifu-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.match-holo-avatar {
  position: relative;
  z-index: 2;
}

.match-emotion-ring {
  position: relative;
  z-index: 2;
}

/* Embedded Vision Date Chat Transcript Log Box */
.vision-chat-log-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vision-chat-messages {
  max-height: 120px;
  min-height: 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 0.25rem;
}

.vision-chat-msg {
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  max-width: 90%;
  word-break: break-word;
}

.vision-chat-msg.user {
  align-self: flex-end;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--text-primary);
}

.vision-chat-msg.match {
  align-self: flex-start;
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid rgba(255, 0, 127, 0.3);
  color: var(--text-primary);
}

.vision-chat-msg.system-msg {
  align-self: center;
  background: transparent;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.72rem;
  text-align: center;
}

.vision-chat-input-wrap {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.vision-chat-input-wrap input {
  flex: 1;
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.4rem 0.75rem;
  color: var(--text-primary);
  font-size: 0.78rem;
}

.vision-chat-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 640px) {
  /* Vision Date Modal Mobile Layout */
  .vision-date-modal {
    padding: 0.5rem;
  }
  .vision-date-modal .vision-date-card {
    width: 98%;
    padding: 0.85rem;
    max-height: 94vh;
    overflow-y: auto;
    gap: 0.85rem;
  }
  .vision-date-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .vision-title {
    font-size: 0.75rem;
  }
  .vision-header-controls {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
  .vision-date-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .cam-wrapper,
  .match-holo-wrapper {
    aspect-ratio: 16 / 10;
  }
  .vision-chat-messages {
    max-height: 100px;
    min-height: 70px;
  }
  .vision-date-actions {
    justify-content: stretch;
    gap: 0.5rem;
  }
  .vision-date-actions button {
    flex: 1 1 46%;
    font-size: 0.72rem;
    padding: 0.55rem 0.4rem;
    justify-content: center;
  }

  /* Swipe Deck Mobile Layout */
  .swipe-deck-container {
    height: 440px;
    max-width: 100%;
  }
  .swipe-card {
    height: 440px;
  }
  .card-content-wrap {
    padding: 1.25rem 1rem;
  }
  .card-header-main h2 {
    font-size: 1.4rem;
  }
  .deck-actions-wrap {
    gap: 0.75rem;
    margin-top: 1rem;
  }
  .action-btn-circle {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  /* Chat System Mobile Layout */
  .chat-layout-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto;
  }
  .matches-sidebar {
    max-height: 180px;
  }
  .chat-messages-container {
    height: 350px;
  }
  .chat-input-wrapper {
    flex-wrap: wrap;
  }
  .chat-input-wrapper input {
    width: 100%;
  }
}
