/* ============================================
   Cloak - Anonymous Forum Application
   Modern Dark Theme CSS (Black & White)
   ============================================ */

/* CSS Variables for theming */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #0f0f0f;
  --bg-hover: #1f1f1f;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  /* Black and white accent colors */
  --accent-primary: #ffffff;
  --accent-secondary: #cccccc;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #888888 50%, #444444 100%);
  --accent-dark: #333333;
  
  --border-color: #2a2a2a;
  --border-light: #404040;
  
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #888888;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Selection styling */
::selection {
  background: var(--accent-dark);
  color: white;
}

/* Links */
a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

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

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Input fields */
.input-field {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.input-field:focus {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

textarea.input-field {
  resize: vertical;
  min-height: 100px;
}

/* Form groups */
.form-group {
  margin-bottom: 16px;
}

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

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
  background: var(--bg-tertiary);
  border-color: var(--text-primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--text-primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--border-light);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

/* Avatar - Black/Gray instead of purple */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.badge-error {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  background: var(--error);
  color: white;
}

/* ============================================
   App Layout
   ============================================ */

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth screens */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-primary);
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

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

.auth-logo h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text-primary);
}

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

.auth-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-divider span {
  padding: 0 16px;
}

.social-btn {
  width: 100%;
  margin-bottom: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px;
}

.social-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Main app layout */
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.header-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo svg {
  width: 24px;
  height: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions .btn-icon {
  width: 32px;
  height: 32px;
}

.header-actions .btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Zoom menu */
.zoom-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.zoom-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.15s ease;
}

.zoom-btn:hover {
  background: var(--bg-hover);
}

.zoom-btn:first-child {
  border-bottom: 1px solid var(--border-color);
}

/* Content area */
.content-area {
  flex: 1;
  margin-top: 60px;
  margin-bottom: 70px;
  overflow-y: auto;
  scroll-snap-type: y proximity;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 20px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.nav-item:hover {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

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

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* ============================================
   Feed Page - Compact Layout for ~5 visible posts
   ============================================ */

.feed-container {
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.post-card {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  transition: all var(--transition-normal);
  min-height: auto;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.post-card.magnified {
  min-height: auto;
  padding: 16px 18px;
  background: var(--bg-secondary);
  transform: scale(1.01);
  border-left: none;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.post-user-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-username {
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.post-username:hover {
  color: var(--text-secondary);
}

/* Group tag - Discord style */
.group-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.group-tag.mental-health { background: #1a2a1a; border-color: #2a4a2a; color: #6a9a6a; }
.group-tag.study { background: #1a1a2a; border-color: #2a2a4a; color: #6a6a9a; }
.group-tag.support { background: #2a1a1a; border-color: #4a2a2a; color: #9a6a6a; }
.group-tag.general { background: #1a1a1a; border-color: #3a3a3a; color: #888888; }

.post-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.delete-post-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.delete-post-btn:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.delete-post-btn svg {
  width: 16px;
  height: 16px;
}

.post-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.post-content.large {
  font-size: 14px;
  line-height: 1.6;
}

/* File attachments */
.post-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.post-attachment {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
}

.post-attachment svg {
  width: 14px;
  height: 14px;
}

.post-attachment-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.post-tags {
  display: none; /* Hide hashtags - replaced by group tags */
}

.post-tag {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: none; /* Hide hashtags */
}

.post-tag:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.post-action:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
  fill: #ef4444;
}

.post-action.saved {
  color: var(--warning);
}

.post-action svg {
  width: 16px;
  height: 16px;
}

/* Like animation */
.like-burst {
  position: absolute;
  pointer-events: none;
  animation: likeBurst 0.6s ease-out forwards;
}

@keyframes likeBurst {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Emoji Reactions */
.reaction-picker {
  display: none !important;
  position: fixed !important;
  z-index: 1000;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
  width: 280px;
  left: -300px !important;
  right: auto !important;
  top: 50%;
  transform: translateY(-50%);
}

.reaction-picker[style*="display: block"] {
  display: block !important;
}

.emoji-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emoji-category-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.emoji-row {
  display: flex;
  gap: 2px;
}

.emoji-btn {
  font-size: 22px;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.1s ease;
  line-height: 1;
}

.emoji-btn:hover {
  background: var(--bg-hover);
  transform: scale(1.3);
}

.reactions-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
}

.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reaction-chip:hover {
  background: var(--bg-hover);
  transform: scale(1.05);
}

.reaction-chip.user-reacted {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

.reaction-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.like-action {
  cursor: pointer;
}

.like-action:hover {
  transform: scale(1.1);
}

.like-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   Search Page
   ============================================ */

.search-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.search-header {
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  font-size: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.search-filters {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.trending-section {
  margin-top: 32px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-title svg {
  width: 16px;
  height: 16px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.trending-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.trending-rank {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
}

.trending-info h4 {
  font-size: 13px;
  margin-bottom: 4px;
}

.trending-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Groups Page
   ============================================ */

.groups-container {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.groups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

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

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.group-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.group-icon-letter {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.group-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.group-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.group-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.group-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   Profile Page
   ============================================ */

.profile-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.profile-header {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 12px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-edit {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  cursor: pointer;
}

.profile-avatar:hover .profile-avatar-edit {
  opacity: 1;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-handle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: 20px;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 3D Card - Premium with Glitter Effect */
.user-card-3d {
  perspective: 2000px;
  margin: 32px 0 32px -60px;
  width: 580px;
  height: 350px;
  position: relative;
}

.user-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  border-radius: var(--radius-xl);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 150px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(255, 200, 255, 0.05),
    0 0 40px rgba(200, 255, 255, 0.03),
    inset 0 0 100px rgba(255, 255, 255, 0.02);
}

.user-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  overflow: hidden;
}

.user-card-front {
  background: 
    linear-gradient(135deg, #0a0a0a 0%, #0d0d0d 20%, #151515 50%, #0d0d0d 80%, #0a0a0a 100%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 200, 255, 0.02) 0%, transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Main shimmer wave effect */
.user-card-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(
      125deg,
      transparent 10%,
      rgba(255, 255, 255, 0.08) 25%,
      rgba(255, 255, 255, 0.2) 40%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(255, 255, 255, 0.2) 60%,
      rgba(255, 255, 255, 0.08) 75%,
      transparent 90%
    );
  background-size: 300% 300%;
  animation: cardShimmer 6s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: overlay;
}

/* Second shimmer layer for extra shine */
.user-card-inner > .shimmer-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    -45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 48%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 52%,
    transparent 70%
  );
  background-size: 400% 400%;
  animation: shimmerWave 4s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
  z-index: 2;
}

/* Mouse-tracking spotlight */
.user-card-front::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.25) 15%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
}

.user-card-inner:hover .user-card-front::after {
  opacity: 1;
}

/* Glitter overlay - subtle sparkle points (no dots) */
.user-card-front .glitter-overlay,
.user-card-front .glitter-overlay-2 {
  display: none;
}

/* Subtle rainbow edge glow - NO rotation */
.user-card-inner::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 8px);
  background: linear-gradient(
    135deg,
    rgba(255, 100, 150, 0.4) 0%,
    rgba(255, 200, 100, 0.4) 20%,
    rgba(100, 255, 150, 0.4) 40%,
    rgba(100, 200, 255, 0.4) 60%,
    rgba(200, 100, 255, 0.4) 80%,
    rgba(255, 100, 200, 0.4) 100%
  );
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
  transition: all 0.3s ease;
}

.user-card-inner:hover::before {
  opacity: 0.9;
  filter: blur(15px);
  inset: -12px;
}

/* Extra glow on hover */
.user-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: 
    inset 0 0 50px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transition: box-shadow 0.3s ease;
}

.user-card-inner:hover::after {
  box-shadow: 
    inset 0 0 80px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes cardShimmer {
  0%, 100% { background-position: -50% -50%; }
  50% { background-position: 150% 150%; }
}

@keyframes shimmerWave {
  0%, 100% { background-position: 100% 100%; }
  50% { background-position: 0% 0%; }
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}

.card-logo {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: flex-start;
}

.card-share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.6);
}

.card-share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.card-share-btn svg {
  width: 16px;
  height: 16px;
}

.card-user-section {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  border: 1px solid var(--border-color);
}

.card-user-info {
  flex: 1;
}

.card-username {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-handle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.card-qr {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.card-qr canvas {
  width: 100%;
  height: 100%;
}

/* Settings sections */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}

.settings-section-title {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:hover {
  background: var(--bg-hover);
}

.settings-item-info {
  flex: 1;
}

.settings-item-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.settings-item-description {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   Messages Page
   ============================================ */

.messages-container {
  display: flex;
  height: calc(100vh - 130px);
}

.conversations-list {
  width: 320px;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
}

.conversation-search {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.conversation-item:hover,
.conversation-item.active {
  background: var(--bg-secondary);
}

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

.conversation-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.conversation-preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  font-size: 11px;
  color: var(--text-muted);
}

.conversation-unread {
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-weight: 600;
  font-size: 14px;
}

.chat-header-status {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-content {
  margin: 0;
  white-space: pre-wrap;
}

.message-content br {
  display: block;
  margin: 8px 0;
  content: "";
}

.message-sent {
  align-self: flex-end;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-bottom-right-radius: var(--radius-sm);
}

.message-received {
  align-self: flex-start;
  background: var(--bg-tertiary);
  border-bottom-left-radius: var(--radius-sm);
}

.message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

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

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

.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  outline: none;
  overflow-y: auto;
  line-height: 1.5;
}

.chat-input:focus {
  border-color: var(--text-secondary);
}

.btn-send-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-send-icon:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.btn-send-icon:active {
  transform: scale(0.95);
}

.btn-send-icon svg {
  width: 20px;
  height: 20px;
}

.btn-attach-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-attach-icon:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
  transform: scale(1.05);
}

.btn-attach-icon:active {
  transform: scale(0.95);
}

.btn-attach-icon svg {
  width: 20px;
  height: 20px;
}

.message-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.message-image:hover {
  transform: scale(1.02);
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-lg);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Emoji Picker */
.emoji-picker {
  position: fixed;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 300px;
  z-index: 1000;
  display: none;
}

.emoji-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.emoji-suggestion:hover,
.emoji-suggestion.selected {
  background: var(--bg-tertiary);
}

.emoji-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.emoji-name {
  font-size: 14px;
  color: var(--text-secondary);
}

.empty-chat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-muted);
}

.empty-chat svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ============================================
   Modals
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition-normal);
}

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

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

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

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

/* Create post modal */
.create-post-textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.create-post-textarea:focus {
  border-color: var(--text-secondary);
}

.create-post-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.create-post-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-post-option label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   Notifications / Toasts - Minimal Dark Theme
   ============================================ */

.toast-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateX(120%);
  transition: var(--transition-normal);
  font-size: 12px;
}

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

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-icon {
  width: 14px;
  height: 14px;
}

.toast-success .toast-icon {
  color: var(--success);
}

.toast-error .toast-icon {
  color: var(--error);
}

.toast-message {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ============================================
   Loading States
   ============================================ */

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--bg-hover) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .messages-container {
    flex-direction: column;
  }
  
  .conversations-list {
    width: 100%;
    height: 40vh;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .chat-area {
    height: 60vh;
  }
  
  .groups-grid {
    grid-template-columns: 1fr;
  }
  
  .user-card-3d {
    width: 100%;
    max-width: 420px;
  }
  
  .profile-stats {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .auth-form {
    padding: 24px;
  }
  
  .header {
    padding: 0 12px;
  }
  
  .post-card {
    padding: 16px;
  }
  
  .modal {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
}

/* ============================================
   Animations
   ============================================ */

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

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

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

.fade-in {
  animation: fadeIn var(--transition-normal) ease forwards;
}

.slide-up {
  animation: slideUp var(--transition-slow) ease forwards;
}

.slide-in {
  animation: slideIn var(--transition-slow) ease forwards;
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 1;
  animation: slideUp 0.4s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }
.stagger-children > *:nth-child(7) { animation-delay: 300ms; }
.stagger-children > *:nth-child(8) { animation-delay: 350ms; }
.stagger-children > *:nth-child(9) { animation-delay: 400ms; }
.stagger-children > *:nth-child(10) { animation-delay: 450ms; }

/* Friend requests */
.friend-request {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.friend-request-info {
  flex: 1;
}

.friend-request-name {
  font-weight: 600;
  font-size: 14px;
}

.friend-request-mutual {
  font-size: 12px;
  color: var(--text-muted);
}

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

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: 24px;
  opacity: 0.5;
}

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

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
}

/* Disappearing message indicator */
.disappearing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.disappearing-indicator svg {
  width: 14px;
  height: 14px;
}

/* Replies section */
.replies-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.reply-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Minimalistic reply input - just a line */
.reply-input-minimal {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast);
}

.reply-input-minimal:focus {
  border-bottom-color: var(--text-secondary);
}

.reply-input-minimal::placeholder {
  color: var(--text-muted);
}

/* Black reply button with white text */
.btn-reply {
  padding: 6px 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reply:hover {
  background: #1a1a1a;
}

.reply-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 100px;
  outline: none;
}

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

.replies-list {
  margin-top: 16px;
}

.reply-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.reply-item:last-child {
  border-bottom: none;
}

.reply-content {
  flex: 1;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.delete-reply-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  margin-left: auto;
  transition: all 0.2s ease;
}

.delete-reply-btn:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.delete-reply-btn svg {
  width: 14px;
  height: 14px;
}

.reply-username {
  font-weight: 600;
  font-size: 13px;
}

.reply-time {
  font-size: 11px;
  color: var(--text-muted);
}

.reply-text {
  font-size: 14px;
  line-height: 1.5;
}

/* User profile modal */
.user-profile-modal {
  max-width: 400px;
}

.user-profile-header {
  text-align: center;
  padding: 24px 0;
}

.user-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  margin: 0 auto 16px;
}

.user-profile-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.user-profile-handle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.user-profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.user-profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.user-profile-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--error);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Friend status indicators */
.friend-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
  right: 2px;
  border: 2px solid var(--bg-card);
}

.friend-status.online {
  background: var(--success);
}

.friend-status.offline {
  background: var(--text-muted);
}

.friend-status.away {
  background: var(--warning);
}

/* Anonymous user styles */
.anonymous-avatar {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
  color: var(--text-muted) !important;
  border: 2px dashed var(--border) !important;
}

.anonymous-avatar-small {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

.anonymous-profile .user-profile-avatar {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  border: 2px dashed var(--border);
  color: var(--text-muted);
}

.anonymous-id {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  display: inline-block;
}

/* Typing indicator styles */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.typing-indicator .dots {
  display: flex;
  gap: 3px;
}

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

.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

/* Typing indicator message bubble in chat */
.typing-indicator-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 16px;
  animation: fadeIn 0.3s ease-in;
}

.typing-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.typing-bubble {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

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

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Swipe container */
.swipe-container {
  touch-action: pan-y;
  overflow-x: hidden;
}

/* Tab indicator */
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: all var(--transition-normal);
}

/* ============================================
   Focus Crosshairs for Magnification
   ============================================ */

.focus-crosshair {
  position: fixed;
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.focus-crosshair.left {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.focus-crosshair.right {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.focus-crosshair.active {
  opacity: 1;
}

/* Magnify Toggle Button */
.magnify-toggle {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 99;
}

.zoom-controls {
  position: fixed;
  bottom: 90px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ============================================
   Compact Settings Menu
   ============================================ */

.settings-compact {
  max-width: 500px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

.settings-card-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.settings-card-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.settings-card-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.settings-card-desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* Color picker */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.color-option:hover,
.color-option.selected {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

/* ============================================
   File Upload/Attachment Styles
   ============================================ */

.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 12px;
}

.file-upload-area:hover {
  border-color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.file-upload-area svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.file-upload-text {
  font-size: 12px;
  color: var(--text-muted);
}

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.file-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.file-preview-item svg {
  width: 16px;
  height: 16px;
}

.file-remove {
  cursor: pointer;
  color: var(--text-muted);
}

.file-remove:hover {
  color: var(--error);
}

/* ============================================
   Google Sign-In Button
   ============================================ */

.google-signin-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 12px;
}

.google-signin-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.google-signin-btn svg {
  width: 18px;
  height: 18px;
}

/* Google One Tap styling */
#g_id_onload {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

/* ============================================
   Notifications Page
   ============================================ */

.notifications-container {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.notification-item:hover {
  background: var(--bg-hover);
}

.notification-item.unread {
  border-left: 2px solid var(--text-primary);
}

.notification-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.notification-content {
  flex: 1;
}

.notification-text {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.notification-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   Logout Button - Fixed Size
   ============================================ */

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--error);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.logout-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Additional Settings Options
   ============================================ */

.settings-section-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.settings-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.settings-item-compact:last-child {
  border-bottom: none;
}

.range-slider {
  width: 100px;
  height: 4px;
  appearance: none;
  background: var(--bg-tertiary);
  border-radius: 2px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
}

/* Account Linking Section */
.linked-accounts {
  margin-top: 16px;
}

.linked-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.linked-account-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linked-account-icon svg {
  width: 24px;
  height: 24px;
}

.linked-account-info {
  flex: 1;
}

.linked-account-name {
  font-size: 13px;
  font-weight: 500;
}

.linked-account-email {
  font-size: 11px;
  color: var(--text-muted);
}

.linked-account-status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.linked-account-status.connected {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.linked-account-status.disconnected {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* Theme preview */
.theme-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.theme-option {
  padding: 16px 12px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-option:hover,
.theme-option.selected {
  border-color: var(--text-primary);
}

.theme-option-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Cloak Logo */
.cloak-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cloak-logo-icon {
  width: 28px;
  height: 28px;
}

.cloak-logo-icon-sm {
  width: 22px;
  height: 22px;
}

.cloak-logo-icon svg {
  width: 100%;
  height: 100%;
}

/* Group icon display without emoji */
.group-icon-display {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

/* Clickable group tag */
.group-tag {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.group-tag:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

/* User profile modal - compact */
.user-profile-modal {
  max-width: 400px;
}

.user-profile-header {
  text-align: center;
  padding: 20px;
}

.user-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0 auto 12px;
  border: 2px solid var(--border-color);
}

/* Group search dropdown */
.group-search-container {
  position: relative;
  width: 100%;
}

.group-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  z-index: 100;
}

.group-dropdown-item {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.group-dropdown-item:hover {
  background: var(--bg-hover);
}

.group-dropdown-item.selected {
  background: var(--bg-tertiary);
}

/* ============================================
   Browse Page - Chrome-like Browser
   ============================================ */

/* Browser Window Container */
.browser-window {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  background: #202124;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Browser Chrome (top bar area) */
.browser-chrome {
  background: #35363a;
  flex-shrink: 0;
}

/* Browser Tabs */
.browser-tabs {
  display: flex;
  align-items: flex-end;
  padding: 8px 8px 0;
  background: #202124;
  height: 40px;
}

.browser-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #35363a;
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  max-width: 240px;
  min-width: 100px;
  cursor: default;
}

.browser-tab.active {
  background: #35363a;
}

.tab-favicon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.tab-favicon img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.tab-title {
  flex: 1;
  font-size: 12px;
  color: #e8eaed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Browser Navigation Bar */
.browser-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #35363a;
}

.browser-nav-buttons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.browser-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #9aa0a6;
  cursor: pointer;
  transition: all 0.15s ease;
}

.browser-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

.browser-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.browser-nav-btn svg {
  width: 18px;
  height: 18px;
}

/* URL Bar */
.browser-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #202124;
  border-radius: 24px;
  padding: 0 8px 0 12px;
  margin: 0 8px;
  height: 36px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.browser-url-bar:focus-within {
  background: #292a2d;
  border-color: #8ab4f8;
  box-shadow: 0 0 0 1px #8ab4f8;
}

.browser-url-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: #9aa0a6;
}

.browser-url-icon svg {
  width: 16px;
  height: 16px;
}

.browser-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e8eaed;
  font-size: 14px;
  outline: none;
  padding: 8px 0;
}

.browser-url-input::placeholder {
  color: #9aa0a6;
}

.browser-go-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8ab4f8;
  border: none;
  border-radius: 50%;
  color: #202124;
  cursor: pointer;
  transition: all 0.15s ease;
  opacity: 0;
  transform: scale(0.8);
}

.browser-url-bar:focus-within .browser-go-btn {
  opacity: 1;
  transform: scale(1);
}

.browser-go-btn:hover {
  background: #aecbfa;
}

.browser-go-btn svg {
  width: 16px;
  height: 16px;
}

/* Browser Actions */
.browser-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: #9aa0a6;
  cursor: pointer;
  transition: all 0.15s ease;
}

.browser-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

.browser-action-btn svg {
  width: 18px;
  height: 18px;
}

/* Browser Content Area */
.browser-content {
  flex: 1;
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* New Tab Page */
.browser-new-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #202124 0%, #303134 100%);
  padding: 40px 20px;
}

.browser-logo {
  margin-bottom: 40px;
}

.browser-logo-circle {
  width: 92px;
  height: 92px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-logo-circle svg {
  width: 52px;
  height: 52px;
  color: #8ab4f8;
}

/* Shortcuts Grid */
.browser-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  max-width: 600px;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 32px;
}

.browser-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.browser-shortcut:hover {
  background: rgba(255, 255, 255, 0.06);
}

.shortcut-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shortcut-icon svg {
  width: 24px;
  height: 24px;
}

.shortcut-label {
  font-size: 13px;
  color: #e8eaed;
  text-align: center;
}

.browser-hint {
  color: #9aa0a6;
  font-size: 14px;
  margin: 0;
}

/* Proxy Launch Button */
.proxy-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #8ab4f8 0%, #669df6 100%);
  color: #202124;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(138, 180, 248, 0.3);
}

.proxy-launch-btn:hover {
  background: linear-gradient(135deg, #aecbfa 0%, #8ab4f8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(138, 180, 248, 0.4);
}

.proxy-launch-btn:active {
  transform: translateY(0);
}

/* Loading State */
.browser-loading {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #202124;
  color: #e8eaed;
  gap: 16px;
}

.browser-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(138, 180, 248, 0.2);
  border-top-color: #8ab4f8;
  border-radius: 50%;
  animation: browser-spin 0.8s linear infinite;
}

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

.browser-loading p {
  margin: 0;
  font-size: 14px;
  color: #9aa0a6;
}

/* Browser iframe */
.browser-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* Error State */
.browser-error {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #202124;
  padding: 40px;
  text-align: center;
}

.browser-error-icon {
  width: 64px;
  height: 64px;
  color: #9aa0a6;
  margin-bottom: 24px;
}

.browser-error-icon svg {
  width: 100%;
  height: 100%;
}

.browser-error h3 {
  color: #e8eaed;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.browser-error p {
  color: #9aa0a6;
  font-size: 14px;
  margin: 0 0 12px 0;
  max-width: 400px;
  line-height: 1.5;
}

.browser-error-code {
  color: #9aa0a6;
  font-size: 12px;
  font-family: monospace;
  background: #303134;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.browser-error-actions {
  display: flex;
  gap: 12px;
}

.browser-error-btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: #3c4043;
  color: #8ab4f8;
}

.browser-error-btn:hover {
  background: #4a4e51;
}

.browser-error-btn.primary {
  background: #8ab4f8;
  color: #202124;
}

.browser-error-btn.primary:hover {
  background: #aecbfa;
}

/* Mobile responsiveness for Browser */
@media (max-width: 768px) {
  .browser-window {
    height: calc(100vh - 130px);
    margin: 4px;
    border-radius: 8px;
  }
  
  .browser-tabs {
    display: none;
  }
  
  .browser-nav {
    padding: 6px 8px;
  }
  
  .browser-nav-btn {
    width: 28px;
    height: 28px;
  }
  
  .browser-nav-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .browser-url-bar {
    height: 32px;
    margin: 0 4px;
  }
  
  .browser-url-input {
    font-size: 13px;
  }
  
  .browser-shortcuts {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .browser-shortcut {
    padding: 12px 8px;
  }
  
  .shortcut-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .shortcut-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .browser-nav-buttons {
    gap: 0;
  }
  
  .browser-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .shortcut-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .browser-hint {
    font-size: 12px;
  }
}

/* Legacy browse classes - kept for compatibility */
.browse-container { display: none; }
.browse-iframe { display: none; }
