/* BuzzNear App Styles — matches landing page design tokens */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --warm: #FF6B35;
  --warm-light: #FF8F5E;
  --warm-bg: rgba(255,107,53,0.08);
  --dark: #1A1A2E;
  --mid: #16213E;
  --accent: #E94560;
  --accent-light: rgba(233,69,96,0.08);
  --cream: #FFF8F0;
  --sand: #F5E6D3;
  --text: #2D2D3A;
  --muted: #6B6B80;
  --green: #22C55E;
  --green-bg: rgba(34,197,94,0.08);
  --red: #EF4444;
  --red-bg: rgba(239,68,68,0.08);
  --border: rgba(0,0,0,0.06);
  --shadow: 0 2px 20px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.5px; }

a { color: var(--warm); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Top Nav ─── */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(255, 248, 240, 0.9);
  border-bottom: 1px solid var(--border);
  gap: 1rem; /* ensure spacing between logo and nav */
}

.app-nav .logo {
  flex-shrink: 0; /* prevent logo from shrinking */
}

.app-nav .nav-links {
  flex: 1;
  min-width: 0; /* allow flexbox to shrink below content size */
  max-width: 100%; /* prevent overflow beyond container */
}

.app-nav .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark);
  letter-spacing: -0.5px;
  cursor: pointer;
}

.app-nav .logo span { color: var(--warm); }

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap; /* prevent items from wrapping to next line */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  scrollbar-width: none; /* hide scrollbar on Firefox */
  -ms-overflow-style: none; /* hide scrollbar on IE/Edge */
}

.nav-links::-webkit-scrollbar {
  display: none; /* hide scrollbar on Chrome/Safari */
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: inherit;
  flex-shrink: 0; /* prevent nav buttons from shrinking */
  white-space: nowrap; /* prevent text from wrapping inside buttons */
}

.nav-link:hover { color: var(--text); background: var(--warm-bg); }
.nav-link.active { color: var(--warm); background: var(--warm-bg); font-weight: 600; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0; /* prevent user section from getting cut off */
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--warm);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.nav-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.btn-logout {
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.btn-logout:hover { color: var(--red); background: var(--red-bg); }

/* ─── Wallet Badge ─── */
.wallet-badge {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  border-radius: 20px !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.85rem !important;
}
.wallet-badge.active { background: var(--green) !important; color: white !important; }

/* ─── Layout ─── */
.app-container {
  padding-top: 70px;
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* Feed mode: centered, narrower layout */
.page:has(.feed-mode) {
  max-width: 700px;
}

/* ─── Auth Pages ─── */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 2rem;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.auth-card .sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ─── Forms ─── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--warm);
  background: white;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236B6B80' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── Role Toggle ─── */
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-option {
  padding: 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: white;
}

.role-option:hover { border-color: var(--warm-light); }

.role-option.selected {
  border-color: var(--warm);
  background: var(--warm-bg);
}

.role-option .role-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.role-option .role-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.role-option .role-desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

.btn-primary:hover { background: var(--warm-light); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,107,53,0.3); }

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--warm); color: var(--warm); }

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

.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }

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

.btn-red {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Cards ─── */
.card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, 0.2);
}

/* Feed mode: enhanced cards with animations */
.feed-mode .card {
  animation: fadeSlideIn 0.4s ease-out;
  padding: 2rem;
}

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

/* ─── Feed Layout (Social Media Style) ─── */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.card-grid.feed-mode {
  gap: 2rem;
}

.card-grid.feed-mode .card {
  border-radius: 16px;
  padding: 1.75rem;
}

/* ─── Stats ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-card .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ─── Tags / Badges ─── */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

/* Feed mode: more prominent tags */
.feed-mode .tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  letter-spacing: 0.8px;
}

.tag-warm { background: var(--warm-bg); color: var(--warm); }
.tag-accent { background: var(--accent-light); color: var(--accent); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-muted { background: rgba(107,107,128,0.08); color: var(--muted); }

/* ─── Page Headers ─── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.8rem;
  color: var(--dark);
}

.page-header .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ─── Filters ─── */
.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Feed mode: centered filters */
.page:has(.feed-mode) .filters {
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.page:has(.feed-mode) .page-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page:has(.feed-mode) .page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236B6B80' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.filter-select:focus { border-color: var(--warm); }

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--warm);
  background: var(--warm-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

/* ─── Campaign Card ─── */
.campaign-card .campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.campaign-card h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.campaign-card .business-info {
  font-size: 0.85rem;
  color: var(--muted);
}

.campaign-card .campaign-meta {
  display: flex;
  gap: 1.25rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.campaign-card .meta-item {
  font-size: 0.8rem;
  color: var(--muted);
}

.campaign-card .meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.campaign-card .campaign-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-card .campaign-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─── Influencer Card ─── */
.influencer-card {
  cursor: pointer;
}

.influencer-card .inf-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.influencer-card .inf-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--warm), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Feed mode: larger avatars with subtle animation */
.feed-mode .influencer-card .inf-avatar,
.feed-mode .business-card .biz-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Enhanced card interactions in feed mode */
.feed-mode .influencer-card:hover .inf-avatar,
.feed-mode .business-card:hover .biz-avatar {
  transform: scale(1.05);
  transition: transform 0.2s ease-out;
}

.feed-mode .influencer-card h3,
.feed-mode .business-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.feed-mode .influencer-card .inf-stat strong,
.feed-mode .business-card .biz-description {
  font-size: 1.05rem;
}

.influencer-card .inf-info h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.influencer-card .inf-info .inf-location {
  font-size: 0.8rem;
  color: var(--muted);
}

.influencer-card .inf-stats {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0;
}

.influencer-card .inf-stat {
  font-size: 0.8rem;
  color: var(--muted);
}

.influencer-card .inf-stat strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
}

.influencer-card .inf-handles {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inf-handle {
  font-size: 0.75rem;
  color: var(--warm);
  background: var(--warm-bg);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

/* ─── Business Card ─── */
.business-card {
  cursor: pointer;
}

.business-card .biz-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.business-card .biz-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.business-card .biz-info h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.business-card .biz-info .biz-category {
  font-size: 0.8rem;
  color: var(--muted);
}

.business-card .biz-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.business-card .biz-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.business-card .biz-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--warm);
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--warm-bg);
  transition: all 0.2s;
}

.business-card .biz-cta:hover {
  background: var(--warm);
  color: white;
  transform: translateX(2px);
}

/* Feed mode: make CTAs more prominent */
.feed-mode .business-card .biz-cta {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  margin-top: 1.25rem;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.feed-mode .business-card .biz-cta:hover {
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

/* ─── Application Card ─── */
.application-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.application-card .app-info {
  flex: 1;
  min-width: 200px;
}

.application-card .app-info h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.application-card .app-info p {
  font-size: 0.8rem;
  color: var(--muted);
}

.application-card .app-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Detail Page ─── */
.detail-page {
  max-width: 800px;
}

.detail-page .detail-header {
  margin-bottom: 2rem;
}

.detail-page .detail-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.detail-page .detail-body {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-page .detail-meta {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 12px;
}

.detail-meta .meta-item {
  font-size: 0.85rem;
}

.detail-meta .meta-item .meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.detail-meta .meta-item .meta-value {
  font-weight: 600;
  color: var(--dark);
}

.detail-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.detail-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ─── Empty States ─── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast-success { background: var(--green); color: white; }
.toast-error { background: var(--red); color: white; }

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

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* ─── Loading ─── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--warm);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.loading-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .app-nav { padding: 0.75rem 1.25rem; }
  .page { padding: 1.5rem 1rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .card-grid { max-width: 100%; }
  .card-grid.feed-mode { gap: 1.5rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .detail-page .detail-meta { flex-direction: column; gap: 1rem; }
  .filters { flex-direction: column; }
  .nav-links { gap: 0.25rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.8rem; }

  /* Feed mode mobile adjustments */
  .feed-mode .influencer-card .inf-avatar,
  .feed-mode .business-card .biz-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
}

/* ─── Message Badge ─── */
.badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  position: absolute;
  top: -6px;
  right: -6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════════════════════
   DM-STYLE MESSAGING (Real-time)
   ═══════════════════════════════════════════════════════════ */

.dm-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.dm-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.dm-header-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.dm-header-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.dm-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dm-avatar-fallback {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand);
}

.dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8f8f8;
}

.dm-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.dm-message {
  display: flex;
  animation: slideIn 0.2s ease-out;
}

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

.dm-message-sent {
  justify-content: flex-end;
}

.dm-message-received {
  justify-content: flex-start;
}

.dm-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  word-wrap: break-word;
  transition: all 0.2s;
}

.dm-message-sent .dm-bubble {
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}

.dm-message-received .dm-bubble {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.dm-bubble-text {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

.dm-bubble-time {
  font-size: 0.7rem;
  opacity: 0.7;
}

.dm-input-container {
  padding: 1rem 1.5rem;
  background: white;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.dm-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.dm-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  background: #f8f8f8;
}

.dm-input:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.btn-send {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-send:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: scale(1.05);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

/* Mobile responsive */
@media (max-width: 768px) {
  .dm-container {
    height: calc(100vh - 60px);
    border-radius: 0;
    margin: 0;
  }
  
  .dm-messages {
    padding: 1rem;
  }
  
  .dm-bubble {
    max-width: 85%;
  }
  
  .dm-header {
    padding: 0.75rem 1rem;
  }
  
  .dm-input-container {
    padding: 0.75rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   EMAIL VERIFICATION BANNER
   ═══════════════════════════════════════════════════════════ */

.verification-banner {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
  border: 2px solid var(--warm);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.verification-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.verification-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.verification-banner-text {
  flex: 1;
}

.verification-banner-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.verification-banner-text p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .verification-banner {
    padding: 1rem;
  }

  .verification-banner-content {
    flex-direction: column;
  }

  .verification-banner-icon {
    font-size: 1.5rem;
  }
}
