/* ==========================================================================
   Prime Health Care — Simple Design System
   Flat, minimal: white surfaces, 1px borders, system fonts, no gradients.
   ========================================================================== */

:root {
  /* Palette */
  --ph-primary: #0E3A4E;          /* deep teal-navy */
  --ph-primary-light: #1C5F7E;    /* lighter teal */
  --ph-secondary: #C6A15B;        /* gold (logo + focus accents only) */
  --ph-accent: #2E8B8B;           /* soft teal accent */
  --ph-warm: #FFFFFF;             /* page background */
  --ph-caring: #F2F5F6;           /* light gray-teal tint */
  --ph-trust: #0E3A4E;
  --ph-success: #2E7D5B;
  --ph-warning: #B8860B;
  --ph-danger: #C0492F;
  --ph-text: #1E2A32;
  --ph-text-light: #5E6E78;
  --ph-background: #FFFFFF;
  --ph-border: #E2E4E6;
  --ph-navy-deep: #0A2C3C;
  --ph-gold-soft: #F3EAD8;

  /* Typography — system stack, no webfont downloads */
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Motion */
  --transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky navbar */
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  background: var(--ph-warm);
  color: var(--ph-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ph-text);
}

a { color: var(--ph-primary); }
:focus-visible {
  outline: 2px solid var(--ph-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   Navigation — plain white, sticky
   ========================================================================== */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ph-border);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ph-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ph-text);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--ph-primary);
  background: var(--ph-caring);
}
.nav-links a.active { color: var(--ph-primary); }
.btn-login { color: var(--ph-primary) !important; font-weight: 600 !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ph-primary);
}
.nav-toggle svg { display: block; }

/* ==========================================================================
   Buttons — flat
   ========================================================================== */
.btn-primary {
  display: inline-block;
  background: var(--ph-primary);
  color: #fff !important;
  padding: 11px 26px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--ph-primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: var(--transition);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--ph-navy-deep);
  border-color: var(--ph-navy-deep);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: #FFFFFF;
  color: var(--ph-primary);
  border-color: #FFFFFF;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ph-primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ph-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--ph-primary);
  color: #fff;
}

.btn-large { padding: 15px 36px !important; font-size: 1.02rem; }
button.btn-primary[style*="width: 100%"],
.btn-primary.btn-block { width: 100%; text-align: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ph-primary);
  color: #fff;
  padding: 110px 24px 120px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero .highlight {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ph-secondary);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.hero .subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.trust-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.92;
}
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; }
.trust-badges svg { color: var(--ph-secondary); flex-shrink: 0; }

/* ==========================================================================
   Sections (landing)
   ========================================================================== */
.section { padding: 80px 24px; }
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-desc {
  text-align: center;
  color: var(--ph-text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section-alt { background: var(--ph-caring); }
.section-tint { background: var(--ph-caring); }

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: 80px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--ph-background);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: none;
  border: 1px solid var(--ph-border);
  transition: border-color 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: var(--ph-primary);
}
.service-card.featured {
  border: 1.5px solid var(--ph-primary);
}
.card-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--ph-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--ph-caring);
  color: var(--ph-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card.featured .card-icon {
  background: var(--ph-gold-soft);
  color: #96762F;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--ph-primary);
}
.service-card > p { color: var(--ph-text-light); font-size: 0.94rem; }
.service-card ul {
  list-style: none;
  margin: 18px 0;
  font-size: 0.9rem;
  flex-grow: 1;
}
.service-card ul li {
  padding: 4px 0 4px 26px;
  position: relative;
  color: var(--ph-text-light);
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background-color: var(--ph-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-starting {
  font-size: 1.1rem;
  color: var(--ph-primary);
  font-weight: 700;
  margin: 4px 0 20px;
}
.price-starting small {
  font-weight: 400;
  color: var(--ph-text-light);
  font-size: 0.85rem;
}

/* ==========================================================================
   How it works / steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
  counter-reset: step;
}
.step { text-align: center; }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--ph-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 auto 18px;
}
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--ph-text-light); font-size: 0.92rem; }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  background: var(--ph-navy-deep);
  color: #fff;
  padding: 64px 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.1;
}
.stat-label { opacity: 0.85; font-size: 0.95rem; margin-top: 6px; }

/* ==========================================================================
   Check list (tick bullets, SVG via mask)
   ========================================================================== */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto 36px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ph-text);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--ph-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--ph-background);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: none;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial:hover { border-color: var(--ph-primary); }
.testimonial blockquote {
  font-size: 1rem;
  color: var(--ph-text);
  font-style: italic;
  flex-grow: 1;
}
.testimonial blockquote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--ph-primary);
  display: block;
  line-height: 0.6;
  margin-bottom: 12px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ph-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--ph-text-light); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--ph-background);
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--ph-primary); }
.faq summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: var(--ph-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p {
  padding: 0 24px 20px;
  color: var(--ph-text-light);
  font-size: 0.95rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ph-navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 0.9rem; max-width: 320px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-links a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ==========================================================================
   Dashboard Layout (used by customer/employee/admin/hr/recruiter pages)
   ========================================================================== */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--ph-background);
  border-right: 1px solid var(--ph-border);
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  min-width: 0;
}
.user-profile {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ph-border);
  margin-bottom: 16px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ph-border);
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-customer { background: var(--ph-caring); color: var(--ph-primary); }
.badge-aid { background: #E4F2EA; color: var(--ph-success); }
.badge-admin { background: #F8E7E3; color: var(--ph-danger); }
.badge-hr { background: var(--ph-gold-soft); color: #96762F; }
.badge-recruiter { background: #E8E4F2; color: #5B4A8A; }

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ph-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: var(--ph-caring);
  color: var(--ph-primary);
}
.main-content {
  padding: 32px;
  background: var(--ph-caring);
  min-height: 100vh;
  min-width: 0;
}
.card {
  background: var(--ph-background);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: none;
  border: 1px solid var(--ph-border);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--ph-text);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ph-text);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ph-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--ph-background);
  color: var(--ph-text);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: #B9BEC2; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ph-primary);
  box-shadow: 0 0 0 3px rgba(14, 58, 78, 0.12);
}

/* ==========================================================================
   Calendar
   ========================================================================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ph-border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  background: var(--ph-background);
}
.calendar-day:hover { background: var(--ph-caring); }
.calendar-day.active {
  background: var(--ph-primary);
  color: #fff;
  border-color: var(--ph-primary);
}
.calendar-day.has-shift::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ph-success);
  border-radius: 50%;
  margin-top: 4px;
}

/* ==========================================================================
   Area Tags
   ========================================================================== */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ph-caring);
  color: var(--ph-primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.area-tag button {
  background: none;
  border: none;
  color: var(--ph-primary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--ph-text-light);
  border-bottom: 2px solid var(--ph-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ph-border);
}
.data-table tr:hover td { background: var(--ph-caring); }

/* ==========================================================================
   Status badges
   ========================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pending { background: var(--ph-gold-soft); color: #96762F; }
.status-approved { background: #E4F2EA; color: var(--ph-success); }
.status-rejected { background: #F8E7E3; color: var(--ph-danger); }
.status-paid { background: var(--ph-caring); color: var(--ph-primary); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ph-border);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ph-primary);
}
.timeline-time {
  font-size: 0.8rem;
  color: var(--ph-text-light);
  margin-bottom: 4px;
}
.timeline-content {
  background: var(--ph-background);
  border: 1px solid var(--ph-border);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ph-caring);
  padding: 32px 24px;
}
.auth-box {
  background: var(--ph-background);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: none;
  border: 1px solid var(--ph-border);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-box h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}
.auth-box > p {
  color: var(--ph-text-light);
  margin-bottom: 28px;
  font-size: 0.92rem;
  text-align: center;
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.auth-extras label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ph-text-light);
}
.auth-extras a { font-size: 0.85rem; text-decoration: none; font-weight: 600; }
.auth-extras a:hover { text-decoration: underline; }
.auth-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--ph-text-light);
}
.auth-footer a {
  color: var(--ph-primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 140px; }

  .dashboard { grid-template-columns: 1fr; }
  /* Sidebar becomes a sticky top bar with horizontally scrollable nav */
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 150;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--ph-border);
    padding: 12px 16px;
  }
  .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .user-profile .avatar { width: 36px; height: 36px; margin-bottom: 0; flex-shrink: 0; }
  .user-profile h4 { font-size: 0.95rem; }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .sidebar nav a { white-space: nowrap; margin-bottom: 0; flex-shrink: 0; }
  .main-content { padding: 16px; }

  /* Prevent iOS auto-zoom on input focus (needs >=16px) */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  /* Let wide tables scroll sideways instead of breaking the layout */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Stack inline multi-column form grids on narrow screens */
  .form-group div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  .hero { padding: 80px 20px 88px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .service-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .auth-box { padding: 32px 22px; }
  .auth-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #FFFFFF;
    border-bottom: 1px solid var(--ph-border);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 12px; }
  .nav-links .btn-primary { text-align: center; margin-top: 6px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
