/* ===================================
   COMPONENTS.CSS
   almakistiyorum.net v2
=================================== */

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 10px 20px; border-radius: 12px; transition: all 0.2s ease;
  white-space: nowrap; cursor: pointer; border: 1.5px solid transparent;
  letter-spacing: -0.01em;
}
.btn-lg { padding: 13px 28px; font-size: 14.5px; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
.btn-xl { padding: 16px 36px; font-size: 15px; border-radius: 14px; }

.btn-primary {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary-50); transform: translateY(-1px); }

.btn-dark {
  background: var(--dark-2); color: var(--white); border-color: var(--dark-2);
}
.btn-dark:hover { background: var(--dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent; color: var(--gray-600); border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); color: var(--dark-2); }

.btn-white {
  background: var(--white); color: var(--dark-2); border-color: rgba(0,0,0,0.06);
}
.btn-white:hover { background: var(--gray-50); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-surface {
  background: var(--gray-50); color: var(--dark-2); border-color: #e6e6e6;
}
.btn-surface:hover { background: var(--gray-100); border-color: #ddd; transform: translateY(-1px); }

.btn-icon { padding: 9px; width: 38px; height: 38px; }
.btn-icon-sm { padding: 6px; width: 30px; height: 30px; }
.btn-icon-lg { padding: 12px; width: 46px; height: 46px; }
.btn-full { width: 100%; }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
}
.badge-primary { background: var(--primary-50); color: var(--primary-dark); }
.badge__icon { width: 14px; height: 14px; display: inline-flex; align-items: center; }
.badge__icon svg { width: 14px; height: 14px; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error   { background: var(--error-bg); color: var(--error); }
.badge-dark    { background: var(--dark-2); color: var(--white); }
.badge-surface { background: var(--surface-2); color: var(--gray-600); border: 1px solid var(--border); }
.badge-beta    { background: linear-gradient(135deg, var(--primary-50), #FFF0E8); color: var(--primary-dark); border: 1px solid var(--primary-100); }

/* ── CARD ── */
.card {
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid #ebebeb; box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: #ddd; }
.card-flat { box-shadow: none; }
.card-flat:hover { box-shadow: var(--shadow-md); }

/* ── LISTING CARD (Request Card) ── */
.listing-card {
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid #ebebeb; padding: 20px;
  transition: all 0.25s ease; cursor: pointer;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: #ddd;
}
.listing-card__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px;
}
.listing-card__icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--t-base);
}
.listing-card__icon svg { width: 20px; height: 20px; }
.listing-card:hover .listing-card__icon {
  background: var(--primary-100); transform: scale(1.05);
}
.listing-card__fav {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); transition: all var(--t-fast);
  border: none; cursor: pointer; flex-shrink: 0;
}
.listing-card__fav:hover {
  color: var(--error); background: var(--error-bg);
  transform: scale(1.1);
}
.listing-card__fav.active { color: var(--error); background: var(--error-bg); }
.listing-card__title {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--dark-2); margin-bottom: 6px; line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card__desc {
  font-size: 13px; color: var(--gray-500); line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card__info {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px; flex: 1;
}
.listing-card__location {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--gray-500);
}
.listing-card__location svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--gray-400); }
.listing-card__dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gray-300); flex-shrink: 0;
  display: inline-block; margin: 0 1px;
}
.listing-card__budget {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--success);
}
.listing-card__budget svg { width: 13px; height: 13px; flex-shrink: 0; }
.listing-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.listing-card__cat {
  font-size: 12px; font-weight: 600; color: var(--primary);
  letter-spacing: -0.01em;
}
.listing-card__time {
  font-size: 12px; color: var(--gray-400);
}

/* ── CATEGORY CARD ── */
.cat-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 18px;
  text-align: left; cursor: pointer; transition: all var(--t-base);
  display: flex; flex-direction: column; gap: 10px;
}
.cat-card:hover {
  border-color: var(--primary); background: var(--primary-50);
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,107,53,0.12);
}
.cat-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base); color: var(--gray-500);
}
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card:hover .cat-card__icon { background: var(--primary-100); transform: scale(1.08); color: var(--primary); }
.cat-card__name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--dark-2); letter-spacing: -0.01em; line-height: 1.3; }
.cat-card__desc { font-size: 12px; color: var(--gray-400); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card__count { font-size: 11px; color: var(--gray-400); font-weight: 500; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-label span.req { color: var(--error); margin-left: 2px; }

.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-md);
  background: var(--white); color: var(--dark-2); font-size: 14px;
  transition: all var(--t-fast); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.error { border-color: var(--error); }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }
select.form-control { 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 fill='%239CA3AF' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-hint { font-size: 12px; color: var(--gray-500); }
.form-error { font-size: 12px; color: var(--error); display: flex; align-items: center; gap: 4px; }

.form-control-lg { padding: 14px 18px; font-size: 15px; border-radius: var(--r-lg); }

/* Search input */
.search-input-wrap { position: relative; display: flex; }
.search-input-wrap .form-control { padding-left: 44px; border-radius: var(--r-lg); }
.search-input-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); width: 18px; height: 18px; pointer-events: none; }
.search-input-wrap .btn { border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: 0 24px; height: 100%; }

/* ── AVATAR ── */
.avatar { border-radius: 50%; object-fit: cover; background: var(--gray-100); flex-shrink: 0; }
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 88px; height: 88px; }
.avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--primary-100); color: var(--primary-dark); font-family: var(--font-display); font-weight: 700; border-radius: 50%; flex-shrink: 0; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--gray-400); font-size: 13px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--dark-2); color: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); font-size: 14px; font-weight: 500; min-width: 280px;
  animation: toastIn 0.3s ease;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }
.toast.warning { background: var(--warning); color: var(--dark-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,15,26,0.6); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--r-xl); padding: 32px;
  width: 100%; max-width: 480px; box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97); transition: transform var(--t-base);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.modal__close { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--gray-500); transition: all var(--t-fast); cursor: pointer; }
.modal__close:hover { background: var(--gray-200); color: var(--dark-2); }

/* ── STAT CARD ── */
.stat-card { background: var(--surface-2); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--border); }
.stat-card__val { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--dark-2); line-height: 1; margin-bottom: 4px; }
.stat-card__label { font-size: 13px; color: var(--gray-500); }
.stat-card__icon { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* ── TAB ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); gap: 0; }
.tab-btn { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--gray-500); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -2px; transition: all var(--t-fast); }
.tab-btn:hover { color: var(--dark-2); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── DROPDOWN ── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  min-width: 200px; z-index: 1050; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all var(--t-fast);
}
.dropdown-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; color: var(--dark-2); cursor: pointer; transition: background var(--t-fast); }
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--gray-400); }
.dropdown-item:hover svg { color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--gray-300); }
.empty-state__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state__text { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }

/* ── SKELETON ── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── PROGRESS ── */
.progress-bar { height: 4px; background: var(--gray-100); border-radius: 2px; overflow: hidden; }
.progress-bar__fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width var(--t-slow); }

/* ── STEP INDICATOR ── */
.step-indicator { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; }
.step__dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-family: var(--font-display); border: 2px solid var(--border); color: var(--gray-400); background: var(--white); transition: all var(--t-base); flex-shrink: 0; }
.step.active .step__dot { border-color: var(--primary); color: var(--primary); }
.step.done .step__dot { border-color: var(--success); background: var(--success); color: white; }
.step__line { width: 48px; height: 2px; background: var(--border); }
.step.done + .step .step__line,
.step__line.done { background: var(--success); }
.step__label { font-size: 12px; font-weight: 500; color: var(--gray-400); margin-top: 6px; text-align: center; }
.step.active .step__label { color: var(--primary); font-weight: 600; }
.step.done .step__label { color: var(--success); }

/* ── NEAR ME ── */
.near-me-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--gray-600); transition: all var(--t-fast);
  white-space: nowrap;
}
.near-me-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.near-me-toggle:hover { border-color: var(--primary); color: var(--primary); }
.near-me-toggle.active {
  background: var(--primary); border-color: var(--primary);
  color: var(--white); box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}
.near-me-toggle.loading { opacity: 0.7; pointer-events: none; }
.near-me-toggle__radius {
  background: rgba(255,255,255,0.25); padding: 2px 8px;
  border-radius: var(--r-full); font-size: 11px; font-weight: 700;
  margin-left: 2px;
}

.near-me-panel {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); margin-top: 12px;
  animation: nearMeIn 0.25s ease;
}
@keyframes nearMeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.near-me-panel__label {
  font-size: 13px; color: var(--gray-600); white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.near-me-panel__label strong {
  color: var(--primary); font-weight: 700; min-width: 40px; text-align: center;
}

.near-me-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-width: 120px; height: 4px;
  background: var(--gray-200); border-radius: 2px; outline: none;
  transition: background var(--t-fast);
}
.near-me-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,107,53,0.3);
  border: 2px solid var(--white);
  transition: transform var(--t-fast);
}
.near-me-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.near-me-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}

.near-me-denied {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--warning-bg);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--r-md); margin-top: 12px;
  font-size: 13px; color: var(--gray-700);
  animation: nearMeIn 0.25s ease;
}
.near-me-denied svg { width: 16px; height: 16px; color: var(--warning); flex-shrink: 0; }

.near-me-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 20px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
  animation: nearMeIn 0.25s ease;
}
.near-me-bar__inner {
  display: flex; align-items: center; gap: 12px;
}
.near-me-bar__icon { color: var(--primary); flex-shrink: 0; }
.near-me-bar__icon svg { width: 16px; height: 16px; }
.near-me-bar__label { font-size: 13px; color: var(--gray-600); white-space: nowrap; }
.near-me-bar__label strong { color: var(--primary); font-weight: 700; }
.near-me-bar__range { flex: 1; }
.near-me-bar__close {
  width: 28px; height: 28px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: var(--gray-100);
  color: var(--gray-500); cursor: pointer; transition: all var(--t-fast);
  border: none; flex-shrink: 0;
}
.near-me-bar__close:hover { background: var(--gray-200); color: var(--dark-2); }

@media(max-width:640px) {
  .near-me-panel { flex-wrap: wrap; gap: 10px; }
  .near-me-bar__inner { flex-wrap: wrap; }
  .near-me-bar__range { min-width: 100%; order: 3; }
}

/* ── SUB-CATEGORY CHIPS (shared) ── */
.subcategory-chips {
  display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px;
  scroll-behavior: smooth;
}
.subcategory-chips::-webkit-scrollbar { height: 3px; }
.subcategory-chips::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.subcat-chip {
  padding: 6px 14px; border-radius: var(--r-full); font-size: 12px; font-weight: 500;
  border: 1.5px solid var(--gray-200); color: var(--gray-600); cursor: pointer;
  white-space: nowrap; transition: all var(--t-fast); background: var(--white);
  display: inline-flex; align-items: center; gap: 5px;
}
.subcat-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.subcat-chip.active { background: var(--primary-50); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }

/* ── BETA BADGE (FLOATING) ── */
.beta-badge-float {
  position: fixed; bottom: 16px; left: 16px; z-index: 90;
  background: var(--dark-2); color: rgba(255,255,255,0.85);
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500; display: flex;
  align-items: center; gap: 8px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px); letter-spacing: -0.01em;
}
.beta-badge-float__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: pulse 2s infinite; flex-shrink: 0;
}

/* ── ANALYTICS GRID ── */
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.analytics-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.analytics-card__icon { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.analytics-card__icon--views { background: var(--info-bg); color: var(--info); }
.analytics-card__icon--favs { background: var(--error-bg); color: var(--error); }
.analytics-card__icon--msgs { background: var(--success-bg); color: var(--success); }
.analytics-card__icon--listings { background: var(--primary-50); color: var(--primary); }
.analytics-card__val { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--dark-2); line-height: 1; margin-bottom: 4px; }
.analytics-card__label { font-size: 13px; color: var(--gray-500); }

@media(max-width:768px) {
  .beta-badge-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 12px; right: 12px; max-width: none;
    font-size: 11px; padding: 7px 12px;
    justify-content: center;
  }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media(max-width:480px) {
  .analytics-grid { grid-template-columns: 1fr 1fr; }

  /* Toast mobile fix — above bottom nav */
  .toast-container { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 16px; left: 16px; }
  .toast { min-width: 0; max-width: 100%; font-size: 13px; padding: 12px 14px; }

  /* Beta badge above bottom nav */
  .beta-badge-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px; right: 10px; max-width: none;
    font-size: 10px; padding: 6px 10px; gap: 6px;
  }

  /* Modal mobile fix */
  .modal-overlay { padding: 16px; }
  .modal { padding: 20px; max-height: calc(100vh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal__title { font-size: 18px; }

  /* Dropdown mobile fix */
  .dropdown-menu { min-width: 140px; max-width: calc(100% - 32px); }

  /* Listing card compact */
  .listing-card { padding: 16px; }
  .listing-card__header { margin-bottom: 10px; }
  .listing-card__title { font-size: 14px; }
  .listing-card__desc { font-size: 12px; }

  /* Category card compact — override from home.css handles sizing */
  .cat-card__icon svg { width: 20px; height: 20px; }
}
@media(max-width:360px) {
  .toast-container { right: 10px; left: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .toast { font-size: 12px; padding: 10px 12px; }
  .beta-badge-float { font-size: 9px; padding: 5px 8px; gap: 5px; }
  .modal-overlay { padding: 12px; }
  .modal { padding: 16px; max-height: calc(100vh - 24px); }
  .modal__title { font-size: 16px; }
  .listing-card { padding: 14px; }
  .listing-card__icon { width: 36px; height: 36px; }
  .listing-card__icon svg { width: 18px; height: 18px; }
  .listing-card__title { font-size: 13px; }
  .listing-card__fav { width: 28px; height: 28px; }
}
