/* =========================================================
   Tachaz — Main Stylesheet
   Theme: dark with hot-pink accent
   ========================================================= */

/* --- Custom Properties --- */
:root {
  --bg:        #0d0d0d;
  --surface:   #1a1a1a;
  --surface2:  #222222;
  --accent:    #e91e8c;
  --accent-dark: #c0166f;
  --accent-dim:  rgba(233,30,140,0.15);
  --text:      #f0f0f0;
  --text-dim:  #cccccc;
  --muted:     #888888;
  --border:    #2a2a2a;
  --success:   #2ecc71;
  --warning:   #f39c12;
  --danger:    #e74c3c;
  --info:      #3498db;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { line-height: 1.2; }

img { display: block; max-width: 100%; height: auto; }

textarea, input, select, button { font-family: inherit; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* --- Layout & Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* --- Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 0 16px rgba(233,30,140,0.4);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface2);
  color: var(--text);
  border-color: #444;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* --- Forms --- */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-control::placeholder { color: var(--muted); }

select.form-control { cursor: pointer; }
select.form-control option { background: var(--surface); color: var(--text); }

textarea.form-control { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-check { display: flex; align-items: flex-start; }
.check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-message {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-message--error   { background: rgba(231,76,60,0.15); color: #e88; border: 1px solid rgba(231,76,60,0.3); }
.form-message--success { background: rgba(46,204,113,0.15); color: #8e8; border: 1px solid rgba(46,204,113,0.3); }

/* --- Auth Pages --- */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1a0a14 0%, var(--bg) 70%);
}

.auth-container { width: 100%; max-width: 420px; padding: 1rem; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-tagline { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }
.auth-card h2 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }

/* --- Dashboard Header --- */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-header h2 { font-size: 1.5rem; }

.location-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.location-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.location-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background var(--transition);
}
.location-dot.active { background: var(--success); box-shadow: 0 0 6px var(--success); }

/* --- User Cards (Nearby Grid) --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border-color: var(--accent);
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface2);
}

.card-body { padding: 0.85rem; }
.card-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.card-lastseen { font-size: 0.78rem; color: var(--muted); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-distance {
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #fff;
}
.badge-age {
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.badge-gender {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(233,30,140,0.25);
}

/* --- Avatar --- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}
.avatar-sm  { width: 36px;  height: 36px;  }
.avatar-md  { width: 56px;  height: 56px;  }
.avatar-lg  { width: 80px;  height: 80px;  }
.avatar-xl  { width: 120px; height: 120px; }

/* --- Profile Page --- */
.profile-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 24px rgba(233,30,140,0.3);
}

.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.75rem; margin-bottom: 0.6rem; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.profile-lastseen { font-size: 0.85rem; margin-bottom: 0.75rem; }
.profile-bio { line-height: 1.7; margin-bottom: 1.25rem; color: var(--text-dim); }
.profile-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.photo-section { margin-top: 2rem; }
.photo-section h3 { margin-bottom: 1rem; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.photo-thumb {
  cursor: pointer;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
}
.photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.photo-thumb:hover img { transform: scale(1.05); }
.photo-delete-btn {
  position: absolute;
  top: 5px; right: 5px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.photo-thumb:hover .photo-delete-btn { opacity: 1; }

/* --- Edit Profile Page --- */
.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.edit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.edit-card h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-top: 1rem;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.9rem; color: var(--text-dim); }
.upload-progress { color: var(--accent); font-size: 0.9rem; padding: 0.5rem 0; }

/* --- Chat Page --- */
.chat-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.conversations-panel {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.conversations-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.conversations-header h3 { font-size: 1rem; }

.conversations-list {
  flex: 1;
  overflow-y: auto;
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.conversation-item:hover  { background: var(--surface2); }
.conversation-item.active { background: var(--accent-dim); border-left: 3px solid var(--accent); }

.conversation-info { flex: 1; min-width: 0; }
.conversation-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-preview { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { text-align: right; flex-shrink: 0; }
.conversation-time { font-size: 0.75rem; color: var(--muted); }
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.conversations-loading { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* --- Messages Panel --- */
.messages-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.messages-header {
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.messages-header a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
}
.messages-header a:hover { color: var(--accent); }

.messages-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
}
.messages-empty .empty-icon { font-size: 3rem; }

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.message-bubble {
  max-width: 70%;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
.message-bubble.own {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.message-bubble.other {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.message-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-top: 0.2rem;
  text-align: right;
}
.message-bubble.other .message-time { color: var(--muted); text-align: left; }

.message-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.message-textarea {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  resize: none;
  max-height: 150px;
  overflow-y: auto;
  line-height: 1.5;
  transition: border-color var(--transition);
}
.message-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.message-textarea::placeholder { color: var(--muted); }
.message-send-btn { flex-shrink: 0; align-self: flex-end; }

/* --- Photo reminder banner (hosts) --- */
.photo-reminder {
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
  transition: opacity .3s, max-height .4s;
}
.photo-reminder--urgent  { background: rgba(231,76,60,.12);  border: 1px solid rgba(231,76,60,.35);  }
.photo-reminder--warning { background: rgba(243,156,18,.12); border: 1px solid rgba(243,156,18,.35); }
.photo-reminder--info    { background: rgba(52,152,219,.10); border: 1px solid rgba(52,152,219,.3);  }

.photo-reminder-content {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}
.photo-reminder-icon  { font-size: 1.5rem; flex-shrink: 0; }
.photo-reminder-text  { flex: 1; min-width: 0; font-size: .88rem; display: flex; flex-direction: column; gap: .1rem; }
.photo-reminder-text strong { color: var(--text); }
.photo-reminder-text span   { color: var(--text-dim); }

.photo-reminder--urgent  .photo-reminder-cta { background: var(--danger);  color: #fff; }
.photo-reminder--warning .photo-reminder-cta { background: var(--warning); color: #000; }
.photo-reminder--info    .photo-reminder-cta { background: var(--info);    color: #fff; }
.photo-reminder-cta { flex-shrink: 0; white-space: nowrap; }

.photo-reminder-dismiss {
  background: none; border: none; color: var(--muted);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  padding: 0 .25rem; margin-left: auto; flex-shrink: 0;
}
.photo-reminder-dismiss:hover { color: var(--text); }

/* --- Profile Visitors (host dashboard) --- */
.visitors-header {
  margin-bottom: 0.5rem;
}
.visitors-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}
.visitors-title h3 { margin: 0; font-size: 1.15rem; }
.visitors-total-badge {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 0.15rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.visitors-sub {
  font-size: 0.82rem;
  color: var(--muted);
}
.visitor-card {
  cursor: default;
  text-align: center;
}
.visitor-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.visitor-avatar {
  font-size: 2.5rem;
  margin: 0.75rem 0 0.5rem;
  line-height: 1;
}

/* --- Subscription expiry notice --- */
.sub-expiry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--success);
  flex-wrap: wrap;
}
.sub-expiry--warn {
  color: var(--warning);
}

/* --- Alerts & Info Banners --- */
.info-banner {
  background: rgba(52,152,219,0.15);
  border: 1px solid rgba(52,152,219,0.3);
  color: #9ad4f5;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 1rem;
  font-size: 0.9rem;
}
.alert-warning { background: rgba(243,156,18,0.15); border: 1px solid rgba(243,156,18,0.3); color: #f8c777; }

/* --- Empty States --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; color: var(--text-dim); margin-bottom: 0.5rem; }

/* --- Loading Spinner --- */
#nearby-loading { display: none; }
#nearby-loading:not([hidden]) { display: block; }

.nearby-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 3.5rem 1rem;
  color: var(--muted);
}

.spinner {
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.spinner-label {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
  min-width: 220px;
  max-width: 360px;
}
.toast.success { border-left: 4px solid var(--success); color: #8e8; }
.toast.error   { border-left: 4px solid var(--danger);  color: #e88; }
.toast.info    { border-left: 4px solid var(--info);    color: #9ad4f5; }
@keyframes toast-in {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* --- Utilities --- */
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .edit-grid { grid-template-columns: 1fr; }
  .chat-container { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .navbar-nav { gap: 0; }
  .nav-link { padding: 0.4rem 0.5rem; font-size: 0.8rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .dashboard-header { flex-direction: column; }
  .location-controls { width: 100%; }

  .profile-hero { flex-direction: column; align-items: center; text-align: center; }
  .profile-meta, .profile-actions { justify-content: center; }
  .profile-avatar { width: 130px; height: 130px; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  .chat-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .conversations-panel {
    height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .message-bubble { max-width: 85%; }

  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 480px) {
  .auth-card { padding: 1.5rem 1rem; }
  .container { padding: 1rem 0.75rem; }
}

/* =========================================================
   Account Type Badges
   ========================================================= */

.badge-host {
  color: #e91e8c;
  background: rgba(233, 30, 140, 0.12);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(233, 30, 140, 0.35);
}

.badge-guest {
  color: #3498db;
  background: rgba(52, 152, 219, 0.12);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(52, 152, 219, 0.35);
}

/* Account type pill shown on user cards / profiles */
.account-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 20px;
}
.account-type-pill.host {
  color: #e91e8c;
  background: rgba(233, 30, 140, 0.12);
  border: 1px solid rgba(233, 30, 140, 0.3);
}
.account-type-pill.guest {
  color: #3498db;
  background: rgba(52, 152, 219, 0.12);
  border: 1px solid rgba(52, 152, 219, 0.3);
}

/* =========================================================
   Profile Phone Number Display
   ========================================================= */

.profile-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
}

.profile-phone .phone-icon { font-size: 18px; line-height: 1; }

.profile-phone .phone-number {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
}
.profile-phone .phone-number:hover { text-decoration: underline; }

/* Locked state — unpaid guest viewing a host */
.profile-phone--locked {
  border-color: #3a3a3a;
  opacity: .85;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-phone--locked .phone-locked-text {
  color: var(--muted);
  font-size: 13px;
}
.btn-upgrade-inline {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-upgrade-inline:hover { background: var(--accent-dark); color: #fff; }

/* =========================================================
   Radius Slider (guests only)
   ========================================================= */

.radius-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
}

.radius-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.radius-label strong {
  font-size: 15px;
  color: var(--accent);
  min-width: 48px;
  text-align: right;
}

.radius-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radius-tick {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

input[type="range"]#radius-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) calc(var(--val, 100%) * 1%),
    var(--border) calc(var(--val, 100%) * 1%),
    var(--border) 100%
  );
  outline: none;
  cursor: pointer;
}

input[type="range"]#radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}

input[type="range"]#radius-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}

input[type="range"]#radius-slider:focus::-webkit-slider-thumb,
input[type="range"]#radius-slider:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.25);
  transform: scale(1.15);
}

input[type="range"]#radius-slider:focus::-moz-range-thumb,
input[type="range"]#radius-slider:hover::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.25);
  transform: scale(1.15);
}


/* =========================================================
   Subscribe / Upgrade Page
   ========================================================= */

.subscribe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}

.subscribe-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.subscribe-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.price-tag {
  color: var(--accent);
  font-size: 18px;
}

.price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(233,30,140,.3);
  border-radius: var(--radius);
  padding: 12px 28px;
  margin: 20px 0 0;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}

.price-period {
  font-size: 14px;
  color: var(--muted);
}

.subscribe-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.perk--locked {
  opacity: .55;
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

.perk--unlocked {
  border-left: 3px solid var(--accent);
}

.perk span { color: var(--muted); font-size: 12px; }

.subscribe-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* Nav upgrade link */
.nav-link--upgrade {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ── Payment result page ── */

.payment-result {
  padding: 12px 0;
}

.payment-result--success .payment-icon,
.payment-result--pending .payment-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
}

.payment-result--failed .payment-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 12px;
}

.payment-result h2 { margin-bottom: 10px; }

/* ── Locked photo tile ── */

.photo-thumb--locked {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
  min-height: 120px;
}

.photo-thumb--locked:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.photo-locked-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.photo-locked-icon  { font-size: 28px; }
.photo-locked-count { font-size: 13px; color: var(--muted); }
.photo-locked-cta   {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(233,30,140,.3);
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 4px;
}

/* =========================================================
   Info banner inline button
   ========================================================= */
.btn-inline {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  transition: background var(--transition);
}
.btn-inline:hover { background: var(--accent-dark); }

/* =========================================================
   Site Footer
   ========================================================= */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  z-index: 90;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.73rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links {
  display: flex;
  gap: 1rem;
}
.footer-links a,
.footer-copy {
  color: var(--muted);
  font-size: 0.73rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

/* Add bottom padding to page body so content isn't hidden behind fixed footer */
body { padding-bottom: 2.5rem; }

/* ── Password visibility toggle ── */
.pw-wrap {
  position: relative;
}
.pw-wrap .form-control {
  padding-right: 2.75rem;
}
.pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  transition: color var(--transition);
  user-select: none;
}
.pw-toggle:hover { color: var(--text); }
