/* =========================================================
   ReffMe — Main Stylesheet
   Mobile-first, PHP 5.6 / XAMPP compatible
   ========================================================= */

/* --- Variables ------------------------------------------ */
:root {
  --primary:       #0EA271;
  --primary-dark:  #0A7A56;
  --primary-light: #E6F7F2;
  --primary-bg:    #F0FFF8;
  --accent:        #F97316;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-300:      #CBD5E1;
  --gray-400:      #94A3B8;
  --gray-500:      #64748B;
  --gray-600:      #475569;
  --gray-700:      #334155;
  --gray-800:      #1E293B;
  --gray-900:      #0F172A;
  --white:         #FFFFFF;
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.06);
  --shadow:        0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:     0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --radius-full:   9999px;
  --transition:    150ms ease;
}

/* --- Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* --- Container ------------------------------------------ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Navbar --------------------------------------------- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -0.5px;
}
.logo span, .logo-sm span { color: var(--primary); }
.logo-sm {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-600);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-logout { color: var(--gray-400) !important; font-size: 13px !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Main ----------------------------------------------- */
.main-content {
  flex: 1;
  padding: 24px 0 48px;
}

/* --- Footer --------------------------------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 20px 0;
  font-size: 13px;
  color: var(--gray-400);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--gray-400); font-size: 13px; }
.footer-links a:hover { color: var(--primary); }

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover { background: #DC2626; }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1DA851; border-color: #1DA851; color: var(--white); }
.btn-sms {
  background: var(--info);
  color: var(--white);
  border-color: var(--info);
}
.btn-copy {
  background: var(--gray-700);
  color: var(--white);
  border-color: var(--gray-700);
}

/* --- Forms ---------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-label span { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,162,113,0.15);
}
.form-control::placeholder { color: var(--gray-400); }
.form-text {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.input-group { position: relative; }
.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
}
.input-prefix + .form-control { padding-left: 42px; }

/* --- OTP Input ------------------------------------------ */
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}
.otp-input {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.otp-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,162,113,0.15); }
.otp-input.filled { border-color: var(--primary); background: var(--primary-light); }

/* --- PIN Input ------------------------------------------ */
.pin-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0;
}
.pin-dot {
  width: 54px;
  height: 62px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  -moz-appearance: textfield;
  -webkit-text-security: disc;
}
.pin-dot:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,162,113,0.15); }

/* --- Alerts --------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
}
.alert-success { background: #ECFDF5; color: #065F46; border-left-color: #10B981; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-left-color: var(--danger); }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-left-color: var(--info); }
.alert-warning { background: #FFFBEB; color: #92400E; border-left-color: var(--warning); }
.alert-dev     { background: #FFF7ED; color: #9A3412; border-left-color: var(--accent); font-size: 13px; }
.dev-otp       { font-family: monospace; font-size: 20px; font-weight: 700; letter-spacing: 4px; margin: 0 8px; }

/* --- Cards ---------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 16px; border-radius: var(--radius); }

/* --- Auth Layout ---------------------------------------- */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gray-800);
}
.auth-logo span { color: var(--primary); }
.auth-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
  text-align: center;
}
.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin: 20px 0;
}
.auth-divider a { font-weight: 600; }

/* --- Landing Page --------------------------------------- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-mockup {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-mockup-bar {
  background: var(--primary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-mockup-bar span { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600; }
.mockup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.mockup-item:last-child { border-bottom: none; }
.mockup-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mockup-name { font-weight: 600; font-size: 14px; color: var(--gray-800); }
.mockup-sub  { font-size: 12px; color: var(--gray-400); }
.mockup-share {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  flex-shrink: 0;
}

/* --- How It Works --------------------------------------- */
.how-section {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 40px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 28px 20px;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* --- CTA Section ---------------------------------------- */
.cta-section {
  padding: 56px 0;
  text-align: center;
}
.cta-section h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; margin-bottom: 12px; }
.cta-section p  { color: var(--gray-500); margin-bottom: 28px; }

/* --- Dashboard ------------------------------------------ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; margin-bottom: 24px; }

/* --- Business Grid -------------------------------------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.biz-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.biz-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.biz-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.biz-avatar {
  width: 44px; height: 44px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.biz-name { font-size: 15px; font-weight: 700; color: var(--gray-800); line-height: 1.3; }
.biz-phone { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.biz-category {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.biz-notes {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.biz-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}
.biz-actions .btn { flex: 1; min-width: 80px; }

/* --- Business Profile Page ------------------------------ */
.profile-wrap { max-width: 600px; margin: 0 auto; }
.profile-header {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.profile-avatar {
  width: 72px; height: 72px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-lg);
  font-size: 32px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.profile-name { font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.profile-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.profile-contact-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.profile-contact-btns .btn { flex: 1; min-width: 120px; }
.profile-section { margin-bottom: 12px; }
.profile-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.profile-section-value { font-size: 15px; color: var(--gray-700); }
.referred-by {
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.save-cta-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.save-cta-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.save-cta-box p  { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; }

/* --- Share Panel ---------------------------------------- */
.share-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.share-url-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 16px 0;
}
.share-url-box input {
  flex: 1;
  font-size: 13px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--gray-700);
  font-family: monospace;
}
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* --- Invite Screen -------------------------------------- */
.invite-wrap { max-width: 440px; margin: 0 auto; }

/* --- Utilities ------------------------------------------ */
.text-center { text-align: center; }
.text-sm     { font-size: 13px; }
.text-muted  { color: var(--gray-400); }
.text-primary{ color: var(--primary); }
.text-danger { color: var(--danger); }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.mt-4        { margin-top: 4px; }
.mt-8        { margin-top: 8px; }
.mt-12       { margin-top: 12px; }
.mt-16       { margin-top: 16px; }
.mt-24       { margin-top: 24px; }
.mb-4        { margin-bottom: 4px; }
.mb-8        { margin-bottom: 8px; }
.mb-12       { margin-bottom: 12px; }
.mb-16       { margin-bottom: 16px; }
.mb-24       { margin-bottom: 24px; }
.d-flex      { display: flex; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.align-center{ align-items: center; }
.flex-wrap   { flex-wrap: wrap; }
.badge       { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.badge-green { background: #ECFDF5; color: #065F46; }
.badge-gray  { background: var(--gray-100); color: var(--gray-600); }
.divider     { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.claimed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .hero { padding: 40px 0 32px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 15px; padding: 6px 0; }
  .biz-grid { grid-template-columns: 1fr; }
  .share-buttons { grid-template-columns: 1fr; }
  .otp-input { width: 42px; height: 52px; font-size: 20px; }
  .pin-dot   { width: 46px; height: 54px; font-size: 22px; }
}

/* =========================================================
   Phase 2 — Profile Enrichment Additions
   ========================================================= */

/* Photo gallery on profile */
.photo-gallery            { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:8px; margin-top:14px; }
.photo-gallery img        { width:100%; aspect-ratio:1; object-fit:cover; border-radius:var(--radius); cursor:pointer; border:1px solid var(--gray-200); transition:opacity .15s; }
.photo-gallery img:hover  { opacity:.85; }

/* Opening hours table */
.hours-table              { width:100%; font-size:13px; border-collapse:collapse; }
.hours-table td           { padding:5px 0; }
.hours-table .day-col     { font-weight:600; color:var(--gray-700); width:110px; padding-right:12px; }
.hours-table .today-row td{ color:var(--primary-dark); font-weight:700; }
.hours-closed             { color:var(--gray-400); }

/* Recommendation quote on profile */
.reco-quote               { background:var(--primary-bg); border-left:3px solid var(--primary); border-radius:0 var(--radius) var(--radius) 0; padding:12px 16px; margin-bottom:14px; font-size:14px; color:var(--primary-dark); }
.reco-quote strong        { display:block; margin-bottom:2px; font-size:11px; color:var(--gray-400); text-transform:uppercase; letter-spacing:.5px; }

/* Owner management bar */
.owner-bar                { background:var(--primary-bg); border:1px solid var(--primary-light); border-radius:var(--radius); padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.owner-bar span           { font-size:13px; font-weight:600; color:var(--primary-dark); }

/* Manage page tabs */
.manage-tabs              { display:flex; gap:0; border-bottom:2px solid var(--gray-200); margin-bottom:28px; overflow-x:auto; }
.manage-tab               { padding:10px 18px; font-size:14px; font-weight:600; color:var(--gray-500); text-decoration:none; white-space:nowrap; border-bottom:2px solid transparent; margin-bottom:-2px; transition:color .15s,border-color .15s; }
.manage-tab:hover         { color:var(--gray-800); }
.manage-tab.active        { color:var(--primary); border-bottom-color:var(--primary); }
.manage-section           { display:none; }
.manage-section.active    { display:block; }

/* Hours editor */
.hours-row                { display:grid; grid-template-columns:110px 1fr 1fr 80px; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--gray-100); font-size:14px; }
.hours-row:last-child     { border-bottom:none; }
.hours-day                { font-weight:600; color:var(--gray-700); }

/* Photo management grid */
.photo-grid               { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; margin-bottom:24px; }
.photo-card               { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); }
.photo-card.is-primary    { border-color:var(--primary); border-width:2px; }
.photo-img                { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; background:var(--gray-100); }
.photo-body               { padding:10px; }
.primary-badge            { display:inline-block; background:#ECFDF5; color:#065F46; font-size:10px; font-weight:700; padding:2px 6px; border-radius:99px; margin-bottom:6px; }

/* Dashboard owned-business mini stats */
.owned-stats              { display:flex; gap:16px; padding:8px 0; border-top:1px solid var(--gray-100); border-bottom:1px solid var(--gray-100); margin:4px 0; }
.owned-stat               { text-align:center; flex:1; }
.owned-stat-val           { font-size:16px; font-weight:700; color:var(--primary); }
.owned-stat-lbl           { font-size:11px; color:var(--gray-400); }

/* Profile Phase 2 hero */
.prof2-hero               { width:100%; height:220px; object-fit:cover; border-radius:var(--radius-xl) var(--radius-xl) 0 0; display:block; background:var(--gray-100); }
.prof2-hero-placeholder   { width:100%; height:220px; background:linear-gradient(135deg,var(--primary-light),var(--gray-100)); border-radius:var(--radius-xl) var(--radius-xl) 0 0; display:flex; align-items:center; justify-content:center; font-size:72px; font-weight:800; color:var(--primary); }

@media (max-width:640px) {
  .hours-row { grid-template-columns:80px 1fr 1fr 60px; gap:6px; font-size:13px; }
  .photo-grid { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
  .prof2-hero, .prof2-hero-placeholder { height:160px; font-size:52px; }
}
