
:root {
  --color-primary: #0E7C7B;
  --color-primary-light: #15A19F;
  --color-secondary: #FF6B5E;
  --color-secondary-light: #FF8A7F;
  --color-bg: #F4FAFA;
  --color-surface: #FFFFFF;
  --color-text: #1C2B2B;
  --color-text-muted: #5E7372;
  --color-border: #D9E8E7;
  --color-error: #E5575F;
  --color-success: #0E7C7B;
  --color-warning: #D9A23B;
  --shadow-soft: 0 4px 24px rgba(14, 124, 123, 0.08);
  --shadow-card: 0 8px 40px rgba(14, 124, 123, 0.14);
  --radius: 14px;
}

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

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  border: 1.5px solid var(--color-border, #e2e2e2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.logo-mark img { width: 100%; height: 100%; object-fit: contain; }

.logo-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
}

.logo-text p {
  font-size: 10.5px;
  color: var(--color-text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
}

.nav-links a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}

.account-pill svg { width: 16px; height: 16px; }

.emergency-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  animation: pulse-emergency 2.5s infinite;
}

.emergency-pill svg { width: 14px; height: 14px; }

@keyframes pulse-emergency {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 107, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 94, 0); }
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn span {
  width: 21px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 8px 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-bg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu a:active { background: var(--color-bg); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .hamburger-btn { display: none; }
  .mobile-menu { display: none !important; }
}

.site-footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 50px;
  padding: 40px 20px 18px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
  display: block;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.loading-state, .empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.spinner-block {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast svg { width: 16px; height: 16px; color: var(--color-primary-light); flex-shrink: 0; }

.appointment-float {
  position: fixed;
  bottom: 20px;
  right: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}

.appointment-float-label {
  background: var(--color-text);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.appointment-float:hover .appointment-float-label {
  opacity: 1;
  transform: translateX(0);
}

.appointment-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(14, 124, 123, 0.45);
  flex-shrink: 0;
  animation: pulse-appt 2.4s infinite;
}

.appointment-float-btn svg { width: 24px; height: 24px; }

@keyframes pulse-appt {
  0% { box-shadow: 0 6px 20px rgba(14, 124, 123, 0.45); }
  50% { box-shadow: 0 6px 24px rgba(14, 124, 123, 0.7); }
  100% { box-shadow: 0 6px 20px rgba(14, 124, 123, 0.45); }
}

@media (max-width: 480px) {
  .appointment-float-label { display: none; }
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border, #e2e2e2);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.lang-toggle-btn:hover {
  background: var(--color-bg, #f6f6f6);
}
