@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #E55D87;
  --primary-dark: #5FC3E4;
  --primary-light: #F7971E;
  --accent: #FFD200;
  --accent-light: #2C3E50;
  --danger: #E63946;
  --danger-light: #FFCCD2;
  --success: #2D6A4F;
  --success-light: #D8F3DC;
  --warning: #F4A261;
  --bg: #F7F5F2;
  --bg-card: #FFFFFF;
  --bg-elevated: #FEFCF9;
  --text-primary: #1B2A1F;
  --text-secondary: #5C6B5E;
  --text-muted: #8E9A90;
  --border: #DDD8D0;
  --border-light: #EDE9E3;
  --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 8px 24px rgba(27, 67, 50, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

::selection {
  background: var(--primary-light);
  color: white;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Loading Screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}

.loading-icon {
  font-size: 48px;
  animation: bounce 1s ease infinite;
}

.loading-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* App Shell */
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(45, 106, 79, 0.2));
}

.app-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.user-badge {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

/* Tab Bar */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover {
  background: var(--bg);
  color: var(--text-secondary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  font-size: 1.1rem;
}

/* Main Content */
.app-main {
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

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

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

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.search-icon {
  font-size: 1.1rem;
  opacity: 0.5;
}

.search-input {
  flex: 1;
  border: none;
  background: none;
  padding: 14px 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

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

.clear-btn {
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.clear-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.pill {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Section Title */
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-title.muted {
  color: var(--text-muted);
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tool Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Tool Card */
.tool-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.25s ease;
  animation: fadeInUp 0.4s ease both;
}

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

.tool-card.unavailable {
  opacity: 0.65;
}

.tool-card.unavailable:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.tool-card-img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--bg), var(--border-light));
  overflow: hidden;
}

.tool-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-img img {
  transform: scale(1.05);
}

.tool-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 56px;
  opacity: 0.5;
}

.tool-category-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.unavailable-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 43, 31, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.tool-card-body {
  padding: 16px;
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tool-owner {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-condition {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 12px;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

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

.btn-accent:hover:not(:disabled) {
  background: #c4956a;
  box-shadow: var(--shadow-sm);
}

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

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: white;
}

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

.btn-muted:hover:not(:disabled) {
  background: var(--border-light);
}

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

.btn-full {
  width: 100%;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 31, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: var(--bg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

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

.modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary-dark);
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

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

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

/* Photo Upload */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.photo-upload-area:hover {
  border-color: var(--primary-light);
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.upload-icon {
  font-size: 2rem;
}

.hidden-input {
  display: none;
}

.photo-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.photo-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Toggle */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.toggle-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Borrow Modal */
.borrow-tool-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.borrow-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.borrow-tool-summary strong {
  display: block;
  margin-bottom: 2px;
}

.owner-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* My Tools List */
.my-tools-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-tool-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}

.my-tool-row:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.my-tool-row.unavailable {
  opacity: 0.6;
}

.my-tool-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

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

.tool-placeholder-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
  opacity: 0.4;
}

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

.my-tool-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.my-tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--bg);
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-dot {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.status-dot.available {
  background: var(--success-light);
  color: var(--success);
}

.status-dot.unavailable {
  background: var(--danger-light);
  color: var(--danger);
}

.my-tool-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Requests */
.requests-section {
  max-width: 700px;
  margin: 0 auto;
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.badge {
  background: var(--danger);
  color: white;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.request-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}

.request-card:hover {
  box-shadow: var(--shadow-md);
}

.request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.request-tool-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.request-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.request-tool-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.request-person {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-badge {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pending {
  background: #FFF3E0;
  color: #E65100;
}

.status-approved {
  background: var(--success-light);
  color: var(--success);
}

.status-declined {
  background: var(--danger-light);
  color: var(--danger);
}

.request-dates {
  margin-bottom: 10px;
}

.date-range {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.request-message {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.message-icon {
  flex-shrink: 0;
}

.request-message p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.7;
}

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

.empty-state p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Skeletons */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px;
}

.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  margin: 14px 16px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.wide { width: 70%; }
.skeleton-line.narrow { width: 45%; }

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.skeleton-row {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-light);
}

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

/* Success Toast */
.success-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive */
@media (max-width: 640px) {
  .app-header {
    padding: 12px 16px;
  }

  .app-title {
    font-size: 1.2rem;
  }

  .user-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .tab-label {
    display: none;
  }

  .tab-icon {
    font-size: 1.3rem;
  }

  .app-main {
    padding: 16px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-content {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

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

  .my-tool-row {
    flex-wrap: wrap;
    padding: 12px;
  }

  .my-tool-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .request-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .request-actions {
    width: 100%;
  }

  .request-actions .btn {
    flex: 1;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
```

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to ToolShare! This is your neighborhood tool-sharing hub. Browse tools your neighbors have listed, or share your own.", "view": "browse", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Use the search bar to find specific tools, or filter by category using the pills below.", "view": "browse", "highlight_selector": ".search-bar", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "See a tool you need? Click 'Request to Borrow' to send the owner a request with your preferred dates.", "view": "browse", "highlight_selector": ".btn-accent", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Switch to 'My Tools' to list tools you're willing to share. Add a photo, category, and condition.", "view": "mytools", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 5, "narration": "Click '+ Add Tool' to list a new tool. Upload a photo so neighbors know exactly what you have.", "view": "mytools", "highlight_selector": ".btn-primary", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Toggle availability on and off — mark tools as unavailable when they're already lent out.", "view": "mytools", "highlight_selector": ".my-tool-actions", "wait_for": "tap_to_continue"},
  {"step": 7, "narration": "The 'Requests' tab shows incoming borrow requests from neighbors and your own outgoing requests. Approve or decline with one tap.", "view": "requests", "highlight_selector": ".tab-btn:nth-child(3)", "wait_for": "user_interaction"},
  {"step": 8, "narration": "That's it! Start sharing tools with your neighbors. Happy borrowing! 🔧", "view": "browse", "highlight_selector": ".app-header", "wait_for": "tap_to_continue"}
]
-->

/* Auth Gate */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  text-align: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.auth-copy {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.auth-status {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.auth-status-warning {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFD8A8;
}

.auth-login-btn,
.auth-logout-btn {
  min-width: 140px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-subtitle {
  margin-top: -6px;
  margin-bottom: 10px;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.identity-badge.compact {
  padding: 5px 8px;
  font-size: 0.76rem;
}

.identity-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.identity-dot.verified {
  background: var(--success-light);
  color: var(--success);
}

.identity-dot.unverified {
  background: var(--border-light);
  color: var(--text-muted);
}

.identity-name {
  color: var(--text-primary);
  white-space: nowrap;
}

.identity-verified-label {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--success-light);
  color: var(--success);
  font-weight: 700;
}

.identity-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.my-tool-identity {
  margin-top: 8px;
}

.tool-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.tool-map-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tool-map-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.tool-map-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tool-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg), var(--border-light));
}

.coord-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.my-tool-location {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .coord-row {
    grid-template-columns: 1fr;
  }

  .tool-map {
    height: 260px;
  }
}

.borrower-feedback-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.borrower-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.borrower-feedback-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.borrower-feedback-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.borrower-reaction-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.borrower-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.borrower-reaction-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.borrower-reaction-pill.active {
  background: var(--success-light);
  border-color: rgba(45, 106, 79, 0.22);
  color: var(--success);
}

.reaction-emoji {
  font-size: 0.92rem;
}

.reaction-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(27, 67, 50, 0.08);
  color: var(--primary-dark);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.borrower-feedback-empty {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.my-tool-borrower-feedback {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .borrower-reaction-pills {
    gap: 6px;
  }

  .borrower-reaction-pill {
    width: 100%;
    justify-content: space-between;
  }
}
