:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --accent: #be185d;
  --accent-light: #fdf2f8;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --btn-height: 52px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Readex Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Header ── */
.header {
  text-align: center;
  padding: 8px 0 4px;
}

.header-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 300px;
  margin-inline: auto;
}

/* ── Status bar ── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.status-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-bar-text strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.status-bar-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg);
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.open {
  background: #16a34a;
}

.status-dot.closed {
  background: #dc2626;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-height);
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.btn i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-telegram {
  background: #229ed9;
  color: #fff;
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
}

.btn-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

.btn-tiktok {
  background: #000;
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  min-height: 44px;
  font-size: 0.78rem;
  padding: 0 10px;
  flex: 1;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:active {
  background: var(--accent-light);
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
}

.card-title i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ── Hours ── */
.hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hours-value {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.hours-closed .hours-value {
  color: #dc2626;
}

/* ── Section headings ── */
.section-heading {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.section-heading i {
  color: var(--accent);
}

.section-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Branch cards ── */
.branch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.branch-card:last-of-type {
  margin-bottom: 0;
}

.branch-image {
  position: relative;
  height: 80%;
  overflow: hidden;
}

.branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.branch-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}

.branch-body {
  padding: 16px;
}

.branch-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.branch-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.branch-actions {
  display: flex;
  gap: 8px;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 20px 0 0;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Toast ── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 360px) {
  .page {
    padding: 16px 12px 24px;
  }

  .header h1 {
    font-size: 1.3rem;
  }

  .branch-actions {
    flex-direction: column;
  }

  .btn-outline {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .page {
    max-width: 480px;
    padding-top: 40px;
  }

  .header-logo {
    width: 100px;
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Chat Widget ── */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 56px;
  height: 56px;
  padding: 0 18px 0 16px;
  border-radius: 100px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(190, 24, 93, 0.45);
  z-index: 9999;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.chat-fab i {
  font-size: 1.2rem;
}

.chat-fab:active {
  transform: scale(0.94);
}

.chat-fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 48px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.chat-panel--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.chat-header strong {
  display: block;
  font-size: 0.9rem;
}

.chat-header span {
  font-size: 0.7rem;
  opacity: 0.85;
}

.chat-header button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-chip {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(190, 24, 93, 0.2);
  padding: 5px 10px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-chip:active {
  background: var(--accent);
  color: #fff;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  background: var(--surface);
}

.chat-form input:focus {
  border-color: var(--accent);
}

.chat-form button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 360px) {
  .chat-fab,
  .chat-panel {
    right: 16px;
    bottom: 16px;
  }

  .chat-fab span {
    display: none;
  }

  .chat-fab {
    width: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .chat-panel {
    width: calc(100vw - 32px);
  }
}

