/* ── FONTS ─────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── VARIABLES ────────────────────────────────────────────────────────────── */
:root {
  --blue-dark:    #1a3a52;
  --blue-mid:     #2d6187;
  --blue-light:   #e8f0f6;
  --blue-accent:  #3a7dab;
  --gray-warm:    #6b6560;
  --gray-light:   #f4f2ef;
  --gray-border:  #ddd9d4;
  --white:        #ffffff;
  --text-dark:    #1e1e1e;
  --text-body:    #3d3a38;
  --text-muted:   #7a7470;
  --shadow-sm:    0 1px 4px rgba(26,58,82,0.08);
  --shadow-md:    0 4px 16px rgba(26,58,82,0.12);
  --shadow-lg:    0 8px 32px rgba(26,58,82,0.16);
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   all 0.2s ease;
}

/* ── RESET ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--gray-light);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-mid); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--blue-dark);
  line-height: 1.25;
}

/* ── TOPBAR ───────────────────────────────────────────────────────────────── */
.topbar {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}
.topbar-brand span { color: var(--blue-accent); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue-mid);
  border: 1.5px solid var(--blue-mid);
}
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 6px 10px;
}
.btn-ghost:hover { background: var(--gray-light); color: var(--text-dark); }
.btn-danger {
  background: #c0392b;
  color: white;
}
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
}
.btn-icon:hover { background: var(--gray-light); color: var(--blue-dark); }

/* ── MODAL ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,58,82,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--blue-dark); background: var(--gray-light); }
.modal h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ── FORM ELEMENTS ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(58,125,171,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; margin-bottom: 0; }

.form-error {
  color: #c0392b;
  font-size: 0.84rem;
  margin-top: 10px;
  display: none;
}
.form-error.visible { display: block; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.form-actions .btn { flex: 1; justify-content: center; }

/* ── LANDING PAGE ─────────────────────────────────────────────────────────── */
.landing-hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-light) 60%, #ffd9b3 100%);
}
.landing-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.landing-logo span { color: var(--blue-accent); }
.landing-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.landing-slogan {
  max-width: 620px;
  text-align: center;
  margin-bottom: 36px;
}
.slogan-main {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 14px;
  font-weight: 400;
}
.slogan-sub {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
}

/* ── SEARCH ───────────────────────────────────────────────────────────────── */
.search-wrap {
  width: 100%;
  max-width: 660px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.search-row .search-input-wrap {
  flex: 1;
}
.search-city-row {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: 40px;
  padding: 4px 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  width: 150px;
  flex-shrink: 0;
}
.search-city-row:focus-within {
  border-color: var(--blue-accent);
  box-shadow: 0 4px 20px rgba(58,125,171,0.18);
}
.search-city-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-city-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: transparent;
  padding: 4px 0;
  min-width: 0;
}
.search-city-input::placeholder { color: var(--text-muted); }
.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: 40px;
  padding: 4px 4px 4px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.search-input-wrap:focus-within {
  border-color: var(--blue-accent);
  box-shadow: 0 4px 20px rgba(58,125,171,0.18);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
  padding: 8px 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--blue-mid);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover { background: var(--blue-dark); }
.search-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* ── SEARCH RESULTS ───────────────────────────────────────────────────────── */
.results-section {
  display: none;
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.results-section.visible { display: block; }
.results-heading {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
}
.results-heading strong { color: var(--text-dark); font-weight: 600; }
.result-cards { display: flex; flex-direction: column; gap: 16px; }
.result-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.result-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
  transform: translateY(-1px);
  color: inherit;
}
.result-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--blue-mid);
  font-weight: 600;
}
.result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; }
.result-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 5px;
}
.result-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue-light);
  color: var(--blue-mid);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}
.tag.highlighted {
  background: #fff3cd;
  color: #856404;
}
.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 1rem;
}

/* ── PROFILE PAGE ─────────────────────────────────────────────────────────── */
.profile-container {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px 60px;
}
.profile-header {
  margin-bottom: 0;
}
.profile-header-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-pic-wrap {
  position: relative;
  flex-shrink: 0;
}
.profile-pic {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
}
.profile-pic-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--blue-mid);
  font-weight: 600;
  border: 3px solid var(--blue-light);
  flex-shrink: 0;
}
.upload-btn-overlay {
  position: absolute;
  bottom: 4px; right: 4px;
  background: var(--blue-mid);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.upload-btn-overlay:hover { background: var(--blue-dark); }
.profile-meta { flex: 1; min-width: 220px; }
.profile-shop-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.profile-summary {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-body);
}
.profile-summary-edit {
  width: 100%;
  font-size: 0.97rem;
  line-height: 1.65;
  min-height: 100px;
}

/* ── PROFILE CARDS ────────────────────────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.profile-card.full-width { grid-column: 1 / -1; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.9rem;
}
.info-row:last-child { border-bottom: none; }
.info-row .icon {
  color: var(--blue-accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.9rem;
}
.info-row .value { color: var(--text-body); flex: 1; word-break: break-all; }
.info-row .value a { color: var(--blue-mid); }
.info-row .value a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ── EXAMPLES ─────────────────────────────────────────────────────────────── */
.example-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}
.example-item:last-child { border-bottom: none; }
.example-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.example-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── EDITABLE FIELDS ──────────────────────────────────────────────────────── */
.editable-list { list-style: none; }
.editable-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.editable-list li input {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: 'Source Sans 3', sans-serif;
  outline: none;
  transition: var(--transition);
}
.editable-list li input:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(58,125,171,0.1);
}
.editable-list li input[placeholder="Label"] { max-width: 120px; }
.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 1.1rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1;
}
.btn-remove:hover { background: #fde8e8; }
.add-row-btn {
  font-size: 0.83rem;
  padding: 5px 12px;
  margin-top: 6px;
}

/* Services edit */
.services-edit-wrap { display: flex; gap: 8px; margin-bottom: 8px; }
.services-edit-wrap input { flex: 1; }

/* Example edit */
.example-edit {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.example-edit input, .example-edit textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 6px;
  outline: none;
  transition: var(--transition);
}
.example-edit input:focus, .example-edit textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(58,125,171,0.1);
}
.example-edit textarea { resize: vertical; min-height: 68px; margin-bottom: 0; }
.example-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.example-edit-header span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── DASHBOARD NAV ────────────────────────────────────────────────────────── */
.dash-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.dash-left { display: flex; align-items: center; gap: 12px; }
.dash-right { display: flex; align-items: center; gap: 10px; }
.save-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: none;
}
.save-status.visible { display: inline; }
.save-status.saved { color: #27ae60; }

/* ── WIP TOAST ────────────────────────────────────────────────────────────── */
.wip-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--blue-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.wip-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── BACK LINK ────────────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.back-link:hover { color: var(--blue-dark); }

/* ── EMPTY STATE ──────────────────────────────────────────────────────────── */
.empty-field {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.88rem;
}

/* ── LOADING ──────────────────────────────────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--blue-light);
  border-top-color: var(--blue-mid);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SHOP INFO SPLIT (details + map) ─────────────────────────────────────── */
.shop-info-split {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-height: 200px;
}
.shop-info-details {
  flex: 1;
  min-width: 0;
}
.shop-info-map {
  flex: 1;
  min-width: 0;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
}
.map-placeholder {
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1.5px dashed var(--gray-border);
}
@media (max-width: 640px) {
  .shop-info-split { flex-direction: column; }
  .shop-info-map   { min-height: 180px; }
}

.offers-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 2px 9px;
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── OFFERS & DEALS ───────────────────────────────────────────────────────── */
.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-left: 3px solid #ff9800;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
}
.offer-item:last-child { margin-bottom: 0; }
.offer-icon { flex-shrink: 0; font-size: 1rem; }
.offer-text { flex: 1; }

.offer-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.offer-input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
.offer-input:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(58,125,171,0.1);
}
.offers-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.offers-counter.at-limit { color: #e67e22; }

/* ── SHOP INFO MAP SPLIT ──────────────────────────────────────────────────── */
.shop-info-split {
  display: flex;
  gap: 20px;
  align-items: stretch;
  min-height: 200px;
}
.shop-info-details {
  flex: 1;
  min-width: 0;
}
.shop-info-map {
  width: 260px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
  min-height: 200px;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

@media (max-width: 640px) {
  .shop-info-split {
    flex-direction: column;
  }
  .shop-info-map {
    width: 100%;
    min-height: 180px;
  }
}
.card-edit-btn {
  font-size: 0.8rem;
  padding: 4px 12px;
  color: var(--blue-mid);
  border: 1.5px solid var(--blue-mid);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}
.card-edit-btn:hover { background: var(--blue-light); }
.card-edit-btn.active {
  background: var(--blue-mid);
  color: white;
}
.card-edit-btn.active:hover { background: var(--blue-dark); }

/* ── SERVICES CARD — smaller visual weight ────────────────────────────────── */
.profile-card.services-card {
  padding: 18px 24px;
}
.profile-card.services-card .card-title {
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
}
.profile-card.services-card .tag {
  font-size: 0.76rem;
  padding: 2px 9px;
}

/* ── READ-ONLY view fields ────────────────────────────────────────────────── */
.view-field { display: block; }
.edit-field { display: none; }
.card-editing .view-field { display: none; }
.card-editing .edit-field { display: block; }

/* ── SETTINGS DROPDOWN ────────────────────────────────────────────────────── */
.settings-wrap {
  position: relative;
}
.settings-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 300;
  overflow: hidden;
  animation: modalIn 0.15s ease;
}
.settings-dropdown.open { display: block; }
.settings-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: none;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-light);
}
.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--blue-light); color: var(--blue-dark); }

/* ── FORM SUCCESS ─────────────────────────────────────────────────────────── */
.form-success {
  color: #27ae60;
  font-size: 0.84rem;
  margin-top: 10px;
  display: none;
}
.form-success.visible { display: block; }

/* ── TABS ─────────────────────────────────────────────────────────────────── */
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--blue-mid); }
.tab-btn.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-mid);
  font-weight: 600;
}

/* ── STOCK CARD ───────────────────────────────────────────────────────────── */
.stock-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stock-card:hover { box-shadow: var(--shadow-md); }
.stock-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.stock-field {
  display: flex;
  gap: 6px;
  font-size: 0.84rem;
  margin-bottom: 4px;
  color: var(--text-body);
}
.stock-field-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 90px;
  flex-shrink: 0;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.stock-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--blue-mid);
  font-weight: 600;
  text-decoration: none;
}
.stock-shop-link:hover { color: var(--blue-dark); text-decoration: underline; }
.stock-expiry {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top:8px;
  font-style: italic;
}

/* ── FORGOT PASSWORD LINK ─────────────────────────────────────────────────── */
.forgot-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.forgot-link:hover { color: var(--blue-mid); text-decoration: underline; }

/* ── SERVICES INFO NOTE ───────────────────────────────────────────────────── */
.services-info-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--blue-light);
  border-left: 3px solid var(--blue-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.services-info-note .note-icon {
  flex-shrink: 0;
  color: var(--blue-accent);
  font-style: normal;
  font-size: 0.9rem;
  margin-top: 1px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .landing-logo { font-size: 2rem; }
}
