/* ─── StandScout App Styles ─── */
/* Design system from landing page */

:root {
  --green-deep: #1a3a2a;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #b7e4c7;
  --cream: #fefae0;
  --warm: #dda15e;
  --warm-dark: #bc6c25;
  --earth: #606c38;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #5a5a5a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--gray-50);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

/* ─── Layout ─── */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Top Nav ─── */
.app-nav {
  background: var(--green-deep);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-brand svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--white); background: rgba(82,183,136,0.2); }

.nav-link .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border: 1.5px solid var(--green-mid);
}
.btn-outline:hover { background: var(--green-mid); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

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

/* ─── Main Content ─── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ─── Map View ─── */
.map-container {
  flex: 1;
  display: flex;
  position: relative;
  min-height: calc(100vh - 60px);
}

#map {
  flex: 1;
  z-index: 1;
}

.map-sidebar {
  width: 380px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.search-box {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--green-light); }

.search-input::placeholder { color: var(--gray-400); }

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.stand-card {
  padding: 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.stand-card:hover { background: var(--gray-50); border-color: var(--gray-200); }
.stand-card.active { background: var(--green-pale); border-color: var(--green-light); }

.stand-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.stand-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-deep);
}

.stand-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
}

.stand-status.open { background: #dcfce7; color: #166534; }
.stand-status.closed { background: #fee2e2; color: #991b1b; }

.stand-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.stand-status.open .dot { background: #22c55e; }
.stand-status.closed .dot { background: #ef4444; }

.stand-card .location {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.stand-card .distance {
  color: var(--green-mid);
  font-weight: 500;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-tag {
  background: var(--gray-100);
  color: var(--text-light);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ─── Stand Detail ─── */
.stand-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.stand-detail-header {
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  cursor: pointer;
}

.back-link:hover { text-decoration: underline; }

.stand-detail-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.stand-detail-title h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}

.stand-detail .location {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.stand-detail .description {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.detail-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.detail-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.hours-grid {
  display: grid;
  gap: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.hours-row:last-child { border-bottom: none; }

.hours-row .day { font-weight: 500; color: var(--text); }
.hours-row .time { color: var(--text-light); }

.detail-map {
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.message-cta {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 24px;
}

.message-cta h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.message-cta p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* ─── Photos ─── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.photo-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
}

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

/* ─── Forms ─── */
.form-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.form-page h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.form-page .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group .hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--green-light);
}

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

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

.location-picker {
  height: 240px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 8px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.form-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.form-success {
  background: #f0fdf4;
  color: #166534;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* ─── Product Input ─── */
.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  min-height: 44px;
  align-items: center;
  cursor: text;
  transition: border-color 0.2s;
}

.tag-input:focus-within { border-color: var(--green-light); }

.tag-input .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

.tag-input .tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-mid);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.tag-input input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
}

/* ─── Messages ─── */
.messages-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.messages-page h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 24px;
}

.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}

.conversation-card:hover { border-color: var(--green-light); box-shadow: var(--shadow-sm); }

.conversation-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

.conversation-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 2px;
}

.conversation-info .stand-name {
  font-size: 0.8rem;
  color: var(--green-mid);
  margin-bottom: 4px;
}

.conversation-info .preview {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-meta {
  text-align: right;
  flex-shrink: 0;
}

.conversation-meta .time {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.conversation-meta .unread {
  width: 20px;
  height: 20px;
  background: var(--green-mid);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* ─── Chat View ─── */
.chat-view {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

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

.chat-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
}

.chat-header .stand-name {
  font-size: 0.85rem;
  color: var(--green-mid);
}

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

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.chat-bubble.sent {
  background: var(--green-mid);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  background: var(--white);
  color: var(--text);
  align-self: flex-start;
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
}

.chat-bubble .time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 4px;
}

.chat-input-container {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

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

.chat-input-box textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  resize: none;
  min-height: 46px;
  max-height: 120px;
  transition: border-color 0.2s;
}

.chat-input-box textarea:focus { border-color: var(--green-light); }

.chat-input-box button {
  padding: 12px 20px;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.chat-input-box button:hover { background: var(--green-deep); }

/* ─── Auth Modal ─── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.modal .subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.modal .form-group { margin-bottom: 16px; }

.modal .form-actions {
  margin-top: 20px;
  flex-direction: column;
}

.modal .switch-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
}

.modal .switch-link a {
  color: var(--green-mid);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.modal .switch-link a:hover { text-decoration: underline; }

/* ─── Empty States ─── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-light);
}

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

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* ─── My Stands ─── */
.my-stands-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.my-stands-page h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 8px;
}

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

.my-stand-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.my-stand-card:hover { box-shadow: var(--shadow-sm); }

.my-stand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.my-stand-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
}

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

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

.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  border-radius: 12px;
  transition: all 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

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

/* ─── Loading ─── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green-deep);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  animation: slideUp 0.3s;
}

.toast.error { background: var(--danger); }

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

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .map-sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 45%;
    border-left: none;
    border-top: 1px solid var(--gray-200);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }

  .sidebar-header { padding: 16px; }

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

  .stand-detail { padding: 24px 16px; }

  .stand-detail-title { flex-direction: column; }

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

  .nav-links { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 0.82rem; }

  .photos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .app-nav { padding: 0 12px; }
  .nav-brand span { display: none; }
  .btn { padding: 8px 14px; font-size: 0.82rem; }
  .modal { padding: 24px; }
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: 'DM Sans', sans-serif !important;
}

.map-popup {
  padding: 16px;
  min-width: 220px;
}

.map-popup h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 4px;
}

.map-popup .location {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.map-popup .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.map-popup .tag {
  background: var(--gray-100);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 100px;
  color: var(--text-light);
}

.map-popup .view-btn {
  display: block;
  text-align: center;
  background: var(--green-mid);
  color: var(--white);
  padding: 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.map-popup .view-btn:hover { background: var(--green-deep); }

/* Map locate button */
.map-locate-btn {
  position: absolute;
  top: 80px;
  right: 10px;
  z-index: 500;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.map-locate-btn:hover { background: var(--gray-50); border-color: var(--green-light); }

/* User menu */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  cursor: pointer;
  color: var(--white);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.user-menu-btn:hover { background: rgba(255,255,255,0.15); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 180px;
  overflow: hidden;
  z-index: 1100;
}

.user-dropdown a, .user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}

.user-dropdown a:hover, .user-dropdown button:hover { background: var(--gray-50); }

.user-dropdown .divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.hidden { display: none !important; }
