/* ============================================================
   ArtisanHub Nigeria — Mobile-First Stylesheet v2
   ============================================================ */

:root {
  --gold: #F5A623;
  --gold-light: #FFD166;
  --dark: #0A0A0F;
  --dark-2: #111118;
  --dark-3: #1A1A25;
  --dark-4: #22222F;
  --border: rgba(255,255,255,0.07);
  --text: #E8E8F0;
  --text-muted: #8888A8;
  --green: #22C55E;
  --red: #EF4444;
  --wa: #25D366;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(245,166,35,0.15);
  --nav-h: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.2; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-family: inherit; -webkit-appearance: none; appearance: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.gold { color: var(--gold); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }

/* ================================================================
   NAVBAR — Mobile First
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 16px;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: all .3s;
}
.navbar.scrolled {
  background: rgba(10,10,15,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
}
.logo {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 800;
  color: var(--text); flex-shrink: 0;
}
.logo em { color: var(--gold); font-style: normal; }

/* Mobile: links hidden by default */
.nav-links {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,15,.99);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  flex-direction: column; gap: 4px;
  z-index: 999;
  animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.nav-links.open { display: flex; }
.nav-link {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  transition: all .2s; text-align: left; width: 100%;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--dark-3); }
.nav-link.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-ghost { padding: 8px 12px; font-size: .85rem; color: var(--text-muted); transition: color .2s; white-space: nowrap; }
.btn-ghost:hover { color: var(--text); }
.btn-primary-sm {
  padding: 8px 14px; background: var(--gold); color: #000;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem;
  transition: all .2s; white-space: nowrap;
}
.btn-primary-sm:hover { background: var(--gold-light); }
.btn-outline-sm {
  padding: 7px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: .8rem;
  transition: all .2s; white-space: nowrap;
}
.btn-outline-sm:hover { border-color: var(--text-muted); color: var(--text); }
.badge-wrap { position: relative; display: inline-flex; }
.btn-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 1rem; background: var(--dark-3); transition: all .2s;
}
.btn-icon:hover { background: var(--dark-4); }
.badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff; font-size: .6rem;
  padding: 2px 4px; border-radius: 8px; font-weight: 700; pointer-events: none;
  min-width: 16px; text-align: center;
}
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 6px; flex-shrink: 0; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO — Mobile First
   ================================================================ */
.hero {
  min-height: 100svh;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 16px 60px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25; }
.orb-1 { width: 300px; height: 300px; background: var(--gold); top: -60px; right: -60px; animation: float 8s ease-in-out infinite; }
.orb-2 { width: 200px; height: 200px; background: #FF6B35; bottom: 60px; left: -40px; animation: float 8s ease-in-out infinite 3s; }
.orb-3 { width: 150px; height: 150px; background: var(--gold-light); top: 50%; left: 30%; animation: float 8s ease-in-out infinite 5s; }
@keyframes float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-20px) scale(1.04)} }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px,transparent 1px), linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
.hero-content { max-width: 620px; position: relative; z-index: 1; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.3);
  color: var(--gold); padding: 6px 12px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; margin-bottom: 20px;
  animation: fadeUp .6s ease both .2s;
}
.pulse-dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(245,166,35,.4)} 50%{box-shadow:0 0 0 6px rgba(245,166,35,0)} }
.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 16px; animation: fadeUp .7s ease both .35s;
}
.hero-title .subtitle-line {
  font-size: clamp(1.1rem, 4vw, 2.2rem); color: var(--text-muted); font-weight: 600; display: block;
}
.hero-desc {
  font-size: clamp(.9rem, 2.5vw, 1.05rem); color: var(--text-muted);
  margin-bottom: 28px; animation: fadeUp .7s ease both .5s; line-height: 1.7;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
  animation: fadeUp .7s ease both .65s;
}
.btn-hero-primary {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold); color: #000;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; transition: all .3s;
  box-shadow: 0 0 30px rgba(245,166,35,.3); flex: 1; min-width: 160px;
  justify-content: center;
}
.btn-hero-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-arrow { transition: transform .2s; display: inline-block; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-hero-whatsapp {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text); padding: 13px 20px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; transition: all .3s;
  flex: 1; min-width: 160px; justify-content: center;
}
.btn-hero-whatsapp:hover { border-color: var(--wa); color: var(--wa); }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  animation: fadeUp .7s ease both .8s;
}
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; }
.stat-label { font-size: .75rem; color: var(--text-muted); }
/* Hide phone mockup on mobile — shown on desktop */
.hero-visual { display: none; }

/* ================================================================
   SHARED SECTION STYLES
   ================================================================ */
section.section { padding: 56px 16px; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block; background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.3); color: var(--gold);
  padding: 4px 12px; border-radius: 100px; font-size: .72rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: .9rem; max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* ================================================================
   SERVICES — Mobile First
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 32px;
}
.service-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  transition: all .4s; opacity: 0; transform: translateY(20px);
}
.service-card.revealed { opacity: 1; transform: translateY(0); }
.service-card:active { transform: scale(.98); }
.service-card:hover {
  border-color: rgba(245,166,35,.4); transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3), var(--glow);
}
.svc-icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.service-card h3 { font-size: .9rem; margin-bottom: 6px; }
.service-card p { font-size: .75rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.price-range {
  display: inline-block; background: rgba(245,166,35,.1); color: var(--gold);
  font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; margin-bottom: 10px;
}
.btn-service {
  width: 100%; padding: 9px 8px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: .78rem; font-weight: 600; transition: all .2s;
}
.btn-service:hover, .btn-service:active { background: var(--gold); color: #000; border-color: var(--gold); }
.divider {
  text-align: center; position: relative; margin: 24px 0; color: var(--text-muted); font-size: .8rem;
}
.divider::before,.divider::after { content:''; position:absolute; top:50%; width:40%; height:1px; background:var(--border); }
.divider::before { left:0; } .divider::after { right:0; }
.secondary-services { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.secondary-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: all .3s; opacity: 0; transform: translateX(-16px);
}
.secondary-card.revealed { opacity: 1; transform: translateX(0); }
.secondary-card:hover { border-color: rgba(245,166,35,.4); background: var(--dark-4); }
.sec-icon { font-size: 1.3rem; flex-shrink: 0; }
.secondary-card strong { display: block; font-size: .88rem; margin-bottom: 1px; }
.secondary-card .sec-desc { font-size: .76rem; color: var(--text-muted); margin: 0; }
.sec-arrow { margin-left: auto; color: var(--text-muted); font-size: 1rem; transition: transform .2s; flex-shrink: 0; }
.secondary-card:hover .sec-arrow { transform: translateX(4px); color: var(--gold); }
.btn-whatsapp {
  background: var(--wa); color: #fff; padding: 12px 22px;
  border-radius: var(--radius); font-weight: 700; font-size: .9rem;
  transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-whatsapp:hover { opacity: .9; transform: translateY(-2px); }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; text-align: center; transition: all .3s;
}
.step-card:hover { border-color: rgba(245,166,35,.4); transform: translateY(-3px); }
.step-num { font-family:'Syne',sans-serif; font-size:2.2rem; font-weight:800; color:rgba(245,166,35,.2); line-height:1; margin-bottom:6px; }
.step-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.step-card h3 { font-size: .88rem; margin-bottom: 6px; }
.step-card p { font-size: .76rem; color: var(--text-muted); line-height: 1.5; }

/* ================================================================
   WHY US
   ================================================================ */
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reason-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; transition: all .3s;
}
.reason-card:hover { border-color: rgba(245,166,35,.3); transform: translateY(-3px); }
.reason-icon { font-size: 1.7rem; display: block; margin-bottom: 10px; }
.reason-card h3 { font-size: .88rem; margin-bottom: 6px; }
.reason-card p { font-size: .76rem; color: var(--text-muted); line-height: 1.5; }

/* ================================================================
   REVIEWS — Mobile First
   ================================================================ */
.rating-summary { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.big-rating { font-family:'Syne',sans-serif; font-size:2.5rem; font-weight:800; color:var(--gold); }
.stars { display: flex; gap: 2px; }
.star { font-size: 1.1rem; color: var(--dark-4); transition: color .15s, transform .15s; }
.star.filled { color: var(--gold); }
.star.interactive { cursor: pointer; }
.star.interactive:hover { color: var(--gold-light); transform: scale(1.2); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
.review-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: all .3s; animation: fadeUp .5s ease both;
}
.review-card:hover { border-color: rgba(245,166,35,.3); transform: translateY(-3px); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.reviewer-avatar {
  width: 38px; height: 38px; background: var(--gold); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family:'Syne',sans-serif; font-weight:800; font-size:.9rem; flex-shrink:0;
}
.review-service { display: block; font-size: .72rem; color: var(--gold); font-weight: 600; }
.verified-badge {
  margin-left: auto; background: rgba(34,197,94,.1); color: var(--green);
  padding: 2px 7px; border-radius: 100px; font-size: .65rem; font-weight: 600; white-space: nowrap;
}
.review-text { font-size: .82rem; color: var(--text-muted); margin: 8px 0; line-height: 1.6; font-style: italic; }
.review-date { font-size: .7rem; color: var(--text-muted); }
.btn-primary {
  background: var(--gold); color: #000; padding: 11px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: .9rem; transition: all .2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.review-form {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; max-width: 600px; margin: 20px auto 0; animation: fadeUp .4s ease;
}
.review-form h3 { margin-bottom: 20px; font-size: 1rem; }
.success-toast {
  background: rgba(34,197,94,.15); border: 1px solid var(--green); color: var(--green);
  padding: 12px 16px; border-radius: var(--radius); text-align: center; margin-bottom: 16px; font-size: .85rem;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--dark-4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 12px; color: var(--text);
  font-size: .88rem; outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--dark-4); }
.form-group textarea { resize: vertical; min-height: 90px; }
.review-login-prompt { text-align: center; padding: 16px 0; }
.review-login-prompt p { color: var(--text-muted); margin-bottom: 12px; font-size: .9rem; }

/* ================================================================
   ABOUT — Mobile First
   ================================================================ */
.about-inner { display: flex; flex-direction: column; gap: 28px; }
.about-text { display: flex; flex-direction: column; gap: 14px; }
.about-text p { color: var(--text-muted); line-height: 1.7; font-size: .9rem; }
.about-text strong { color: var(--text); }
.about-text em { color: var(--gold); font-style: normal; }
.about-stats { display: flex; gap: 24px; padding: 12px 0; flex-wrap: wrap; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-family:'Syne',sans-serif; font-size:1.5rem; font-weight:800; color:var(--gold); }
.about-stats span { font-size: .75rem; color: var(--text-muted); }
.about-card { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.about-big-icon { font-size: 3rem; display: block; margin-bottom: 14px; }
.about-card h3 { margin-bottom: 16px; font-size: 1.1rem; }
.about-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.about-card li { font-size: .85rem; padding: 8px 12px; background: var(--dark-4); border-radius: var(--radius-sm); }

/* ================================================================
   AUTH PAGE — Mobile First
   ================================================================ */
.auth-page {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 80px 16px 40px; position: relative; overflow: hidden;
}
.auth-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px; width: 100%; max-width: 440px;
  position: relative; z-index: 1; box-shadow: var(--shadow); animation: fadeUp .5s ease;
}
.back-btn { color: var(--text-muted); font-size: .82rem; margin-bottom: 20px; display: block; transition: color .2s; }
.back-btn:hover { color: var(--text); }
.auth-logo { font-family:'Syne',sans-serif; font-size:1.2rem; font-weight:800; margin-bottom:10px; }
.auth-logo em { color: var(--gold); font-style: normal; }
.auth-card h2 { font-size: 1.5rem; margin-bottom: 5px; }
.auth-sub { color: var(--text-muted); font-size: .84rem; margin-bottom: 20px; }
.auth-tabs {
  display: flex; background: var(--dark-4); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 20px;
}
.auth-tabs button {
  flex: 1; padding: 9px; border-radius: 6px;
  font-size: .88rem; font-weight: 600; color: var(--text-muted); transition: all .2s;
}
.auth-tabs button.active { background: var(--dark-3); color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.auth-error {
  background: rgba(239,68,68,.1); border: 1px solid var(--red); color: var(--red);
  padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .82rem;
}
.input-group { margin-bottom: 12px; }
.input-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.input-group input {
  width: 100%; background: var(--dark-4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 13px; color: var(--text); font-size: .9rem; outline: none; transition: border-color .2s;
}
.input-group input:focus { border-color: var(--gold); }
.btn-auth {
  width: 100%; padding: 13px; background: var(--gold); color: #000;
  border-radius: var(--radius); font-size: .92rem; font-weight: 700; margin-top: 8px;
  transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-auth:hover:not(:disabled) { background: var(--gold-light); }
.btn-auth:disabled { opacity: .7; cursor: not-allowed; }
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.3);
  border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.demo-hint { text-align: center; margin-top: 10px; color: var(--text-muted); font-size: .78rem; }

/* ================================================================
   DASHBOARD — Mobile First
   ================================================================ */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: calc(var(--nav-h) + 20px) 16px 60px; }
.page-header {
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px;
}
.page-header h1 { font-size: 1.6rem; margin-bottom: 3px; }
.page-header p { color: var(--text-muted); font-size: .85rem; }
.user-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
}
.user-avatar {
  width: 40px; height: 40px; background: var(--gold); color: #000; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family:'Syne',sans-serif; font-weight:800; font-size:1rem; flex-shrink:0;
}
.user-badge strong { display: block; font-size: .88rem; }
.user-badge span { font-size: .74rem; color: var(--text-muted); word-break: break-all; }
.dash-grid { display: flex; flex-direction: column; gap: 16px; }
.dash-card { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; }
.dash-card h3 { margin-bottom: 16px; font-size: 1rem; }
.success-msg {
  background: rgba(34,197,94,.1); border: 1px solid var(--green); color: var(--green);
  padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .82rem;
}
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn-primary, .btn-row .btn-wa-sm { flex: 1; min-width: 120px; justify-content: center; display: flex; align-items: center; }
.btn-wa-sm {
  padding: 10px 14px; background: var(--wa); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem; transition: opacity .2s;
}
.btn-wa-sm:hover { opacity: .9; }
.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.quick-btn {
  background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: .7rem; color: var(--text-muted); transition: all .2s;
}
.quick-btn:hover, .quick-btn:active { border-color: var(--gold); color: var(--text); }
.qs-icon { font-size: 1.2rem; }
.emergency-row {
  border-top: 1px solid var(--border); padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.emerg-label { font-size: .82rem; font-weight: 600; color: var(--red); }
.btn-emergency {
  background: var(--red); color: #fff; padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.info-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.info-row {
  display: flex; justify-content: space-between; padding-bottom: 10px;
  border-bottom: 1px solid var(--border); font-size: .84rem; gap: 8px;
}
.info-row span { color: var(--text-muted); flex-shrink: 0; }
.info-row strong { word-break: break-all; text-align: right; }
.btn-link {
  color: var(--gold); font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(245,166,35,.3); padding: 8px 14px;
  border-radius: var(--radius-sm); transition: all .2s;
}
.btn-link:hover { background: rgba(245,166,35,.1); }

/* ================================================================
   ADMIN — Mobile First
   ================================================================ */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600;
  color: var(--text-muted); background: var(--dark-3); border: 1px solid var(--border);
  transition: all .2s; display: flex; align-items: center; gap: 5px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 24px; }
.stat-card { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.scard-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.scard-val { font-family:'Syne',sans-serif; font-size:1.6rem; font-weight:800; color:var(--gold); display:block; }
.scard-label { font-size: .72rem; color: var(--text-muted); }
.recent-list h3 { margin-bottom: 14px; font-size: 1rem; }
.conv-row {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 8px; transition: all .2s;
}
.conv-row:hover { border-color: rgba(245,166,35,.3); }
.conv-avatar {
  width: 36px; height: 36px; background: var(--gold); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.conv-name { font-size: .84rem; font-weight: 600; display: block; margin-bottom: 2px; }
.conv-preview { font-size: .72rem; color: var(--text-muted); }

/* ================================================================
   CHAT — Admin Panel
   ================================================================ */
.admin-chat {
  display: flex; flex-direction: column; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.chat-sidebar { background: var(--dark-3); border-bottom: 1px solid var(--border); }
.chat-sidebar-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-sidebar-header h3 { font-size: .9rem; }
.conv-list { max-height: 220px; overflow-y: auto; }
.conv-item {
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: background .2s; border-bottom: 1px solid var(--border);
}
.conv-item:hover, .conv-item.active { background: var(--dark-4); }
.ci-info strong { display: block; font-size: .82rem; margin-bottom: 2px; }
.ci-info span { font-size: .72rem; color: var(--text-muted); }
.chat-main { display: flex; flex-direction: column; background: var(--dark-2); }
.chat-main-header {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; background: var(--dark-3);
}
.chat-main-header strong { display: block; font-size: .88rem; }
.btn-wa-xs {
  margin-left: auto; background: var(--wa); color: #fff;
  padding: 6px 10px; border-radius: var(--radius-sm); font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.messages-area {
  overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: 300px;
}
.message { display: flex; }
.message.sent { justify-content: flex-end; }
.msg-bubble { max-width: 85%; }
.msg-bubble p {
  background: var(--dark-4); padding: 9px 11px; border-radius: 10px;
  font-size: .82rem; line-height: 1.4; margin: 0; word-wrap: break-word;
}
.message.sent .msg-bubble p { background: var(--gold); color: #000; }
.msg-time { font-size: .64rem; color: var(--text-muted); margin-top: 3px; display: block; }
.message.sent .msg-time { text-align: right; }
.chat-input-row {
  display: flex; gap: 8px; padding: 10px;
  border-top: 1px solid var(--border); background: var(--dark-4);
}
.chat-input-row textarea {
  flex: 1; background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text); font-size: .84rem; outline: none; resize: none;
}
.chat-input-row textarea:focus { border-color: var(--gold); }
.btn-send {
  background: var(--gold); color: #000; padding: 8px 12px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .82rem; white-space: nowrap; align-self: flex-end;
}
.no-chat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-muted); font-size: .85rem; padding: 32px 20px;
}
.no-chat span { font-size: 2rem; }
.online-status { font-size: .68rem; color: var(--green); }

/* ================================================================
   CHAT WIDGET — Floating
   ================================================================ */
.chat-widget { position: fixed; bottom: 20px; right: 16px; z-index: 999; }
.chat-toggle {
  width: 52px; height: 52px; background: var(--gold); color: #000;
  border-radius: 50%; font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(245,166,35,.5); transition: all .3s;
  display: flex; align-items: center; justify-content: center;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle:active { transform: scale(.95); }
.chat-popup {
  position: absolute; bottom: 64px; right: 0;
  width: min(320px, calc(100vw - 32px));
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  animation: popUp .3s ease;
}
@keyframes popUp { from{opacity:0;transform:scale(.9) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }
.chat-popup-header {
  background: var(--dark-4); padding: 13px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .87rem; font-weight: 600;
}
.popup-messages { height: 220px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-welcome-box { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-welcome-box p { font-size: .88rem; }
.btn-start {
  background: var(--gold); color: #000; padding: 10px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .88rem;
}
.btn-wa-outline {
  background: transparent; border: 1px solid var(--wa); color: var(--wa);
  padding: 10px; border-radius: var(--radius-sm); font-size: .84rem; font-weight: 600;
}

/* ================================================================
   FOOTER — Mobile First
   ================================================================ */
.footer { background: var(--dark-2); border-top: 1px solid var(--border); padding: 40px 16px 24px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px;
}
.footer-brand .logo { font-size: 1.1rem; margin-bottom: 10px; display: block; }
.footer-brand p { color: var(--text-muted); font-size: .82rem; line-height: 1.6; margin-bottom: 14px; }
.btn-footer-wa {
  background: var(--wa); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: .82rem;
}
.footer-links h4 {
  font-size: .78rem; margin-bottom: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links button { color: var(--text-muted); font-size: .8rem; transition: color .2s; text-align: left; padding: 3px 0; }
.footer-links button:hover { color: var(--gold); }
.footer-contact h4 { font-size: .78rem; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.footer-contact p { font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }
.social-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.social-links a {
  font-size: .74rem; color: var(--text-muted); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; transition: all .2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--border);
  padding-top: 18px; display: flex; flex-direction: column; gap: 6px; text-align: center;
}
.footer-bottom p { font-size: .76rem; color: var(--text-muted); }

/* ================================================================
   TABLET — 600px+
   ================================================================ */
@media (min-width: 600px) {
  section.section { padding: 64px 24px; }
  .hero { padding: calc(var(--nav-h) + 60px) 24px 72px; }
  .page-wrap { padding: calc(var(--nav-h) + 24px) 24px 60px; }

  .hero-stats { grid-template-columns: repeat(4,1fr); }
  .hero-actions { flex-wrap: nowrap; }
  .btn-hero-primary, .btn-hero-whatsapp { flex: none; }

  .reviews-grid { grid-template-columns: repeat(2,1fr); }
  .about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  .steps-grid { grid-template-columns: repeat(4,1fr); }
  .reasons-grid { grid-template-columns: repeat(3,1fr); }

  .page-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .admin-chat {
    display: grid; grid-template-columns: 260px 1fr;
    height: 520px; flex-direction: unset;
  }
  .chat-sidebar { border-bottom: none; border-right: 1px solid var(--border); }
  .conv-list { max-height: none; flex: 1; overflow-y: auto; }
  .messages-area { max-height: none; }
}

/* ================================================================
   DESKTOP — 900px+
   ================================================================ */
@media (min-width: 900px) {
  :root { --nav-h: 68px; }

  .navbar { padding: 0 40px; }
  .nav-links {
    display: flex; position: static;
    background: none; border: none; padding: 0;
    flex-direction: row; gap: 4px; animation: none;
    width: auto;
  }
  .nav-link { padding: 8px 14px; font-size: .88rem; }
  .hamburger { display: none; }
  .btn-ghost { font-size: .88rem; }

  .hero { padding: calc(var(--nav-h) + 80px) 40px 80px; }
  .hero-visual {
    display: block; position: absolute; right: 80px; top: 50%;
    transform: translateY(-50%); z-index: 1; animation: fadeUp .8s ease both .5s;
  }
  .phone-mockup {
    width: 240px; background: var(--dark-3); border: 1px solid var(--border);
    border-radius: 22px; overflow: hidden; box-shadow: var(--shadow), var(--glow);
    animation: phoneFloat 5s ease-in-out infinite;
  }
  @keyframes phoneFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
  .phone-screen { padding: 18px; }
  .app-header {
    display: flex; justify-content: space-between; align-items: center;
    font-family:'Syne',sans-serif; font-weight:700; margin-bottom:14px; font-size:.85rem;
  }
  .online-dot { color: var(--green); font-size: .7rem; }
  .app-card {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--dark-4); border-radius: var(--radius-sm);
    padding: 9px 11px; margin-bottom: 7px; font-size: .76rem; animation: slideIn .5s ease both;
  }
  @keyframes slideIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }
  .available { color: var(--green); font-size: .66rem; font-weight: 600; }
  .app-btn {
    background: var(--gold); color: #000; text-align: center; padding: 9px;
    border-radius: var(--radius-sm); margin-top: 10px; font-weight: 700; font-size: .8rem;
  }
  .floating-card {
    position: absolute; background: var(--dark-3); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 11px 14px; display: flex; align-items: center;
    gap: 9px; box-shadow: var(--shadow); white-space: nowrap; animation: cardPop .6s ease both;
  }
  @keyframes cardPop { from{opacity:0;transform:scale(.85)} to{opacity:1;transform:scale(1)} }
  .card-1 { top: 16px; left: -80px; animation-delay: 1.2s; }
  .card-2 { bottom: 36px; left: -100px; animation-delay: 1.6s; }
  .floating-card > span { font-size: 1.3rem; }
  .floating-card strong { font-size: .8rem; display: block; }
  .floating-card p { font-size: .7rem; color: var(--text-muted); margin: 0; }

  section.section { padding: 80px 40px; }
  .page-wrap { padding: calc(var(--nav-h) + 32px) 40px 60px; }

  .services-grid { grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; }
  .service-card { padding: 26px 22px; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { font-size: .82rem; display: block; -webkit-line-clamp: unset; }

  .steps-grid { grid-template-columns: repeat(4,1fr); gap: 20px; }
  .step-card { padding: 26px 20px; }
  .reasons-grid { grid-template-columns: repeat(3,1fr); gap: 18px; }

  .reviews-grid { grid-template-columns: repeat(3,1fr); gap: 18px; }
  .about-inner { gap: 60px; }

  .dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .full-width { grid-column: 1/-1; }
  .dash-card { padding: 26px 22px; }

  .stats-grid { grid-template-columns: repeat(4,1fr); gap: 14px; }
  .admin-chat { height: 560px; }
  .messages-area { max-height: 360px; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
  .footer { padding: 56px 40px 24px; }
  .footer-bottom { flex-direction: row; text-align: left; }

  .orb-1 { width: 500px; height: 500px; }
  .orb-2 { width: 300px; height: 300px; }
  .orb-3 { width: 200px; height: 200px; }
}

/* ================================================================
   LARGE DESKTOP — 1200px+
   ================================================================ */
@media (min-width: 1200px) {
  .navbar { padding: 0 60px; }
  section.section { padding: 96px 60px; }
  .hero { padding: calc(var(--nav-h) + 100px) 60px 80px; }
  .hero-visual { right: 100px; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.hidden-mobile { display: none; }
@media (min-width: 600px) { .hidden-mobile { display: block; } }

/* Touch-friendly tap sizes */
@media (hover: none) {
  .btn-service:active { background: var(--gold); color: #000; border-color: var(--gold); }
  .secondary-card:active { border-color: rgba(245,166,35,.4); background: var(--dark-4); }
  .quick-btn:active { border-color: var(--gold); color: var(--text); }
}