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

:root {
  --primary: #FE2C55;
  --secondary: #25F4EE;
  --dark: #121212;
  --dark-light: #1F1F1F;
  --text: #FFFFFF;
  --text-secondary: #A0A0A0;
  --border: #2F2F2F;
  --success: #00D26A;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
}

/* Auth Screen */
#auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #121212 100%);
}

.auth-container {
  background: var(--dark-light);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.5s ease;
}

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

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

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

.logo-circle i {
  font-size: 40px;
  color: white;
}

.auth-logo h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--dark);
  padding: 4px;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

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

.auth-forms {
  position: relative;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--dark);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
}

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

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), #FE2C55);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.auth-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  background: var(--dark-light);
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
}

.btn-google {
  width: 100%;
  padding: 14px;
  background: white;
  border: none;
  border-radius: 12px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-google:hover {
  transform: scale(1.02);
}

.btn-google i {
  color: #4285f4;
  font-size: 20px;
}

#auth-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

#auth-message.error {
  background: rgba(254, 44, 85, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
  display: block;
}

#auth-message.success {
  background: rgba(0, 210, 106, 0.2);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

/* App Screen */
#app-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: 60px;
  background: var(--dark-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}

.header-logo i {
  color: var(--primary);
}

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

.header-user span {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: var(--border);
}

/* Content Area */
.app-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-bottom: 70px;
  transition: padding-bottom 0.3s ease;
}

.app-content.fullscreen {
  padding-bottom: 0;
}

.view {
  display: none;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* Stranger Chat View */
.stranger-header {
  background: var(--dark-light);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stranger-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.stranger-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  animation: pulse 2s infinite;
}

.stranger-details h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.stranger-details span {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.btn-heart {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), #FE2C55);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-heart:hover:not(:disabled) {
  transform: scale(1.1);
}

.btn-heart:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.btn-heart.pulse-effect {
  animation: heartBeat 0.6s ease;
}

.timer-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--dark);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.timer-badge i {
  color: var(--primary);
}

/* Welcome Form */
.welcome-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 20px;
  overflow-y: auto;
}

.welcome-content {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.welcome-content i {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.welcome-content h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
}

.welcome-content p {
  font-size: 15px;
  margin-bottom: 8px;
}

.welcome-content .sub-text {
  font-size: 13px;
  color: var(--border);
}

/* Active Chat Form */
.active-chat-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  overflow: hidden;
}

.welcome-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.welcome-message i {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.welcome-message h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
}

.welcome-message p {
  font-size: 15px;
  margin-bottom: 8px;
}

.welcome-message .sub-text {
  font-size: 13px;
  color: var(--border);
}

.btn-start {
  margin-top: 32px;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.3);
}

.btn-start:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(254, 44, 85, 0.4);
}

.btn-start i {
  font-size: 20px;
}

.chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--dark);
}

.chat-status {
  padding: 24px;
  text-align: center;
  background: var(--dark-light);
  border-bottom: 1px solid var(--border);
}

.chat-status i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.chat-status p {
  color: var(--text-secondary);
  font-size: 15px;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 16px;
  animation: slideIn 0.3s ease;
}

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

.message.sent {
  text-align: right;
}

.message-bubble {
  display: inline-block;
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
}

.message.received .message-bubble {
  background: var(--dark-light);
  border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
  background: linear-gradient(135deg, var(--primary), #FE2C55);
  border-bottom-right-radius: 4px;
}

.message.system .message-bubble {
  background: var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 90%;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: var(--dark-light);
  border-top: 1px solid var(--border);
}

.chat-input-container {
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.chat-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

#message-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--dark);
  border: 2px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

#message-input:focus {
  border-color: var(--primary);
}

#send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#send-btn:hover:not(:disabled) {
  transform: scale(1.1);
}

#send-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.btn-next {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-next:hover:not(:disabled) {
  transform: scale(1.02);
}

.btn-next:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.btn-next i {
  font-size: 18px;
}

.chat-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--dark);
}

.btn-action {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

#next-btn {
  background: var(--dark-light);
  color: var(--text);
  border: 2px solid var(--border);
}

#next-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-like {
  background: linear-gradient(135deg, var(--primary), #FE2C55);
  color: white;
}

.btn-like:hover {
  transform: scale(1.05);
}

.btn-like.pulse-effect {
  animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

#timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--dark-light);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

#timer-display i {
  color: var(--primary);
}

/* Messenger View */
/* Messenger Layout - Two Column Design */
.messenger-layout {
  display: flex;
  height: 100%;
  background: var(--dark);
}

/* Sidebar */
.messenger-sidebar {
  width: 360px;
  background: var(--dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.messenger-header {
  padding: 20px;
  background: var(--dark-light);
  border-bottom: 1px solid var(--border);
}

.messenger-header h2 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--dark);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.1);
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.contact-item:hover {
  background: var(--dark-light);
}

.contact-item.active {
  background: var(--dark-light);
  border-left: 3px solid var(--primary);
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--dark);
}

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

.contact-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 64px;
  color: var(--border);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Chat Window - Placeholder */
.chat-window-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 40px;
}

.chat-window-placeholder i {
  font-size: 100px;
  color: var(--border);
  margin-bottom: 24px;
  opacity: 0.3;
}

.chat-window-placeholder h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.chat-window-placeholder p {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 400px;
}

/* Chat Window - Active */
.chat-window-active {
  flex: 1;
  display: none;
  flex-direction: column;
  background: var(--dark);
}

.chat-window-active.active {
  display: flex;
}

.chat-active-header {
  padding: 16px 24px;
  background: var(--dark-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back {
  display: none; /* Hidden on desktop */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--primary);
  color: white;
}

.chat-partner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.chat-partner-info {
  flex: 1;
  min-width: 0;
}

.chat-partner-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.chat-partner-status {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-partner-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.chat-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.action-btn.blocked {
  background: var(--success);
  color: white;
}

.action-btn.blocked:hover {
  background: #34c759;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--dark);
}

.chat-input-area {
  padding: 16px 24px;
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-actions {
  display: flex;
  gap: 8px;
}

.input-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.input-action-btn:hover {
  background: var(--primary);
  color: white;
}

#private-message-input {
  flex: 1;
  padding: 12px 20px;
  background: var(--dark);
  border: 2px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

#private-message-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.1);
}

#private-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

#private-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(254, 44, 85, 0.5);
}

#private-send-btn:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .messenger-sidebar {
    width: 100%;
    border-right: none;
  }
  
  .messenger-sidebar.hide-mobile {
    display: none;
  }
  
  .chat-window-placeholder {
    display: none;
  }
  
  .chat-window-active.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    z-index: 200;
  }
  
  .btn-back {
    display: flex; /* Show on mobile */
  }
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  transition: all 0.2s;
}

.nav-item i {
  font-size: 24px;
  transition: transform 0.2s;
}

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

.nav-item.active i {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 10px;
  right: 50%;
  transform: translateX(20px);
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: var(--dark-light);
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  animation: slideUp 0.3s;
}

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

.modal-header h3 {
  font-size: 20px;
}

.btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--text);
  cursor: pointer;
}

.modal-body {
  padding: 24px 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--dark);
  border-radius: 16px;
}

.user-info i {
  font-size: 48px;
  color: var(--primary);
}

.user-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.user-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-logout {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Searching Modal */
.searching-modal {
  background: rgba(0, 0, 0, 0.95);
}

.searching-content {
  text-align: center;
  padding: 48px 32px;
}

.searching-animation {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.search-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  animation: bounce 1.4s infinite ease-in-out;
}

.search-circle:nth-child(1) {
  animation-delay: -0.32s;
}

.search-circle:nth-child(2) {
  animation-delay: -0.16s;
}

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

.searching-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.searching-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.search-timer {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.btn-cancel {
  padding: 12px 32px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-cancel:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-container {
    margin: 20px;
    padding: 32px 24px;
  }

  .messages {
    padding: 16px;
  }

  .message-bubble {
    max-width: 85%;
  }

  /* Emoji picker adjustments for mobile */
  .emoji-picker {
    max-width: 280px;
    bottom: 60px;
    left: 5px;
  }

  .emoji-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    max-height: 240px;
  }

  .emoji-item {
    width: 32px;
    height: 32px;
    padding: 2px;
  }

  .emoji-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Message icons and stickers */
  .message-icon {
    width: 28px;
    height: 28px;
    display: inline-block;
  }

  .sticker-large {
    width: 100px;
    height: 100px;
    max-width: 100%;
  }
}

/* Voice Call Modal */
.call-modal {
  text-align: center;
  padding: 48px 32px;
}

.call-header {
  margin-bottom: 32px;
}

.call-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.3);
  animation: pulse 2s infinite;
}

.call-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.call-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.call-timer {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}

.call-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.call-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s;
}

.mute-btn {
  background: var(--dark);
  color: var(--text);
}

.mute-btn:hover {
  background: var(--border);
  transform: scale(1.1);
}

.mute-btn.muted {
  background: var(--primary);
  color: white;
}

.end-call-btn {
  background: #ff3b30;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.end-call-btn:hover {
  background: #e6342a;
  transform: scale(1.1);
}

.speaker-btn {
  background: var(--dark);
  color: var(--text);
}

.speaker-btn:hover {
  background: var(--border);
  transform: scale(1.1);
}

.speaker-btn.active {
  background: var(--secondary);
  color: var(--dark);
}

/* Voice Recording Modal */
.recording-modal {
  text-align: center;
  padding: 48px 32px;
}

.recording-animation {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recording-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(254, 44, 85, 0.3);
  animation: pulse-ring 1.5s infinite;
}

.recording-animation i {
  font-size: 48px;
  color: var(--primary);
  z-index: 1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.recording-modal h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.recording-modal #recording-timer {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
}

.recording-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-send-voice {
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.4);
}

.btn-send-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(254, 44, 85, 0.5);
}

/* Voice Message in Chat */
.voice-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark-light);
  border-radius: 20px;
  max-width: 280px;
}

.voice-message.sent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.voice-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.voice-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.voice-waveform {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.voice-bar {
  width: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  transition: height 0.2s;
}

.voice-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Confirm Modals */
.confirm-modal {
  max-width: 400px;
  text-align: center;
  padding: 30px;
}

.confirm-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.confirm-icon.warning {
  background: rgba(254, 44, 85, 0.1);
  color: var(--primary);
}

.confirm-icon.success {
  background: rgba(46, 213, 115, 0.1);
  color: var(--success);
}

.confirm-modal h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.confirm-modal p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-actions button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger {
  background: var(--primary);
  color: white;
}

.btn-danger:hover {
  background: #ff1744;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #34c759;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
}

/* Incoming Call Modal */
.call-modal .call-header .incoming-call-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.call-avatar.incoming {
  animation: call-pulse 1.5s ease-in-out infinite;
}

@keyframes call-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 244, 238, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(37, 244, 238, 0);
  }
}

.call-actions.incoming {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.accept-btn {
  background: var(--success) !important;
}

.accept-btn:hover {
  background: #34c759 !important;
}

.reject-btn {
  background: var(--primary) !important;
}

.reject-btn:hover {
  background: #ff1744 !important;
}

/* Notification Toast */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
  transform: translateX(0);
}

.notification i {
  font-size: 20px;
}

.notification.success i {
  color: var(--success);
}

.notification.error i {
  color: var(--primary);
}

.notification.info i {
  color: var(--secondary);
}

.notification span {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Disabled state for chat input when blocked */
#private-message-input:disabled,
#private-send-btn:disabled,
#voice-record-btn:disabled,
#voice-call-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#private-message-input:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
}


/* Emoji Picker */
.emoji-picker {
  position: absolute;
  bottom: 70px;
  left: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-width: 320px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.emoji-item {
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.emoji-item:hover {
  background: var(--bg-hover);
  transform: scale(1.2);
}

.message-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin: 0 2px;
  display: inline-block;
  object-fit: contain;
}

/* Stranger Chat Emoji */
.stranger-emoji-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 8px;
}

.stranger-emoji-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.stranger-emoji-picker {
  bottom: 60px;
  left: 10px;
}

/* Sticker display styles */
.message-sticker {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.sticker-large {
  width: 128px;
  height: 128px;
  display: block;
  cursor: default;
  object-fit: contain;
  max-width: 100%;
}

/* Unread badge on contact item */
.contact-item {
  position: relative;
}

.unread-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
