/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: var(--font-size-md);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  min-height: 44px;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary-gradient-hover);
  box-shadow: var(--shadow-glow);
  opacity: 1;
}
.btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(254, 60, 114, 0.1);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  opacity: 1;
}

.btn-icon {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: var(--radius-full);
  font-size: 24px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  min-height: 36px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
  min-height: 52px;
}

.btn-like {
  background: var(--like-green);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 231, 139, 0.4);
}

.btn-nope {
  background: var(--nope-red);
  color: white;
  box-shadow: 0 4px 15px rgba(254, 60, 114, 0.4);
}

.btn-superlike {
  background: var(--superlike-blue);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 208, 254, 0.4);
}

.btn-boost {
  background: var(--boost-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(155, 109, 255, 0.4);
}

/* ===== INPUTS ===== */
.input-group {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.input:focus {
  border-color: var(--primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(254, 60, 114, 0.1);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  resize: vertical;
  min-height: 100px;
  transition: all var(--transition-fast);
}

.textarea:focus {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.textarea::placeholder {
  color: var(--text-tertiary);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(254, 60, 114, 0.2);
  color: var(--primary);
}

.badge-success {
  background: rgba(33, 231, 139, 0.2);
  color: var(--like-green);
}

.badge-warning {
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
}

.badge-verified {
  background: rgba(40, 208, 254, 0.2);
  color: var(--superlike-blue);
}

/* ===== AVATAR ===== */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

.avatar-ring {
  border: 3px solid var(--primary);
  padding: 2px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

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

.modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 20px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.3s ease forwards;
  max-width: 360px;
  border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: var(--like-green); }
.toast.error { border-left-color: var(--nope-red); }
.toast.info { border-left-color: var(--superlike-blue); }

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* ===== CHIP / INTEREST TAGS ===== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: default;
}

.chip.active {
  background: rgba(254, 60, 114, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.chip.removable {
  cursor: pointer;
}
.chip.removable:hover {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

.chip-remove {
  font-size: 14px;
  opacity: 0.6;
}
.chip.removable:hover .chip-remove {
  opacity: 1;
}

/* ===== LOADING ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

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

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.loading-screen .spinner {
  width: 40px;
  height: 40px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 16px;
}

.empty-state-icon {
  font-size: 64px;
  opacity: 0.3;
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state p {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  max-width: 280px;
}

/* ===== MATCH ANIMATION ===== */
.match-overlay {
  position: fixed;
  inset: 0;
  background: var(--primary-gradient);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.match-overlay h2 {
  font-size: 48px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: matchBounce 0.6s ease;
}

.match-avatars {
  display: flex;
  align-items: center;
  gap: 16px;
}

.match-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  animation: matchAvatarIn 0.5s ease 0.2s both;
}

.match-avatar:nth-child(2) {
  animation-delay: 0.35s;
}

.match-heart {
  font-size: 36px;
  color: white;
  animation: heartPulse 1s ease infinite;
}

.match-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  animation: matchFadeIn 0.5s ease 0.5s both;
}

@keyframes matchBounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

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

/* ===== AFFINITY BAR ===== */
.affinity-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.affinity-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary-gradient);
  transition: width 0.6s ease;
}

.affinity-text {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

.affinity-text strong {
  color: var(--primary);
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.tab.active {
  color: var(--primary);
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.tab.active::after {
  transform: scaleX(1);
}
